Gradle as cmd

515 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
515
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Gradle as cmd

  1. 1. @dggonzalez +David González
  2. 2. Process!
  3. 3. project structure
  4. 4. testing ! ! unit tests instrumentation tests robolectric monkey
  5. 5. flavours
  6. 6. ! ! debug betaRelease release QA
  7. 7. buildTypes { debug { packageNameSuffix ".debug" versionNameSuffix "-debug" } ! betaRelease { debuggable false jniDebugBuild false signingConfig signingConfigs.arteBetaRelease } ! } release { debuggable false jniDebugBuild false signingConfig signingConfigs.arteRelease }
  8. 8. custom config ! String tag = createBuildConstant("TAG", "ARTE_DEBUG") ! buildConfig syncFrequency, providerAuthority, suggestionsAuthority, pushVersion, tag, xitiDomain, xitiSiteId, gcmServer ! Log.d(BuildConfig.TAG, ”stupid log”)
  9. 9. signing
  10. 10. ! signingConfigs { ! } arteRelease { storeFile file("../team-props/arteBeta.keystore") storePassword "arteandroid" keyAlias "arte" keyPassword "arteandroid" } arteBetaRelease { storeFile file("../team-props/arte.keystore") storePassword "THEPASSWORD" keyAlias "THEALIAS" keyPassword "THEALIASPASSWORD" }
  11. 11. issues
  12. 12. ! testing is slow no google play console almost weekly updates resources merging
  13. 13. advantages ! right direction Google is working on it almost weekly updates flavours customizable
  14. 14. contribute ! https://github.com/novoda/ AndroidBuildTools/issues ! https://github.com/novoda/gradle-androidtest-plugin ! https://github.com/novoda/gradle-androidcommand-plugin
  15. 15. ??? @dggonzalez www.novoda.com/blog david@novoda.com +David González

×