Skip to content
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

Closed
kaushalkumar86 opened this issue Aug 2, 2023 · 5 comments
Closed

Please Add proguard rules #87

kaushalkumar86 opened this issue Aug 2, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@kaushalkumar86
Copy link

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.

@kaushalkumar86 kaushalkumar86 added the enhancement New feature or request label Aug 2, 2023
@wiverson
Copy link
Collaborator

wiverson commented Aug 2, 2023

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.

@kaushalkumar86
Copy link
Author

kaushalkumar86 commented Aug 5, 2023 via email

@wiverson
Copy link
Collaborator

@kaushalkumar86 Hey, when you get a chance can you post the specific rules you used?

@kaushalkumar86
Copy link
Author

Hello @wiverson ,
I already mentioned the proguard rules I used earlier.
Anyways,

-keepattributes Signature
-keepattributes Annotation
-keepattributes EnclosingMethod
-keepattributes InnerClasses

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).

@wiverson
Copy link
Collaborator

wiverson commented Sep 1, 2023

Thanks!

@wiverson wiverson closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants