Fix build with empty signing environment variables
GitHub action secrets default to empty values if they aren't defined in a repository. Any fork of the repo doesn't have access to the secrets and the jobs therefore fail.
This commit is contained in:
parent
15e84c81ea
commit
82d28ed08a
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ android {
|
||||||
|
|
||||||
sourceSets.main.assets.srcDirs += new File(project.buildDir, 'assets')
|
sourceSets.main.assets.srcDirs += new File(project.buildDir, 'assets')
|
||||||
|
|
||||||
if(project.hasProperty("RELEASE_STORE_FILE")) {
|
if(project.hasProperty("RELEASE_STORE_FILE") && RELEASE_STORE_FILE.length() > 0) {
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
// this uses a file ~/.gradle/gradle.properties
|
// this uses a file ~/.gradle/gradle.properties
|
||||||
// with content:
|
// with content:
|
||||||
|
@ -49,7 +49,7 @@ android {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
debuggable false
|
debuggable false
|
||||||
if(project.hasProperty("RELEASE_STORE_FILE")) {
|
if(project.hasProperty("RELEASE_STORE_FILE") && RELEASE_STORE_FILE.length() > 0) {
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
|
|
Loading…
Reference in a new issue