Open
Conversation
WoLewicki
commented
Jan 13, 2026
Member
Author
There was a problem hiding this comment.
The patch is for rn 0.81.4 but as long as the code in those files won't change in rn repo, it should work with other versions too.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR implements a codegen artifacts prebuilt system for Android libraries to reduce build times by eliminating the need to rebuild codegen artifacts on every app build. The system packages prebuilt static libraries and headers in .aar files and provides mechanisms to extract and link them in client projects.
Changes:
- Modified build pipeline to generate both standard and codegen-enabled library versions
- Implemented extraction and linking of prebuilt codegen artifacts through Gradle plugin
- Temporarily disabled database status tracking and modified to use development branch for testing
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| react-native-versions.json | Removed older React Native versions from the supported list |
| packages/scheduler/src/scheduler.ts | Disabled build scheduling checks and database record creation; switched to development branch |
| packages/publisher/update-build-status.ts | Commented out build status update logic |
| packages/publisher/publish-library-android.ts | Added codegen classifier suffix and disabled database status updates |
| packages/gradle-client/rnrepo-plugin/src/main/kotlin/org/rnrepo/tools/prebuilds/PrebuildsPlugin.kt | Added codegen detection, CMake wrapper configuration, and prebuilt artifact extraction logic |
| packages/gradle-client/rnrepo-plugin/src/main/kotlin/org/rnrepo/tools/prebuilds/ExtractPrebuiltsTask.kt | New task to extract codegen static libraries and headers from AAR files |
| packages/database/src/index.ts | Added early returns to bypass database operations |
| packages/builder/patches/@react-native+codegen+0.81.4.patch | Changed codegen library type from OBJECT to STATIC |
| packages/builder/gradle_init_scripts/add-publishing.gradle | Added codegen artifact extraction, header packaging, and publishing with codegen classifier |
| packages/builder/build-utils.ts | Added patch file copying and application |
| packages/builder/build-library-android.ts | Implemented dual publishing (standard and codegen versions) with detection logic |
| libraries.json | Reduced library list to single entry for testing purposes |
| .github/workflows/publish-library-android.yml | Updated to use development secrets and checkout workflow branch |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...ages/build-tools/gradle-plugin/src/main/kotlin/org/rnrepo/tools/prebuilds/PrebuildsPlugin.kt
Show resolved
Hide resolved
it failed for @react-native-firebase/* packages, now it works
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.
📝 Description
PR adding codegen artifacts (static libs and headers) as parts of library
.aarand implementing:.aarAndroid-autolinking.cmake(https://github.com/software-mansion/rnrepo/pull/206/files#diff-8d1431ccdc7a315b68ce17002287169c0463238f411af18e09163e67e34a0334R924-R938)CMakeLists.txtwrapper around the main app's one in which we manually link those libs (https://github.com/software-mansion/rnrepo/pull/206/files#diff-8d1431ccdc7a315b68ce17002287169c0463238f411af18e09163e67e34a0334R999) which is consumed hereIt is done to speed up the builds by removing the necessity of building codegen each time you build an app since we believe it should be library's responsibility to provide those artifacts.