|
| 1 | +plugins { |
| 2 | + alias(libs.plugins.android.application) |
| 3 | + alias(libs.plugins.kotlin.compose) |
| 4 | + alias(libs.plugins.google.devtools.ksp) |
| 5 | + alias(libs.plugins.roborazzi) |
| 6 | + alias(libs.plugins.secrets) |
| 7 | + alias(libs.plugins.kotlinx.serialization) |
| 8 | + |
| 9 | +} |
| 10 | + |
| 11 | +android { |
| 12 | + namespace = "com.example" |
| 13 | + compileSdk { version = release(36) { minorApiLevel = 1 } } |
| 14 | + |
| 15 | + defaultConfig { |
| 16 | + applicationId = "com.nukrop.app" |
| 17 | + minSdk = 24 |
| 18 | + targetSdk = 34 |
| 19 | + versionCode = 1 |
| 20 | + versionName = "1.0" |
| 21 | + |
| 22 | + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
| 23 | + } |
| 24 | + |
| 25 | + signingConfigs { |
| 26 | + create("release") { |
| 27 | + val keystorePath = System.getenv("KEYSTORE_PATH") ?: "${rootDir}/debug.keystore" |
| 28 | + storeFile = file(keystorePath) |
| 29 | + storePassword = System.getenv("STORE_PASSWORD") ?: "android" |
| 30 | + keyAlias = System.getenv("KEY_ALIAS") ?: "androiddebugkey" |
| 31 | + keyPassword = System.getenv("KEY_PASSWORD") ?: "android" |
| 32 | + } |
| 33 | + create("debugConfig") { |
| 34 | + storeFile = file("${rootDir}/debug.keystore") |
| 35 | + storePassword = "android" |
| 36 | + keyAlias = "androiddebugkey" |
| 37 | + keyPassword = "android" |
| 38 | + } |
| 39 | + } |
| 40 | + |
| 41 | + buildTypes { |
| 42 | + release { |
| 43 | + isCrunchPngs = false |
| 44 | + isMinifyEnabled = false |
| 45 | + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") |
| 46 | + signingConfig = signingConfigs.getByName("release") |
| 47 | + } |
| 48 | + debug { |
| 49 | + } |
| 50 | + } |
| 51 | + compileOptions { |
| 52 | + sourceCompatibility = JavaVersion.VERSION_11 |
| 53 | + targetCompatibility = JavaVersion.VERSION_11 |
| 54 | + } |
| 55 | + buildFeatures { |
| 56 | + compose = true |
| 57 | + buildConfig = true |
| 58 | + } |
| 59 | + testOptions { unitTests { isIncludeAndroidResources = true } } |
| 60 | +} |
| 61 | + |
| 62 | +// Configure the Secrets Gradle Plugin to use .env and .env.example files |
| 63 | +// to match the convention used in Web projects. |
| 64 | +secrets { |
| 65 | + propertiesFileName = ".env" |
| 66 | + defaultPropertiesFileName = ".env.example" |
| 67 | +} |
| 68 | + |
| 69 | +// Some unused dependencies are commented out below instead of being removed. |
| 70 | +// This makes it easy to add them back in the future if needed. |
| 71 | +dependencies { |
| 72 | + implementation(platform(libs.androidx.compose.bom)) |
| 73 | + // implementation(libs.accompanist.permissions) |
| 74 | + implementation(libs.androidx.activity.compose) |
| 75 | + // implementation(libs.androidx.camera.camera2) |
| 76 | + // implementation(libs.androidx.camera.core) |
| 77 | + // implementation(libs.androidx.camera.lifecycle) |
| 78 | + // implementation(libs.androidx.camera.view) |
| 79 | + implementation(libs.androidx.compose.material.icons.core) |
| 80 | + implementation(libs.androidx.compose.material.icons.extended) |
| 81 | + implementation(libs.androidx.compose.material3) |
| 82 | + implementation(libs.androidx.compose.ui) |
| 83 | + implementation(libs.androidx.compose.ui.graphics) |
| 84 | + implementation(libs.androidx.compose.ui.tooling.preview) |
| 85 | + implementation(libs.androidx.core.ktx) |
| 86 | + // implementation(libs.androidx.datastore.preferences) |
| 87 | + implementation(libs.androidx.lifecycle.runtime.compose) |
| 88 | + implementation(libs.androidx.lifecycle.runtime.ktx) |
| 89 | + implementation(libs.androidx.lifecycle.viewmodel.compose) |
| 90 | + // implementation(libs.androidx.navigation.compose) |
| 91 | + implementation(libs.androidx.room.ktx) |
| 92 | + implementation(libs.androidx.room.runtime) |
| 93 | + implementation(libs.compose.markdown) |
| 94 | + implementation(libs.coil.compose) |
| 95 | + // implementation(libs.converter.moshi) |
| 96 | + implementation(libs.supabase.auth) |
| 97 | + implementation(libs.ktor.client.android) |
| 98 | + implementation("androidx.credentials:credentials:1.3.0") |
| 99 | + implementation("androidx.credentials:credentials-play-services-auth:1.3.0") |
| 100 | + implementation("com.google.android.libraries.identity.googleid:googleid:1.1.1") |
| 101 | + implementation(libs.kotlinx.coroutines.android) |
| 102 | + implementation(libs.kotlinx.coroutines.core) |
| 103 | + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.7.3") |
| 104 | + implementation(libs.logging.interceptor) |
| 105 | + // implementation(libs.moshi.kotlin) |
| 106 | + implementation(libs.okhttp) |
| 107 | + // implementation(libs.play.services.location) |
| 108 | + implementation(libs.retrofit) |
| 109 | + implementation(libs.retrofit.converter.kotlinx.serialization) |
| 110 | + implementation(libs.kotlinx.serialization.json) |
| 111 | + implementation(libs.play.services.location) |
| 112 | + implementation("androidx.work:work-runtime-ktx:2.9.0") |
| 113 | + implementation(libs.androidx.lifecycle.runtime.compose) |
| 114 | + |
| 115 | + testImplementation(libs.androidx.compose.ui.test.junit4) |
| 116 | + testImplementation(libs.androidx.core) |
| 117 | + |
| 118 | + testImplementation(libs.androidx.junit) |
| 119 | + testImplementation(libs.junit) |
| 120 | + testImplementation(libs.kotlinx.coroutines.test) |
| 121 | + testImplementation(libs.robolectric) |
| 122 | + testImplementation(libs.roborazzi) |
| 123 | + testImplementation(libs.roborazzi.compose) |
| 124 | + testImplementation(libs.roborazzi.junit.rule) |
| 125 | + androidTestImplementation(platform(libs.androidx.compose.bom)) |
| 126 | + androidTestImplementation(libs.androidx.compose.ui.test.junit4) |
| 127 | + androidTestImplementation(libs.androidx.espresso.core) |
| 128 | + androidTestImplementation(libs.androidx.junit) |
| 129 | + androidTestImplementation(libs.androidx.runner) |
| 130 | + debugImplementation(libs.androidx.compose.ui.test.manifest) |
| 131 | + debugImplementation(libs.androidx.compose.ui.tooling) |
| 132 | + implementation(libs.tensorflow.lite) |
| 133 | + implementation(libs.androidx.camera.camera2) |
| 134 | + implementation(libs.androidx.camera.core) |
| 135 | + implementation(libs.androidx.camera.lifecycle) |
| 136 | + implementation(libs.androidx.camera.view) |
| 137 | + "ksp"(libs.androidx.room.compiler) |
| 138 | + "ksp"(libs.moshi.kotlin.codegen) |
| 139 | +} |
0 commit comments