[2/3] upgrade react native 0.71 (#20832)# Why follow up #20799 for react-native 0.71 upgrade. this pr aims for jest upgrade and fix all broken tests. close ENG-7192 # How - upgrade packag
[2/3] upgrade react native 0.71 (#20832)# Why follow up #20799 for react-native 0.71 upgrade. this pr aims for jest upgrade and fix all broken tests. close ENG-7192 # How - upgrade packages - `jest: ^26.0.24 -> ^29.2.1` - `jest-watch-typeahead: 0.6.4 -> 2.2.1` - `@types/jest: ^26.0.24 -> ^29.2.1` - `babel-jest: ^26.6.3 -> ^29.2.1` - `@jest/create-cache-key-function: ^27.0.1 -> ^29.2.1` - `@babel/preset-env: ^7.12.9 -> ^7.14.0` - `eslint: ^8.20.0 -> ^8.29.0` - add `jest-environment-jsdom` because new jest does not include it by default - [core] fix `SyntheticPlatformEmitter` type error. originally it refers to `react-native/Libraries/EventEmitter/RCTDeviceEventEmitter` internal file which has incorrect type setup in 0.71. we could use the `react-native.DeviceEventEmitter` instead. - [expo-linking]: remove the deprecated `Linking.removeEventListener` (which is also removed from upstream) - [firebase-recaptcha] remove broken web test because firebase ESM which is not supported by jest. this pr simply remove the test case because the package is deprecated. - [jest-expo-enzyme] remove this package and move to [the archived repo](https://github.com/expo/jest-expo-enzyme). enzyme cannot upgrade to jest 29. - remove `@types/react-native` and the versioned cli package check. because 0.71 ships the types directly. - [ncl] workaround `@react-native-community/slider`, `@react-native-segmented-control/segmented-control`, and `@react-native-masked-view/masked-view` type errors in the `react-native-71-fix.d.ts`. - for other details, please check the commit histories one by one. # Test Plan - ci passed - for test-suite ios ci error, i've mentioned in #20799
show more ...
[lint] Add support for ESLint 8.x, bump to 10.0.0 (#15810)Why --- ESLint v8 came out awhile ago. This PR updates eslint-config-universe to support ESLint v8. How --- Most of the work was upd
[lint] Add support for ESLint 8.x, bump to 10.0.0 (#15810)Why --- ESLint v8 came out awhile ago. This PR updates eslint-config-universe to support ESLint v8. How --- Most of the work was updating dependencies and switching our tests to use `eslint.ESLint` instead of `eslint.CLIEngine`. Read through the changelog of each dependency and confirmed the breaking changes don't affect us (dropping Node 10 was the most common one). Updated some deprecated ESLint rules that had been moved to eslint-plugin-node, a new dependency. This is pretty much a drop-in change but I bumped the major version since several dependencies were upgraded and there was a slightly higher peer dep requirement for `@babel/core`. Test Plan --------- `yarn test` in the plugin directory `et cp --no-uniformity-check --all --fix-lint`
[android] Fix building error from outside of project root (#15109)# Why our gradle script will break if building from outside of the project root. especially for appcenter to build a monorepo pr
[android] Fix building error from outside of project root (#15109)# Why our gradle script will break if building from outside of the project root. especially for appcenter to build a monorepo project, the gradle execution is in this case: `./packages/sdk43mono/android/gradlew -p packages/sdk43mono/android :app:assembleDebug` fixes #14944 # How passing working directory for [`String.execute`](https://docs.groovy-lang.org/latest/html/groovy-jdk/java/lang/String.html#execute(java.lang.String[],%20java.io.File)) # Test Plan 1. monorepo test repo: https://gitlab.com/kudochien/rnmono and run with `./packages/sdk43mono/android/gradlew -p packages/sdk43mono/android :app:assembleDebug`. note that this repo is include the fixes. 2. test from bare-expo: ```sh cd $HOME /path/to/expo/apps/bare-expo/android/gradlew -p /path/to/expo/apps/bare-expo/android :app:assembleDebug ``` Co-authored-by: Tomasz Sapeta <[email protected]>
use a more specific variable name for the expo-camera gradle plugin (#14966)* use a more specific variable name for the expo-camera gradle plugin * Update CHANGELOG.md
[expo-camera] Added gradle import with monorepo support (#14521)* Added gradle import with monorepo support * Update packages/expo-camera/plugin/src/withCamera.ts Co-authored-by: Bartłomiej K
[expo-camera] Added gradle import with monorepo support (#14521)* Added gradle import with monorepo support * Update packages/expo-camera/plugin/src/withCamera.ts Co-authored-by: Bartłomiej Klocek <[email protected]> * updated snapshot Co-authored-by: Evan Bacon <[email protected]> Co-authored-by: Bartłomiej Klocek <[email protected]>
[eslint-config] remove `arrowParens` overwrite, reformat files (#14232)
[sdk] convert plugins to typescript (#11715)* Converted plugins to TypeScript * Built packages * Updated CHANGELOGs