use only double quotes for Gradle Groovy syntax
This commit is contained in:
parent
7cd3a188e1
commit
6d76e2472c
@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'com.android.application'
|
id "com.android.application"
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
@ -24,7 +24,7 @@ android {
|
|||||||
release {
|
release {
|
||||||
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
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -35,31 +35,31 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
implementation fileTree(include: ["*.jar"], dir: "libs")
|
||||||
implementation 'androidx.appcompat:appcompat:1.3.1'
|
implementation "androidx.appcompat:appcompat:1.3.1"
|
||||||
implementation 'com.google.android.material:material:1.4.0'
|
implementation "com.google.android.material:material:1.4.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
def props = new Properties()
|
def props = new Properties()
|
||||||
def propFile = new File('signing.properties')
|
def propFile = new File("signing.properties")
|
||||||
|
|
||||||
if (propFile.canRead()) {
|
if (propFile.canRead()) {
|
||||||
props.load(new FileInputStream(propFile))
|
props.load(new FileInputStream(propFile))
|
||||||
|
|
||||||
if (props != null &&
|
if (props != null &&
|
||||||
props.containsKey('STORE_FILE') &&
|
props.containsKey("STORE_FILE") &&
|
||||||
props.containsKey('STORE_PASSWORD') &&
|
props.containsKey("STORE_PASSWORD") &&
|
||||||
props.containsKey('KEY_ALIAS') &&
|
props.containsKey("KEY_ALIAS") &&
|
||||||
props.containsKey('KEY_PASSWORD')) {
|
props.containsKey("KEY_PASSWORD")) {
|
||||||
android.signingConfigs.release.storeFile = rootProject.file(props['STORE_FILE'])
|
android.signingConfigs.release.storeFile = rootProject.file(props["STORE_FILE"])
|
||||||
android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
|
android.signingConfigs.release.storePassword = props["STORE_PASSWORD"]
|
||||||
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
|
android.signingConfigs.release.keyAlias = props["KEY_ALIAS"]
|
||||||
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
|
android.signingConfigs.release.keyPassword = props["KEY_PASSWORD"]
|
||||||
} else {
|
} else {
|
||||||
println 'signing.properties found but some entries are missing'
|
println "signing.properties found but some entries are missing"
|
||||||
android.buildTypes.release.signingConfig = null
|
android.buildTypes.release.signingConfig = null
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
println 'signing.properties not found'
|
println "signing.properties not found"
|
||||||
android.buildTypes.release.signingConfig = null
|
android.buildTypes.release.signingConfig = null
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ buildscript {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.0.2'
|
classpath "com.android.tools.build:gradle:7.0.2"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user