4523 Commits
Author SHA1 Message Date
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]
@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-06-11 18:33:29 -07:00
Brent Vatne 32490e6a23 Commit yarn.lock 2021-06-11 18:30:39 -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
Fernando Karchiloff c2fd66bb87 [contributing] Improve for newer developers (#3224) 2021-06-01 18:59:57 -07: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 e013da190c update CHANGELOG 2021-06-01 13:08:01 +02: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]
@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-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 88cc8e3dc1 Update CHANGELOG 2021-05-31 15:57:38 -07: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]
@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-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
Kudo Chien de7089f7ae [dev-server] Add /inspector to for querying or opening js inspector (#3495)
# Why

For dev-menu to launch Hermes inspector.

# How

Through from metro-inspector-proxy (http://localhost:8081/json/list), we could get the url to open inspector. This requires manual steps to open inspector.
In this PR, we will launch chromium to open the inspector automatically.

# Test Plan

### Unit Test

```
  createJsInspectorMiddleware
    should return specific app entity for GET request with given applicationId (5 ms)
    should return 404 for GET request with nonexistent applicationId (1 ms)
    should return 400 for GET request without parameters
    should open browser for PUT request with given applicationId (14 ms)
```
2021-05-29 02:06:27 +08:00
Brent Vatne 8b73a07290 Fix @expo/config-types dependencies 2021-05-26 21:45:26 -07:00
Brent Vatne 26350cc2eb Update CHANGELOG 2021-05-26 12:54:47 -07:00
Brent Vatne 315dc74ad3 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]
 - @expo/[email protected]
2021-05-26 12:52:07 -07:00
Brent Vatne 553739c926 Update yarn.lock 2021-05-26 12:36:40 -07:00
Evan Bacon b1f08d0cb5 Refactor config plugins (#3514)
* migrate default plugins back to config

* migrate icon plugin to config package

* Update withDefaultPlugins.ts

* Migrated notifications back to config

* Migrated splash screen back to config

* Fixed tests

* Created expo/prebuild-config package

* fix imports

* Remove extra files

* Update XML.ts

* Update package.json

* Update package.json
2021-05-26 12:33:09 -05:00
Brent Vatne f9a29ac63b [introspect] Add pipe sanitization (#3517) 2021-05-26 00:08:30 -05:00
Evan Bacon 09d36ff081 Show run commands in help (#3515) 2021-05-25 12:10:26 -07:00
Brent Vatne d2ef507c89 [cli] Only set global git user name on CI 2021-05-25 11:59:07 -07:00