Last active
August 29, 2015 13:57
-
-
Save lesleh/9454937 to your computer and use it in GitHub Desktop.
APK signing configuration for Android Gradle projects
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
// APK signing | |
def signingPropFile = new File(project.rootDir, "signing.properties") | |
if(signingPropFile.exists()) { | |
Properties props = new Properties() | |
props.load(new FileInputStream(signingPropFile)) | |
android { | |
signingConfigs { | |
release { | |
storeFile file(props['signing.keystore']) | |
storePassword props['signing.keystore_password'] | |
keyAlias props['signing.alias'] | |
keyPassword props['signing.alias_password'] | |
} | |
} | |
buildTypes { | |
release { | |
signingConfig signingConfigs.release | |
} | |
} | |
} | |
} |
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
signing.keystore=example.keystore | |
signing.keystore_password=my_password | |
signing.alias=release | |
signing.alias_password=my_password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment