butterknife v9.0.0-rc1 Release NotesRelease Date: 2018-10-10 // over 3 years ago
New: Support for AndroidX. Requires
gradle.propertiesto generate AndroidX code.
butterknife-runtimeartifact has been extracted from
butterknifewhich contains the APIs required for the generated code but does not contain the code to reflectively look up the generated code. This allows you to reference the generated code directly such that R8/ProGuard optimization can rename both the generated code and your classes.
ButterKnife.bindand the consumer R8/ProGuard rules remain in the old
butterknife-reflectartifact eliminates the need to run the annotation processor for IDE builds. This artifact is binary compatible with
butterknifeso it can be interchanged depending on how your build is being invoked. See [its README](butterknife-reflect/README.md) for more information. Currently about 90% of functionality is covered. File bugs for anything that does not work.
Note: This artifact requires Java 8. There's no good reason for this except to push the ecosystem to having this be a default. As of AGP 3.2 there is no reason not to do this.
New: Lint checks have been ported to UAST and now work on Kotlin code.
@BindFontto work prior to API 26 using
Fix: Update Android Gradle plugin to 3.1 or newer to fix binary incompatibilities.
Fix: Use the application ID instead of the resource package for generating
Deprecated methods from 8.x have been removed.
🚀 Note: The next release candidate will switch all artifacts to require Java 8 bytecode which will force your applications to enable Java 8 bytecode. As of AGP 3.2 there is no cost to this, and there is no reason to have it set any lower.