mirror of
https://github.com/Dasemu/SportsSuitability.git
synced 2026-11-26 07:16:13 +00:00
86 lines
2.6 KiB
Kotlin
86 lines
2.6 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
id("org.jetbrains.kotlin.plugin.serialization")
|
|
id("com.google.devtools.ksp")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.zenvairo.sportssuitability"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
applicationId = "com.zenvairo.sportssuitability"
|
|
minSdk = 26
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
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 {
|
|
val composeBom = platform("androidx.compose:compose-bom:2026.06.01")
|
|
implementation(composeBom)
|
|
androidTestImplementation(composeBom)
|
|
|
|
implementation("androidx.core:core-ktx:1.17.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.9.4")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.9.4")
|
|
implementation("androidx.activity:activity-compose:1.10.1")
|
|
|
|
implementation("androidx.compose.ui:ui")
|
|
implementation("androidx.compose.ui:ui-graphics")
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
implementation("androidx.compose.material3:material3")
|
|
implementation("androidx.compose.material:material-icons-extended")
|
|
|
|
// Networking
|
|
implementation("com.squareup.retrofit2:retrofit:2.11.0")
|
|
implementation("com.squareup.retrofit2:converter-kotlinx-serialization:2.11.0")
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.11.0")
|
|
|
|
// Persistence (saved spots)
|
|
implementation("androidx.room:room-runtime:2.8.4")
|
|
implementation("androidx.room:room-ktx:2.8.4")
|
|
ksp("androidx.room:room-compiler:2.8.4")
|
|
|
|
// Datastore for lightweight prefs (units, etc.)
|
|
implementation("androidx.datastore:datastore-preferences:1.2.1")
|
|
|
|
// Daily suitability alerts
|
|
implementation("androidx.work:work-runtime-ktx:2.10.0")
|
|
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
|
|
// Unit tests for the suitability rules engine (plain JVM, no Android runtime needed)
|
|
testImplementation("junit:junit:4.13.2")
|
|
}
|