2026-08-29 12:04:19 -05:00
|
|
|
import java.util.Properties
|
|
|
|
|
|
2026-05-04 20:30:54 -05:00
|
|
|
plugins {
|
|
|
|
|
id("com.android.application")
|
|
|
|
|
id("org.jetbrains.kotlin.android")
|
|
|
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-29 12:04:19 -05:00
|
|
|
val keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
|
val keystoreProperties = Properties()
|
|
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
|
keystorePropertiesFile.inputStream().use { keystoreProperties.load(it) }
|
|
|
|
|
}
|
|
|
|
|
val hasReleaseSigning = listOf(
|
|
|
|
|
"storeFile",
|
|
|
|
|
"storePassword",
|
|
|
|
|
"keyAlias",
|
|
|
|
|
"keyPassword",
|
|
|
|
|
).all { !keystoreProperties.getProperty(it).isNullOrBlank() }
|
|
|
|
|
|
2026-05-04 20:30:54 -05:00
|
|
|
android {
|
2026-05-04 20:34:59 -05:00
|
|
|
namespace = "solutions.tretter.esunandroid"
|
2026-05-04 20:30:54 -05:00
|
|
|
compileSdk = 35
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
2026-05-04 20:34:59 -05:00
|
|
|
applicationId = "solutions.tretter.esunandroid"
|
2026-05-04 20:30:54 -05:00
|
|
|
minSdk = 26
|
|
|
|
|
targetSdk = 35
|
2026-05-04 20:49:24 -05:00
|
|
|
versionCode = 19
|
|
|
|
|
versionName = "19"
|
2026-05-04 20:30:54 -05:00
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-29 12:04:19 -05:00
|
|
|
signingConfigs {
|
|
|
|
|
if (hasReleaseSigning) {
|
|
|
|
|
create("release") {
|
|
|
|
|
storeFile = file(keystoreProperties.getProperty("storeFile"))
|
|
|
|
|
storePassword = keystoreProperties.getProperty("storePassword")
|
|
|
|
|
keyAlias = keystoreProperties.getProperty("keyAlias")
|
|
|
|
|
keyPassword = keystoreProperties.getProperty("keyPassword")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-04 20:30:54 -05:00
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
isMinifyEnabled = false
|
|
|
|
|
proguardFiles(
|
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
|
"proguard-rules.pro"
|
|
|
|
|
)
|
2026-08-29 12:04:19 -05:00
|
|
|
if (hasReleaseSigning) {
|
|
|
|
|
signingConfig = signingConfigs.getByName("release")
|
|
|
|
|
}
|
2026-05-04 20:30:54 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
}
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
jvmTarget = "17"
|
|
|
|
|
}
|
|
|
|
|
buildFeatures {
|
|
|
|
|
compose = true
|
|
|
|
|
}
|
|
|
|
|
packaging {
|
|
|
|
|
resources {
|
|
|
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation("androidx.core:core-ktx:1.15.0")
|
|
|
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
|
|
|
|
implementation("androidx.activity:activity-compose:1.9.3")
|
|
|
|
|
implementation(platform("androidx.compose:compose-bom:2024.11.00"))
|
|
|
|
|
implementation("androidx.compose.ui:ui")
|
|
|
|
|
implementation("androidx.compose.ui:ui-graphics")
|
|
|
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
|
|
|
implementation("androidx.compose.material3:material3")
|
|
|
|
|
// Needed for Theme.Material3.* resources referenced from themes.xml
|
|
|
|
|
implementation("com.google.android.material:material:1.12.0")
|
|
|
|
|
implementation("androidx.datastore:datastore-preferences:1.1.1")
|
|
|
|
|
|
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
|
|
|
testImplementation("androidx.compose.ui:ui-test-junit4")
|
|
|
|
|
|
|
|
|
|
androidTestImplementation("androidx.test.ext:junit:1.2.1")
|
|
|
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
|
|
|
|
|
androidTestImplementation(platform("androidx.compose:compose-bom:2024.11.00"))
|
|
|
|
|
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
|
|
|
|
|
|
|
|
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
|
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
|
|
|
|
}
|