mirror of
https://github.com/karasevm/PrivateDNSAndroid.git
synced 2025-06-28 12:19:57 +00:00
86 lines
No EOL
2.8 KiB
Groovy
86 lines
No EOL
2.8 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
id 'com.google.devtools.ksp'
|
|
id 'org.jetbrains.kotlin.plugin.serialization'
|
|
}
|
|
|
|
android {
|
|
compileSdk 34
|
|
androidResources {
|
|
generateLocaleConfig true
|
|
}
|
|
defaultConfig {
|
|
applicationId "ru.karasevm.privatednstoggle"
|
|
versionCode 17
|
|
versionName "1.9.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
targetSdkVersion 34
|
|
minSdkVersion 28
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources 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.13.1'
|
|
implementation 'androidx.appcompat:appcompat:1.7.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.3.2'
|
|
implementation 'androidx.activity:activity-ktx:1.9.2'
|
|
implementation 'androidx.fragment:fragment-ktx:1.8.4'
|
|
implementation 'com.google.android.material:material:1.12.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation 'com.google.guava:guava:33.1.0-android'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3'
|
|
|
|
|
|
def shizuku_version = '13.1.5'
|
|
implementation "dev.rikka.shizuku:api:$shizuku_version"
|
|
implementation "dev.rikka.shizuku:provider:$shizuku_version"
|
|
|
|
implementation 'org.lsposed.hiddenapibypass:hiddenapibypass:4.3'
|
|
compileOnly 'dev.rikka.hidden:stub:4.3.2'
|
|
|
|
// Room components
|
|
def roomVersion = '2.6.1'
|
|
implementation "androidx.room:room-ktx:$roomVersion"
|
|
ksp "androidx.room:room-compiler:$roomVersion"
|
|
androidTestImplementation "androidx.room:room-testing:$roomVersion"
|
|
|
|
// Lifecycle components
|
|
def lifecycleVersion = '2.8.6'
|
|
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'
|
|
} |