* Use native-run to deploy and list connected devices
* fork package to reduce size and add progress support
* Update packages/xdl/src/apple/AppleDevice.ts
* Update manager.ts
* Improved error messages
Co-authored-by: Evan Bacon <[email protected]>
# Why
support building hermes bytecode bundle for ios
# How
- add ios and shared `jsEngine` support to `isEnableHermesManaged`
- some refactoring to make `maybeAddHermesBundleAsync` clear
= move sdk check into HermesBundler.ts
= move throwing error of `maybeInconsistentEngine*` into HermesBundler.ts
- add `maybeInconsistentEngineIosAsync` to support Podfile.properties.json
# Test Plan
### new unit tests
```
PASS @expo/dev-server src/__tests__/HermesBundler-test.ts
isEnableHermesManaged
✓ should support shared jsEngine key
✓ platform jsEngine should override shared jsEngine
✓ should exclude old SDK (18 ms)
maybeThrowFromInconsistentEngineAsync - ios
✓ should resolve if ":hermes_enabled => true" in Podfile and "jsEngine: 'hermes'" in app.json (1 ms)
✓ should throw if ":hermes_enabled => true" in Podfile but no "jsEngine: 'hermes'" in app.json
✓ should throw if (":hermes_enabled => false" or not existed in Podfile) and "jsEngine: 'hermes'" in app.json (1 ms)
✓ should resolve if "expo.jsEngine": 'hermes' in Podfile.properties.json and "jsEngine: 'hermes'" in app.json
✓ should handle the inconsistency between Podfile and Podfile.properties.json
```
### updated unit tests (mostly for `maybeThrowFromInconsistentEngineAsync` interface change)
```
maybeThrowFromInconsistentEngineAsync - common
✓ should resolve for managed project
maybeThrowFromInconsistentEngineAsync - android
✓ should resolve if "enableHermes: true" in app/build.gradle and "jsEngine: 'hermes'" in app.json (3 ms)
✓ should throw if "enableHermes: false" in app/build.gradle and "jsEngine: 'hermes'" in app.json (1 ms)
✓ should resolve if "expo.jsEngine=hermes" in gradle.properties and "jsEngine: 'hermes'" in app.json (1 ms)
✓ should resolve if "expo.jsEngine=hermes" in gradle.properties but no "jsEngine: 'hermes'" in app.json
✓ should resolve for old sdk bare project
✓ should handle the inconsistency between app/build.gradle and gradle.properties
```
### manually test
```sh
$ expo init extest # select managed
# add `jsEngine: "hermes"` and `sdkVersion: "UNVERSIONED"` to app.json
$ EXPO_SKIP_MANIFEST_VALIDATION_TOKEN=1 /path/to/expo-cli/packages/expo-cli/bin/expo.js export -p https://example.com/
```
* Added support for opening projects without shared schemes
Flipped env logic
Flipped sdk logic
Remove need for SDK Version in more places
Update resolveDeviceAsync.ts
Update resolveDeviceAsync.ts
Improve error handling
* Update TerminalUI.ts
* Removed old warning
* improved startup
* reuse application id
* Improve errors and test
* Update Simulator.ts
Co-authored-by: Evan Bacon <[email protected]>
# Why
add hermes support for ios.
# How
- xdl-schema related pr: https://github.com/expo/universe/pull/8063
- client related pr: https://github.com/expo/expo/pull/14119
- add `podfileProperties` mod and `withPodfileProperties` plugin
- add `withJsEnginePodfileProps` plugin and will read `config.ios.jsEngine`, then `config.jsEngine` and generate `Podfile.properties.json` accordingly.
# Test Plan
```
PASS @expo/config-plugins src/ios/__tests__/JsEngine-test.ts
jsEngine
✓ returns default engine if no engine is provided (2 ms)
✓ return the engine if provided
✓ return the engine where platform override config has higher priority (1 ms)
✓ set the property from shared `jsEngine` config
✓ set the property from platform `jsEngine` override config
✓ overwrite the property if an old property is existed (1 ms)
PASS @expo/prebuild-config src/plugins/__tests__/withDefaultPlugins-test.ts
built-in plugins
✓ create Podfile.properties.json file for backward compatible (196 ms)
```
# Why
support https://github.com/expo/expo/pull/14061
# How
- add `withAndroidSplashStrings` to update `resizeMode` and `statusBarTranslucent`
- rename `withAndroidSplashMainActivity` as `withAndroidSplashLegacyMainActivity` and only process if expo-splash-screen version satisfies `< 0.12.0`
# Test Plan
## unit test
```
PASS @expo/prebuild-config src/plugins/unversioned/expo-splash-screen/__tests__/withAndroidSplashStrings-test.ts
setSplashStrings
✓ add expo_splash_screen_strings (148 ms)
✓ override old expo_splash_screen_strings
PASS @expo/config-plugins src/android/__tests__/Strings-test.ts
setStringItem
✓ add item from empty xml (2 ms)
✓ support adding multiple items (1 ms)
✓ override existing item
```
## manually test
```
expo init sdk42
cd sdk42 # select managed layout
expo prebuild -p android
cd node_modules/expo-splash-screen
# update expo-splash-screen version to 0.12.0
yarn add file:/path/to/expo-cli/packages/prebuild-config
cd ../..
rm -rf android
expo prebuild -p android
# verify MainActivity.java and strings.xml
```
# Why
support https://github.com/expo/expo/pull/14061
# How
remove `MainActivity` mod and add `strings.xml` mod
# Test Plan
```
Strings.xml
configureStringsXml
✓ creates new strings.xml file if not existed (51 ms)
✓ updates not configured string.xml file (1 ms)
✓ updates existing string.xml file and override to updated config (1 ms)
```