expo-modules-core 1.5.12 → 1.5.13
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,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 1.5.13 — 2024-01-10
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Fixed random `NullPointerExceptions` when calling `Updates.reloadAsync` on Android. ([#24442](https://github.com/expo/expo/pull/24442) by [@lukmccall](https://github.com/lukmccall))
|
|
18
|
+
|
|
13
19
|
## 1.5.12 — 2023-11-17
|
|
14
20
|
|
|
15
21
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -6,7 +6,7 @@ apply plugin: 'maven-publish'
|
|
|
6
6
|
apply plugin: "de.undercouch.download"
|
|
7
7
|
|
|
8
8
|
group = 'host.exp.exponent'
|
|
9
|
-
version = '1.5.
|
|
9
|
+
version = '1.5.13'
|
|
10
10
|
|
|
11
11
|
buildscript {
|
|
12
12
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -160,7 +160,7 @@ android {
|
|
|
160
160
|
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
161
161
|
consumerProguardFiles 'proguard-rules.pro'
|
|
162
162
|
versionCode 1
|
|
163
|
-
versionName "1.5.
|
|
163
|
+
versionName "1.5.13"
|
|
164
164
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
|
|
165
165
|
|
|
166
166
|
testInstrumentationRunner "expo.modules.TestRunner"
|
|
@@ -5,24 +5,36 @@ import com.facebook.react.bridge.WritableNativeArray
|
|
|
5
5
|
import com.facebook.react.bridge.WritableNativeMap
|
|
6
6
|
import expo.modules.core.interfaces.DoNotStrip
|
|
7
7
|
import expo.modules.kotlin.exception.UnexpectedException
|
|
8
|
+
import expo.modules.kotlin.logger
|
|
8
9
|
|
|
9
10
|
@Suppress("KotlinJniMissingFunction")
|
|
10
11
|
@DoNotStrip
|
|
11
12
|
class JavaCallback @DoNotStrip internal constructor(@DoNotStrip private val mHybridData: HybridData) : Destructible {
|
|
12
13
|
operator fun invoke(result: Any?) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
try {
|
|
15
|
+
|
|
16
|
+
if (result == null) {
|
|
17
|
+
invoke()
|
|
18
|
+
return
|
|
19
|
+
}
|
|
20
|
+
when (result) {
|
|
21
|
+
is Int -> invoke(result)
|
|
22
|
+
is Boolean -> invoke(result)
|
|
23
|
+
is Double -> invoke(result)
|
|
24
|
+
is Float -> invoke(result)
|
|
25
|
+
is String -> invoke(result)
|
|
26
|
+
is WritableNativeArray -> invoke(result)
|
|
27
|
+
is WritableNativeMap -> invoke(result)
|
|
28
|
+
else -> throw UnexpectedException("Unknown type: ${result.javaClass}")
|
|
29
|
+
}
|
|
30
|
+
} catch (e: Throwable) {
|
|
31
|
+
if (!mHybridData.isValid) {
|
|
32
|
+
// We know that this particular JavaCallback was invalidated, so it shouldn't be invoked.
|
|
33
|
+
// To prevent crashes, we decided to suppress the error here.
|
|
34
|
+
logger.error("Invalidated JavaCallback was invoked", e)
|
|
35
|
+
return
|
|
36
|
+
}
|
|
37
|
+
throw e
|
|
26
38
|
}
|
|
27
39
|
}
|
|
28
40
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-modules-core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.13",
|
|
4
4
|
"description": "The core of Expo Modules architecture",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@testing-library/react-hooks": "^7.0.1",
|
|
43
43
|
"expo-module-scripts": "^3.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "25af32e83a26dc8027223b61bf7459ba93310ba3"
|
|
46
46
|
}
|