4744 Commits
Author SHA1 Message Date
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
Axel Delafosse b23601b6e4 [expo-cli] generate smaller QR codes (#3800) 2021-08-26 22:44:42 +02:00
jkh d85fc9d816 [expo-cli] remove warning aggregator batched logging (#3799) 2021-08-25 14:05:03 -06:00
Evan Bacon b660e2983f fix warnings 2021-08-25 13:45:47 -06:00
Evan Bacon 9ca2eddb1c 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-08-25 13:19:06 -06:00
Evan Bacon 36b23c7f35 Update yarn.lock 2021-08-25 13:13:51 -06:00
jkh d127b9661a [xdl] only configure native files when appropriate (#3764) 2021-08-25 11:46:45 -07:00
Evan BaconandEvan Bacon a1a8a3ba8a [expo cli][run:android] resolve launch activity (#3741)
* Resolve launch activity better

* Added tests

* fix type

Co-authored-by: Evan Bacon <[email protected]>
2021-08-24 17:11:00 -06:00
Evan BaconandEvan Bacon d6248d7f2d Disable update check in non-interactive mode (#3791)
Co-authored-by: Evan Bacon <[email protected]>
2021-08-24 16:52:07 -06:00
Evan BaconandEvan Bacon 2bb935efad [config-plugins] Improved warnings system in config plugins (#3795)
* Improved warnings system in config plugins

Reduce WarningAggregator

* fix tests

* Update ora.js

Co-authored-by: Evan Bacon <[email protected]>
2021-08-24 16:51:43 -06:00
Charlie Cruzan c8f96bc873 [plist] Update xmldom to account for security vulnerability (#3797) 2021-08-24 16:51:12 -06:00
Evan BaconandEvan Bacon d1f07386be Bump apple-utils to v25 (#3798)
Co-authored-by: Evan Bacon <[email protected]>
2021-08-24 16:47:54 -06:00
Evan BaconandEvan Bacon bf84639958 Added device selection to expo client:install:android (#3792)
Co-authored-by: Evan Bacon <[email protected]>
2021-08-23 21:34:35 -06:00
Evan BaconandEvan Bacon 55bbc1dc18 [expo cli] prompt to remove malformed projects (#3789)
* Prompt to remove malformed projects

* Added malformed check to run commands

Co-authored-by: Evan Bacon <[email protected]>
2021-08-23 10:35:04 -06:00