2024-02-17 00:50:44 +00:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "com.thebrokenrail.mtudining"
|
|
|
|
compileSdk = 34
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.thebrokenrail.mtudining"
|
|
|
|
minSdk = 21
|
|
|
|
targetSdk = 34
|
|
|
|
versionCode = 1
|
|
|
|
versionName = "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2024-02-18 07:58:37 +00:00
|
|
|
isMinifyEnabled = true
|
|
|
|
isShrinkResources = true
|
2024-02-17 00:50:44 +00:00
|
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2024-02-17 03:04:50 +00:00
|
|
|
// Desugaring (Java 8+ APIs)
|
|
|
|
isCoreLibraryDesugaringEnabled = true
|
2024-02-17 00:50:44 +00:00
|
|
|
}
|
2024-02-18 07:58:37 +00:00
|
|
|
|
|
|
|
// Release Builds
|
|
|
|
val keystoreFile = File(rootDir, "keystore.jks")
|
|
|
|
if (keystoreFile.exists()) {
|
|
|
|
signingConfigs {
|
|
|
|
create("release") {
|
|
|
|
keyAlias = "key0"
|
|
|
|
keyPassword = "password"
|
|
|
|
storeFile = keystoreFile
|
|
|
|
storePassword = "password"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
signingConfig = signingConfigs["release"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-02-17 00:50:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
|
|
implementation("com.google.android.material:material:1.11.0")
|
2024-02-17 03:04:50 +00:00
|
|
|
// OkHttp (For HTTP)
|
|
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
|
|
// Moshi (For JSON)
|
|
|
|
implementation("com.squareup.moshi:moshi:1.15.0")
|
|
|
|
// Desugaring
|
|
|
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
|
2024-02-17 00:50:44 +00:00
|
|
|
}
|