mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2024-11-19 20:16:59 +00:00
b0416cd3aa
R8 minification is essential for this, because otherwise the Kotlin standard library is too big and results in the app compiling to multiple dex files. It's not impossible to load multiple dex buffers, but let's keep it simple here.
38 lines
839 B
Groovy
38 lines
839 B
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
}
|
|
|
|
android {
|
|
compileSdk 31
|
|
|
|
defaultConfig {
|
|
applicationId "dev.kdrag0n.safetynetriru"
|
|
minSdk 24
|
|
targetSdk 31
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.21'
|
|
}
|