📄 build.gradle Source Code
android
{
...
lintOptions { disable 'InvalidPackage' }
packagingOptions { exclude 'META-INF/services/javax.annotation.processing.Processor' }
...
}
📄 ProguardFiles [proguard-project.txt, proguard-rules.pro] Source Code
# butter knife
-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewBinder { *; }
-keepclasseswithmembernames class * {
@butterknife.* <fields>;
}
-keepclasseswithmembernames class * {
@butterknife.* <methods>;
}
🚀 REFERENCE
Butter Knife
Introduction Annotate fields with @BindView and a view ID for Butter Knife to find and automatically cast the corresponding view in your layout. class ExampleActivity extends Activity { @BindView(R.id.title) TextView title; @BindView(R.id.subtitle) TextVie
jakewharton.github.io
Howto configure ProGuard settings for ButterKnife 8?
I am running ButterKnife version 8.5.1 in my Android app. If I try to make ProGuard settings for ButterKnife I still got crashes in my release version. There is an issue on the official ButterKnife
stackoverflow.com
ButterKnife proguard 설정.
build.gradle 설정. lintOptions { disable 'InvalidPackage' } packagingOptions { exclude 'META-INF/services/javax.annotation.processing.Processor' } proguard 설정. # butter knife -keep class butterkni..
lsit81.tistory.com
'#모바일 [Mobile] > Android' 카테고리의 다른 글
[Android] 상태바 숨기기 (How to hide status bar?) (0) | 2019.09.02 |
---|---|
[Android] Custom Dialog 띄우기 (How to create a Custom Dialog in android?) (0) | 2019.08.07 |
[Android] AsyncTask (0) | 2019.07.25 |
[Android - OpenSource] Butter Knife (0) | 2019.07.25 |
[Android] Ripple Drawable (버튼 눌림 효과, 물결 효과) (0) | 2019.07.24 |
댓글