Skip to content

fix: gradle plugin React Native resource linking#169

Merged
artus9033 merged 2 commits into
mainfrom
fix/gradle-dependency-bundlejs-debug-res
Dec 12, 2025
Merged

fix: gradle plugin React Native resource linking#169
artus9033 merged 2 commits into
mainfrom
fix/gradle-dependency-bundlejs-debug-res

Conversation

@artus9033

Copy link
Copy Markdown
Collaborator

Summary

This PR introduces a fix for the Gradle plugin's RNSourceSets::configureSourceSets, which had a hardcoded path introduced in feature commit bringing support for RN 0.81+ to be added to resources to every source set (react/release). In a future commit, the algorithm had a rework, with createBundleReleaseJsAndAssets being parametrized to match the given source set (createBundle${capitalizedVariantName}JsAndAssets), but react/release had not been parametrized.

Due to this problem, versions of the Gradle plugin >= 0.6.0 are affected and cause packaging of release JS artifacts in debug configurations, also having a side effect (guarding against this error!) of Gradle failing due to debug task not having an explicit dependency on the release one (our plugin adds such between tasks within the same configuration, which is correct) - an error like the below:
image

Test plan

CI green + works with a locally published version of the plugin.

@artus9033 artus9033 self-assigned this Dec 11, 2025
@artus9033 artus9033 added the bug Something isn't working label Dec 11, 2025

@hurali97 hurali97 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@artus9033 artus9033 merged commit 44d43fe into main Dec 12, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants