expo-modules-core 0.11.9 → 0.11.10
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 +6 -0
- package/android/build.gradle +2 -2
- package/ios/Swift/ExpoBridgeModule.swift +6 -18
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.11.10 — 2022-12-21
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Fixed threading crash issue when running with Hermes on iOS. ([#20506](https://github.com/expo/expo/pull/20506) by [@kudo](https://github.com/kudo))
|
|
18
|
+
|
|
13
19
|
## 0.11.9 — 2022-11-09
|
|
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 = '0.11.
|
|
9
|
+
version = '0.11.10'
|
|
10
10
|
|
|
11
11
|
buildscript {
|
|
12
12
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -161,7 +161,7 @@ android {
|
|
|
161
161
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
162
162
|
consumerProguardFiles 'proguard-rules.pro'
|
|
163
163
|
versionCode 1
|
|
164
|
-
versionName "0.11.
|
|
164
|
+
versionName "0.11.10"
|
|
165
165
|
|
|
166
166
|
testInstrumentationRunner "expo.modules.TestRunner"
|
|
167
167
|
|
|
@@ -22,12 +22,6 @@ public final class ExpoBridgeModule: NSObject, RCTBridgeModule {
|
|
|
22
22
|
override init() {
|
|
23
23
|
appContext = AppContext()
|
|
24
24
|
super.init()
|
|
25
|
-
|
|
26
|
-
// Listen to React Native notifications posted just before the JS is executed.
|
|
27
|
-
NotificationCenter.default.addObserver(self,
|
|
28
|
-
selector: #selector(javaScriptWillStartExecutingNotification(_:)),
|
|
29
|
-
name: NSNotification.Name.RCTJavaScriptWillStartExecuting,
|
|
30
|
-
object: nil)
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
deinit {
|
|
@@ -47,6 +41,12 @@ public final class ExpoBridgeModule: NSObject, RCTBridgeModule {
|
|
|
47
41
|
public var bridge: RCTBridge! {
|
|
48
42
|
didSet {
|
|
49
43
|
appContext.reactBridge = bridge
|
|
44
|
+
bridge.dispatchBlock({ [weak self] in
|
|
45
|
+
guard let self = self, let bridge = self.appContext.reactBridge else {
|
|
46
|
+
return
|
|
47
|
+
}
|
|
48
|
+
self.appContext.runtime = EXJavaScriptRuntimeManager.runtime(fromBridge: bridge)
|
|
49
|
+
}, queue: RCTJSThread)
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -64,16 +64,4 @@ public final class ExpoBridgeModule: NSObject, RCTBridgeModule {
|
|
|
64
64
|
appContext.useModulesProvider("ExpoModulesProvider")
|
|
65
65
|
appContext.moduleRegistry.register(moduleType: NativeModulesProxyModule.self)
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
// MARK: - Notifications
|
|
69
|
-
|
|
70
|
-
@objc
|
|
71
|
-
public func javaScriptWillStartExecutingNotification(_ notification: Notification) {
|
|
72
|
-
if (notification.object as? RCTBridge)?.batched == bridge {
|
|
73
|
-
// The JavaScript bundle will start executing in a moment,
|
|
74
|
-
// so the runtime is already initialized and we can get it from the bridge.
|
|
75
|
-
// This should automatically install the ExpoModules host object.
|
|
76
|
-
appContext.runtime = EXJavaScriptRuntimeManager.runtime(fromBridge: bridge)
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
67
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-modules-core",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.10",
|
|
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": "^2.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e566564bf97a8d8d220c4a2ea622ef6caba17df6"
|
|
46
46
|
}
|