-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with ProGuard in custom view #38
Comments
@Anton111111 Try to add this rule to your proguard config.
|
@alaegin , doesn't work with this rules too |
@Anton111111 , please send your crash log? |
@kirich1409 ,i get the following exception on the sample (to check sample see first message): |
@kirich1409 , @alaegin ,i've fixed my problem with small tuned of @alaegin advice. My complet proguard rule: -keep class * implements androidx.viewbinding.ViewBinding { |
Will be fixed in 1.4.3 |
@kirich1409 , on last release (1.4.4) still doesn't works. |
Will be fixed in the next release |
You can see issue with proguard on this example. If set minifyEnabled to true then app will crash on start:
https://github.com/Anton111111/NavigationLikeInstagram/blob/vbpd-bug/app/src/main/java/com/anton111111/navigation/ui/CustomView.kt
If change minifyEnabled to false app started without problem:
https://github.com/Anton111111/NavigationLikeInstagram/blob/vbpd-bug/app/build.gradle
The text was updated successfully, but these errors were encountered: