expo-constants 15.4.0 → 15.4.2

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,14 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 15.4.2 — 2023-12-19
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 15.4.1 — 2023-12-13
18
+
19
+ _This version does not introduce any user-facing changes._
20
+
13
21
  ## 15.4.0 — 2023-12-12
14
22
 
15
23
  ### 💡 Others
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '15.4.0'
6
+ version = '15.4.2'
7
7
 
8
8
  apply from: "../scripts/get-app-config-android.gradle"
9
9
 
@@ -96,7 +96,7 @@ android {
96
96
  namespace "expo.modules.constants"
97
97
  defaultConfig {
98
98
  versionCode 33
99
- versionName "15.4.0"
99
+ versionName "15.4.2"
100
100
  }
101
101
  }
102
102
 
@@ -33,7 +33,7 @@ open class ConstantsService(private val context: Context) : InternalModule, Cons
33
33
  enum class ExecutionEnvironment(val string: String) {
34
34
  BARE("bare"),
35
35
  STANDALONE("standalone"),
36
- STORE_CLIENT("storeClient");
36
+ STORE_CLIENT("storeClient")
37
37
  }
38
38
 
39
39
  override fun getExportedInterfaces(): List<Class<*>> = listOf(ConstantsInterface::class.java)
@@ -98,7 +98,7 @@ open class ConstantsService(private val context: Context) : InternalModule, Cons
98
98
  get() {
99
99
  try {
100
100
  context.assets.open(CONFIG_FILE_NAME).use {
101
- stream ->
101
+ stream ->
102
102
  return IOUtils.toString(stream, StandardCharsets.UTF_8)
103
103
  }
104
104
  } catch (e: FileNotFoundException) {
@@ -121,7 +121,10 @@ open class ConstantsService(private val context: Context) : InternalModule, Cons
121
121
  get() = EmulatorUtilities.isRunningOnEmulator()
122
122
 
123
123
  private fun getLongVersionCode(info: PackageInfo) =
124
- if (Build.VERSION.SDK_INT >= 28) info.longVersionCode
125
- else info.versionCode.toLong()
124
+ if (Build.VERSION.SDK_INT >= 28) {
125
+ info.longVersionCode
126
+ } else {
127
+ info.versionCode.toLong()
128
+ }
126
129
  }
127
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-constants",
3
- "version": "15.4.0",
3
+ "version": "15.4.2",
4
4
  "description": "Provides system information that remains constant throughout the lifetime of your app.",
5
5
  "main": "build/Constants.js",
6
6
  "types": "build/Constants.d.ts",
@@ -34,8 +34,7 @@
34
34
  "preset": "expo-module-scripts"
35
35
  },
36
36
  "dependencies": {
37
- "@expo/config": "~8.5.0",
38
- "uuid": "^3.3.2"
37
+ "@expo/config": "~8.5.0"
39
38
  },
40
39
  "devDependencies": {
41
40
  "expo-module-scripts": "^3.0.0"
@@ -43,5 +42,5 @@
43
42
  "peerDependencies": {
44
43
  "expo": "*"
45
44
  },
46
- "gitHead": "6aca7ce098ddc667776a3d7cf612adbb985e264a"
45
+ "gitHead": "43f1b4f8a5a9bca649e4e7ca6e4155482a162431"
47
46
  }
@@ -22,4 +22,14 @@ PROJECT_ROOT=${PROJECT_ROOT:-"$EXPO_CONSTANTS_PACKAGE_DIR/../.."}
22
22
 
23
23
  cd "$PROJECT_ROOT" || exit
24
24
 
25
- "${EXPO_CONSTANTS_PACKAGE_DIR}/scripts/with-node.sh" "${EXPO_CONSTANTS_PACKAGE_DIR}/scripts/getAppConfig.js" "$PROJECT_ROOT" "$DEST/$RESOURCE_BUNDLE_NAME"
25
+ if [ "$BUNDLE_FORMAT" == "shallow" ]; then
26
+ RESOURCE_DEST="$DEST/$RESOURCE_BUNDLE_NAME"
27
+ elif [ "$BUNDLE_FORMAT" == "deep" ]; then
28
+ RESOURCE_DEST="$DEST/$RESOURCE_BUNDLE_NAME/Contents/Resources"
29
+ mkdir -p "$RESOURCE_DEST"
30
+ else
31
+ echo "Unsupported bundle format: $BUNDLE_FORMAT"
32
+ exit 1
33
+ fi
34
+
35
+ "${EXPO_CONSTANTS_PACKAGE_DIR}/scripts/with-node.sh" "${EXPO_CONSTANTS_PACKAGE_DIR}/scripts/getAppConfig.js" "$PROJECT_ROOT" "$RESOURCE_DEST"