83 lines
2.9 KiB
Kotlin
83 lines
2.9 KiB
Kotlin
import java.util.Properties
|
|
|
|
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
id("org.jetbrains.kotlin.plugin.serialization")
|
|
id("com.google.gms.google-services")
|
|
}
|
|
|
|
val signingProperties = Properties().apply {
|
|
val file = rootProject.file("key.properties")
|
|
if (file.exists()) {
|
|
file.inputStream().use(::load)
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "xyz.kusoft.qmax"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
applicationId = "xyz.kusoft.qmax"
|
|
minSdk = 26
|
|
targetSdk = 36
|
|
versionCode = 49
|
|
versionName = "0.1.48"
|
|
|
|
buildConfigField("String", "QMAX_DEFAULT_SERVER_URL", "\"https://qmax.kusoft.xyz\"")
|
|
buildConfigField("String", "QMAX_DEFAULT_PAIRING_CODE", "\"qmax-MxRq4h2HQBEIFs6k\"")
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
val storeFilePath = signingProperties.getProperty("storeFile")
|
|
if (!storeFilePath.isNullOrBlank()) {
|
|
storeFile = rootProject.file(storeFilePath)
|
|
storePassword = signingProperties.getProperty("storePassword")
|
|
keyAlias = signingProperties.getProperty("keyAlias")
|
|
keyPassword = signingProperties.getProperty("keyPassword")
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
signingConfig = if (signingProperties.getProperty("storeFile").isNullOrBlank()) {
|
|
signingConfigs.getByName("debug")
|
|
} else {
|
|
signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.core:core-ktx:1.18.0")
|
|
implementation("androidx.activity:activity-compose:1.11.0")
|
|
implementation("androidx.compose.ui:ui:1.10.5")
|
|
implementation("androidx.compose.ui:ui-tooling-preview:1.10.5")
|
|
implementation("androidx.compose.material3:material3:1.4.0")
|
|
implementation("androidx.compose.material:material-icons-extended:1.7.8")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.9.4")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.9.4")
|
|
implementation("androidx.navigation:navigation-compose:2.9.1")
|
|
implementation("androidx.media3:media3-exoplayer:1.8.0")
|
|
implementation("androidx.media3:media3-ui:1.8.0")
|
|
implementation("androidx.datastore:datastore-preferences:1.1.7")
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
|
|
implementation("com.google.code.gson:gson:2.11.0")
|
|
implementation("io.coil-kt:coil-compose:2.7.0")
|
|
implementation("com.microsoft.signalr:signalr:8.0.17")
|
|
implementation("com.google.firebase:firebase-messaging:25.0.1")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.9.0")
|
|
debugImplementation("androidx.compose.ui:ui-tooling:1.10.5")
|
|
}
|