ai-chat-android-auto / files / app / build.gradle.kts
build.gradle.kts
eaac7c1e 2026-05-14 Pavel Safronov | 1 | import java.util.Properties |
| 2 | ||
| 3 | plugins { | |
| 4 | id("com.android.application") | |
| 5 | id("org.jetbrains.kotlin.android") | |
| 6 | } | |
| 7 | ||
| 8 | val localProps = Properties().apply { | |
| 9 | val f = rootProject.file("local.properties") | |
| 10 | if (f.exists()) f.inputStream().use { load(it) } | |
| 11 | } | |
| 12 | ||
| 13 | android { | |
d522fe6d 2026-05-15 Pavel Safronov | 14 | namespace = "net.fuzzyworld.aichat" |
eaac7c1e 2026-05-14 Pavel Safronov | 15 | compileSdk = 34 |
| 16 | ||
| 17 | defaultConfig { | |
d522fe6d 2026-05-15 Pavel Safronov | 18 | applicationId = "net.fuzzyworld.aichat" |
eaac7c1e 2026-05-14 Pavel Safronov | 19 | minSdk = 23 |
| 20 | targetSdk = 34 | |
| 21 | versionCode = 2 | |
| 22 | versionName = "1.1" | |
| 23 | } | |
| 24 | ||
| 25 | signingConfigs { | |
| 26 | create("release") { | |
| 27 | storeFile = file(localProps.getProperty("release.storeFile", "")) | |
| 28 | storePassword = localProps.getProperty("release.storePassword", "") | |
| 29 | keyAlias = localProps.getProperty("release.keyAlias", "") | |
| 30 | keyPassword = localProps.getProperty("release.keyPassword", "") | |
| 31 | } | |
| 32 | } | |
| 33 | ||
| 34 | buildTypes { | |
| 35 | getByName("release") { | |
| 36 | signingConfig = signingConfigs.getByName("release") | |
| 37 | isMinifyEnabled = false | |
| 38 | } | |
| 39 | } | |
| 40 | ||
| 41 | compileOptions { | |
| 42 | sourceCompatibility = JavaVersion.VERSION_1_8 | |
| 43 | targetCompatibility = JavaVersion.VERSION_1_8 | |
| 44 | } | |
| 45 | ||
| 46 | kotlinOptions { | |
| 47 | jvmTarget = "1.8" | |
| 48 | } | |
| 49 | } | |
| 50 | ||
| 51 | dependencies { | |
| 52 | implementation("androidx.media:media:1.7.0") | |
| 53 | implementation("com.squareup.okhttp3:okhttp:4.12.0") | |
| 54 | implementation("androidx.core:core-ktx:1.12.0") | |
| 55 | implementation("androidx.appcompat:appcompat:1.6.1") | |
| 56 | implementation("androidx.activity:activity-ktx:1.8.2") | |
| 57 | implementation("androidx.security:security-crypto:1.1.0-alpha06") | |
| 58 | } |