-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
base: @tjzel/worklets/linting
Are you sure you want to change the base?
refactor: restructure worklets source sets #6813
Conversation
787f2e0
to
7cffa8f
Compare
61b9e49
to
7ad15d2
Compare
7cffa8f
to
b30c495
Compare
@@ -347,9 +347,19 @@ android { | |||
} | |||
sourceSets.main { | |||
java { | |||
// Always present | |||
srcDirs += "src/worklets/WorkletsModule/java" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we always do that? Is this just a temporary workaround or a permanent solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm doing it to have a clear separation of Worklets and Reanimated in the file structure within react-native-reanimated
so the "code duplication" trick would be simpler and more transparent. These exact files are necessary because Reanimated declares WorkletsModule
in TypeScript and it can't be missing.
b30c495
to
2634199
Compare
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.Test plan
CI