Last active
November 8, 2018 08:28
-
-
Save ValCanBuild/d934ce6b1d9fbad53cd1bf78b36da542 to your computer and use it in GitHub Desktop.
TravisAndroidArticle starting gradle file
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
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") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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