build.gradle.kts
1 // SPDX-FileCopyrightText: Amolith <amolith@secluded.site> 2 // 3 // SPDX-License-Identifier: CC0-1.0 4 5 plugins { 6 id("com.android.application") 7 id("org.jetbrains.kotlin.android") 8 } 9 10 android { 11 namespace = "com.adresilo.android" 12 compileSdk = 34 13 14 defaultConfig { 15 applicationId = "com.adresilo.android" 16 minSdk = 24 17 targetSdk = 34 18 versionCode = 9 19 versionName = "v1.3.0" 20 21 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" 22 vectorDrawables { 23 useSupportLibrary = true 24 } 25 } 26 27 buildTypes { 28 release { 29 isMinifyEnabled = true 30 proguardFiles( 31 getDefaultProguardFile("proguard-android-optimize.txt"), 32 "proguard-rules.pro" 33 ) 34 } 35 } 36 compileOptions { 37 sourceCompatibility = JavaVersion.VERSION_1_8 38 targetCompatibility = JavaVersion.VERSION_1_8 39 } 40 kotlinOptions { 41 jvmTarget = "1.8" 42 } 43 buildFeatures { 44 compose = true 45 } 46 composeOptions { 47 kotlinCompilerExtensionVersion = "1.5.1" 48 } 49 packaging { 50 resources { 51 excludes += "/META-INF/{AL2.0,LGPL2.1}" 52 } 53 } 54 } 55 56 dependencies { 57 58 implementation("androidx.core:core-ktx:1.12.0") 59 implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0") 60 implementation("androidx.activity:activity-compose:1.8.2") 61 implementation(platform("androidx.compose:compose-bom:2024.04.00")) 62 implementation("androidx.datastore:datastore-preferences:1.1.2") 63 implementation("androidx.navigation:navigation-compose:2.7.4") 64 implementation("androidx.compose.ui:ui") 65 implementation("androidx.compose.ui:ui-graphics") 66 implementation("androidx.compose.ui:ui-tooling-preview") 67 implementation("androidx.compose.material3:material3") 68 implementation("androidx.compose.material:material-icons-extended") 69 implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0")) 70 implementation("com.squareup.okhttp3:okhttp:4.12.0") 71 implementation("com.squareup.okhttp3:logging-interceptor:4.12.0") 72 implementation("androidx.datastore:datastore-core-android:1.1.2") 73 testImplementation("junit:junit:4.13.2") 74 androidTestImplementation("androidx.test.ext:junit:1.1.5") 75 androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") 76 androidTestImplementation(platform("androidx.compose:compose-bom:2024.04.00")) 77 androidTestImplementation("androidx.compose.ui:ui-test-junit4") 78 debugImplementation("androidx.compose.ui:ui-tooling") 79 debugImplementation("androidx.compose.ui:ui-test-manifest:1.6.5") 80 implementation("com.google.openlocationcode:openlocationcode:1.0.4") 81 }