DisableFlagSecure/app/build.gradle

66 lines
1.8 KiB
Groovy
Raw Normal View History

2021-02-03 16:36:24 +08:00
plugins {
id 'com.android.application'
}
android {
2023-08-16 00:27:51 +08:00
compileSdk 34
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
2024-01-16 13:23:07 +08:00
versionCode 8
versionName "3.1.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 {
2023-12-15 10:47:00 +08:00
storeFile project.rootProject.file(localProperties.getProperty("storeFile"))
2023-11-23 14:45:49 +08:00
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
}