PlayIntegrityFix/app/build.gradle.kts

60 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-11-20 01:42:21 +02:00
plugins {
id("com.android.application")
}
android {
namespace = "es.chiteroman.playintegrityfix"
compileSdk = 34
ndkVersion = "26.1.10909125"
buildToolsVersion = "34.0.0"
defaultConfig {
applicationId = "es.chiteroman.playintegrityfix"
minSdk = 26
targetSdk = 34
versionCode = 1
versionName = "1.0"
2023-11-21 19:25:33 +02:00
packaging {
jniLibs {
excludes += "**/libdobby.so"
}
}
buildFeatures {
prefab = true
}
2023-11-20 01:42:21 +02:00
externalNativeBuild {
2023-11-21 19:25:33 +02:00
cmake {
arguments += setOf("-DANDROID_STL=none", "-DCMAKE_BUILD_TYPE=MinSizeRel")
2023-11-22 01:32:52 +02:00
cFlags += setOf("-flto=full", "-fvisibility=hidden", "-fvisibility-inlines-hidden", "-ffunction-sections", "-fdata-sections")
cppFlags += setOf("-std=c++20", "-fno-exceptions", "-fno-rtti", "-flto=full", "-fvisibility=hidden", "-fvisibility-inlines-hidden", "-ffunction-sections", "-fdata-sections")
2023-11-20 01:42:21 +02:00
}
}
}
buildTypes {
release {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
externalNativeBuild {
2023-11-21 19:25:33 +02:00
cmake {
path = file("src/main/cpp/CMakeLists.txt")
version = "3.22.1"
2023-11-20 01:42:21 +02:00
}
}
2023-11-21 19:25:33 +02:00
}
dependencies {
implementation("dev.rikka.ndk.thirdparty:cxx:1.2.0")
2023-11-20 01:42:21 +02:00
}