expo-dev-launcher 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
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
|
@@ -40,7 +40,7 @@ android {
|
|
|
40
40
|
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
41
41
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
42
42
|
versionCode 9
|
|
43
|
-
versionName "2.0.
|
|
43
|
+
versionName "2.0.1"
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
lintOptions {
|
|
@@ -192,7 +192,12 @@ def getNodeModulesPackageVersion(packageName, overridePropName) {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
def getRNVersion() {
|
|
195
|
-
|
|
195
|
+
def versionNumber = getNodeModulesPackageVersion("react-native", "reactNativeVersion")
|
|
196
|
+
if (versionNumber == versionToNumber(0, 0, 0)) {
|
|
197
|
+
// react-native nightly build published as `0.0.0-20221002-2027-2319f75c8` form, but its semantic is latest
|
|
198
|
+
return versionToNumber(9999, 9999, 9999)
|
|
199
|
+
}
|
|
200
|
+
return versionNumber
|
|
196
201
|
}
|
|
197
202
|
|
|
198
203
|
def getExpoPackageVersion() {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
package expo.modules.devlauncher.launcher
|
|
2
2
|
|
|
3
3
|
import android.app.Application
|
|
4
|
+
import com.facebook.react.ReactApplication
|
|
4
5
|
import com.facebook.react.ReactNativeHost
|
|
5
6
|
import com.facebook.react.ReactPackage
|
|
7
|
+
import com.facebook.react.ReactPackageTurboModuleManagerDelegate
|
|
6
8
|
import com.facebook.react.bridge.JavaScriptExecutorFactory
|
|
9
|
+
import com.facebook.react.config.ReactFeatureFlags
|
|
7
10
|
import com.facebook.react.shell.MainReactPackage
|
|
8
11
|
import devmenu.com.swmansion.gesturehandler.react.RNGestureHandlerPackage
|
|
9
12
|
import devmenu.com.th3rdwave.safeareacontext.SafeAreaContextPackage
|
|
@@ -55,4 +58,14 @@ class DevLauncherClientHost(
|
|
|
55
58
|
override fun getJSMainModuleName() = "index"
|
|
56
59
|
|
|
57
60
|
override fun getBundleAssetName() = "expo_dev_launcher_android.bundle"
|
|
61
|
+
|
|
62
|
+
override fun getReactPackageTurboModuleManagerDelegateBuilder(): ReactPackageTurboModuleManagerDelegate.Builder? {
|
|
63
|
+
if (!ReactFeatureFlags.useTurboModules) {
|
|
64
|
+
return null
|
|
65
|
+
}
|
|
66
|
+
val appHost = (application as ReactApplication)?.reactNativeHost ?: return null
|
|
67
|
+
val method = ReactNativeHost::class.java.getDeclaredMethod("getReactPackageTurboModuleManagerDelegateBuilder")
|
|
68
|
+
method.isAccessible = true
|
|
69
|
+
return method.invoke(appHost) as ReactPackageTurboModuleManagerDelegate.Builder
|
|
70
|
+
}
|
|
58
71
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-launcher",
|
|
3
3
|
"title": "Expo Development Launcher",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"description": "Pre-release version of the Expo development launcher package for testing.",
|
|
6
6
|
"main": "build/DevLauncher.js",
|
|
7
7
|
"types": "build/DevLauncher.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"homepage": "https://docs.expo.dev",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"expo-dev-menu": "2.0.
|
|
32
|
+
"expo-dev-menu": "2.0.1",
|
|
33
33
|
"resolve-from": "^5.0.0",
|
|
34
34
|
"semver": "^7.3.5"
|
|
35
35
|
},
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
45
45
|
"babel-preset-expo": "~9.2.0",
|
|
46
46
|
"date-fns": "^2.28.0",
|
|
47
|
-
"expo-dev-client-components": "1.2.
|
|
47
|
+
"expo-dev-client-components": "1.2.2",
|
|
48
48
|
"expo-module-scripts": "^3.0.0",
|
|
49
49
|
"graphql": "^16.0.1",
|
|
50
50
|
"graphql-request": "^3.6.1",
|
|
51
51
|
"react": "18.1.0",
|
|
52
|
-
"react-native": "0.70.
|
|
52
|
+
"react-native": "0.70.5",
|
|
53
53
|
"react-query": "^3.34.16",
|
|
54
54
|
"url": "^0.11.0"
|
|
55
55
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"./setupTests.ts"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "4cfefb886fd394c376290f24dabf987cdd6e6ca0"
|
|
67
67
|
}
|