V0.16.0
Enhancements
- Add ability to reference resources between main and flavor res directories. This means main and buildType/flavor resources can reference each other correctly. You need to use facebook/buck@3319cd6 or later in
.buckversion
to get support for this feature and continue using okbuck. This also greatly simplifies the number ofandroid_resource
rules and now okbuck only creates one per target regardless of the number of itsres
andasset
directories. #361 - Only resolve subset of useful configurations during okbuck. The android gradle plugin creates many configurations for every buildType and flavor combination. Even standard configurations may not always be used by projects i.e they may only declare dependencies on a few configurations per project. This change filters out configurations that are useful for building and ignores resolving all possible configurations to speedup okbuck time. #366
- Bumped default retrolambda version to 2.5.0
- Use same proguard jar as the android gradle plugin in buck. #363
Bug fixes
- Better isolation of apt and provided dependencies across targets. This means
apt
andprovided
dependencies will no longer leak totestApt
andtestProvided
etc. #365
Breaking Changes
- You need to use facebook/buck@3319cd6 or later in
.buckversion
to continue using okbuck. - If you were using any custom definitions in your
.buckconfig
like
[buildfile]
includes = //custom/DEFS
You will need to move such files to the okbuck extension in the root build.gradle
like so
okbuck {
extraDefs += project.file('custom/DEFS')
}
This is required because okbuck now ships with its own build file definitions and writes them to the buckconfig.local
config file. Configuring okbuck correctly will prevent your configuration from being overwritten.