expo-dev-menu 6.0.10 → 6.0.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,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 6.0.11 — 2024-11-22
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Introduced `ReactNativeFeatureFlags` compat to fix React Native 0.77 breaking changes. ([#33077](https://github.com/expo/expo/pull/33077) by [@kudo](https://github.com/kudo))
|
|
18
|
+
|
|
13
19
|
## 6.0.10 — 2024-11-15
|
|
14
20
|
|
|
15
21
|
### 🐛 Bug fixes
|
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 = '6.0.
|
|
4
|
+
version = '6.0.11'
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -20,7 +20,7 @@ android {
|
|
|
20
20
|
namespace "expo.modules.devmenu"
|
|
21
21
|
defaultConfig {
|
|
22
22
|
versionCode 10
|
|
23
|
-
versionName '6.0.
|
|
23
|
+
versionName '6.0.11'
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
buildTypes {
|
|
@@ -14,13 +14,13 @@ import com.facebook.react.ReactActivity
|
|
|
14
14
|
import com.facebook.react.ReactActivityDelegate
|
|
15
15
|
import com.facebook.react.ReactDelegate
|
|
16
16
|
import com.facebook.react.ReactRootView
|
|
17
|
-
import com.facebook.react.config.ReactFeatureFlags
|
|
18
17
|
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
|
|
19
18
|
import com.facebook.react.defaults.DefaultReactActivityDelegate
|
|
20
19
|
import com.facebook.react.interfaces.fabric.ReactSurface
|
|
21
20
|
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
|
22
21
|
import expo.modules.devmenu.helpers.getPrivateDeclaredFieldValue
|
|
23
22
|
import expo.modules.devmenu.helpers.setPrivateDeclaredFieldValue
|
|
23
|
+
import expo.modules.rncompatibility.ReactNativeFeatureFlags
|
|
24
24
|
import java.util.UUID
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -47,9 +47,10 @@ class DevMenuActivity : ReactActivity() {
|
|
|
47
47
|
// and cache the rootView for reuse
|
|
48
48
|
if (!appWasLoaded) {
|
|
49
49
|
super.loadApp(appKey)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
val reactRootView = reactDelegate.reactRootView
|
|
51
|
+
if (!rootViewWasInitialized() && reactRootView != null) {
|
|
52
|
+
rootView = reactRootView
|
|
53
|
+
if (ReactNativeFeatureFlags.enableBridgelessArchitecture) {
|
|
53
54
|
reactSurface = reactDelegate::class.java.getPrivateDeclaredFieldValue(
|
|
54
55
|
"mReactSurface", reactDelegate
|
|
55
56
|
)
|
|
@@ -63,7 +64,7 @@ class DevMenuActivity : ReactActivity() {
|
|
|
63
64
|
.setPrivateDeclaredFieldValue("mFabricEnabled", reactDelegate, fabricEnabled)
|
|
64
65
|
ReactDelegate::class.java
|
|
65
66
|
.setPrivateDeclaredFieldValue("mReactRootView", reactDelegate, rootView)
|
|
66
|
-
if (
|
|
67
|
+
if (ReactNativeFeatureFlags.enableBridgelessArchitecture) {
|
|
67
68
|
ReactDelegate::class.java
|
|
68
69
|
.setPrivateDeclaredFieldValue("mReactSurface", reactDelegate, reactSurface)
|
|
69
70
|
}
|
|
@@ -164,7 +165,7 @@ class DevMenuActivity : ReactActivity() {
|
|
|
164
165
|
private lateinit var reactSurface: ReactSurface
|
|
165
166
|
|
|
166
167
|
private fun rootViewWasInitialized(): Boolean {
|
|
167
|
-
if (
|
|
168
|
+
if (ReactNativeFeatureFlags.enableBridgelessArchitecture) {
|
|
168
169
|
return ::rootView.isInitialized && ::reactSurface.isInitialized
|
|
169
170
|
}
|
|
170
171
|
return ::rootView.isInitialized
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-menu",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.11",
|
|
4
4
|
"description": "Expo/React Native module with the developer menu.",
|
|
5
5
|
"main": "build/DevMenu.js",
|
|
6
6
|
"types": "build/DevMenu.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"expo-dev-menu-interface": "1.9.
|
|
50
|
+
"expo-dev-menu-interface": "1.9.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@apollo/client": "^3.4.10",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"expo": "*"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "6cbc7c671f769d36e4294f25a9445281912e45fd"
|
|
71
71
|
}
|