Skip to content

Instantly share code, notes, and snippets.

@charlenopires
Created November 12, 2017 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlenopires/5b86c1e935e14a223d9de493f675e49d to your computer and use it in GitHub Desktop.
Save charlenopires/5b86c1e935e14a223d9de493f675e49d to your computer and use it in GitHub Desktop.
Configuring KeyTool for Android
To local.properties in Gradle Directory
=============================
storeFile=debug.keystore
storePassword=android
keyAlias=AndroidDebugKey
keyPassword=android
Commands
============================
cd ~/.android && keytool -genkey -v -keystore debug.keystore -storepass android -alias AndroidDebugKey -keypass android -keyalg RSA -keysize 2048 -validity 10000
@charlenopires
Copy link
Author

On build.gradle

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withInputStream { stream ->
localProperties.load(stream)
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment