4757 Commits
Author SHA1 Message Date
Brent Vatne 2bbb3da729 Publish
- @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected].2
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected].1
 - [email protected]
@expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
2021-10-05 16:03:10 -07:00
Brent Vatne 31edaea100 [config-types] Update for SDK 43 2021-10-05 16:02:25 -07:00
Brent Vatne 9a3f496dd3 Update CHANGELOG and commit schema cache 2021-10-01 14:49:58 -07:00
Brent Vatne 7621454e3b Publish
- @expo/[email protected]
 - [email protected].1
 - [email protected]
 - [email protected]
@expo/[email protected] [email protected] [email protected] [email protected]
2021-10-01 14:44:35 -07:00
Cedric van Putten 1b015e361b [expo-cli] Add version check fallback for packages with exports (#3878)
* [expo-cli] Add version check fallback for packages with exports

* [expo-cli] Add fallback to existing functionality and test

* [expo-cli] Remove unnecessary resolve from

* [expo-cli] Add mocked version of resolve from to non-silent

* [expo-cli] Add working test with manual exports exception

* [expo-cli] Reenable the fix

* [expo-cli] Add more context to the regex just to be safe
2021-10-01 23:33:35 +02:00
Ville Immonen 36a65cc80b [expo-cli] Remove incorrect platform from 'dev client start command' event (#3874) 2021-09-29 12:13:05 -07:00
kgc00 27fd75aa9c bump @expo/rudder-sdk-node (#3875) 2021-09-29 09:18:05 -07:00
Bartosz Kaszubowski 446982c961 [pod-install] mention macos directory in Readme (#3870) 2021-09-23 13:08:26 -06:00
Kudo Chien a819bc30eb [expo-cli][xdl] Remove expo forked react-native from managed apps (#3821)
# Why

Close [ENG-1900](https://linear.app/expo/issue/ENG-1900/remove-forked-react-native-for-managed-apps)

# How

- `expo doctor` supports to check react-native version satisfying to sdk's `facebookReactNativeVersion`
- `expo upgrade` will use `facebookReactNativeVersion` version in managed apps

# Test Plan

## Manual Tests

```sh
$ expo init exmanaged # select managed blank
$ cd exmanaged
$ expo doctor
# 🎉 Didn't find any issues with the project!

$ yarn add '[email protected].4'
$ expo doctor
# 🎉 Didn't find any issues with the project!

$ yarn add 'react-native@~0.59.0'
$ expo doctor
# Warning: Invalid version of react-native for sdkVersion 42.0.0. Use [email protected].4
```

## Unit Tests

```
 PASS   expo-cli  src/commands/__tests__/upgrade-test.ts
  getDependenciesFromBundledNativeModules
    react-native
      ✓ upgrades react-native to fb version in sdk < 43.0.0 bare workflow
      ✓ upgrades react-native to expo fork in sdk < 43.0.0 managed workflow
      ✓ upgrades react-native to fb version in bare workflow
      ✓ upgrades react-native to fb version in managed workflow
```
2021-09-23 09:04:19 +08:00
Evan BaconandEvan Bacon 4202ec1ea9 Fix loader bug (#3867)
* Fix loader bug

* Update packages/expo-cli/src/utils/ora.ts

Co-authored-by: Evan Bacon <[email protected]>
2021-09-22 13:18:34 -06:00
Brent Vatne ac7c412e4e Update CHANGELOG to include @expo/configure-splash-screen 2021-09-21 15:04:32 -07:00
Brent Vatne 1d88dccf4f Publish @expo/[email protected] 2021-09-21 15:03:55 -07:00
Brent Vatne b9da20aa13 Update CHANGELOG and commit schema cache 2021-09-21 15:02:25 -07:00
Brent Vatne d614ee9c98 Publish
- @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected].0
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected].0
 - [email protected]
@expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] @expo/[email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
2021-09-21 14:39:00 -07:00
Brent Vatne 18d28dfda0 chore: Update yarn.lock 2021-09-21 14:13:09 -07:00
Evan BaconandEvan Bacon cd0080846a Disable lint warnings (#3866)
Co-authored-by: Evan Bacon <[email protected]>
2021-09-21 15:05:04 -06:00
Evan BaconandEvan Bacon 14b646b0d4 [metro-config] Added improved babel loading (#3861)
* Created exotic loader

Added NCL requirements

Update metro-expo-exotic-babel-transformer.ts

wip -- rewrite

wip -- refactor

added warnings

added warn shim

copyright

* Disable `x_facebook_sources` by default

* Update createMatcher-test.ts

* Update package.json

Co-authored-by: Evan Bacon <[email protected]>
2021-09-21 11:14:28 -06:00
Evan BaconandEvan Bacon 1f0415c67c [expo-cli][run:ios] JS API for iOS binary install, and connected devices (#3847)
* 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]>
2021-09-20 18:46:11 -06:00
Evan BaconandEvan Bacon 2367810560 [expo run:android] add flavors support (#3856)
* expo run:android -- add flavors support

* Update Android.ts

* Update runAndroid.ts

* Update packages/expo-cli/src/commands/run/android/runAndroid.ts

Co-authored-by: Evan Bacon <[email protected]>
2021-09-20 18:46:02 -06:00
Will Schurman 8c014405ac [xdl] Fix expo-updates EAS manifest assets for iOS (#3860) 2021-09-20 13:59:43 -07:00
Evan BaconandEvan Bacon 47fb473528 [config plugins] extend base mods (#3852)
* Add ability to extend base mods

* rename variable

* Added shared providers

* Update withDefaultPlugins-test.ts.snap

* isIntrospective

Co-authored-by: Evan Bacon <[email protected]>
2021-09-20 14:27:47 -06:00
Cedric van Putten 4d6089d023 [cli] Remove prompts to install Expo Go on upgrade (#3853)
* [cli] Remove prompts to install Expo Go on upgrade

* [cli] Remove unused platform variable from upgrade
2021-09-17 13:08:24 -06:00
Evan BaconandEvan Bacon 30077a1da0 Fix linking issues (#3857)
Co-authored-by: Evan Bacon <[email protected]>
2021-09-17 13:04:22 -06:00
Evan BaconandEvan Bacon 27929efc3d Add --no-install option to expo run:ios (#3851)
Co-authored-by: Evan Bacon <[email protected]>
2021-09-16 15:29:43 -06:00
Will Schurman 7b1913e4ff [xdl][config] Implement naive manifest signing for EAS update manifests (#3831) 2021-09-16 12:34:45 -07:00
Evan BaconandEvan Bacon ddb357053c Update ExpoMetroConfig.ts (#3849)
Co-authored-by: Evan Bacon <[email protected]>
2021-09-15 09:47:51 -06:00
Evan BaconandEvan Bacon 64c7c6655e remove ascii colors, add generated comments, sanitize descriptions, add version notice (#3848)
Co-authored-by: Evan Bacon <[email protected]>
2021-09-14 20:45:27 -06:00
d189a84b8c use platforms array for disabling platforms (#3844)
* Added platforms for disabling terminal ui

* Added platforms styling to web ui

* Update packages/expo-cli/src/commands/start/TerminalUI.ts

Co-authored-by: Brent Vatne <[email protected]>

Co-authored-by: Evan Bacon <[email protected]>
Co-authored-by: Brent Vatne <[email protected]>
2021-09-14 08:48:45 -06:00
Linus Unnebäck d0d8880fe3 Escape single quotes in project name (#3838) 2021-09-13 12:50:05 -06:00
jkh f1fdc54351 [config-cli][xdl] add getRuntimeVersion method (#3803) 2021-09-10 05:08:53 -07:00
Evan BaconandEvan Bacon 4ae24d583a dodge extraneous Info.plist warning in managed projects (#3835)
Co-authored-by: Evan Bacon <[email protected]>
2021-09-09 12:30:41 -06:00
Kudo Chien 5ad98fb352 [dev-server] support building hermes bytecode bundle for ios (#3814)
# 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/
```
2021-09-09 14:30:46 +08:00
Axel Delafosse 2314a214b6 [next-adapter] update babel config (#3834) 2021-09-09 08:06:12 +02:00
Evan BaconandEvan Bacon b740b77945 Use upstream react-native/normalize-color (#3826)
Co-authored-by: Evan Bacon <[email protected]>
2021-09-03 17:48:22 -06:00
Evan BaconandEvan Bacon a0e05311df [webpack] Added unified logging (#3766)
* Added shared logging in webpack

Improved types

Update PackagerLogsStream.ts

* Added expected errors

Fix context

* Remove webpackbar

* Remove extra console logs

* Update Webpack.ts

* Update TerminalUI.ts

* Added support for warnings

* Updated tests

* fix native errors

Co-authored-by: Evan Bacon <[email protected]>
2021-09-03 17:48:12 -06:00
jkh 3b9cd68081 [xdl] throw if AndroidManifest.xml is missing a MainApplication (#3825) 2021-09-03 10:46:38 -07:00
Evan BaconandEvan Bacon 5a07094e38 Improve the symbolicator (#3822)
Co-authored-by: Evan Bacon <[email protected]>
2021-09-02 17:16:26 -06:00
Evan BaconandEvan Bacon d909dd2e62 Enable sockets in native webpack (#3823)
Co-authored-by: Evan Bacon <[email protected]>
2021-09-02 17:15:59 -06:00
Evan BaconandEvan Bacon 4d71e2b672 [dev server] Added webpack symbolicator (#3819)
* Added symbolication middleware for Webpack

fixup source maps

cleaned up symbolication

Update webpack.config.ts

Improve symbolication

* Improve symbolication

* Update Symbolicator.ts

Co-authored-by: Evan Bacon <[email protected]>
2021-09-02 14:47:32 -06:00
Evan BaconandEvan Bacon 9cc5ed1d68 chore: missing deps #3813 (#3818)
Co-authored-by: Evan Bacon <[email protected]>
2021-09-01 21:05:49 -06:00
Evan BaconandEvan Bacon 4d8b1618f4 minimize spacing to fit smaller QR codes (#3812)
* minimize spacing to fit smaller QR codes

* Remove indent-string

Co-authored-by: Evan Bacon <[email protected]>
2021-08-31 19:06:07 -06:00
Evan BaconandEvan Bacon a71b5b2603 [expo cli] start project using application identifier (#3737)
* 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]>
2021-08-31 15:04:39 -06:00
Evan BaconandEvan Bacon bdc2e44abc [expo cli] refactor export command (#3794)
* Added platform support to expo export

* refactor more

* Update exportAppAsync.ts

* Update writeContents.ts

* Update publishAsync.ts

* Update ProjectAssets.ts

* Update truncateLastLinesAsync.ts

* moved warning

* Update platformOptions.ts

* updated types

* Update exportAppAsync.ts

* Added tests

* Added export tests

* pr feedback

* Update writeContents-test.ts.snap

* Update export.ts

* Update createBundlesAsync.ts

Co-authored-by: Evan Bacon <[email protected]>
2021-08-31 13:18:43 -06:00
Kudo Chien 1375d6eea5 [config-plugins] Add hermes support for ios Podfile.properties.json (#3796)
# 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)
```
2021-08-31 18:47:58 +08:00
Kudo Chien b28c72fa99 [prebuild-config] Support new expo-splash-screen to manage resizeMode in resource (#3784)
# 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
```
2021-08-31 18:46:51 +08:00
Kudo Chien 1cefbb5b29 [android] support new expo-splash-screen to setup imageResizeMode and statusBarTranslucent in resource (#3774)
# 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)
```
2021-08-31 18:46:10 +08:00
kgc00 8bf2311229 [eas-cli][xdl] Removes Segment (#3805) 2021-08-30 17:23:48 -07:00
Evan BaconandEvan Bacon 7cd68a065c [webpack] Add metro runtime shim (#3809)
* Added an empty shim for the metro specific code in react-native

* Update webpack.config-test.js.snap

Co-authored-by: Evan Bacon <[email protected]>
2021-08-30 16:09:02 -06:00
Evan BaconandEvan Bacon 895962c8df [webpack] Add all native middleware to webpack (#3808)
* Add all expo middleware to webpack dev server

Update MetroDevServer.ts

* Attach inspector proxy

Co-authored-by: Evan Bacon <[email protected]>
2021-08-30 16:05:55 -06:00
Evan BaconandEvan Bacon a456dba372 [webpack config] Add native asset loader (#3801)
* Added native asset plugin

* Update webpack.config.ts

* reduce native deps

* Update webpack.config-test.js.snap

* Update packages/webpack-config/src/plugins/NativeAssetsPlugin/loader.ts

* Update packages/webpack-config/src/plugins/NativeAssetsPlugin/loader.ts

* Update loader.ts

* clean up

* Added ws

Co-authored-by: Evan Bacon <[email protected]>
2021-08-29 12:59:43 -06:00