3187 Commits
Author SHA1 Message Date
Brent Vatne dce0e2d23f Publish
- @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2022-05-13 14:44:51 -07:00
evanbacon a50e56b955 Publish [email protected] 2022-05-13 13:37:06 -05:00
Evan Bacon 330910b4cc feat(create-expo-app): fail on invalid template before prompting for the app name (#4372)
* feat(create-expo-app): fail on invalid template before prompting for an app name

* Update Update.ts

* Added improved help prompt
2022-05-13 11:53:12 -05:00
evanbacon 217b9e547f Publish [email protected] 2022-05-12 16:58:31 -05:00
Brent Vatne 4644dcf3fd Revert "[expo-cli] warn for outdated @expo/config-plugins in deps' deps (#4343)"
This reverts commit 55cd5062aa.
2022-05-12 14:22:29 -07:00
Kim Brandwijk 55cd5062aa [expo-cli] warn for outdated @expo/config-plugins in deps' deps (#4343) 2022-05-12 13:38:32 -07:00
Wojciech Kozyra 8e2973525a [package-manager] Prefer yarn over npm if both lockfiles exists (#4369) 2022-05-12 14:47:27 -05:00
Evan Bacon 6fc3ba8e3b feat(prebuild-config): update manifest roundIcon property (#4370) 2022-05-12 14:27:21 -05:00
Evan Bacon 2f32aef339 feat(create-expo-app): add support for the --template arg from expo init (#4367)
* Add support for the `--template` arg from `expo init`

* Allow local file paths

* Update Template.ts
2022-05-12 13:51:25 -05:00
Dominik Sokal 3a263e8724 [expo-cli] set non-zero exit code when expo doctor fails (#4359) 2022-05-12 10:18:26 +02:00
Evan Bacon 7520b65e69 fix: prevent throwing when an upper-level directory has an invalid package.json (#4363) 2022-05-11 23:16:47 -05:00
Kudo Chien fc0c69452b [config-plugins] rename android jni java descriptors from prebuild (#4362)
# Why

react-native 0.68 added jni code in templates for new architecture support. in the jni code, there are some java descriptors mapping to java class names. e.g.:

```c++
  static constexpr auto kJavaDescriptor =
      "Lcom/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;";
```

we should also rename these descriptors. otherwise apps will crash from new architecture mode.

# How

rename descriptors in jni folders

# Test Plan

#### Integration Tests

```sh
$ expo init -t blank sdk45
$ expo prebuild -p android # use package name other than com.sdk45
# set newArchEnabled=true in android/gradle.properties
$ expo run:android
```

also tested on a sdk 44 project to make sure the pr is backward compatible.

#### Unit Test

```
 PASS   @expo/config-plugins  src/android/__tests__/Package-test.ts
  renameJniOnDiskForType
    ✓ refactors a main project (5 ms)
```
2022-05-11 21:34:08 +08:00
evanbacon 5586ed30a6 Update index-test.js 2022-05-09 10:22:38 -07:00
Wojciech Kozyra f1e7278735 [config-plugins] Handle quoted build configuration (#4341) 2022-05-09 11:03:49 +02:00
Wojciech Kozyra 7dea470cd2 [package-manager] explicitly order package managers (#4344) 2022-05-09 10:46:24 +02:00
evanbacon 5d9e19d46a fix tests 2022-05-08 20:05:46 -07:00
Evan Bacon 27d13edb3b fix(create-expo-app): use hidden directory for home cache (#4353) 2022-05-08 20:02:57 -07:00
Brent Vatne 35a99c8607 [config-plugins] Remove warning when permissions config is empty when using blockedPermissions (#4352)
* [config-plugins] Remove warning when permissions config is empty when using blockedPermissions

* Remove dangling import
2022-05-08 15:56:05 -07:00
Federico Ciardi 1f049f4bd2 [expo-cli] Improve Fig autocomplete support (#4331)
* [expo-cli] Improve Fig autocomplete support

* Get correct version
2022-05-05 10:00:55 -07:00
evanbacon d948d7ae71 [email protected] 2022-04-29 16:20:22 -05:00
evanbacon 7216e2a2b8 Publish [email protected] 2022-04-29 16:00:43 -05:00
Evan Bacon 595c402fc3 [create expo app] auto select package manager (#4339)
* Utilize existing process for package manager

* Fixed formatting

* Update index-test.js

* Update NodePackageManagers.ts

* fix config merging

* Update index-test.js
2022-04-29 15:59:41 -05:00
evanbacon 7aebd2f856 Update index.ts 2022-04-29 11:43:45 -05:00
Evan Bacon 854f8c75c3 feat: create create-expo-app package (#4338)
* feat: create create-expo-app package

* fixup tests

* Update yarn.lock

* fix deps

* update packages

* Update yarn.lock

* Update packages/create-expo-app/src/dir.ts

* Lock `tar` version, update gitignore

* Upgrade tar

* Update package.json
2022-04-29 11:40:49 -05:00
Brent Vatne aefe9081bd Update CHANGELOG and commit schema cache 2022-04-27 16:33:27 -07:00
Brent Vatne e517d22aaf Publish
- @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2022-04-27 16:29:28 -07:00
Brent Vatne dd904451fd [prebuild-config] Bump expo-modules-autolinking version 2022-04-27 16:27:50 -07:00
Cedric van Putten 41d4e1be69 [RFC][package-manager] Add support for pnpm (#4311)
* [package-manager] Add support for pnpm

* [expo-cli] Add support for pnpm in expo install

* [expo-cli] Add support for pnpm in expo upgrade

* [package-manager] Add test for pnpm instantiation

* [expo-cli] Add support for pnpm in expo init

* [expo-cli] Add support for pnpm in expo eject and prebuild

* [expo-cli] Disable pnpm flag from expo init

* [package-manager] Fix missing add when adding modules with flags

* [package-manager] Reuse npm transformer when error output is hidden

* [package-manager] Drop --shamefully-hoist in favor of node-linker=hoisted

* [expo-cli] Revert pnpm changes in expo-cli

* [package-manager] Split pnpm package manager out of the node package managers

* [package-manager] Revert isUsingYarn method

* [package-manager] Add tests for pnpm package manager and stream transform

* [expo-cli] Revert last remaining changes

* [package-manager] Add inline eslint exceptions for ansi warning characters

* [package-manager] Remove tests for reverted isUsingYarn method
2022-04-27 17:45:30 -05:00
Brent Vatne 7bbabeec42 Publish
- @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2022-04-27 11:34:35 -07:00
Brent Vatne 8ff61be361 [config-types] Bump version 2022-04-27 11:34:13 -07:00
Brent Vatne 1caee4ae85 Update CHANGELOG and commit schema cache 2022-04-27 11:08:45 -07:00
Brent Vatne c4258cabdb Publish
- @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2022-04-27 10:57:06 -07:00
Kudo Chien 2b8093c066 [install-expo-modules] Add react-native 0.68 and expo sdk 45 support (#4333)
# Why

close ENG-4618

# How

- install expo sdk based on target project's react-native version
- will try to install `expo@^45.0.0` first and fallback to install `expo@>=45.0.0-0 <46.0.0` for prerelease version
- add react-native 0.68 template support

# Test Plan

#### Unit Test

```
 PASS   install-expo-modules  src/utils/__tests__/expoVersionMappings-test.ts
  getDefaultSdkVersion
    ✓ should resolve as sdk 45 from react-native 0.68 project (16 ms)
    ✓ should resolve as sdk 45 from react-native 0.65 project (1 ms)
    ✓ should resolve as sdk 44 from react-native 0.64 project

 PASS   install-expo-modules  src/plugins/android/__tests__/withAndroidModulesMainApplication-test.ts
  setModulesMainApplication
    ✓ should able to update from react-native@>=0.68.0 template (2 ms)

 PASS   install-expo-modules  src/plugins/android/__tests__/withAndroidModulesMainActivity-test.ts
  setModulesMainActivity
    ✓ should add ReactActivityDelegateWrapper for react-native@>=0.68.0 - java (1 ms)
    ✓ should add ReactActivityDelegateWrapper for react-native@>=0.68.0 - kotlin (1 ms)
```

#### Integration Test

```sh
$ npx react-native init RN068 --version 0.68
$ npx install-expo-modules

$ expo run:android

$ expo run:ios

$ export ORG_GRADLE_PROJECT_newArchEnabled=true ; expo run:android

$ cd ios; rm -rf Pods build; RCT_NEW_ARCH_ENABLED=1 pod install
$ expo run:ios
```
2022-04-27 23:59:36 +08:00
Evan Bacon 3d28d2e1bf [config plugins] support android.blockedPermissions (#4323)
* Added support for the new `android.blockedPermissions` array

* Added tests for blocked permissions

* Updated tests

* Update ExpoConfig.ts
2022-04-26 15:17:56 -05:00
Brent Vatne 3b877aba82 Publish
- @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - @expo/[email protected]
 - [email protected]
 - [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]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2022-04-25 09:39:36 -07:00
Evan Bacon 448c86353d feat(config-plugins): add initial app clip support (#4327) 2022-04-25 11:32:52 -05:00
Kim Brandwijk 080d32bacd [expo-env-info] convert expo-env-info from CJS to ESM (#4320) 2022-04-25 13:49:41 +02:00
Wojciech Kozyra c5fb53c32e [config-plugins] resolve target specific entitlements files (#4313)
* [config-plugins] resolve target specific entitlement files

* fix tests

* review feedback
2022-04-25 12:40:52 +02:00
Kim Brandwijk 208354c051 [expo-env-info] prepare repo to convert expo-env-info to esm (#4312) 2022-04-23 02:01:30 +02:00
Kudo ChienandEvan Bacon 2706b9daee [config-plugins] Introduce rule-based build properties config-plugin (#4270)
# Why

to support more customized native build properties, like android `compileSdkVersion` and `targetSdkVersion`. we need an extensible way for what we did in the `jsEngine` property (reading a value from source config and merge it into properties file).
close ENG-4021

# How

refactor original dedicated `JsEngine` plugin to generic `BuildProperties` plugin.  it is rule based and easy for extension.
the source config can be either from expo config or from other custom config passing through config-plugin props.

Co-authored-by: Evan Bacon <[email protected]>
2022-04-22 01:28:03 +08:00
Evan Bacon 6e77669f5e feat(dev-server): support new API for Expo SDK 45 (#4306)
* Added support for the new API interface of @react-native-community/cli-server-api

* update types
2022-04-20 15:58:31 -04:00
Will Schurman ae23775587 Update CHANGELOG and commit schemas files [skip ci] 2022-04-19 14:24:46 -07:00
Will Schurman a61ddb4dcd Publish
- @expo/[email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2022-04-19 14:19:30 -07:00
Will Schurman 285efe2734 [schemer] Update user-facing error message for not fields (#4308) 2022-04-18 10:56:32 -07:00
Evan Bacon 3c1a3b4132 chore(xdl): add new metro logging events (#4304) 2022-04-14 10:18:33 -07:00
Evan Bacon 5971e2f566 Bump @expo/[email protected] (#4300) 2022-04-13 15:07:50 -05:00
Brent Vatne f163652768 Publish
- @expo/[email protected]
 - @expo/[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]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
 - @expo/[email protected]
 - [email protected]
2022-04-11 13:14:18 -07:00
Wojciech Kozyra d28aeb0a28 match xcodeproj in ios directory only (#4288) 2022-04-11 10:36:48 -07:00
Mark Lawlor f9a45b6e2c [next-adapter] revert webpack5 detection (#4254) 2022-04-11 10:21:16 -07:00
Evan Bacon 1e8a075162 chore(config plugins): drop fs-extra (#4290) 2022-04-07 19:52:28 -05:00