import java.util.Properties import java.io.FileInputStream import java.io.FileNotFoundException plugins { id("com.android.application") id("kotlin-android") id("kotlin-kapt") id("dagger.hilt.android.plugin") } val keystoreProperties = Properties() try { val keystorePropertiesFile = rootProject.file("keystore.properties") keystoreProperties.load(FileInputStream(keystorePropertiesFile)) } catch (ignored: FileNotFoundException) { logger.warn("Unable to load keystore properties. Using debug signing configuration instead") keystoreProperties["keyAlias"] = "androiddebugkey" keystoreProperties["keyPassword"] = "android" keystoreProperties["storeFile"] = File(System.getProperty("user.home"), ".android/debug.keystore").absolutePath keystoreProperties["storePassword"] = "android" } android { compileSdk = libs.versions.maxSdk.get().toInt() defaultConfig { applicationId = "com.wbrawner.pihelper" minSdk = libs.versions.minSdk.get().toInt() targetSdk = libs.versions.maxSdk.get().toInt() versionCode = libs.versions.versionCode.get().toInt() versionName = libs.versions.versionName.get() testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" signingConfig = signingConfigs["debug"] } signingConfigs { create("release") { keyAlias = keystoreProperties["keyAlias"].toString() keyPassword = keystoreProperties["keyPassword"].toString() storeFile = file(keystoreProperties["storeFile"].toString()) storePassword = keystoreProperties["storePassword"].toString() } } buildTypes { release { isMinifyEnabled = true proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) signingConfig = signingConfigs["release"] } } compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" } buildFeatures { compose = true } composeOptions { kotlinCompilerExtensionVersion = libs.versions.compose.get() } } dependencies { implementation(project(":shared")) implementation(libs.bundles.coroutines) implementation(libs.bundles.compose) implementation(libs.hilt.android.core) implementation(libs.hilt.navigation.compose) kapt(libs.hilt.android.kapt) implementation(libs.androidx.core) implementation(libs.androidx.appcompat) implementation(libs.material) implementation("androidx.constraintlayout:constraintlayout:2.0.4") implementation("androidx.legacy:legacy-support-v4:1.0.0") implementation("androidx.security:security-crypto:1.0.0-rc01") implementation(libs.preference) testImplementation(libs.junit) androidTestImplementation(libs.test.ext) androidTestImplementation(libs.espresso) }