plugins { id "com.android.application" id "org.jetbrains.kotlin.android" } def grammarApiBaseUrl = project.findProperty("grammarApiBaseUrl") ?: "http://aimanyi.top" def ttsEndpointUrl = project.findProperty("ttsEndpointUrl") ?: "http://141.140.15.30:8028/generate" android { namespace "com.codex.webviewgrammar" compileSdk 34 defaultConfig { applicationId "com.codex.webviewgrammar" minSdk 24 targetSdk 34 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" buildConfigField "String", "GRAMMAR_API_BASE_URL", "\"${grammarApiBaseUrl}\"" buildConfigField "String", "TTS_ENDPOINT", "\"${ttsEndpointUrl}\"" } buildTypes { release { minifyEnabled = false proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") } debug { minifyEnabled = false } } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = "17" } buildFeatures { viewBinding = true buildConfig = true } } dependencies { implementation "androidx.core:core-ktx:1.13.1" implementation "androidx.appcompat:appcompat:1.7.0" implementation "com.google.android.material:material:1.12.0" implementation "androidx.constraintlayout:constraintlayout:2.1.4" implementation "androidx.activity:activity-ktx:1.9.2" implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.8.5" implementation "com.squareup.okhttp3:okhttp:4.12.0" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1" testImplementation "junit:junit:4.13.2" androidTestImplementation "androidx.test.ext:junit:1.2.1" androidTestImplementation "androidx.test.espresso:espresso-core:3.6.1" }