Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gradle, and the beauty of the command line

Gradle, and the beauty of the command line

David González

November 26, 2013
Tweet

More Decks by David González

Other Decks in Programming

Transcript

  1. buildTypes { debug { packageNameSuffix ".debug" versionNameSuffix "-debug" } !

    betaRelease { debuggable false jniDebugBuild false signingConfig signingConfigs.arteBetaRelease } ! release { debuggable false jniDebugBuild false signingConfig signingConfigs.arteRelease } }
  2. custom config ! String tag = createBuildConstant("TAG", "ARTE_DEBUG") ! buildConfig

    syncFrequency, providerAuthority, suggestionsAuthority, pushVersion, tag, xitiDomain, xitiSiteId, gcmServer ! Log.d(BuildConfig.TAG, ”stupid log”)
  3. ! apply plugin: ‘deploygate' ! Properties props = new Properties()

    props.load(new FileInputStream(file(project.property("DEPLOY.properties")))) ! arteRelease { storeFile file("../team-props/arte-android-keystore") storePassword props['signing.release.storePassword'] keyAlias props['signing.release.keyAlias'] keyPassword props['signing.release.keyPassword'] } arteBetaRelease { storeFile file("../team-props/arte.keystore") storePassword "THEPASSWORD" keyAlias "THEALIAS" keyPassword "THEALIASPASSWORD" } }