2686 Commits
Author SHA1 Message Date
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
Evan Bacon 319fd7be67 Added expo-cellular to the list of default plugins (#3550) 2021-06-07 13:10:01 -05:00
Evan Bacon 5f45b7fe0c Update openDevTools.ts 2021-06-07 11:50:16 -05:00
Evan Bacon 13738d241b Removed default push notifications entitlement (#3497) 2021-06-03 15:22:13 -05:00
Evan Bacon bf83ba9c6b Update naming to reflect best practices (#3544)
* Update naming to reflect best practices

* Update setupWarnings.ts
2021-06-03 15:20:21 -05:00
Evan Bacon 174e20848f fix #3473 (#3545) 2021-06-03 15:20:11 -05:00
Jon Samp 43a6162edd [expo-cli] Add /projects to website build url (#3542) 2021-06-03 13:53:50 -04:00
Ville Immonen 3a0ef962a2 Fix a typo in Manifest.ts (#3541) 2021-06-03 13:33:49 +03:00
Evan Bacon 573de6b891 [config plugins] add styles and colors mods (#3539)
* Added colors and styles mods

* Update NavigationBar.ts

* Update PrimaryColor.ts

* Update RootViewBackgroundColor.ts

* Update StatusBar.ts

* Update NavigationBar-test.ts

* Update PrimaryColor-test.ts

* Update RootViewBackgroundColor-test.ts

* Update StatusBar-test.ts

* Update StatusBar-test.ts

* Updated Notifications plugins

* Updated withAndroidIcons

* Cleaned up tests

* Clean up prebuild-config colors plugins

* Added new colors shorthand

* Added new styles shorthand

* Added new testing system for PrimaryColor

* Apply new testing to RootViewBackgroundColor

* Clean up testing interface
2021-06-02 17:42:54 -05:00
Evan Bacon bf8cec7873 Remove unused transformer (#3535) 2021-06-02 11:47:00 -05:00
Evan Bacon 2cc921f3a1 Update ExpoConfig.ts 2021-06-02 11:44:33 -05:00
Kudo Chien 534e3b1c46 [config-plugins] Support android.jsEngine in app.json (#3530)
# Why

to support hermes for managed workflow
closes [ENG-1222](https://linear.app/expo/issue/ENG-1222)

# How

add config-plugins and prebuild-configs to read `android.jsEngine` from app.json and update `expo.jsEngine` in `gradle.properties`

# Test Plan

### Unit Test

```
packages/config-plugins/src/android/__tests__/JsEngine-test.ts
  jsEngine
    returns default engine if no engine is provided (2 ms)
    return the engine if provided
    set the property if no property is existed (2 ms)
    overwrite the property if an old property is existed
```
2021-06-02 09:36:06 +08:00
Evan Bacon 9aec0a4714 Bump expo/xcpretty (#3538) 2021-06-01 18:52:24 -05:00
Evan Bacon 6863097d49 Silence duplicate file warnings (#3537) 2021-06-01 15:21:33 -05:00
Brent Vatne 58a4519221 [xdl] Prepend manifest handler (#3532) 2021-06-01 10:25:08 -07:00
Dominik Sokal 6cd679038b 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-01 13:02:23 +02:00
Dominik Sokal 1e5eb29349 [config-plugins] fix finding first native target (#3533) 2021-06-01 12:59:30 +02:00
Brent Vatne d5cc32c7d0 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-05-31 15:50:35 -07:00
Evan Bacon 70c1867620 Fix object application in iOS base mods (#3531)
* Fix object application in iOS base mods

* Added improved tests
2021-05-31 15:45:56 -07:00
Kudo Chien 5c2dfafb10 [expo-cli][dev-server] Export hbc as bundle output if js runtime is hermes (#3522)
# Why

If an app is running with hermes runtime, `expo export` for self hosting update should also generate hermes bytecode instead of plain javascript.

# How

Assuming project should setup with pre-defined shape which set the runtime in gradle.properties like expo/expo#13052.
If exporting project is running with hermes, right after calling metro to build js bundles, we should further call `hermesc` to compile hbc.
The sourcemap also needs to re-compose by metro-source-map.
The overall flow is reference from [react-native's react.gradle](https://github.com/facebook/react-native/blob/0.63-stable/react.gradle).

# Test Plan

### Unit Test

```
HermesBundler-test.ts
  parseGradleProperties
    should return array of key-value tuple (2 ms)
    should keep "=" in value if there are multiple "="
    should exclude comment (1 ms)
  getHermesBytecodeBundleVersionAsync
    should return hermes bytecode version 74 for plain.74.hbc (13 ms)
    should throw exception for plain javascript file (5 ms)
    should throw exception for nonexistent file
  isHermesBytecodeBundleAsync
    should return true for hermes bytecode bundle file
    should return false for plain javascript file
    should throw exception for nonexistent file
```

### E2E Test

```
export-test.ts
    should export hbc bundle if running with hermes (31292 ms)
```
2021-05-31 22:00:45 +08:00
Kudo Chien a394d06a9f [expo-cli] Update e2e snapshot
broken by e2e tests `yarn install` without lockfile.
will address this problem later.
2021-05-29 03:30:11 +08:00
kgc00 a897ec78bc [xdl][cli] Adds general expo cli events to unified analytics (#3519)
- identify and track calls pulled to cli entrypoint 
- exp.ts runAsync is now an async function
2021-05-28 12:21:26 -07:00