forma icon indicating copy to clipboard operation
forma copied to clipboard

Support build types

Open michaem opened this issue 3 years ago • 3 comments

Necessary to support build types configurations for debug/release apk's.

Main steps:

  • [x] POC DSL Forma build types
  • [x] Build Types supporting
  • [x] Proguards routines
  • [ ] Signing configs
  • [x] Build Fields

michaem avatar Dec 03 '20 17:12 michaem

Do we really need add support for product flavors? Since we have androidBinary we don't need flavors anymore because you can configure concrete build varian in androidBinary. F.e. api endpoint can be stored as res value of androidBinary. Unfortunately we cannot use buildField because we cannot override application buildField from binary

ikarenkov avatar Dec 15 '20 18:12 ikarenkov

No, we has thought that don't need to do build types as additional to androidBinary targets. Only need to support signing, shrink configurations. Using res environment of binary targets as configuration sources is interesting idea. Need to checkout this. May be it wouldn't be clearly and explicitly to configure builds.

michaem avatar Dec 15 '20 20:12 michaem

Need to check out next behaviors:

  • BuildConfig.DEBUG mode
  • Insert properties for Stetho and Canary
  • Dynamic config executes from fun blocks
runIfDebug { 
 // 
}
runIfRelease {
 // 
}

michaem avatar Dec 18 '20 16:12 michaem