expo-updates 0.14.0 → 0.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,20 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.14.3 — 2022-07-25
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Deprecated the unreliable `source-login-scripts.sh` and sourcing the Node.js binary path from `.xcode.env` and `.xcode.env.local`. ([#18330](https://github.com/expo/expo/pull/18330) by [@kudo](https://github.com/kudo))
18
+
19
+ ## 0.14.2 — 2022-07-16
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
23
+ ## 0.14.1 — 2022-07-11
24
+
25
+ _This version does not introduce any user-facing changes._
26
+
13
27
  ## 0.14.0 — 2022-07-07
14
28
 
15
29
  ### 🐛 Bug fixes
@@ -4,7 +4,7 @@ apply plugin: 'kotlin-kapt'
4
4
  apply plugin: 'maven-publish'
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '0.14.0'
7
+ version = '0.14.3'
8
8
 
9
9
  apply from: "../scripts/create-manifest-android.gradle"
10
10
 
@@ -77,7 +77,7 @@ android {
77
77
  minSdkVersion safeExtGet("minSdkVersion", 21)
78
78
  targetSdkVersion safeExtGet("targetSdkVersion", 31)
79
79
  versionCode 31
80
- versionName '0.14.0'
80
+ versionName '0.14.3'
81
81
  consumerProguardFiles("proguard-rules.pro")
82
82
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
83
83
  // uncomment below to export the database schema when making changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-updates",
3
- "version": "0.14.0",
3
+ "version": "0.14.3",
4
4
  "description": "Fetches and manages remotely-hosted assets and updates to your app's JS bundle.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -40,9 +40,9 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@expo/code-signing-certificates": "0.0.2",
43
- "@expo/config": "~6.0.24",
43
+ "@expo/config": "~7.0.0",
44
44
  "@expo/config-plugins": "~5.0.0",
45
- "@expo/metro-config": "~0.3.7",
45
+ "@expo/metro-config": "~0.3.18",
46
46
  "arg": "4.1.0",
47
47
  "expo-eas-client": "~0.3.0",
48
48
  "expo-manifests": "~0.3.0",
@@ -64,5 +64,5 @@
64
64
  "peerDependencies": {
65
65
  "expo": "*"
66
66
  },
67
- "gitHead": "6e131f2da851a47c3a24eb3d6fc971a1a7822086"
67
+ "gitHead": "066000e04629874e1c67f2b3b9a38af805d9831c"
68
68
  }
@@ -13,26 +13,12 @@ elif [[ "$CONFIGURATION" == *Debug* ]]; then
13
13
  fi
14
14
  fi
15
15
 
16
- # ref: https://github.com/facebook/react-native/blob/c974cbff04a8d90ac0f856dbada3fc5a75c75b49/scripts/react-native-xcode.sh#L59-L65
17
16
  EXPO_UPDATES_PACKAGE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
18
17
 
19
- # Suppress environment errors from sourcing the login scripts
20
- set +e
21
- source "$EXPO_UPDATES_PACKAGE_DIR/scripts/source-login-scripts.sh"
22
- set -e
23
-
24
18
  DEST="$CONFIGURATION_BUILD_DIR"
25
19
  RESOURCE_BUNDLE_NAME="EXUpdates.bundle"
26
20
  ENTRY_FILE=${ENTRY_FILE:-index.js}
27
21
  RCT_METRO_PORT=${RCT_METRO_PORT:=8081}
28
- NODE_BINARY=${NODE_BINARY:-node}
29
-
30
- if ! [ -x "$(command -v "$NODE_BINARY")" ]; then
31
- echo 'Error: cannot find the node binary. Try setting the NODE_BINARY variable in the ' \
32
- '"Bundle React Native code and images" Build Phase to the absolute path to your node binary. ' \
33
- 'You can find it by executing "which node" in a terminal window.' >&2
34
- exit 1
35
- fi
36
22
 
37
23
  # For classic main project build phases integration, will be no-op to prevent duplicated app.manifest creation.
38
24
  #
@@ -52,4 +38,4 @@ cd "$PROJECT_ROOT" || exit
52
38
  # We should get the physical path (/var/folders -> /private/var/folders) for metro to resolve correct files
53
39
  PROJECT_ROOT="$(pwd -P)"
54
40
 
55
- "$NODE_BINARY" "${EXPO_UPDATES_PACKAGE_DIR}/scripts/createManifest.js" ios "$PROJECT_ROOT" "$DEST/$RESOURCE_BUNDLE_NAME" "$ENTRY_FILE"
41
+ "${EXPO_UPDATES_PACKAGE_DIR}/scripts/with-node.sh" "${EXPO_UPDATES_PACKAGE_DIR}/scripts/createManifest.js" ios "$PROJECT_ROOT" "$DEST/$RESOURCE_BUNDLE_NAME" "$ENTRY_FILE"
@@ -0,0 +1,44 @@
1
+ #!/bin/bash
2
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ # Copyright 2018-present 650 Industries. All rights reserved.
4
+ #
5
+ # @generated by expo-module-scripts
6
+ #
7
+ # USAGE:
8
+ # ./with-node.sh command
9
+
10
+ CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
11
+
12
+ # Start with a default
13
+ NODE_BINARY=$(command -v node)
14
+ export NODE_BINARY
15
+
16
+ # Override the default with the global environment
17
+ ENV_PATH="$PODS_ROOT/../.xcode.env"
18
+ if [[ -f "$ENV_PATH" ]]; then
19
+ source "$ENV_PATH"
20
+ fi
21
+
22
+ # Override the global with the local environment
23
+ LOCAL_ENV_PATH="${ENV_PATH}.local"
24
+ if [[ -f "$LOCAL_ENV_PATH" ]]; then
25
+ source "$LOCAL_ENV_PATH"
26
+ fi
27
+
28
+ if [[ -n "$NODE_BINARY" && -x "$NODE_BINARY" ]]; then
29
+ echo "Node found at: ${NODE_BINARY}"
30
+ else
31
+ cat >&2 << EOF
32
+ [ERROR] Could not find "node" while running an Xcode build script. You need to specify the path to your Node.js executable by defining an environment variable named NODE_BINARY in your project's .xcode.env or .xcode.env.local file. You can set this up quickly by running:
33
+
34
+ echo "export NODE_BINARY=\$(command -v node)" >> .xcode.env
35
+
36
+ in the ios folder of your project.
37
+ EOF
38
+ exit 1
39
+ fi
40
+
41
+ # Execute argument, if present
42
+ if [[ "$#" -gt 0 ]]; then
43
+ "$NODE_BINARY" $@
44
+ fi
@@ -1,52 +0,0 @@
1
- # shellcheck shell=bash disable=SC1090,SC1091
2
-
3
- # @generated by expo-module-scripts
4
-
5
- # Source login scripts to simulate running in an interactive login shell to
6
- # configure environment variables as if the user had opened a shell. This
7
- # script is intended for Xcode build phase scripts on macOS and does not have
8
- # a shebang so it inherits the current shell.
9
-
10
- current_shell=$(ps -cp "$$" -o comm='' | sed 's/^-//')
11
-
12
- # attempt to source via nvm
13
- if [ -f "$HOME/.nvm/nvm.sh" ]; then
14
- . "$HOME/.nvm/nvm.sh"
15
- fi
16
-
17
- if [[ "$current_shell" == zsh ]]; then
18
- # Zsh's setup script order is:
19
- # /etc/zshenv
20
- # ~/.zshenv
21
- # /etc/zprofile
22
- # ~/.zprofile
23
- # /etc/zshrc
24
- # ~/.zshrc
25
- # /etc/zlogin
26
- # ~/.zlogin
27
- # http://zsh.sourceforge.net/Guide/zshguide02.html
28
-
29
- if [ -f /etc/zshenv ]; then . /etc/zshenv; fi
30
- if [ -f ~/.zshenv ]; then . ~/.zshenv; fi
31
- if [ -f /etc/zprofile ]; then . /etc/zprofile; fi
32
- if [ -f ~/.zprofile ]; then . ~/.zprofile; fi
33
- if [ -f /etc/zshrc ]; then . /etc/zshrc; fi
34
- if [ -f ~/.zshrc ]; then . ~/.zshrc; fi
35
- if [ -f /etc/zlogin ]; then . /etc/zlogin; fi
36
- if [ -f ~/.zlogin ]; then . ~/.zlogin; fi
37
- else
38
- # Bash's setup script order is:
39
- # /etc/profile (if it exists)
40
- # The first of: ~/.bash_profile, ~/.bash_login, and ~/.profile
41
- # https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
42
-
43
- if [ -f /etc/profile ]; then . /etc/profile; fi
44
-
45
- if [ -f ~/.bash_profile ]; then
46
- . ~/.bash_profile
47
- elif [ -f ~/.bash_login ]; then
48
- . ~/.bash_login
49
- elif [ -f ~/.profile ]; then
50
- . ~/.profile
51
- fi
52
- fi