Skip to content

RNGP - Properly set the jsRootDir default value - #35992

Closed
cortinico wants to merge 1 commit into
react:mainfrom
cortinico:export-D42806411
Closed

RNGP - Properly set the jsRootDir default value#35992
cortinico wants to merge 1 commit into
react:mainfrom
cortinico:export-D42806411

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:
Fixessoftware-mansion/react-native-gesture-handler#2382

I've just realized that the default value fo jsRootDir is not entirely correct.
That's the root of the folder where the codegen should run.

For apps, it should be defaulted to root (i.e. ../../)
For libraries, it should be defaulted to ../ (currently is root).

This causes a problem where libraries without either a codegenConfig or a react{ jsRootDir = ... }
specified in the build.gradle will be invoking the codegen and generating duplicated symbols.

Changelog:
[Android] [Fixed] - RNGP - Properly set the jsRootDir default value

Differential Revision: D42806411

Summary:
Fixessoftware-mansion/react-native-gesture-handler#2382
I've just realized that the default value fo `jsRootDir` is not entirely correct.
That's the root of the folder where the codegen should run.
For apps, it should be defaulted to `root` (i.e. ../../)
For libraries, it should be defaulted to `../` (currently is root).
This causes a problem where libraries without either a `codegenConfig` or a `react{ jsRootDir = ... }`
specified in the build.gradle will be invoking the codegen and generating duplicated symbols.
Changelog:
[Android] [Fixed] - RNGP - Properly set the `jsRootDir` default value
Differential Revision: D42806411
fbshipit-source-id: 44371edec593aba5a5115d05e6f8d2e86ec6dc11
@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Jan 27, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D42806411

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a8,463,316+0
androidhermesarmeabi-v7a7,783,671+0
androidhermesx868,936,293+0
androidhermesx86_648,794,200+0
androidjscarm64-v8a9,648,925+0
androidjscarmeabi-v7a8,383,202+0
androidjscx869,710,897+0
androidjscx86_6410,187,754+0

Base commit: a00cea4
Branch: main

@facebook-github-botfacebook-github-bot added the Merged This PR has been merged. label Jan 30, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in c000409.

kelset pushed a commit that referenced this pull request Jan 30, 2023
Summary:
Pull Request resolved: #35992Fixessoftware-mansion/react-native-gesture-handler#2382
I've just realized that the default value fo `jsRootDir` is not entirely correct.
That's the root of the folder where the codegen should run.
For apps, it should be defaulted to `root` (i.e. ../../)
For libraries, it should be defaulted to `../` (currently is root).
This causes a problem where libraries without either a `codegenConfig` or a `react{ jsRootDir = ... }`
specified in the build.gradle will be invoking the codegen and generating duplicated symbols.
Changelog:
[Android] [Fixed] - RNGP - Properly set the `jsRootDir` default value
Reviewed By: cipolleschi
Differential Revision: D42806411
fbshipit-source-id: ffe45f9684a22494cc2e4d0a19de9077cb341365
@hameezAhmad

Copy link
Copy Markdown

I am getting this Execution failed for task ':app:mergeLibDexDebug'. in react native 0.71.5

@andrepporto

Copy link
Copy Markdown

Same thing. Execution failed for task ':app:mergeLibDexDebug'. in react native 0.71.5

@cortinico

Copy link
Copy Markdown
ContributorAuthor

@andrepporto@hameezAhmad Please open a separate issue. Also it's unclear why it's related to this PR.

@reactreact locked as resolved and limited conversation to collaborators Apr 25, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

BugCLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.fb-exportedMergedThis PR has been merged.p: FacebookPartner: FacebookPartnerPlatform: AndroidAndroid applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android] Execution failed for task ':app:mergeLibDexDebug'. RNGH conflicts with MMKV when fabric enabled

6 participants

@cortinico@facebook-github-bot@analysis-bot@hameezAhmad@andrepporto@react-native-bot