2707 Commits
Author SHA1 Message Date
Brent Vatne 754c9ff008 Publish
- @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2021-06-25 13:37:40 -07:00
Kudo Chien 35a63627a4 [dev-server] Only check or build hermes stuffs for SDK 42 or higher (#3610) 2021-06-25 13:35:26 -07:00
Brent Vatne 9e9c069172 Fix Node 16 warning 2021-06-25 13:32:52 -07:00
Evan Bacon 89dc37c10c Added debug logs 2021-06-25 14:03:51 -06:00
Kudo Chien 6d4ffc5bac [dev-server] Fix incorrect inspector request from android emulator loopback (#3602)
# Why

For dev-client running on android emulator, user may try to load bundles from http://10.0.2.2:8081/.
This is the [host loopback address](https://developer.android.com/studio/run/emulator-networking)
To query available inspector, we tried to send `/json/list` request to metro server but using HOST address in request headers.
In this case, HOST is 10.0.2.2:8081. For metro server, sending requests to 10.0.2.2:8081 is usually unreachable.

# How

Should use metro's local server address instead of request header HOST address.

# Test Plan

1. Use dev-client to load http://10.0.2.2:8081 bundle on android emulator.
2. Open dev-menu and see if there are any timeout errros.
2021-06-25 17:47:09 +08:00
Evan Bacon d1025b21b8 Added createPermissionsPlugin (#3607) 2021-06-24 14:16:19 -06:00
Brent Vatne cc4293e677 Publish
- @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2021-06-23 16:55:55 -07:00
Evan Bacon 927c318eee [config-plugins] Added support for targetApi (#3599)
* Added support for targetApi

* Update withDefaultPlugins-test.ts.snap
2021-06-23 17:29:12 -06:00
Evan BaconandBrent Vatne 1b72fb06f7 Skip unprovided mods and warn (#3600)
* Skip unprovided mods and warn

* Update mod-compiler.ts

* Update packages/config-plugins/src/plugins/mod-compiler.ts

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

Co-authored-by: Brent Vatne <[email protected]>
2021-06-23 17:29:00 -06:00
Evan Bacon e0cb624cab fix tests 2021-06-23 16:47:00 -06:00
Evan Bacon 8cdd26b988 [config-plugins] default translucent to off (#3601) 2021-06-23 15:37:05 -07:00
Brent Vatne 9319c47556 Update changelog and commit schema cache 2021-06-23 10:48:31 -07:00
Brent Vatne caa0173d89 Publish
- @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2021-06-23 10:37:34 -07:00
Evan Bacon 625294bb81 Update getAndroidSplashConfig.ts 2021-06-23 11:19:21 -06:00
Evan Bacon 43b4f2274d [splash-screen] Extend default theme (#3558)
* Extend default theme

* Update Styles-test.ts
2021-06-23 11:18:19 -06:00
Evan Bacon a863185662 Make the status bar translucent by default (#3578) 2021-06-23 11:17:48 -06:00
Evan Bacon 1f21b216c7 [prebuild config] Created android splash plugin (#3576)
* Created new Android splash plugins

* [wip] Added tests

* Update withAndroidSplashStyles.ts

* extend default style

* Refactor

* Update withAndroidSplashStyles.ts

* Update withAndroidSplashStyles.ts

* Added colorsNight mod

* Update withAndroidSplashImages.ts

* Update withAndroidSplashDrawables.ts

* Update withAndroidSplashStyles.ts

* Remove expo/configure-splash-screen from config plugins

* Update StatusBar.ts

* fixup tests

* Support no splash config

* PR feedback

* Added explicit spaces to regex
2021-06-23 11:16:50 -06:00
Evan Bacon 094c71140c [run] prompt for scheme (#3587)
* prompt for scheme

* Added default scheme style

* Update BuildScheme.ts

* clean up
2021-06-23 10:52:31 -06:00
Evan Bacon 8f00c63576 Lazy load heavy modules (#3598)
* Lazy load heavy modules

* Update package.json
2021-06-23 10:52:01 -06:00
Evan Bacon d31ae74923 Import Command as type (#3597) 2021-06-23 10:05:28 -06:00
Brent Vatne 5a400d1a9e Update CHANGELOG and commit schema cache 2021-06-21 16:51:56 -07:00
Brent Vatne 86ff226740 Publish
- @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2021-06-21 16:24:32 -07:00
Evan Bacon 1cb14f0989 [Metro] Created a custom metro babel transformer (#3282)
* Created a custom metro babel transformer

* Allow for overwriting

* remove extra unused transformer
2021-06-21 17:34:51 -05:00
darnfishandBartłomiej Klocek 0eaf320a79 Remove expo upload:ios cmd copy (#3593)
Co-authored-by: Bartłomiej Klocek <[email protected]>
2021-06-21 14:03:10 -07:00
Evan Bacon 79a50a8aa8 Wrap CLI message 2021-06-18 15:28:34 -05:00
Evan Bacon 364bd14891 [run:ios] Improve multi-target support by signing all targets at once (#3583)
* Improve multi-target by signing all targets at once

* Update developmentCodeSigning-test.ts
2021-06-17 18:16:34 -05:00
Evan Bacon c617577b1b Add workaround for broken shitty glob library (#3585) 2021-06-17 17:10:54 -05:00
Evan Bacon d8e9b51e3a [config-plugins] Default version number to 1.0.0 (#3582)
* Default version number to 1.0.0

* Update Version-test.ts
2021-06-17 16:48:30 -05:00
jkh 930544a597 [config-plugins] add EXUpdatesRequestHeaders to ExpoPlist type (#3577) 2021-06-17 13:39:00 -07:00
Evan Bacon d208d882fb [expo-cli][export] Prevent testing against bundle hashes (#3580)
* Prevent testing against bundle hashes

* Update export-test.ts
2021-06-16 15:32:20 -05:00
Ville Immonen 7d18ef1e7a Add analytics to dev client commands (#3521) 2021-06-16 12:44:43 +03:00
jkh 7f63d4e0d3 [config-plugins] add config request headers enum (#3571) 2021-06-14 07:15:54 -07:00
Evan Bacon 0ee84e4bb9 [config plugins] Remove permission side effects (#3565) 2021-06-12 21:24:54 -05:00
Brent Vatne 31954a8cc3 Commit schema and update changelog 2021-06-11 18:45:30 -07:00
Brent Vatne d53eadc503 Publish
- @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2021-06-11 18:33:29 -07:00
Evan Bacon fcbe8a7dcc [config] ios splash screen plugin (#2706)
* Import ios code from splash migration

* working variation with limited functionality

* Update SplashScreen.ts

* Update SplashScreen.ts

* added tests

* updated plugins

* Update Paths.ts

* revert

* Move xcode util

* extract status bar code

* Update SplashScreen.ts

* Update StatusBar.ts

* Update SplashScreen.ts

* Updated types

* updated tests

* support incoming parameters

* Update SplashScreen.ts

* move StatusBar

* Update index.ts

* Update SplashScreen.ts

* improve testing

* XML splash screen API

* run once

* Update SplashScreen-test.ts

* update splash screen plugin

* Update Xcodeproj.ts

* moved status bar changes to #3131

* Update SplashScreen.ts

* update

* Delete SplashScreen-test.ts

* Update InterfaceBuilder.ts

* Update withIosSplashScreen.ts

* Added support for more test props

* Update withIosSplashScreen.ts

* Update withIosSplashScreen-test.ts

* refactor

* allow missing image

* revise debug label

* Updated tests

* Update withIosSplashInfoPlist.ts

* Update withIosSplashInfoPlist.ts

* Update InterfaceBuilder.ts
2021-06-10 13:33:00 -05:00
Kudo Chien 3229162cfd [expo-cli] Enhance Hermes support for expo export and publish (#3536)
# Why

this pr addresses some missing parts of hermes support.

# How

1. add hermes bytecode bundle to `printBundleSizes`.
2. add hermes bytecode bundle support for `expo publish`.
3. support managed workflow by reading the `android.jsEngine` config in app.json.
4. `android.jsEngine` in app.json is now the single source of truth to determine  if we need to generate hermes bytecode bundle.
5. introduce `maybeInconsistentEngineAsync()` to show an error prompt if there are inconsistencies between app config and native project.

# Test Plan

1. expo export + managed workflow app with `android.jsEngine=hermes` in app.json.
    make sure exported assets has hermes bytecode bundle.

2. expo publish + managed workflow app with `android.jsEngine=hermes` in app.json.
    download the asset and make sure it is a hermes bytecode bundle.

### Unit Test

```
packages/dev-server/src/__tests__/HermesBundler-test.ts
  maybeInconsistentEngineAsync - android
     should return false for managed project
     should return false if "enableHermes: true" in app/build.gradle and "jsEngine: 'hermes'" in app.json (1 ms)
     should return true if "enableHermes: false" in app/build.gradle and "jsEngine: 'hermes'" in app.json
     should return false if "expo.jsEngine=hermes" in gradle.properties and "jsEngine: 'hermes'" in app.json (2 ms)
     should return false for default sdk41 bare project
     should return true for default sdk41 bare project but user enabled hermes manually
     should handle the inconsistency between app/build.gradle and gradle.properties
```
2021-06-11 01:34:52 +08:00
Ville Immonen 5e5a49c42a [expo-cli] Use the default scheme to launch managed dev client apps (#3569) 2021-06-10 17:36:16 +03:00
Evan Bacon a17e23281a Patch android status bar to match the color of the splash screen (#3563)
* Patch android status bar to match the color of the splash screen

* Update packages/config-plugins/src/android/StatusBar.ts

* Update StatusBar.ts

* Update StatusBar-test.ts

* Update withAndroidSplashScreen.ts
2021-06-09 20:59:06 -05:00
Evan Bacon 40143eac1b [config plugins] Refactor debug contents on android (#3566)
* Refactor debug contents on android

* Update Package.ts
2021-06-09 20:58:31 -05:00
Evan Bacon 48a5721989 Add support for legacy android icons (#3567) 2021-06-09 20:57:44 -05:00
Evan Bacon 6b80286697 Migrate expo-ads-admob plugin to prebuild-config (#3520)
* Migrate expo-ads-admob plugin to prebuild

* Update withAndroidAdMob-test.ts

* fix lint
2021-06-09 14:12:02 -05:00
Evan Bacon 3d021f60b5 Add prebuild-config to CI (#3564)
* Add prebuild-config to CI

* Update withAndroidNotifications-test.ts
2021-06-09 14:10:38 -05:00
Cedric van PuttenandBrent Vatne 4e3ed93f4c [xdl] Update watchman version check to allow new format (#3553)
* [xdl] Update watchman version check to allow new format

* Update packages/xdl/src/project/Doctor.ts

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

Co-authored-by: Brent Vatne <[email protected]>
2021-06-09 19:30:13 +02:00
Evan Bacon c56b0bd2a8 Remove bare typescript template (#3562) 2021-06-09 10:56:11 -05:00
Ville Immonen 2b03a0771e Add support for Android dev client on managed projects (#3561) 2021-06-09 16:34:31 +03:00
Evan Bacon a02c899798 Update package.json 2021-06-08 12:40:24 -05:00
Ville Immonen b8807bc773 Allow expo start --dev-client in managed projects (#3523) 2021-06-08 15:46:04 +03:00
Evan Bacon f3fe9e38b5 Remove nullthrows (#3546) 2021-06-07 15:06:19 -05:00
Evan Bacon bc725a634d Allow auto plugin adding on install for any version (#3557)
* Allow auto plugin adding on install for any version

* Update modifyConfigAsync.ts
2021-06-07 14:25:25 -05:00