|
| 1 | +plugins { |
| 2 | + alias(libs.plugins.android.application) |
| 3 | + alias(libs.plugins.kotlin.android) |
| 4 | +} |
| 5 | +android { |
| 6 | + compileSdk = libs.versions.compileSdk.get().toInt() |
| 7 | + namespace = "com.example.recompose" |
| 8 | + |
| 9 | + defaultConfig { |
| 10 | + applicationId = "com.example.recompose" |
| 11 | + minSdk = libs.versions.minSdk.get().toInt() |
| 12 | + targetSdk = libs.versions.targetSdk.get().toInt() |
| 13 | + versionCode = 1 |
| 14 | + versionName = "1.0" |
| 15 | + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
| 16 | + } |
| 17 | + |
| 18 | + buildTypes { |
| 19 | + getByName("debug") { |
| 20 | + signingConfig = signingConfigs.getByName("debug") |
| 21 | + } |
| 22 | + |
| 23 | + getByName("release") { |
| 24 | + isMinifyEnabled = false |
| 25 | + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), |
| 26 | + "proguard-rules.pro") |
| 27 | + } |
| 28 | + } |
| 29 | + compileOptions { |
| 30 | + sourceCompatibility = JavaVersion.VERSION_17 |
| 31 | + targetCompatibility = JavaVersion.VERSION_17 |
| 32 | + } |
| 33 | + buildFeatures { |
| 34 | + compose = true |
| 35 | + // Disable unused AGP features |
| 36 | + viewBinding = true |
| 37 | + } |
| 38 | + |
| 39 | + composeOptions { |
| 40 | + kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get() |
| 41 | + } |
| 42 | +} |
| 43 | +dependencies { |
| 44 | + val composeBom = platform(libs.androidx.compose.bom) |
| 45 | + implementation(composeBom) |
| 46 | + androidTestImplementation(composeBom) |
| 47 | + implementation(libs.androidx.core.ktx) |
| 48 | + implementation(libs.androidx.activity.compose) |
| 49 | + implementation(libs.androidx.compose.runtime) |
| 50 | + implementation(libs.androidx.compose.foundation) |
| 51 | + implementation(libs.androidx.compose.foundation.layout) |
| 52 | + implementation(libs.androidx.compose.ui.util) |
| 53 | + implementation(libs.androidx.compose.material) |
| 54 | + |
| 55 | + implementation(libs.androidx.lifecycle.runtime) |
| 56 | + testImplementation(libs.junit) |
| 57 | + androidTestImplementation(libs.junit) |
| 58 | + androidTestImplementation(libs.androidx.test.core) |
| 59 | + androidTestImplementation(libs.androidx.test.runner) |
| 60 | + androidTestImplementation(libs.androidx.test.espresso.core) |
| 61 | +} |
0 commit comments