expo-dev-menu 5.0.12 → 5.0.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 +6 -0
- package/android/build.gradle +2 -2
- package/ios/DevClientRootViewFactory.mm +11 -0
- package/ios/DevMenuAppInstance.swift +0 -6
- package/ios/DevMenuRCTBridge.h +6 -0
- package/ios/Modules/DevMenuExtensions.swift +1 -0
- package/ios/Tests/DevMenuAppInstanceTest.swift +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 5.0.13 — 2024-05-08
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [iOS] Fixed DevMenu getting unresponsive after reloading bundle. ([#28664](https://github.com/expo/expo/pull/28664) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
18
|
+
|
|
13
19
|
## 5.0.12 — 2024-05-04
|
|
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 = '5.0.
|
|
4
|
+
version = '5.0.13'
|
|
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 '5.0.
|
|
23
|
+
versionName '5.0.13'
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
buildTypes {
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
#import "DevClientRootViewFactory.h"
|
|
4
4
|
#import <EXDevMenu/DevMenuRCTBridge.h>
|
|
5
|
+
#import <EXDevMenu/DevMenuLoadingView.h>
|
|
6
|
+
#import <EXDevMenu/DevMenuRCTDevSettings.h>
|
|
5
7
|
|
|
6
8
|
#if __has_include(<React-RCTAppDelegate/RCTAppDelegate.h>)
|
|
7
9
|
#import <React-RCTAppDelegate/RCTAppDelegate.h>
|
|
@@ -34,6 +36,15 @@
|
|
|
34
36
|
self.bridge = [[DevMenuRCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
|
|
35
37
|
}
|
|
36
38
|
|
|
39
|
+
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
|
|
40
|
+
{
|
|
41
|
+
NSMutableArray<id<RCTBridgeModule>> *modules = [NSMutableArray new];
|
|
42
|
+
[modules addObject:[[DevMenuLoadingView alloc] init]];
|
|
43
|
+
[modules addObject:[[DevMenuRCTDevSettings alloc] init]];
|
|
44
|
+
|
|
45
|
+
return modules;
|
|
46
|
+
}
|
|
47
|
+
|
|
37
48
|
#pragma mark - RCTCxxBridgeDelegate
|
|
38
49
|
- (std::unique_ptr<facebook::react::JSExecutorFactory>)jsExecutorFactoryForBridge:(RCTBridge *)bridge
|
|
39
50
|
{
|
|
@@ -45,12 +45,6 @@ class DevMenuAppInstance: DevMenuRCTAppDelegate {
|
|
|
45
45
|
return jsSourceUrl()
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
override func extraModules(for bridge: RCTBridge) -> [RCTBridgeModule] {
|
|
49
|
-
var modules: [RCTBridgeModule] = [DevMenuLoadingView.init()]
|
|
50
|
-
modules.append(DevMenuRCTDevSettings.init())
|
|
51
|
-
return modules
|
|
52
|
-
}
|
|
53
|
-
|
|
54
48
|
override func bridge(_ bridge: RCTBridge, didNotFindModule moduleName: String) -> Bool {
|
|
55
49
|
return moduleName == "DevMenu"
|
|
56
50
|
}
|
package/ios/DevMenuRCTBridge.h
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
NS_ASSUME_NONNULL_BEGIN
|
|
8
8
|
|
|
9
|
+
@interface RCTRootViewFactory ()
|
|
10
|
+
|
|
11
|
+
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge;
|
|
12
|
+
|
|
13
|
+
@end
|
|
14
|
+
|
|
9
15
|
@interface DevMenuRCTCxxBridge : RCTCxxBridge
|
|
10
16
|
|
|
11
17
|
- (NSArray<Class> *)filterModuleList:(NSArray<Class> *)modules;
|
|
@@ -78,6 +78,7 @@ open class DevMenuExtensions: NSObject, DevMenuExtensionProtocol {
|
|
|
78
78
|
reload.label = { "Reload" }
|
|
79
79
|
reload.glyphName = { "reload" }
|
|
80
80
|
reload.importance = DevMenuScreenItem.ImportanceHighest
|
|
81
|
+
reload.registerKeyCommand(input: "r", modifiers: []) // "r" without modifiers
|
|
81
82
|
return reload
|
|
82
83
|
}
|
|
83
84
|
|
|
@@ -51,7 +51,7 @@ class DevMenuAppInstanceTest: QuickSpec {
|
|
|
51
51
|
bridge: mockedBridge
|
|
52
52
|
)
|
|
53
53
|
|
|
54
|
-
let extraModules = appInstance.extraModules(for: mockedBridge)
|
|
54
|
+
let extraModules = appInstance.rootViewFactory.extraModules(for: mockedBridge)
|
|
55
55
|
|
|
56
56
|
expect(extraModules.first { type(of: $0).moduleName() == "DevLoadingView" }).toNot(beNil())
|
|
57
57
|
expect(extraModules.first { type(of: $0).moduleName() == "DevSettings" }).toNot(beNil())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-menu",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.13",
|
|
4
4
|
"description": "Expo/React Native module with the developer menu.",
|
|
5
5
|
"main": "build/DevMenu.js",
|
|
6
6
|
"types": "build/DevMenu.d.ts",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"expo": "*"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "2d46c18795300bad8ac2ad9491c3c0541a1c67e9"
|
|
74
74
|
}
|