Fix gradle sync if there is no signing config defined

This commit is contained in:
Pierrot 2019-01-05 15:17:21 +01:00
parent a1609096c5
commit 76f728fa64

View file

@ -29,6 +29,12 @@ if(project.hasProperty("signing.properties") && new File(project.property("signi
keyPassword props['sp.keyPassword'] keyPassword props['sp.keyPassword']
} }
} }
buildTypes {
release {
signingConfig signingConfigs.release
}
}
} }
} }
@ -58,7 +64,6 @@ android {
minifyEnabled true minifyEnabled true
proguardFiles 'proguard.cfg' proguardFiles 'proguard.cfg'
signingConfig signingConfigs.release
applicationVariants.all { variant -> applicationVariants.all { variant ->
appendVersionNameVersionCode(variant, defaultConfig) appendVersionNameVersionCode(variant, defaultConfig)