Skip to content

Instantly share code, notes, and snippets.

@charlenopires
Created November 12, 2017 23:00
Show Gist options
  • Select an option

  • Save charlenopires/5b86c1e935e14a223d9de493f675e49d to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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