expo-dev-menu 2.0.0 → 2.0.1
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 +7 -0
- package/android/build.gradle +6 -2
- package/android/src/debug/java/expo/modules/devmenu/DevMenuHost.kt +13 -0
- package/expo-dev-menu.podspec +2 -0
- package/package.json +4 -4
- package/vendored/react-native-gesture-handler/DevMenuRNGestureHandler.xcframework/Info.plist +0 -40
- package/vendored/react-native-gesture-handler/DevMenuRNGestureHandler.xcframework/ios-arm64/DevMenuRNGestureHandler.framework/DevMenuRNGestureHandler +0 -0
- package/vendored/react-native-gesture-handler/DevMenuRNGestureHandler.xcframework/ios-arm64/DevMenuRNGestureHandler.framework/Info.plist +0 -0
- package/vendored/react-native-gesture-handler/DevMenuRNGestureHandler.xcframework/ios-arm64/DevMenuRNGestureHandler.framework/Modules/module.modulemap +0 -6
- package/vendored/react-native-gesture-handler/DevMenuRNGestureHandler.xcframework/ios-arm64_x86_64-simulator/DevMenuRNGestureHandler.framework/DevMenuRNGestureHandler +0 -0
- package/vendored/react-native-gesture-handler/DevMenuRNGestureHandler.xcframework/ios-arm64_x86_64-simulator/DevMenuRNGestureHandler.framework/Info.plist +0 -0
- package/vendored/react-native-gesture-handler/DevMenuRNGestureHandler.xcframework/ios-arm64_x86_64-simulator/DevMenuRNGestureHandler.framework/Modules/module.modulemap +0 -6
- package/vendored/react-native-safe-area-context/dev-menu-react-native-safe-area-context.xcframework/Info.plist +0 -40
- package/vendored/react-native-safe-area-context/dev-menu-react-native-safe-area-context.xcframework/ios-arm64/dev-menu-react-native-safe-area-context.framework/Info.plist +0 -0
- package/vendored/react-native-safe-area-context/dev-menu-react-native-safe-area-context.xcframework/ios-arm64/dev-menu-react-native-safe-area-context.framework/dev-menu-react-native-safe-area-context +0 -0
- package/vendored/react-native-safe-area-context/dev-menu-react-native-safe-area-context.xcframework/ios-arm64_x86_64-simulator/dev-menu-react-native-safe-area-context.framework/Info.plist +0 -0
- package/vendored/react-native-safe-area-context/dev-menu-react-native-safe-area-context.xcframework/ios-arm64_x86_64-simulator/dev-menu-react-native-safe-area-context.framework/dev-menu-react-native-safe-area-context +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 2.0.1 — 2022-11-08
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Fixed build errors when testing on React Native nightly builds. ([#19369](https://github.com/expo/expo/pull/19369) by [@kudo](https://github.com/kudo), [#19805](https://github.com/expo/expo/pull/19805) by [@kudo](https://github.com/kudo))
|
|
18
|
+
- Fixed Android `java.lang.AssertionError: TurboModules are enabled, but mTurboModuleRegistry hasn't been set.` error when running on new architecture mode. ([#19931](https://github.com/expo/expo/pull/19931) by [@kudo](https://github.com/kudo))
|
|
19
|
+
|
|
13
20
|
## 2.0.0 — 2022-10-27
|
|
14
21
|
|
|
15
22
|
### 🛠 Breaking changes
|
package/android/build.gradle
CHANGED
|
@@ -7,13 +7,17 @@ apply plugin: 'kotlin-android'
|
|
|
7
7
|
apply plugin: 'maven-publish'
|
|
8
8
|
|
|
9
9
|
group = 'host.exp.exponent'
|
|
10
|
-
version = '2.0.
|
|
10
|
+
version = '2.0.1'
|
|
11
11
|
|
|
12
12
|
// reanimated v2
|
|
13
13
|
def reactNativeFilePath = ["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()
|
|
14
14
|
def inputFile = new File(reactNativeFilePath)
|
|
15
15
|
def json = new JsonSlurper().parseText(inputFile.text)
|
|
16
16
|
def reactNativeVersion = json.version as String
|
|
17
|
+
if (reactNativeVersion.startsWith('0.0.0-')) {
|
|
18
|
+
// react-native nightly build published as `0.0.0-20221002-2027-2319f75c8` form, but its semantic is latest
|
|
19
|
+
reactNativeVersion = '9999.9999.9999'
|
|
20
|
+
}
|
|
17
21
|
def (major, minor, patch) = reactNativeVersion.tokenize('.')
|
|
18
22
|
|
|
19
23
|
def engine = "jsc"
|
|
@@ -207,7 +211,7 @@ android {
|
|
|
207
211
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
208
212
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
209
213
|
versionCode 10
|
|
210
|
-
versionName '2.0.
|
|
214
|
+
versionName '2.0.1'
|
|
211
215
|
}
|
|
212
216
|
lintOptions {
|
|
213
217
|
abortOnError false
|
|
@@ -3,10 +3,13 @@ package expo.modules.devmenu
|
|
|
3
3
|
import android.app.Application
|
|
4
4
|
import android.content.Context
|
|
5
5
|
import android.util.Log
|
|
6
|
+
import com.facebook.react.ReactApplication
|
|
6
7
|
import com.facebook.react.ReactInstanceManager
|
|
7
8
|
import com.facebook.react.ReactNativeHost
|
|
8
9
|
import com.facebook.react.ReactPackage
|
|
10
|
+
import com.facebook.react.ReactPackageTurboModuleManagerDelegate
|
|
9
11
|
import com.facebook.react.bridge.JavaScriptExecutorFactory
|
|
12
|
+
import com.facebook.react.config.ReactFeatureFlags
|
|
10
13
|
import com.facebook.react.devsupport.DevServerHelper
|
|
11
14
|
import com.facebook.react.shell.MainReactPackage
|
|
12
15
|
import devmenu.com.swmansion.gesturehandler.react.RNGestureHandlerPackage
|
|
@@ -99,4 +102,14 @@ class DevMenuHost(application: Application) : ReactNativeHost(application) {
|
|
|
99
102
|
|
|
100
103
|
return reactInstanceManager
|
|
101
104
|
}
|
|
105
|
+
|
|
106
|
+
override fun getReactPackageTurboModuleManagerDelegateBuilder(): ReactPackageTurboModuleManagerDelegate.Builder? {
|
|
107
|
+
if (!ReactFeatureFlags.useTurboModules) {
|
|
108
|
+
return null
|
|
109
|
+
}
|
|
110
|
+
val appHost = (application as ReactApplication)?.reactNativeHost ?: return null
|
|
111
|
+
val method = ReactNativeHost::class.java.getDeclaredMethod("getReactPackageTurboModuleManagerDelegateBuilder")
|
|
112
|
+
method.isAccessible = true
|
|
113
|
+
return method.invoke(appHost) as ReactPackageTurboModuleManagerDelegate.Builder
|
|
114
|
+
}
|
|
102
115
|
}
|
package/expo-dev-menu.podspec
CHANGED
|
@@ -10,6 +10,8 @@ rescue
|
|
|
10
10
|
reactVersion = '0.66.0'
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# react-native nightly build published as `0.0.0-20221002-2027-2319f75c8` form, but its semantic is latest
|
|
14
|
+
reactVersion = '9999.9999.9999' if reactVersion.start_with?('0.0.0-')
|
|
13
15
|
splitedReactVersion = reactVersion.split('.')
|
|
14
16
|
rnVersion = splitedReactVersion[1]
|
|
15
17
|
rnPatchVersion = splitedReactVersion[2]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-menu",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Expo/React Native module with the developer menu.",
|
|
5
5
|
"main": "build/DevMenu.js",
|
|
6
6
|
"types": "build/DevMenu.d.ts",
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
"@testing-library/react-native": "^8.0.0",
|
|
60
60
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
61
61
|
"babel-preset-expo": "~9.2.0",
|
|
62
|
-
"expo-dev-client-components": "1.2.
|
|
62
|
+
"expo-dev-client-components": "1.2.2",
|
|
63
63
|
"expo-module-scripts": "^3.0.0",
|
|
64
64
|
"fuse.js": "^6.4.6",
|
|
65
65
|
"graphql": "^15.3.0",
|
|
66
66
|
"graphql-tag": "^2.10.1",
|
|
67
67
|
"react": "18.1.0",
|
|
68
|
-
"react-native": "0.70.
|
|
68
|
+
"react-native": "0.70.5",
|
|
69
69
|
"use-subscription": "^1.8.0",
|
|
70
70
|
"url": "^0.11.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"expo": "*"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "4cfefb886fd394c376290f24dabf987cdd6e6ca0"
|
|
76
76
|
}
|
package/vendored/react-native-gesture-handler/DevMenuRNGestureHandler.xcframework/Info.plist
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>AvailableLibraries</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-arm64_x86_64-simulator</string>
|
|
10
|
-
<key>LibraryPath</key>
|
|
11
|
-
<string>DevMenuRNGestureHandler.framework</string>
|
|
12
|
-
<key>SupportedArchitectures</key>
|
|
13
|
-
<array>
|
|
14
|
-
<string>arm64</string>
|
|
15
|
-
<string>x86_64</string>
|
|
16
|
-
</array>
|
|
17
|
-
<key>SupportedPlatform</key>
|
|
18
|
-
<string>ios</string>
|
|
19
|
-
<key>SupportedPlatformVariant</key>
|
|
20
|
-
<string>simulator</string>
|
|
21
|
-
</dict>
|
|
22
|
-
<dict>
|
|
23
|
-
<key>LibraryIdentifier</key>
|
|
24
|
-
<string>ios-arm64</string>
|
|
25
|
-
<key>LibraryPath</key>
|
|
26
|
-
<string>DevMenuRNGestureHandler.framework</string>
|
|
27
|
-
<key>SupportedArchitectures</key>
|
|
28
|
-
<array>
|
|
29
|
-
<string>arm64</string>
|
|
30
|
-
</array>
|
|
31
|
-
<key>SupportedPlatform</key>
|
|
32
|
-
<string>ios</string>
|
|
33
|
-
</dict>
|
|
34
|
-
</array>
|
|
35
|
-
<key>CFBundlePackageType</key>
|
|
36
|
-
<string>XFWK</string>
|
|
37
|
-
<key>XCFrameworkFormatVersion</key>
|
|
38
|
-
<string>1.0</string>
|
|
39
|
-
</dict>
|
|
40
|
-
</plist>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>AvailableLibraries</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-arm64</string>
|
|
10
|
-
<key>LibraryPath</key>
|
|
11
|
-
<string>dev-menu-react-native-safe-area-context.framework</string>
|
|
12
|
-
<key>SupportedArchitectures</key>
|
|
13
|
-
<array>
|
|
14
|
-
<string>arm64</string>
|
|
15
|
-
</array>
|
|
16
|
-
<key>SupportedPlatform</key>
|
|
17
|
-
<string>ios</string>
|
|
18
|
-
</dict>
|
|
19
|
-
<dict>
|
|
20
|
-
<key>LibraryIdentifier</key>
|
|
21
|
-
<string>ios-arm64_x86_64-simulator</string>
|
|
22
|
-
<key>LibraryPath</key>
|
|
23
|
-
<string>dev-menu-react-native-safe-area-context.framework</string>
|
|
24
|
-
<key>SupportedArchitectures</key>
|
|
25
|
-
<array>
|
|
26
|
-
<string>arm64</string>
|
|
27
|
-
<string>x86_64</string>
|
|
28
|
-
</array>
|
|
29
|
-
<key>SupportedPlatform</key>
|
|
30
|
-
<string>ios</string>
|
|
31
|
-
<key>SupportedPlatformVariant</key>
|
|
32
|
-
<string>simulator</string>
|
|
33
|
-
</dict>
|
|
34
|
-
</array>
|
|
35
|
-
<key>CFBundlePackageType</key>
|
|
36
|
-
<string>XFWK</string>
|
|
37
|
-
<key>XCFrameworkFormatVersion</key>
|
|
38
|
-
<string>1.0</string>
|
|
39
|
-
</dict>
|
|
40
|
-
</plist>
|
|
Binary file
|