|
| 1 | +plugins { |
| 2 | + id("com.android.application") |
| 3 | + id("org.jetbrains.kotlin.android") |
| 4 | +} |
| 5 | + |
| 6 | +android { |
| 7 | + namespace = "com.cola.callblock" |
| 8 | + compileSdk = 34 |
| 9 | + |
| 10 | + defaultConfig { |
| 11 | + applicationId = "com.cola.callblock" |
| 12 | + minSdk = 29 |
| 13 | + targetSdk = 34 |
| 14 | + versionCode = 1 |
| 15 | + versionName = "0.1.0" |
| 16 | + vectorDrawables { useSupportLibrary = true } |
| 17 | + } |
| 18 | + |
| 19 | + buildTypes { |
| 20 | + debug { |
| 21 | + isMinifyEnabled = false |
| 22 | + isDebuggable = true |
| 23 | + } |
| 24 | + release { |
| 25 | + isMinifyEnabled = false |
| 26 | + signingConfig = signingConfigs.getByName("debug") |
| 27 | + } |
| 28 | + } |
| 29 | + |
| 30 | + compileOptions { |
| 31 | + sourceCompatibility = JavaVersion.VERSION_17 |
| 32 | + targetCompatibility = JavaVersion.VERSION_17 |
| 33 | + } |
| 34 | + |
| 35 | + kotlinOptions { |
| 36 | + jvmTarget = "17" |
| 37 | + freeCompilerArgs += listOf( |
| 38 | + "-opt-in=androidx.compose.material3.ExperimentalMaterial3Api", |
| 39 | + ) |
| 40 | + } |
| 41 | + |
| 42 | + buildFeatures { |
| 43 | + compose = true |
| 44 | + } |
| 45 | + |
| 46 | + composeOptions { |
| 47 | + kotlinCompilerExtensionVersion = "1.5.10" |
| 48 | + } |
| 49 | + |
| 50 | + sourceSets { |
| 51 | + getByName("main") { |
| 52 | + java.srcDirs("src/main/kotlin") |
| 53 | + } |
| 54 | + } |
| 55 | + |
| 56 | + packaging { |
| 57 | + resources { |
| 58 | + excludes += "/META-INF/{AL2.0,LGPL2.1}" |
| 59 | + } |
| 60 | + } |
| 61 | +} |
| 62 | + |
| 63 | +dependencies { |
| 64 | + val composeBom = platform("androidx.compose:compose-bom:2024.04.01") |
| 65 | + implementation(composeBom) |
| 66 | + |
| 67 | + implementation("androidx.core:core-ktx:1.12.0") |
| 68 | + implementation("androidx.appcompat:appcompat:1.6.1") |
| 69 | + implementation("androidx.activity:activity-compose:1.8.2") |
| 70 | + |
| 71 | + implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0") |
| 72 | + implementation("androidx.lifecycle:lifecycle-runtime-compose:2.7.0") |
| 73 | + |
| 74 | + implementation("androidx.compose.ui:ui") |
| 75 | + implementation("androidx.compose.ui:ui-graphics") |
| 76 | + implementation("androidx.compose.material3:material3") |
| 77 | + |
| 78 | + implementation("androidx.datastore:datastore-preferences:1.1.1") |
| 79 | + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0") |
| 80 | + |
| 81 | + debugImplementation("androidx.compose.ui:ui-tooling") |
| 82 | +} |
0 commit comments