2021-02-03 16:36:24 +08:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-08-16 00:27:51 +08:00
|
|
|
compileSdk 34
|
2023-10-22 20:04:46 +08:00
|
|
|
buildToolsVersion "34.0.0"
|
2021-02-03 16:36:24 +08:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "io.github.lsposed.disableflagsecure"
|
2023-02-14 11:19:17 +08:00
|
|
|
minSdkVersion 24
|
2023-08-16 00:27:51 +08:00
|
|
|
targetSdkVersion 34
|
2023-12-06 10:01:41 +08:00
|
|
|
versionCode 6
|
|
|
|
versionName "3.0.0"
|
2021-02-03 16:36:24 +08:00
|
|
|
}
|
|
|
|
|
2023-11-23 14:45:49 +08:00
|
|
|
Properties localProperties = new Properties()
|
|
|
|
if (project.rootProject.file('local.properties').exists()) {
|
|
|
|
localProperties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
if (localProperties.getProperty("storeFile") != null) {
|
|
|
|
config {
|
|
|
|
storeFile file(localProperties.getProperty("storeFile"))
|
|
|
|
storePassword localProperties.getProperty("storePassword")
|
|
|
|
keyAlias localProperties.getProperty("keyAlias")
|
|
|
|
keyPassword localProperties.getProperty("keyPassword")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-03 16:36:24 +08:00
|
|
|
buildTypes {
|
2023-11-23 14:45:49 +08:00
|
|
|
debug {
|
|
|
|
if (localProperties.getProperty("storeFile") != null) {
|
|
|
|
signingConfig signingConfigs.config
|
|
|
|
}
|
|
|
|
}
|
2021-02-03 16:36:24 +08:00
|
|
|
release {
|
2023-11-23 14:45:49 +08:00
|
|
|
if (localProperties.getProperty("storeFile") != null) {
|
|
|
|
signingConfig signingConfigs.config
|
|
|
|
} else {
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
}
|
2023-11-23 14:49:54 +08:00
|
|
|
minifyEnabled true
|
|
|
|
proguardFiles 'proguard-rules.pro'
|
2021-02-03 16:36:24 +08:00
|
|
|
}
|
|
|
|
}
|
2021-02-03 17:14:57 +08:00
|
|
|
|
2021-02-03 16:36:24 +08:00
|
|
|
compileOptions {
|
2023-02-14 11:19:17 +08:00
|
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
|
|
|
|
lint {
|
|
|
|
checkReleaseBuilds false
|
2021-02-03 16:36:24 +08:00
|
|
|
}
|
2021-02-03 17:14:57 +08:00
|
|
|
|
|
|
|
dependenciesInfo.includeInApk false
|
2023-08-16 00:27:51 +08:00
|
|
|
namespace 'io.github.lsposed.disableflagsecure'
|
2021-02-03 16:36:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compileOnly 'de.robv.android.xposed:api:82'
|
2023-02-14 11:19:17 +08:00
|
|
|
}
|