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

Remove getJSIModulePackage From Android #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

branaust
Copy link

@branaust branaust commented Nov 1, 2024

Purpose
Expo apps built with SDK 51 and above are experiencing the following Android build error:

MainApplication.kt:40:9 'getJSIModulePackage' overrides nothing

This error is related to a breaking change introduced in RN .74 release notes:

Remove of JSIModule* from FabricUIManagerProvider (#42059).
        This API was unused in open source — use TurboModules instead.

The goal of this PR:

Remove getJSIModulePackage Dependency: Since getJSIModulePackage has been removed in React Native 0.74, we’ll need to remove this function call from MainApplication.kt in the WatermelonDB plugin.

Switch to TurboModules: With getJSIModulePackage deprecated, the alternative is to configure TurboModules in MainApplication.kt to support WatermelonDB.

Plugin Code Adjustments: In the withWatermelon.js code, remove any direct references to getJSIModulePackage or WatermelonDBJSIPackage for compatibility with the new Android TurboModule requirements.

Copy link
Collaborator

@brunokiafuka brunokiafuka left a comment

Choose a reason for hiding this comment

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

@branaust thanks for working on this. Can you please add a description to your PR which contains some testing plan to help our reviewers?

@branaust branaust requested a review from brunokiafuka November 1, 2024 15:17
@branaust
Copy link
Author

branaust commented Nov 1, 2024

Related: #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants