Andres Suarez
8bd3edec88
Update copyright headers from Facebook to Meta
...
Reviewed By: aaronabramov
Differential Revision: D33367752
fbshipit-source-id: 4ce94d184485e5ee0a62cf67ad2d3ba16e285c8f
2021-12-30 15:11:21 -08:00
Rob Hogan
7923804c28
Use newer metro language: `blacklistRE` -> `blockList` ( #30342 )
...
Summary:
An [update to `metro`](94c0b541b4 (diff-1a3c1a959bb8c4e2e9743c03cb7a6d0c56648ffcfe129a11b9090bfc139622dd)
) which landed in metro 0.60 (RN 0.64+) deprecates the config `blacklistRE`, renaming it to `blockList`. Although the former is still supported it now generates a deprecation warning.
## Changelog
[General] [Fixed] - Update metro config language to `blockList`
Pull Request resolved: https://github.com/facebook/react-native/pull/30342
Test Plan: Confirm that the config is still respected (`/buck-out/` should be excluded), and that no deprecation warning is issued.
Reviewed By: lunaleaps
Differential Revision: D31380163
Pulled By: motiz88
fbshipit-source-id: f64cff30690f0252fafd4eac254a8c2278c4ac2f
2021-10-05 02:26:26 -07:00
Kevin Gozali
17a8737ecb
Codegen Android: update Docker configuration to support codegen ( #30268 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/30268
This addresses the following CI failure:
https://app.circleci.com/pipelines/github/facebook/react-native/6847/workflows/36d59aab-bc4a-4d21-9ce1-a8348e71aea3/jobs/173669
The problem was missing directories because we didn't copy the relevant ones for docker build.
In addition:
* The codegen depends on `invariant`, but didn't specify the dep in package.json. This fixes it.
* Also ask Metro to ignore buck-out
Note that this will depend on docker image v1.0.5 (to be released later) to fully build. v1.0.5 will need to install `rsync`, see this patch: https://gist.github.com/fkgozali/1d8cae92a5bc521e0f2e4f275008db93 . With my test image (of 1.0.5 local build), I got the docker build to pass:
```
$ docker build -t reactnativeci/android -f .circleci/Dockerfiles/Dockerfile.android .
[+] Building 1624.2s (27/27) FINISHED
=> [internal] load build definition from Dockerfile.android 0.0s
=> => transferring dockerfile: 52B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/reactnativecommunity/react-native-android:1.0.5 0.0s
=> [1/22] FROM docker.io/reactnativecommunity/react-native-android:1.0.5 0.0s
=> [internal] load build context 5.6s
=> => transferring context: 7.11MB 5.5s
=> CACHED [2/22] ADD .buckconfig /app/.buckconfig 0.0s
=> CACHED [3/22] ADD .buckjavaargs /app/.buckjavaargs 0.0s
=> CACHED [4/22] ADD Libraries /app/Libraries 0.0s
=> CACHED [5/22] ADD ReactAndroid /app/ReactAndroid 0.0s
=> CACHED [6/22] ADD ReactCommon /app/ReactCommon 0.0s
=> CACHED [7/22] ADD React /app/React 0.0s
=> CACHED [8/22] ADD keystores /app/keystores 0.0s
=> CACHED [9/22] ADD packages/react-native-codegen /app/packages/react-native-codegen 0.0s
=> CACHED [10/22] ADD tools /app/tools 0.0s
=> CACHED [11/22] WORKDIR /app 0.0s
=> CACHED [12/22] RUN buck fetch ReactAndroid/src/test/java/com/facebook/react/modules 0.0s
=> CACHED [13/22] RUN buck fetch ReactAndroid/src/main/java/com/facebook/react 0.0s
=> CACHED [14/22] RUN buck fetch ReactAndroid/src/main/java/com/facebook/react/shell 0.0s
=> CACHED [15/22] RUN buck fetch ReactAndroid/src/test/... 0.0s
=> CACHED [16/22] RUN buck fetch ReactAndroid/src/androidTest/... 0.0s
=> CACHED [17/22] RUN buck build ReactAndroid/src/main/java/com/facebook/react 0.0s
=> CACHED [18/22] RUN buck build ReactAndroid/src/main/java/com/facebook/react/shell 0.0s
=> [19/22] ADD . /app 28.1s
=> [20/22] RUN yarn 50.2s
=> [21/22] RUN ./gradlew :ReactAndroid:downloadBoost :ReactAndroid:downloadDoubleConversion :ReactAndroid:downloadFolly :ReactAndroid:downloadGlog 235.8s
=> [22/22] RUN ./gradlew :ReactAndroid:packageReactNdkLibsForBuck -Pjobs=1 1240.1s
=> exporting to image 64.2s
=> => exporting layers 64.2s
=> => writing image sha256:6449dc629ed12395c9c98d880fb421284193bc9b5d2a77578760a23b5c3c1acd 0.0s
=> => naming to docker.io/reactnativeci/android
```
To test with a custom local docker image:
* https://docs.docker.com/get-started/ (install the Mac client)
* git clone https://github.com/react-native-community/docker-android
* Make the local change then create the fake v1.0.5 image:
* `docker build --tag reactnativecommunity/react-native-android:1.0.5 .`
* Run the image from Docker Mac client
* Then build RN docker test pasted above.
Changelog: [Internal]
Reviewed By: shergin
Differential Revision: D24611539
fbshipit-source-id: 7435e720bbb2e8d6528ce2a7344f1def15803898
2020-10-28 21:48:20 -07:00
Daiki Ihara
0f3f6c0938
fix warning of root metro config ( #27883 )
...
Summary:
fix https://github.com/facebook/react-native/issues/27620
## Changelog
[Internal] [Fixed] - Fix warning of packager
Pull Request resolved: https://github.com/facebook/react-native/pull/27883
Test Plan: - run `./scripts/packager.sh` and no warning displayed
Differential Revision: D19619571
Pulled By: cpojer
fbshipit-source-id: 3cd6383d9b0f7e133a9253b19ad626fcc93d5bed
2020-01-29 03:53:42 -08:00
Andres Suarez
3b31e69e28
Tidy up license headers [2/n]
...
Summary: Changelog: [General] [Fixed] - License header cleanup
Reviewed By: yungsters
Differential Revision: D17952694
fbshipit-source-id: 17c87de7ebb271fa2ac8d00af72a4d1addef8bd0
2019-10-16 10:06:34 -07:00
Mike Grabowski
706f67a882
Use latest React Native CLI ( #24517 )
...
Summary:
Updates React Native to use latest CLI.
Changes:
- No more `--reactNativePath`, define it once in the configuration file. This reverts the previous PR that added this flag
- Add `platforms` and `commands` - React Native now defines platform like any other package. There's no longer concept of "out-of-tree" platform. All are treated equally. If React Native works, any other platform will work too.
- Updates `jest/hasteImpl.js` to use public CLI interface (`loadConfig`) instead of `findPlugins` and removes a weird conditional that checks for CI presence.
[INTERNAL] - Update React Native CLI
Pull Request resolved: https://github.com/facebook/react-native/pull/24517
Differential Revision: D15044762
Pulled By: cpojer
fbshipit-source-id: 379b61e842e619312c542173219a7d326663cf24
2019-04-24 05:09:10 -07:00