All Versions
48
Latest Version
Avg Release Cycle
81 days
Latest Release
1353 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v8.8.1 Changes
August 09, 2017- Fix: Properly emit casts for single-bound view subtypes when
butterknife.debuggable
is set tofalse
.
- Fix: Properly emit casts for single-bound view subtypes when
-
v8.8.0 Changes
August 04, 2017- New: Processor option
butterknife.debuggable
controls whether debug information is generated. When specified asfalse
, checks for required views being non-null are elided and casts are no longer guarded with user-friendly error messages. This reduces the amount of generated code for release builds at the expense of less friendly exceptions when something breaks. - Deprecate the
findById
methods. Compile against API 26 and use the normalfindViewById
for the same functionality. - Fix: Correct
@BindFont
code generation on pre-API 26 builds to pass aContext
(not aResources
) toResourceCompat
.
- New: Processor option
-
v8.7.0 Changes
July 07, 2017- New:
@BindFont
annotation bindsTypeface
instances with an optional style. Requires support libraries 26.0.0-beta1 or newer. - New:
@BindAnim
annotation bindsAnimation
instances. - New: Generate
R2
constants for animation, layout, menu, plurals, styles, and styleables. - Fix: Properly catch and re-throw type cast exceptions when method binding arguments do not match.
- New:
-
v8.6.0 Changes
May 16, 2017- Plugin was ported to Kotlin and updated to support future Android Gradle plugin versions.
- Fix: Properly handle multiple library modules using Butter Knife and defining the same ID.
- Fix: Use the same classloader of the binding target to load the generated view binding class.
-
v8.5.1 Changes
January 24, 2017- Fix: Tweak bundled ProGuard rules to only retain the two-argument constructor accessed via reflection.
-
v8.5.0 Changes
January 23, 2017- Emit
@SuppressLint
when using@OnTouch
to avoid a lint warning. - Migrate lint checks from Lombok AST to JetBrains PSI.
- Annotations are no longer claimed by the processor.
- Based on the minimum SDK version (as specified by
butterknife.minSdk
until http://b.android.com/187527 is released) the generated code now changes to use newer APIs when available. - Generated classes now include single-argument overloads for
View
,Activity
, andDialog
subclasses. - Generated classes are no longer generic.
- Minimum supported SDK is now 9.
- Emit
-
v8.4.0 Changes
August 26, 2016- New:
@BindFloat
annotation for dimensions whose format is of type 'float'. See the annotation for more information. - Generated constructors are now annotated with
@UiThread
and non-final, base classesunbind()
methods are annotated with@CallSuper
.
- New:
-
v8.3.0 Changes
August 23, 2016- New: Support for Jack compiler in application projects.
- Fix: Generate ~20% less code and ~40% less methods.
- Fix: Allow
@BindView
to reference types which are generated by other annotation processors. - Experimental: The generated view binding class can now be used directly. This allows ProGuard shrinking,
optimization, and obfuscation to work without any rules being needed. For a class
Test
, the binding class will be namedTest_ViewBinding
. Calling its constructor will bind the instance passed in, and the create object is also the implementation ofUnbinder
that can be used to unbind the views. Note: The API of this generated code is subject to backwards-incompatible changes until v9.0.
-
v8.2.1 Changes
July 11, 2016- Fix: Do not emit
android.R
imports in generated code. - Fix: Ensure the processor does not crash when scanning for
R
classes. This can occur when used in a Kotlin project.
- Fix: Do not emit
-
v8.2.0 Changes
July 10, 2016- New: Support for library projects. Requires application of a Butter Knife Gradle plugin. See README for details.
- New: Generated code now emits
R
references instead of raw integer IDs. - Fix:
@OnPageChange
listener binding now uses the 'add'/'remove' methods onViewPager
instead of 'set'.