Skip to content

Instantly share code, notes, and snippets.

@ValCanBuild
Last active November 8, 2018 08:28
Show Gist options
  • Save ValCanBuild/d934ce6b1d9fbad53cd1bf78b36da542 to your computer and use it in GitHub Desktop.
Save ValCanBuild/d934ce6b1d9fbad53cd1bf78b36da542 to your computer and use it in GitHub Desktop.
TravisAndroidArticle starting gradle file
android {
// rest of file cut for readability
signingConfigs {
release
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
def isRunningOnTravis = System.getenv("CI") == "true"
if (isRunningOnTravis) {
// configure keystore
signingConfigs.release.storeFile = file("../OurStore.keystore")
signingConfigs.release.storePassword = System.getenv("keystore_password")
signingConfigs.release.keyAlias = System.getenv("keystore_alias")
signingConfigs.release.keyPassword = System.getenv("keystore_alias_password")
}
}
@d-Rickyy-b
Copy link

d-Rickyy-b commented Jul 25, 2018

Thanks for the great tutorial. Really really helpful. One minor thing:

In your signing config you are using the encrypted keystore file in line 20. Shouldn't that be OurStore.keystore instead?

Greetings Rico

EDIT: Ah you have fixed that already on https://github.com/ValCanBuild/TravisAndroidExample/blob/master/app/build.gradle#L31 but you might should fix that here as well, since that is the code embedded to the Medium post

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