import org.jetbrains.kotlin.gradle.dsl.JvmTarget plugins { id("com.android.application") kotlin("android") id("org.jetbrains.kotlin.plugin.compose") kotlin("plugin.serialization") } android { namespace = "com.tutudog.itematlas" compileSdk = 35 defaultConfig { applicationId = "com.tutudog.itematlas" minSdk = 26 targetSdk = 35 versionCode = 3 versionName = "0.1.2" val apiOrigin = providers.gradleProperty("ATLAS_API_ORIGIN").orElse("https://api-atlas.tutudog.com").get() require(Regex("https://[A-Za-z0-9.-]+(:[0-9]+)?").matches(apiOrigin)) { "ATLAS_API_ORIGIN must be an HTTPS origin" } buildConfigField("String", "ATLAS_API_ORIGIN", "\"$apiOrigin\"") } buildFeatures { compose = true buildConfig = true } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } } kotlin { compilerOptions.jvmTarget.set(JvmTarget.JVM_17) } dependencies { implementation(platform("androidx.compose:compose-bom:2025.05.01")) implementation("androidx.activity:activity-compose:1.10.1") implementation("androidx.compose.foundation:foundation") implementation("androidx.compose.material3:material3") implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7") implementation("com.squareup.okhttp3:okhttp:4.12.0") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.1") }