plugins { id("com.android.application") id("org.jetbrains.kotlin.android") } if (file("google-services.json").exists()) { apply(plugin = "com.google.gms.google-services") } android { namespace = "com.nexamfa.app" compileSdk = 35 defaultConfig { applicationId = "com.nexamfa.app" minSdk = 26 targetSdk = 35 versionCode = 1 versionName = "0.1.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } signingConfigs { create("release") { val keystorePath = System.getenv("ANDROID_KEYSTORE_PATH") if (keystorePath != null) { storeFile = file(keystorePath) storePassword = System.getenv("ANDROID_KEYSTORE_PASSWORD") keyAlias = System.getenv("ANDROID_KEY_ALIAS") keyPassword = System.getenv("ANDROID_KEY_PASSWORD") } } } buildTypes { getByName("release") { isMinifyEnabled = true proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") if (System.getenv("ANDROID_KEYSTORE_PATH") != null) { signingConfig = signingConfigs.getByName("release") } } } buildFeatures { compose = true } composeOptions { kotlinCompilerExtensionVersion = "1.5.14" } } dependencies { implementation(platform("androidx.compose:compose-bom:2024.06.00")) implementation("androidx.activity:activity-compose:1.9.0") implementation("androidx.biometric:biometric:1.1.0") implementation("androidx.compose.material3:material3") implementation("androidx.compose.ui:ui") implementation("androidx.compose.ui:ui-tooling-preview") implementation("androidx.core:core-ktx:1.13.1") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.3") implementation("androidx.security:security-crypto:1.1.0-alpha06") implementation("com.google.firebase:firebase-messaging-ktx:24.0.0") implementation("com.google.mlkit:barcode-scanning:17.2.0") implementation("com.journeyapps:zxing-android-embedded:4.3.0") implementation("com.squareup.okhttp3:okhttp:4.12.0") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1") implementation("org.json:json:20240303") testImplementation("junit:junit:4.13.2") }