react-native-macos/scripts
Riccardo Cipolleschi 21d530208f Extracting Platform Specific TM code to break dependency cycle between ReactCommon and React-Core (#36461)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36461

This change breaks a dependency cycle between `ReactCommon` and `React-Core`.

`React-Core` depends on `ReactCommon` to have access to the various `TurboModule` native files.

`ReactCommon` depends on `React-Core` because the content of the `core/platform/ios` folder and the `samples` folder needs to access the `RCTBridge` and other files in Core.

To break the circular dependency, we introduced two new `podspecs`:

* `React-NativeModulesApple` for the content of `core/platform/ios`.
* `ReactCommon-Samples` for the content of the `samples` folder.

In this way, the new dependencies are linear as `React-NativeModulesApple` and `ReactCommon-Samples` depends on `React-Core` and `ReactCommon` and `React-Core` only depends on  `ReactCommon`.

While doing this, we also make sure that all the include path are aligned, to limit the amount of breaking changes.

## Changelog:
[iOS][Breaking] - Split the `ReactCommon/react/nativemodule/core/platform/ios` and `ReactCommon/react/nativemodule/samples` in two separate pods to break circular dependencies.

Reviewed By: mdvacca

Differential Revision: D44023865

fbshipit-source-id: a97569506350db5735ac5534b1592471de196cbe
2023-03-14 05:31:16 -07:00
..
__tests__ fix(script): handle patch versions after the .0 for set version (#36020) 2023-02-07 03:45:17 -08:00
buck Move test-docker-android from GH Actions to CircleCI (#36093) 2023-02-08 12:51:09 -08:00
circleci Move test-docker-android from GH Actions to CircleCI (#36093) 2023-02-08 12:51:09 -08:00
cocoapods Extracting Platform Specific TM code to break dependency cycle between ReactCommon and React-Core (#36461) 2023-03-14 05:31:16 -07:00
codegen Use the new CLI properties for codegen the legacy components 2023-03-08 02:28:32 -08:00
hermes Remove version from the tarball (#35285) 2022-11-14 08:31:30 -08:00
monorepo Add option to commit with generic message (#36421) 2023-03-09 09:19:17 -08:00
react_native_pods_utils fix: script phases warning (#35594) 2022-12-08 09:05:56 -08:00
template refactor(scripts): use forEachPackage instead of `yarn workspaces info` (#35633) 2022-12-14 03:04:06 -08:00
versiontemplates Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
xcode Fix missing node error message not printed correctly (#36140) 2023-02-14 07:05:03 -08:00
.npmignore Move TypeScript declarations into react-native (#34614) 2022-09-19 12:26:00 -07:00
.packager.env Move YGStyle to seperate file and add constructors 2018-02-20 05:55:36 -08:00
.tests.env Bump OSS Android build to SDK 33 (#35196) 2022-11-08 19:12:02 -08:00
android-e2e-test.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
android-setup.sh RN: Make `retry3` Portable in CI Scripts 2022-09-28 10:57:07 -07:00
bump-oss-version.js Migrate nightly from scheduled workflow to scheduled pipeline (#35977) 2023-01-27 01:33:21 -08:00
compose-source-maps.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
find-node-for-xcode.sh update `asdf-vm` setup to use `$ASDF_DIR` to work if user defined custom directory (#36043) 2023-02-07 07:00:14 -08:00
generate-api-docs.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
generate-codegen-artifacts.js infra(e2e): rework local E2E script (#34513) 2022-10-04 04:56:44 -07:00
generate-provider-cli.js chore: renamed react-native-codegen to @react-native/codegen (#34804) 2022-11-28 08:28:51 -08:00
generate-specs-cli.js Update CodeGen to leverage the `outputDir` as suggested in diff review (#33729) 2022-05-04 04:04:10 -07:00
ios-configure-glog.sh fix (glog script): remove invalid param from sed (#33967) 2022-06-17 11:58:08 -07:00
launchPackager.bat Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
launchPackager.command Use `NODE_BINARY` from `.xcode.env` when running packager from Xcode (#34121) 2022-07-12 05:52:22 -07:00
lint-java.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
native_modules.rb Move cocoapods cli native_modules require from template to rn scripts (#34215) 2022-07-19 09:11:08 -07:00
node-binary.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
objc-test.sh Switch to xcbeautify (#36131) 2023-02-15 04:20:20 -08:00
packager-reporter.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
packager.sh build: allow packager override for PROJECT_ROOT (#35354) 2022-11-17 14:18:09 -08:00
prepare-package-for-release.js Bypass tag check in dry run (#35428) (#35470) 2022-11-25 10:53:14 -08:00
process-podspecs.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
publish-npm.js fix(scripts): remove leftover code for tmpPublishingFolder (#35528) 2022-12-01 16:38:42 -08:00
react-native-xcode.sh Update `react-native-xcode.sh` to use `PROJECT_DIR` from Xcode (#35970) 2023-01-30 04:03:31 -08:00
react_native_pods.rb Extracting Platform Specific TM code to break dependency cycle between ReactCommon and React-Core (#36461) 2023-03-14 05:31:16 -07:00
release-utils.js fix(scripts): remove leftover code for tmpPublishingFolder (#35528) 2022-12-01 16:38:42 -08:00
retry3 RN: Make `retry3` Portable in CI Scripts 2022-09-28 10:57:07 -07:00
run-android-ci-instrumentation-tests.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
run-android-emulator.sh Use realpath instead of readlink 2022-02-22 02:23:02 -08:00
run-android-local-integration-tests.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
run-android-local-unit-tests.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
run-ci-e2e-tests.js Switch to xcbeautify (#36131) 2023-02-15 04:20:20 -08:00
run-ci-javascript-tests.js Fix Errors with TypeScript Tests 2022-12-15 19:17:58 -08:00
run-instrumentation-tests-via-adb-shell.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
run_ruby_tests.sh Run script phases tests in CI and Sandcastle (#33802) 2022-05-11 10:00:28 -07:00
scm-utils.js Do not depend on an ENV variable when publishing and setting the RN version (#34746) 2022-09-22 07:34:50 -07:00
set-rn-template-version.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
set-rn-version.js fix(scripts): add logic for version scripts to account for local E2E test versioning (#35846) 2023-01-18 08:27:11 -08:00
setup-verdaccio.js save registry auth token before bootstrapping verdaccio (#35991) 2023-01-27 11:01:45 -08:00
sync-css-layout.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
test-e2e-local-clean.js fix(e2e script): backport from 71 fixes to the E2E script (#35477) 2022-11-25 03:26:20 -08:00
test-e2e-local.js chore(dependencies): bump CLI to 11 alpha2 and metro to 0.75.1 (#36271) 2023-02-28 03:18:06 -08:00
test-manual-e2e.sh Void the Maven coordinates for react-native and hermes-engine (#35379) 2022-11-18 04:46:16 -08:00
testing-utils.js infra(e2e): rework local E2E script (#34513) 2022-10-04 04:56:44 -07:00
try-n-times.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
update-ruby.sh Remove .ruby-version and update Gemfile to support multiple versions of Ruby (#36281) 2023-02-26 09:32:28 -08:00
update_podfile_lock.sh Update Gemfile to require Cocoapods 1.12.0 (#36321) 2023-02-28 07:14:02 -08:00
validate-android-device-env.sh Update CONTRIBUTING.md, replace wiki links (#34035) 2022-06-21 19:30:23 -07:00
validate-android-sdk.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
validate-android-test-env.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
validate-ios-test-env.sh bump Node references from 12/14 to 14/16 (#32980) 2022-01-28 05:07:18 -08:00
version-utils.js fix(script): handle patch versions after the .0 for set version (#36020) 2023-02-07 03:45:17 -08:00