Skip to content

Commit

Permalink
fixing build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Sep 3, 2017
1 parent 76f2aff commit 7365137
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,17 @@ subprojects {
exclude 'META-INF/ASL2.0'
}

if (android.hasProperty('buildTypes') && project.plugins.hasPlugin('com.android.application')) {
android.buildTypes.each { buildType ->
def file = rootProject.file('private/signing.properties')
if (file.exists()) {
def file = rootProject.file('private/signing.properties')
if (project.plugins.hasPlugin('com.android.application') && file.exists()) {
if (android.hasProperty('buildTypes')) {
android.buildTypes.each { buildType ->
def cfg = signingConfigs.maybeCreate(buildType.name)
loadSigningConfig(cfg, file)
buildType.signingConfig = cfg
}
}
if (android.hasProperty('applicationVariants')) {
android.applicationVariants.each { buildType ->
def cfg = signingConfigs.maybeCreate(buildType.name)
loadSigningConfig(cfg, file)
buildType.signingConfig = cfg
Expand Down

0 comments on commit 7365137

Please sign in to comment.