diff --git a/app/build.gradle b/app/build.gradle.kts similarity index 61% rename from app/build.gradle rename to app/build.gradle.kts index 118b2a9..dcbf190 100644 --- a/app/build.gradle +++ b/app/build.gradle.kts @@ -1,44 +1,48 @@ plugins { - id "com.android.application" - id "kotlin-android" + id("com.android.application") + id("kotlin-android") } android { - compileSdk 33 + compileSdk = 33 defaultConfig { - applicationId "template.app.id" - minSdk 21 - targetSdk 33 - versionCode 1 - versionName "1.0" + applicationId = "template.app.id" + minSdk = 21 + targetSdk = 33 + versionCode = 1 + versionName = "1.0" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { - useSupportLibrary true + useSupportLibrary = true } } buildTypes { release { - minifyEnabled false - proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" + isMinifyEnabled = false + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") } } + compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } + kotlinOptions { jvmTarget = "1.8" } + buildFeatures { - compose true + compose = true } + composeOptions { - kotlinCompilerExtensionVersion "1.3.0" - kotlinCompilerVersion kotlinVersion + kotlinCompilerExtensionVersion = "1.3.0" } + packagingOptions { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" @@ -47,7 +51,7 @@ android { } dependencies { - def composeBom = platform(libs.compose.bom) + val composeBom = platform(libs.compose.bom) implementation(composeBom) debugImplementation(composeBom) androidTestImplementation(composeBom) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb43..ff59496 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,6 +1,6 @@ # Add project specific ProGuard rules here. # You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. +# proguardFiles setting in build.gradle.kts. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html