-
Notifications
You must be signed in to change notification settings - Fork 50
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
Please Add proguard rules #87
Comments
Are you using Unity? I ran into issues with Unity code stripping and JSON breaking due to constructors getting wiped out. My current workaround is to turn stripping off. |
Yes, using unity,
I added those line in proguard rules and everything is working fine now.
…On Thu, 3 Aug, 2023, 3:03 am Will Iverson, ***@***.***> wrote:
Are you using Unity? I ran into issues with Unity code stripping and JSON
breaking due to constructors getting wiped out. My current workaround is to
turn stripping off.
—
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABG2A54AEO6BLSWEPB2OJ53XTLBRLANCNFSM6AAAAAA3B3JS2A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@kaushalkumar86 Hey, when you get a chance can you post the specific rules you used? |
Hello @wiverson , -keepattributes Signature These rules I used to make it work. Also, make sure u have internet property set as "required" in unity player settings, as I was getting errors if not set as required (For android development). |
Thanks! |
Proguard Rules
##Worked fine in developer mode, but as soon as I introduced proguard, got null oject refences
A clear and concise description of what you want and what your use case is.
Describe the solution you'd like
-keepattributes Signature
-keepattributes Annotation
-keepattributes EnclosingMethod
-keepattributes InnerClasses
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: