expo-dev-menu-interface 1.9.0 → 1.9.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/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
3
|
group = 'host.exp.exponent'
|
|
4
|
-
version = '1.9.
|
|
4
|
+
version = '1.9.2'
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -13,7 +13,7 @@ android {
|
|
|
13
13
|
namespace "expo.interfaces.devmenu"
|
|
14
14
|
defaultConfig {
|
|
15
15
|
versionCode 6
|
|
16
|
-
versionName '1.9.
|
|
16
|
+
versionName '1.9.2'
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@file:Suppress("DEPRECATION")
|
|
2
|
-
|
|
3
1
|
package expo.interfaces.devmenu
|
|
4
2
|
|
|
5
3
|
import com.facebook.react.JSEngineResolutionAlgorithm
|
|
@@ -8,35 +6,27 @@ import com.facebook.react.ReactInstanceEventListener
|
|
|
8
6
|
import com.facebook.react.ReactNativeHost
|
|
9
7
|
import com.facebook.react.bridge.ReactContext
|
|
10
8
|
import com.facebook.react.common.LifecycleState
|
|
11
|
-
import com.facebook.react.config.ReactFeatureFlags
|
|
12
9
|
import com.facebook.react.devsupport.interfaces.DevSupportManager
|
|
13
10
|
import com.facebook.react.runtime.ReactHostImpl
|
|
11
|
+
import expo.modules.rncompatibility.ReactNativeFeatureFlags
|
|
14
12
|
import java.lang.reflect.Field
|
|
15
13
|
|
|
16
14
|
/**
|
|
17
15
|
* An abstract wrapper to host [ReactNativeHost] and [ReactHost],
|
|
18
16
|
* so that call-sites do not have to handle the difference between legacy bridge and bridgeless mode.
|
|
19
17
|
*/
|
|
20
|
-
class ReactHostWrapper(reactNativeHost: ReactNativeHost,
|
|
18
|
+
class ReactHostWrapper(reactNativeHost: ReactNativeHost, reactHostProvider: () -> ReactHost?) {
|
|
21
19
|
lateinit var reactNativeHost: ReactNativeHost
|
|
22
20
|
lateinit var reactHost: ReactHost
|
|
23
21
|
|
|
24
22
|
init {
|
|
25
|
-
if (
|
|
26
|
-
this.reactHost = requireNotNull(
|
|
23
|
+
if (ReactNativeFeatureFlags.enableBridgelessArchitecture) {
|
|
24
|
+
this.reactHost = requireNotNull(reactHostProvider())
|
|
27
25
|
} else {
|
|
28
26
|
this.reactNativeHost = reactNativeHost
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
override fun hashCode(): Int {
|
|
33
|
-
return if (isBridgelessMode) {
|
|
34
|
-
reactHost.hashCode()
|
|
35
|
-
} else {
|
|
36
|
-
reactNativeHost.hashCode()
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
30
|
val currentReactContext: ReactContext?
|
|
41
31
|
get() {
|
|
42
32
|
return if (isBridgelessMode) {
|
|
@@ -72,7 +62,7 @@ class ReactHostWrapper(reactNativeHost: ReactNativeHost, reactHost: ReactHost?)
|
|
|
72
62
|
}
|
|
73
63
|
}
|
|
74
64
|
|
|
75
|
-
val isBridgelessMode =
|
|
65
|
+
val isBridgelessMode = ReactNativeFeatureFlags.enableBridgelessArchitecture
|
|
76
66
|
|
|
77
67
|
val jsExecutorName: String
|
|
78
68
|
get() {
|
|
@@ -123,4 +113,24 @@ class ReactHostWrapper(reactNativeHost: ReactNativeHost, reactHost: ReactHost?)
|
|
|
123
113
|
reactNativeHost.clear()
|
|
124
114
|
}
|
|
125
115
|
}
|
|
116
|
+
|
|
117
|
+
override fun hashCode(): Int {
|
|
118
|
+
return if (isBridgelessMode) {
|
|
119
|
+
reactHost.hashCode()
|
|
120
|
+
} else {
|
|
121
|
+
reactNativeHost.hashCode()
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
override fun equals(other: Any?): Boolean {
|
|
126
|
+
if (this === other) return true
|
|
127
|
+
if (javaClass != other?.javaClass) return false
|
|
128
|
+
|
|
129
|
+
other as ReactHostWrapper
|
|
130
|
+
|
|
131
|
+
if (reactNativeHost != other.reactNativeHost) return false
|
|
132
|
+
if (reactHost != other.reactHost) return false
|
|
133
|
+
|
|
134
|
+
return true
|
|
135
|
+
}
|
|
126
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-menu-interface",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "Interface for expo-dev-menu",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"expo": "*"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "6cbc7c671f769d36e4294f25a9445281912e45fd"
|
|
29
29
|
}
|