Conversation
#144) This pull request updates the ProGuard rules in the `android/app/proguard-rules.pro` file to ensure proper functionality of reflection, URL launcher, WebView, and JavaScript interfaces in the Android app. The changes primarily focus on preserving specific classes and methods from being removed or obfuscated during the build process. ### ProGuard Rule Updates: * **Reflection Support**: Added rules to keep all class members used for reflection to prevent runtime issues. (`[android/app/proguard-rules.proR1-R40](diffhunk://#diff-09b2c99413460ebb90ea73560bea82a46996111028b6fbab31316433e58d42a8R1-R40)`) * **URL Launcher**: Preserved classes related to the `url_launcher` package, including `androidx.core` and `io.flutter.plugins.urllauncher` classes, to ensure proper functionality. (`[android/app/proguard-rules.proR1-R40](diffhunk://#diff-09b2c99413460ebb90ea73560bea82a46996111028b6fbab31316433e58d42a8R1-R40)`) * **WebView and JavaScript Interfaces**: Added rules to keep WebView-related classes, JavaScript interfaces, and their methods, ensuring compatibility with WebView and JavaScript interactions. (`[android/app/proguard-rules.proR1-R40](diffhunk://#diff-09b2c99413460ebb90ea73560bea82a46996111028b6fbab31316433e58d42a8R1-R40)`) * **Custom Implementations**: Preserved all implementations of `b2.a`, `b2.**`, and `j2.d` to maintain compatibility with custom logic. (`[android/app/proguard-rules.proR1-R40](diffhunk://#diff-09b2c99413460ebb90ea73560bea82a46996111028b6fbab31316433e58d42a8R1-R40)`)
Jozys
approved these changes
Apr 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MoveTopia Update Changelog
Bug fixes
Fehlerbehebungen