# Why
react-native 0.68 added jni code in templates for new architecture support. in the jni code, there are some java descriptors mapping to java class names. e.g.:
```c++
static constexpr auto kJavaDescriptor =
"Lcom/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;";
```
we should also rename these descriptors. otherwise apps will crash from new architecture mode.
# How
rename descriptors in jni folders
# Test Plan
#### Integration Tests
```sh
$ expo init -t blank sdk45
$ expo prebuild -p android # use package name other than com.sdk45
# set newArchEnabled=true in android/gradle.properties
$ expo run:android
```
also tested on a sdk 44 project to make sure the pr is backward compatible.
#### Unit Test
```
PASS @expo/config-plugins src/android/__tests__/Package-test.ts
renameJniOnDiskForType
✓ refactors a main project (5 ms)
```
* [package-manager] Add support for pnpm
* [expo-cli] Add support for pnpm in expo install
* [expo-cli] Add support for pnpm in expo upgrade
* [package-manager] Add test for pnpm instantiation
* [expo-cli] Add support for pnpm in expo init
* [expo-cli] Add support for pnpm in expo eject and prebuild
* [expo-cli] Disable pnpm flag from expo init
* [package-manager] Fix missing add when adding modules with flags
* [package-manager] Reuse npm transformer when error output is hidden
* [package-manager] Drop --shamefully-hoist in favor of node-linker=hoisted
* [expo-cli] Revert pnpm changes in expo-cli
* [package-manager] Split pnpm package manager out of the node package managers
* [package-manager] Revert isUsingYarn method
* [package-manager] Add tests for pnpm package manager and stream transform
* [expo-cli] Revert last remaining changes
* [package-manager] Add inline eslint exceptions for ansi warning characters
* [package-manager] Remove tests for reverted isUsingYarn method
# Why
close ENG-4618
# How
- install expo sdk based on target project's react-native version
- will try to install `expo@^45.0.0` first and fallback to install `expo@>=45.0.0-0 <46.0.0` for prerelease version
- add react-native 0.68 template support
# Test Plan
#### Unit Test
```
PASS install-expo-modules src/utils/__tests__/expoVersionMappings-test.ts
getDefaultSdkVersion
✓ should resolve as sdk 45 from react-native 0.68 project (16 ms)
✓ should resolve as sdk 45 from react-native 0.65 project (1 ms)
✓ should resolve as sdk 44 from react-native 0.64 project
PASS install-expo-modules src/plugins/android/__tests__/withAndroidModulesMainApplication-test.ts
setModulesMainApplication
✓ should able to update from react-native@>=0.68.0 template (2 ms)
PASS install-expo-modules src/plugins/android/__tests__/withAndroidModulesMainActivity-test.ts
setModulesMainActivity
✓ should add ReactActivityDelegateWrapper for react-native@>=0.68.0 - java (1 ms)
✓ should add ReactActivityDelegateWrapper for react-native@>=0.68.0 - kotlin (1 ms)
```
#### Integration Test
```sh
$ npx react-native init RN068 --version 0.68
$ npx install-expo-modules
$ expo run:android
$ expo run:ios
$ export ORG_GRADLE_PROJECT_newArchEnabled=true ; expo run:android
$ cd ios; rm -rf Pods build; RCT_NEW_ARCH_ENABLED=1 pod install
$ expo run:ios
```
# Why
to support more customized native build properties, like android `compileSdkVersion` and `targetSdkVersion`. we need an extensible way for what we did in the `jsEngine` property (reading a value from source config and merge it into properties file).
close ENG-4021
# How
refactor original dedicated `JsEngine` plugin to generic `BuildProperties` plugin. it is rule based and easy for extension.
the source config can be either from expo config or from other custom config passing through config-plugin props.
Co-authored-by: Evan Bacon <[email protected]>