Skip to content
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

RNGP - Properly set the jsRootDir default value #35992

Closed
wants to merge 1 commit into from

Conversation

cortinico
Copy link
Contributor

Summary:
Fixes software-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:
Fixes software-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-bot facebook-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
Contributor

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

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,463,316 +0
android hermes armeabi-v7a 7,783,671 +0
android hermes x86 8,936,293 +0
android hermes x86_64 8,794,200 +0
android jsc arm64-v8a 9,648,925 +0
android jsc armeabi-v7a 8,383,202 +0
android jsc x86 9,710,897 +0
android jsc x86_64 10,187,754 +0

Base commit: a00cea4
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 30, 2023
@facebook-github-bot
Copy link
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: #35992

Fixes software-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

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

@andrepporto
Copy link

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

@cortinico
Copy link
Contributor Author

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

@facebook facebook locked as resolved and limited conversation to collaborators Apr 25, 2023
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
Pull Request resolved: facebook#35992

Fixes software-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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner Platform: Android Android 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