.
This commit is contained in:
parent
b1db249959
commit
f4c409edcb
2 changed files with 12 additions and 8 deletions
2
.github/workflows/android.yml
vendored
2
.github/workflows/android.yml
vendored
|
|
@ -19,6 +19,8 @@ jobs:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
|
- name: Create Properties File
|
||||||
|
run: touch local.properties
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
|
|
|
||||||
|
|
@ -15,15 +15,17 @@ android {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
def propertiesFile = rootProject.file("local.properties")
|
def propertiesFile = rootProject.file("local.properties")
|
||||||
properties.load(new FileInputStream(propertiesFile))
|
if(propertiesFile.text != ""){
|
||||||
|
properties.load(new FileInputStream(propertiesFile))
|
||||||
|
|
||||||
properties.load(new FileInputStream(propertiesFile))
|
properties.load(new FileInputStream(propertiesFile))
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
debug {
|
debug {
|
||||||
storeFile file(properties["signingConfig.storeFile"])
|
storeFile file(properties["signingConfig.storeFile"])
|
||||||
storePassword properties["signingConfig.storePassword"]
|
storePassword properties["signingConfig.storePassword"]
|
||||||
keyAlias properties["signingConfig.keyAlias"]
|
keyAlias properties["signingConfig.keyAlias"]
|
||||||
keyPassword properties["signingConfig.keyPassword"]
|
keyPassword properties["signingConfig.keyPassword"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}catch(IOException ignored){}
|
}catch(IOException ignored){}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue