2025-03-20 01:14:21 -04:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
id("org.jetbrains.kotlin.android")
|
|
|
|
id("com.google.devtools.ksp")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "com.accidentalproductions.tetristats"
|
|
|
|
compileSdk = 34
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.accidentalproductions.tetristats"
|
|
|
|
minSdk = 26
|
|
|
|
targetSdk = 34
|
|
|
|
versionCode = 1
|
|
|
|
versionName = "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
2025-03-20 15:30:34 -04:00
|
|
|
// Ensure 64-bit architecture support
|
|
|
|
ndk {
|
|
|
|
abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
|
|
|
|
}
|
|
|
|
|
2025-03-20 01:14:21 -04:00
|
|
|
ksp {
|
|
|
|
arg("room.schemaLocation", "$projectDir/schemas")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-03-20 15:40:24 -04:00
|
|
|
signingConfigs {
|
|
|
|
create("release") {
|
|
|
|
// These values will be replaced during the GitHub Actions build
|
|
|
|
storeFile = file("keystore/release.keystore")
|
|
|
|
storePassword = System.getenv("KEYSTORE_PASSWORD") ?: "android"
|
|
|
|
keyAlias = System.getenv("KEY_ALIAS") ?: "release"
|
|
|
|
keyPassword = System.getenv("KEY_PASSWORD") ?: "android"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-03-20 01:14:21 -04:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
isMinifyEnabled = false
|
|
|
|
proguardFiles(
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
"proguard-rules.pro"
|
|
|
|
)
|
2025-03-20 15:40:24 -04:00
|
|
|
isDebuggable = false
|
|
|
|
signingConfig = signingConfigs.getByName("release")
|
|
|
|
}
|
|
|
|
debug {
|
2025-03-20 15:30:34 -04:00
|
|
|
isDebuggable = true
|
2025-03-20 01:14:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
buildFeatures {
|
|
|
|
viewBinding = true
|
|
|
|
}
|
2025-03-20 15:30:34 -04:00
|
|
|
|
|
|
|
// Explicitly specify supported ABIs to ensure 64-bit compatibility
|
|
|
|
splits {
|
|
|
|
abi {
|
|
|
|
isEnable = true
|
|
|
|
reset()
|
|
|
|
include("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
|
|
|
|
isUniversalApk = true
|
|
|
|
}
|
|
|
|
}
|
2025-03-20 01:14:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
|
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
|
|
implementation("com.google.android.material:material:1.11.0")
|
|
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.7.0")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0")
|
|
|
|
implementation("androidx.navigation:navigation-fragment-ktx:2.7.6")
|
|
|
|
implementation("androidx.navigation:navigation-ui-ktx:2.7.6")
|
|
|
|
|
|
|
|
// Room
|
|
|
|
implementation("androidx.room:room-runtime:2.6.1")
|
|
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
|
|
ksp("androidx.room:room-compiler:2.6.1")
|
|
|
|
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
|
|
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
|
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
|
|
|
}
|