28 lines
1011 B
Kotlin
28 lines
1011 B
Kotlin
plugins {
|
||
id("com.android.application")
|
||
id("org.jetbrains.kotlin.android")
|
||
}
|
||
android {
|
||
namespace = "top.yeij.hearth"
|
||
compileSdk = 35
|
||
defaultConfig {
|
||
applicationId = "top.yeij.hearth"
|
||
minSdk = 30
|
||
targetSdk = 30
|
||
versionCode = 1
|
||
versionName = "0.1.0"
|
||
}
|
||
buildTypes { release { isMinifyEnabled = false } }
|
||
compileOptions { sourceCompatibility = JavaVersion.VERSION_17; targetCompatibility = JavaVersion.VERSION_17 }
|
||
kotlinOptions { jvmTarget = "17" }
|
||
// 本地单元测试中 android.* 桩方法返回默认值(避免 Log.d 抛 "not mocked")
|
||
// android.* stub methods return default values in local unit tests (avoid Log.d "not mocked")
|
||
testOptions { unitTests { isReturnDefaultValues = true } }
|
||
}
|
||
dependencies {
|
||
implementation("androidx.core:core-ktx:1.13.1")
|
||
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
||
implementation("com.google.code.gson:gson:2.11.0")
|
||
testImplementation("junit:junit:4.13.2")
|
||
}
|