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

refactor: restructure worklets source sets #6813

Merged
merged 23 commits into from
Jan 28, 2025

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Dec 12, 2024

Summary

To use react-native-worklets dynamically we must have a convenient way of disabling Worklets code that's inside Reanimated. Therefore we need to adjust Worklets' Java file locations.

All Worklets Java files were moved to

android/src/worklets/main

with exception of

WorkletsModule.java which is needed by Reanimated to link with WorkletsModule. It's Reanimated's version of this file - meaning, that WorkletsModule.java in react-native-worklets will be slightly different. This is necessary to work around codegen.

Similar story goes for NativeWorkletsModuleSpec.java.

Test plan

CI

@tjzel tjzel force-pushed the @tjzel/worklets/restructure-worklets-source-sets branch from 787f2e0 to 7cffa8f Compare December 12, 2024 13:56
@tjzel tjzel force-pushed the @tjzel/worklets/external-worklets-example branch from 61b9e49 to 7ad15d2 Compare December 17, 2024 13:30
@tjzel tjzel force-pushed the @tjzel/worklets/restructure-worklets-source-sets branch from 7cffa8f to b30c495 Compare December 17, 2024 15:14
@tjzel tjzel marked this pull request as ready for review December 17, 2024 15:17
@tjzel tjzel force-pushed the @tjzel/worklets/restructure-worklets-source-sets branch from b30c495 to 2634199 Compare January 20, 2025 17:33
@tjzel tjzel changed the base branch from @tjzel/worklets/external-worklets-example to @tjzel/worklets/linting January 20, 2025 17:34
Base automatically changed from @tjzel/worklets/linting to main January 23, 2025 09:54
@tjzel tjzel added this pull request to the merge queue Jan 28, 2025
Merged via the queue into main with commit 8a37463 Jan 28, 2025
18 checks passed
@tjzel tjzel deleted the @tjzel/worklets/restructure-worklets-source-sets branch January 28, 2025 11:34
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.

3 participants