Last active
December 21, 2015 15:38
-
-
Save OlegKrikun/191b374fcfc294850a06 to your computer and use it in GitHub Desktop.
Add SigningConfig to release type for application subproject
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subprojects { subproject -> | |
afterEvaluate { | |
if (subproject.plugins.hasPlugin('com.android.application')){ | |
android { | |
signingConfigs { | |
release { | |
storeFile file("key.jks") | |
storePassword "keykey" | |
keyAlias "key" | |
keyPassword "keykey" | |
} | |
} | |
buildTypes.release { | |
signingConfig signingConfigs.release | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment