expo-updates 0.18.10 → 0.18.11

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,7 +10,13 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
- ## 0.18.10 — 2023-07-12
13
+ ## 0.18.11 — 2023-07-23
14
+
15
+ ### 💡 Others
16
+
17
+ - [Android] EX_UPDATES_ANDROID_DELAY_LOAD_APP settable by env. ([#23479](https://github.com/expo/expo/pull/23479) by [@douglowder](https://github.com/douglowder))
18
+
19
+ ## 0.18.10 - 2023-07-12
14
20
 
15
21
  ### 🐛 Bug fixes
16
22
 
@@ -4,9 +4,34 @@ apply plugin: 'kotlin-kapt'
4
4
  apply plugin: 'maven-publish'
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '0.18.10'
7
+ version = '0.18.11'
8
+
9
+ // Utility method to derive boolean values from the environment or from Java properties,
10
+ // and return them as strings to be used in BuildConfig fields
11
+ def getBoolStringFromPropOrEnv(String name, Boolean defaultValue) {
12
+ def env_value = System.getenv(name)
13
+ def prop_value = findProperty(name)
14
+ def value = defaultValue.toString()
15
+ // If present, property value in gradle.properties overrides default
16
+ if (prop_value != null) {
17
+ value = boolish(prop_value).toString()
18
+ println("expo-updates: Value of ${name} was overridden by property, new value = ${value}")
19
+ }
20
+ // If present, env value overrides default and gradle.properties
21
+ if (env_value != null) {
22
+ value = boolish(env_value).toString()
23
+ println("expo-updates: Value of ${name} was overridden by environment, new value = ${value}")
24
+ }
25
+ return value
26
+ }
27
+
28
+ // If true, app will use bundled manifest and updates will be enabled, even for
29
+ // debug builds. (default false)
30
+ def exUpdatesNativeDebug = getBoolStringFromPropOrEnv("EX_UPDATES_NATIVE_DEBUG", false)
8
31
 
9
- def ex_updates_native_debug = System.getenv("EX_UPDATES_NATIVE_DEBUG") == "1" ? "true" : "false"
32
+ // If true, code will run that delays app loading until updates is initialized, to prevent ANR issues.
33
+ // (default true)
34
+ def exUpdatesAndroidDelayLoadApp = getBoolStringFromPropOrEnv("EX_UPDATES_ANDROID_DELAY_LOAD_APP", true)
10
35
 
11
36
  buildscript {
12
37
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -70,12 +95,12 @@ android {
70
95
  minSdkVersion safeExtGet("minSdkVersion", 21)
71
96
  targetSdkVersion safeExtGet("targetSdkVersion", 33)
72
97
  versionCode 31
73
- versionName '0.18.10'
98
+ versionName '0.18.11'
74
99
  consumerProguardFiles("proguard-rules.pro")
75
100
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
76
101
 
77
- buildConfigField("boolean", "EX_UPDATES_NATIVE_DEBUG", ex_updates_native_debug)
78
- buildConfigField("boolean", "EX_UPDATES_ANDROID_DELAY_LOAD_APP", boolish(findProperty("EX_UPDATES_ANDROID_DELAY_LOAD_APP") ?: true).toString())
102
+ buildConfigField("boolean", "EX_UPDATES_NATIVE_DEBUG", exUpdatesNativeDebug)
103
+ buildConfigField("boolean", "EX_UPDATES_ANDROID_DELAY_LOAD_APP", exUpdatesAndroidDelayLoadApp)
79
104
 
80
105
  // uncomment below to export the database schema when making changes
81
106
  /* javaCompileOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-updates",
3
- "version": "0.18.10",
3
+ "version": "0.18.11",
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",
@@ -64,5 +64,5 @@
64
64
  "peerDependencies": {
65
65
  "expo": "*"
66
66
  },
67
- "gitHead": "8fdc53c90c52242a80ea511ee3073d9ab950bc68"
67
+ "gitHead": "c0d646e9295094bca877513e500d3c9f2e990c42"
68
68
  }