Ported gradle build files to kotlin DSL#9191
Merged
tshmieldev merged 16 commits intomainfrom Apr 13, 2026
Merged
Conversation
Collaborator
|
Please merge to latest main 🙏 |
f50dbb5 to
cf29183
Compare
…fig to build.gradle.kts
648fa22 to
b8377b9
Compare
tjzel
requested changes
Apr 2, 2026
tjzel
reviewed
Apr 2, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the Android Gradle build logic for the Worklets and Reanimated packages from Groovy (.gradle) to Kotlin DSL (.gradle.kts), and inlines the previous Spotless/fix-prefab script logic into Kotlin-based equivalents.
Changes:
- Replaced
build.gradlewithbuild.gradle.ktsfor bothreact-native-workletsandreact-native-reanimated. - Ported the prefab “touch prefab_config.json to retrigger prefab CLI” workaround from Groovy to Kotlin DSL for Worklets.
- Removed standalone
spotless.gradlescripts and configured Spotless directly in the Kotlin DSL build scripts.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/react-native-worklets/android/spotless.gradle | Removed Groovy Spotless script (Spotless config moved into Kotlin DSL). |
| packages/react-native-worklets/android/fix-prefab.gradle.kts | Added Kotlin DSL version of the prefab refresh workaround. |
| packages/react-native-worklets/android/fix-prefab.gradle | Removed Groovy version of the prefab refresh workaround. |
| packages/react-native-worklets/android/build.gradle.kts | Added Kotlin DSL build script for Worklets (publishing, Android config, feature flags, prefab headers, validations). |
| packages/react-native-worklets/android/build.gradle | Removed Groovy build script for Worklets. |
| packages/react-native-reanimated/android/spotless.gradle | Removed Groovy Spotless script (Spotless config moved into Kotlin DSL). |
| packages/react-native-reanimated/android/build.gradle.kts | Added Kotlin DSL build script for Reanimated (publishing, Android config, feature flags, validations, worklets dependency handling). |
| packages/react-native-reanimated/android/build.gradle | Removed Groovy build script for Reanimated. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tjzel
reviewed
Apr 8, 2026
Collaborator
tjzel
left a comment
There was a problem hiding this comment.
The comments apply to both gradle files.
tjzel
reviewed
Apr 9, 2026
tjzel
approved these changes
Apr 13, 2026
github-merge-queue bot
pushed a commit
that referenced
this pull request
Apr 15, 2026
## Summary Use of reflections in #9191 resulted in `compile_commands.json` files not being exported after compilation due to the `abi` field sitting in a base class. Here instead I traverse directories to find the file. ## Test plan `compile_commands.json` is exported again after the compilation.
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.
Summary
Migrated the gradle build files to kotlin DSL, formatted the kotlin files
Test plan
Build the app