DisableFlagSecure/app/build.gradle

68 lines
1.9 KiB
Groovy
Raw Normal View History

2021-02-03 16:36:24 +08:00
plugins {
id 'com.android.application'
}
android {
2024-07-29 11:18:42 +08:00
compileSdk 35
buildToolsVersion "35.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
2024-07-29 11:18:42 +08:00
targetSdkVersion 35
2024-05-28 19:22:54 +08:00
versionCode rootProject.ext.commitCount
2024-07-29 10:48:43 +08:00
versionName "4.0.2"
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 {
2024-03-11 21:08:15 +08:00
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
2023-02-14 11:19:17 +08:00
}
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 'androidx.annotation:annotation:1.8.2'
2024-03-11 21:08:15 +08:00
compileOnly 'io.github.libxposed:api:100'
2024-07-29 11:03:43 +08:00
compileOnly project(":libxposed-compat")
2023-02-14 11:19:17 +08:00
}