forma
forma copied to clipboard
Support build types
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
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
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.
Need to check out next behaviors:
- BuildConfig.DEBUG mode
- Insert properties for Stetho and Canary
- Dynamic config executes from fun blocks
runIfDebug {
//
}
runIfRelease {
//
}