Skip to content

Instantly share code, notes, and snippets.

@OlegKrikun
Last active December 21, 2015 15:38
Show Gist options
  • Save OlegKrikun/191b374fcfc294850a06 to your computer and use it in GitHub Desktop.
Save OlegKrikun/191b374fcfc294850a06 to your computer and use it in GitHub Desktop.
Add SigningConfig to release type for application subproject
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