Skip to content

Instantly share code, notes, and snippets.

@ariefbayu
Last active April 4, 2018 06:08
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 ariefbayu/851e72528201f0f303e10cd3dcaad775 to your computer and use it in GitHub Desktop.
Save ariefbayu/851e72528201f0f303e10cd3dcaad775 to your computer and use it in GitHub Desktop.
if(project.hasProperty("serverbuild.properties")
&& new File(project.property("serverbuild.properties")).exists()) {
Properties props = new Properties()
props.load(new FileInputStream(file(project.property("serverbuild.properties"))))
android {
signingConfigs {
release {
storeFile file(props['keystore'])
storePassword props['keystore.password']
keyAlias "server"
keyPassword props['keystore.password']
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
if(project.hasProperty("build.parselday")
&& new File(project.property("build.parselday")).exists()) {
Properties p2 = new Properties()
p2.load(new FileInputStream(file(project.property("build.parselday"))))
ext.betaDistributionReleaseNotes = p2['relnotes']
ext.betaDistributionEmails = p2['emails']
}
}
}
lintOptions {
abortOnError false
}
}
} else {
android {
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment