mirror of
https://github.com/wgtunnel/android.git
synced 2026-06-02 00:29:08 +02:00
52 lines
1.4 KiB
Kotlin
52 lines
1.4 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.androidLibrary)
|
|
alias(libs.plugins.kotlin.android)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.zaneschepke.networkmonitor"
|
|
compileSdk = Constants.TARGET_SDK
|
|
|
|
defaultConfig {
|
|
minSdk = Constants.MIN_SDK
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro",
|
|
)
|
|
}
|
|
create(Constants.PRERELEASE) { initWith(getByName(Constants.RELEASE)) }
|
|
|
|
create(Constants.NIGHTLY) { initWith(getByName(Constants.RELEASE)) }
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions { jvmTarget = Constants.JVM_TARGET }
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.material)
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
|
|
implementation(libs.tunnel)
|
|
|
|
// shizuku
|
|
implementation(libs.shizuku.api)
|
|
implementation(libs.shizuku.provider)
|
|
|
|
implementation(libs.timber)
|
|
}
|