// :app — Android application entry point. Hosts MainActivity and the // application manifest, including the launcher icon and theme. import java.io.FileInputStream import java.util.Properties plugins { alias(libs.plugins.androidApplication) alias(libs.plugins.kotlinAndroid) alias(libs.plugins.kotlinCompose) } android { namespace = "org.incido.app" compileSdk = 35 defaultConfig { applicationId = "org.incido.app" minSdk = 26 targetSdk = 35 versionCode = 3 versionName = "0.2" } // --- Signing --- // // v0.2 introduces a real release signing config so `./gradlew // assembleRelease` produces an installable APK out of the box. The // keystore file itself is gitignored — see keystore/README.md for // generation instructions and for the (deliberately weak) dev // passwords baked into this build script. **Replace with a real // production keystore before publishing.** signingConfigs { create("release") { // Resolve paths relative to the project root so the same // config works from both Android Studio and CLI. val keystoreFilePath = rootProject.file("keystore/release.jks") if (keystoreFilePath.exists()) { storeFile = keystoreFilePath storePassword = "incido_dev_keystore" keyAlias = "incido" keyPassword = "incido_dev_keystore" } // If the keystore doesn't exist, the release build will fail // with a clear "Keystore file not set for signing config // release" message — by design. } } buildTypes { debug { isMinifyEnabled = false } release { isMinifyEnabled = false // TODO(v0.3): enable R8 signingConfig = signingConfigs.getByName("release") } } buildFeatures { compose = true } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlin { jvmToolchain(17) } packaging { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } } dependencies { implementation(project(":composeApp")) implementation(libs.androidx.core.ktx) implementation(libs.kotlinx.coroutines.android) // Compose BOM keeps all Compose artefact versions aligned val composeBom = platform(libs.composeBom) implementation(composeBom) implementation(libs.androidx.activity.compose) implementation(libs.compose.ui) implementation(libs.compose.material3) }