-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
0.41.0-rc.0 - Update Android Proguard Rules #11891
Comments
I have to turn off proguard to build a release version after upgrade to RN0.41, do you have any workaround? |
One solution is to ignore the warning by using: |
RN 0.41 using proguard is failing for me too |
We also had the same failure with a bunch of warnings from 0.41, but @jpshelley 's workaround was good enough. |
The TextLayoutBuilder library has this in it's proguard rules (Fixed it for me):
https://github.com/facebookincubator/TextLayoutBuilder/blob/master/proguard-android.txt |
it's helpful. Thanks |
@AndrewJack Thank for the solution! It worked for me too. How did you find about this? Because proguard is not showing in the output what class it tried to find. I spent so much time on this issue :) |
@henrikra I read in the proguard output that |
Fix issue in proguard config related to this bug -> facebook/react-native#11891
Why is this issue closed? If I create a project with adding |
greate thanks! |
@AndrewJack This workaround works well. You saved my day ! |
As weird as it may sound, just tried to build a release version with RN 0.51 and the warning showed up again. Adding that |
Description
Recently I updated to 0.41.0-rc.0 and there has been a regression in regards to Proguard for Android. The following happens on a release build:
Reproduction
react-native init TestProguardProject
react-native-git-upgrade 0.41.0-rc.0
react-native run-android --variant=release
Solution
-dontwarn
addition to proguard or better yet a-keep
on the needed method would be best. Not a proguard expert so I'll leave this up for discussion, but can submit a PR if needed.Additional Information
The text was updated successfully, but these errors were encountered: