2025-01-17 15:38:40 +03:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
id("kotlin-android")
|
|
|
|
id("com.google.devtools.ksp")
|
|
|
|
id("org.jetbrains.kotlin.plugin.serialization")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdk = 35
|
|
|
|
androidResources {
|
|
|
|
generateLocaleConfig = true
|
|
|
|
}
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "ru.karasevm.privatednstoggle"
|
|
|
|
versionCode = 18
|
|
|
|
versionName = "1.10.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
targetSdk = 35
|
|
|
|
minSdk = 28
|
|
|
|
}
|
|
|
|
buildFeatures {
|
|
|
|
viewBinding = true
|
|
|
|
buildConfig = true
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
isMinifyEnabled = true
|
|
|
|
isShrinkResources = true
|
|
|
|
proguardFiles(
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
"proguard-rules.pro"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
debug {
|
|
|
|
applicationIdSuffix = ".dev"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "17"
|
|
|
|
}
|
|
|
|
dependenciesInfo {
|
|
|
|
// Disables dependency metadata when building APKs.
|
|
|
|
includeInApk = false
|
|
|
|
// Disables dependency metadata when building Android App Bundles.
|
|
|
|
includeInBundle = false
|
|
|
|
}
|
|
|
|
namespace = "ru.karasevm.privatednstoggle"
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation("androidx.core:core-ktx:1.15.0")
|
|
|
|
implementation("androidx.appcompat:appcompat:1.7.0")
|
|
|
|
implementation("androidx.recyclerview:recyclerview:1.4.0")
|
|
|
|
implementation("androidx.activity:activity-ktx:1.10.0")
|
2025-02-25 11:27:46 +03:00
|
|
|
implementation("androidx.fragment:fragment-ktx:1.8.6")
|
2025-01-17 15:38:40 +03:00
|
|
|
implementation("com.google.android.material:material:1.12.0")
|
|
|
|
implementation("androidx.constraintlayout:constraintlayout:2.2.0")
|
|
|
|
implementation("com.google.guava:guava:33.1.0-android")
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
|
|
|
|
|
|
|
|
val shizukuVersion = "13.1.5"
|
|
|
|
implementation("dev.rikka.shizuku:api:$shizukuVersion")
|
|
|
|
implementation("dev.rikka.shizuku:provider:$shizukuVersion")
|
|
|
|
compileOnly("dev.rikka.hidden:stub:4.3.3")
|
|
|
|
|
|
|
|
implementation("org.lsposed.hiddenapibypass:hiddenapibypass:4.3")
|
|
|
|
|
|
|
|
// Room components
|
|
|
|
val roomVersion = "2.6.1"
|
|
|
|
implementation("androidx.room:room-ktx:$roomVersion")
|
|
|
|
ksp("androidx.room:room-compiler:$roomVersion")
|
|
|
|
androidTestImplementation("androidx.room:room-testing:$roomVersion")
|
|
|
|
|
|
|
|
// Lifecycle components
|
|
|
|
val lifecycleVersion = "2.8.7"
|
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion")
|
|
|
|
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
|
|
androidTestImplementation("androidx.test.ext:junit:1.2.1")
|
|
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
|
|
|
|
}
|