Skip to content

Conversation

@ScreepCode
Copy link
Owner

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](https://github.com/ScreepCode/MoveTopia/pull/144/files#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](https://github.com/ScreepCode/MoveTopia/pull/144/files#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](https://github.com/ScreepCode/MoveTopia/pull/144/files#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](https://github.com/ScreepCode/MoveTopia/pull/144/files#diff-09b2c99413460ebb90ea73560bea82a46996111028b6fbab31316433e58d42a8R1-R40))

@ScreepCode ScreepCode requested a review from Jozys April 25, 2025 08:11
@ScreepCode ScreepCode self-assigned this Apr 25, 2025
Copilot AI review requested due to automatic review settings April 25, 2025 08:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • android/app/proguard-rules.pro: Language not supported

@ScreepCode ScreepCode merged commit 83c8945 into development Apr 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants