Fix build of app
This commit is contained in:
parent
7ab117575a
commit
cb30c69c9f
|
|
@ -1,44 +1,25 @@
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 30
|
compileSdkVersion androidCompileSdkVersion.toInteger()
|
||||||
buildToolsVersion "30.0.3"
|
|
||||||
ndkVersion androidCompileNdkVersion
|
ndkVersion androidCompileNdkVersion
|
||||||
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
viewBinding = true
|
viewBinding = true
|
||||||
}
|
}
|
||||||
|
|
||||||
signingConfigs {
|
|
||||||
def keystorePwd = null
|
|
||||||
def alias = null
|
|
||||||
def pwd = null
|
|
||||||
if (project.rootProject.file('local.properties').exists()) {
|
|
||||||
Properties properties = new Properties()
|
|
||||||
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
||||||
keystorePwd = properties.getProperty("RELEASE_STORE_PASSWORD")
|
|
||||||
alias = properties.getProperty("RELEASE_KEY_ALIAS")
|
|
||||||
pwd = properties.getProperty("RELEASE_KEY_PASSWORD")
|
|
||||||
}
|
|
||||||
release {
|
|
||||||
storeFile file("edxpmanager.jks")
|
|
||||||
storePassword keystorePwd != null ? keystorePwd : System.getenv("KEYSTORE_PASS")
|
|
||||||
keyAlias alias != null ? alias : System.getenv("ALIAS_NAME")
|
|
||||||
keyPassword pwd != null ? pwd : System.getenv("ALIAS_PASS")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "org.meowcat.edxposed.manager"
|
applicationId "org.meowcat.edxposed.manager"
|
||||||
minSdkVersion 26
|
minSdkVersion androidMinSdkVersion.toInteger()
|
||||||
targetSdkVersion 30
|
targetSdkVersion androidTargetSdkVersion.toInteger()
|
||||||
versionCode 458010
|
versionCode 458010
|
||||||
versionName "4.5.8.1"
|
versionName "4.5.8.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = 1.8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = 1.8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
|
|
@ -62,12 +43,10 @@ android {
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
shrinkResources true
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
signingConfig signingConfigs.release
|
|
||||||
}
|
}
|
||||||
debug {
|
debug {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
shrinkResources false
|
shrinkResources false
|
||||||
signingConfig signingConfigs.release
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
applicationVariants.all { variant ->
|
applicationVariants.all { variant ->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue