diff --git a/build.gradle b/build.gradle index d69f035dd..cbc5ccf5b 100644 --- a/build.gradle +++ b/build.gradle @@ -53,12 +53,13 @@ subprojects { exclude 'META-INF/ASL2.0' } -// if (android.hasProperty('buildTypes') && project.plugins.hasPlugin('com.android.application')) { -// android.buildTypes.each { buildType -> -// setSigningConfig(signingConfigs.maybeCreate(buildType.name)) -// loadSigningConfig(signingConfig, rootProject.file('signing.properties')) -// } -// } + if (android.hasProperty('buildTypes') && project.plugins.hasPlugin('com.android.application')) { + android.buildTypes.each { buildType -> + def cfg = signingConfigs.maybeCreate(buildType.name) + loadSigningConfig(cfg, rootProject.file('signing.properties')) + buildType.signingConfig = cfg + } + } } }