expo-dev-menu 58.0.11 → 58.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 +13 -0
- package/android/build.gradle +2 -2
- package/ios/FAB/DevMenuFABWindow.swift +17 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 58.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies. ([#53136](https://github.com/expo/expo/pull/53136))
|
|
8
|
+
- expo-dev-menu-interface@58.0.2
|
|
9
|
+
|
|
10
|
+
## 58.0.12
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [iOS] Fix the floating tools button leaving the app stuck in landscape after returning to a portrait-only screen. ([#52278](https://github.com/expo/expo/pull/52278) by [@github-actions](https://github.com/apps/github-actions))
|
|
15
|
+
|
|
3
16
|
## 58.0.11
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/android/build.gradle
CHANGED
|
@@ -12,7 +12,7 @@ apply plugin: 'expo-module-gradle-plugin'
|
|
|
12
12
|
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
|
13
13
|
|
|
14
14
|
group = 'host.exp.exponent'
|
|
15
|
-
version = '58.0.
|
|
15
|
+
version = '58.0.13'
|
|
16
16
|
|
|
17
17
|
def hasDevLauncher = findProject(":expo-dev-launcher") != null
|
|
18
18
|
def configureInRelease = findProperty("expo.devmenu.configureInRelease") == "true"
|
|
@@ -29,7 +29,7 @@ android {
|
|
|
29
29
|
|
|
30
30
|
defaultConfig {
|
|
31
31
|
versionCode 10
|
|
32
|
-
versionName '58.0.
|
|
32
|
+
versionName '58.0.13'
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
buildTypes {
|
|
@@ -13,11 +13,13 @@ class DevMenuFABWindow: UIWindow {
|
|
|
13
13
|
var fabFrame: CGRect = .zero
|
|
14
14
|
private var currentAnimator: UIViewPropertyAnimator?
|
|
15
15
|
private var targetVisibility: Bool?
|
|
16
|
+
private var appWindowFrameObservation: NSKeyValueObservation?
|
|
16
17
|
|
|
17
18
|
init(manager: DevMenuManager, windowScene: UIWindowScene) {
|
|
18
19
|
self.manager = manager
|
|
19
20
|
super.init(windowScene: windowScene)
|
|
20
21
|
setupWindow()
|
|
22
|
+
observeAppWindowRotation(in: windowScene)
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
@available(*, unavailable)
|
|
@@ -46,6 +48,21 @@ class DevMenuFABWindow: UIWindow {
|
|
|
46
48
|
rootViewController = hostingController
|
|
47
49
|
}
|
|
48
50
|
|
|
51
|
+
// react-native-screens rotates only the app window, and UIKit does not ask this overlay for its orientations again.
|
|
52
|
+
// The scene would then report the overlay's old orientation, and react-native-screens would skip the next rotation.
|
|
53
|
+
private func observeAppWindowRotation(in windowScene: UIWindowScene) {
|
|
54
|
+
guard let appWindow = windowScene.windows.first(where: { $0.windowLevel == .normal }) else {
|
|
55
|
+
return
|
|
56
|
+
}
|
|
57
|
+
appWindowFrameObservation = appWindow.observe(\.frame, options: [.old, .new]) { [weak self] _, change in
|
|
58
|
+
guard let old = change.oldValue, let new = change.newValue,
|
|
59
|
+
(old.width > old.height) != (new.width > new.height) else {
|
|
60
|
+
return
|
|
61
|
+
}
|
|
62
|
+
self?.hostingController?.setNeedsUpdateOfSupportedInterfaceOrientations()
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
49
66
|
private var edgeTranslation: CGAffineTransform {
|
|
50
67
|
let availableWidth = SceneGeometry.bounds(for: self).width
|
|
51
68
|
let isOnRight = fabFrame == .zero || fabFrame.midX > (availableWidth / 2)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-menu",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.13",
|
|
4
4
|
"description": "Expo/React Native module with the developer menu.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dev",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"main": "build/DevMenu.js",
|
|
25
25
|
"types": "build/DevMenu.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"expo-dev-menu-interface": "~58.0.
|
|
27
|
+
"expo-dev-menu-interface": "~58.0.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@babel/preset-typescript": "^7.7.4",
|
|
31
|
-
"@expo/internal-scripts": "58.0.
|
|
31
|
+
"@expo/internal-scripts": "58.0.6",
|
|
32
32
|
"@testing-library/react-native": "^14.0.1",
|
|
33
33
|
"@types/jest": "^30.0.0",
|
|
34
34
|
"@types/node": "^22.14.0",
|
|
35
|
-
"babel-preset-expo": "58.0.
|
|
35
|
+
"babel-preset-expo": "58.0.25",
|
|
36
36
|
"react": "19.3.0",
|
|
37
|
-
"react-native": "0.88.
|
|
37
|
+
"react-native": "0.88.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"expo": "*",
|