expo-dev-launcher 5.0.28 → 5.0.29
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 +5 -0
- package/android/build.gradle +1 -1
- package/android/src/debug/java/expo/modules/devlauncher/DevLauncherController.kt +1 -1
- package/android/src/debug/java/expo/modules/devlauncher/DevLauncherPackageDelegate.kt +0 -6
- package/android/src/debug/java/expo/modules/devlauncher/react/DevLauncherReactNativeHostHandler.kt +18 -0
- package/android/src/rn74/debug/expo/modules/devlauncher/react/DevLauncherDevSupportManagerSwapper.kt +0 -2
- package/android/src/rn77/debug/expo/modules/devlauncher/react/DevLauncherBridgelessDevSupportManager.kt +2 -1
- package/android/src/rn77/debug/expo/modules/devlauncher/react/DevLauncherDevSupportManagerSwapper.kt +0 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 5.0.29 — 2025-02-10
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
13
17
|
## 5.0.28 — 2025-02-06
|
|
14
18
|
|
|
15
19
|
_This version does not introduce any user-facing changes._
|
|
@@ -38,6 +42,7 @@ _This version does not introduce any user-facing changes._
|
|
|
38
42
|
|
|
39
43
|
### 🐛 Bug fixes
|
|
40
44
|
|
|
45
|
+
- [Android] Fixed issue with initialization of the dev client being wrong on the old architecture ([#34398](https://github.com/expo/expo/pull/34398) by [@chrfalch](https://github.com/chrfalch))
|
|
41
46
|
- [iOS] Fixed black stuck screen when loading an unreachable server from last opened url. ([#34067](https://github.com/expo/expo/pull/34067) by [@kudo](https://github.com/kudo))
|
|
42
47
|
- [iOS] Read EAS project id and url from manifest instead of updates interface. ([#34342](https://github.com/expo/expo/pull/34342) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
43
48
|
- [Android] Read EAS project id and url from AndroidManifest instead of updates interface. ([#34342](https://github.com/expo/expo/pull/34342) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
package/android/build.gradle
CHANGED
|
@@ -148,7 +148,7 @@ class DevLauncherController private constructor() :
|
|
|
148
148
|
val manifestParser = DevLauncherManifestParser(httpClient, parsedUrl, installationIDHelper.getOrCreateInstallationID(context))
|
|
149
149
|
val appIntent = createAppIntent()
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
DevLauncherKoinContext.app.koin.getOrNull<UpdatesInterface>()?.reset()
|
|
152
152
|
|
|
153
153
|
val appLoaderFactory = get<DevLauncherAppLoaderFactoryInterface>()
|
|
154
154
|
val appLoader = appLoaderFactory.createAppLoader(parsedUrl, parsedProjectUrl, manifestParser)
|
|
@@ -18,8 +18,6 @@ import expo.modules.devlauncher.modules.DevLauncherAuth
|
|
|
18
18
|
import expo.modules.core.interfaces.ReactNativeHostHandler
|
|
19
19
|
import expo.modules.devlauncher.modules.DevLauncherDevMenuExtension
|
|
20
20
|
import expo.modules.devlauncher.react.DevLauncherReactNativeHostHandler
|
|
21
|
-
import expo.modules.updatesinterface.UpdatesControllerRegistry
|
|
22
|
-
import java.lang.ref.WeakReference
|
|
23
21
|
|
|
24
22
|
object DevLauncherPackageDelegate {
|
|
25
23
|
fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> =
|
|
@@ -36,10 +34,6 @@ object DevLauncherPackageDelegate {
|
|
|
36
34
|
override fun onCreate(application: Application?) {
|
|
37
35
|
check(application is ReactApplication)
|
|
38
36
|
DevLauncherController.initialize(application)
|
|
39
|
-
UpdatesControllerRegistry.controller?.get()?.let {
|
|
40
|
-
DevLauncherController.instance.updatesInterface = it
|
|
41
|
-
it.updatesInterfaceCallbacks = WeakReference(DevLauncherController.instance)
|
|
42
|
-
}
|
|
43
37
|
}
|
|
44
38
|
}
|
|
45
39
|
)
|
package/android/src/debug/java/expo/modules/devlauncher/react/DevLauncherReactNativeHostHandler.kt
CHANGED
|
@@ -10,6 +10,10 @@ import com.facebook.soloader.SoLoader
|
|
|
10
10
|
import expo.modules.core.interfaces.ReactNativeHostHandler
|
|
11
11
|
import expo.modules.devlauncher.DevLauncherController
|
|
12
12
|
import java.lang.ref.WeakReference
|
|
13
|
+
import expo.modules.updatesinterface.UpdatesControllerRegistry
|
|
14
|
+
import kotlinx.coroutines.CoroutineScope
|
|
15
|
+
import kotlinx.coroutines.Dispatchers
|
|
16
|
+
import kotlinx.coroutines.launch
|
|
13
17
|
|
|
14
18
|
class DevLauncherReactNativeHostHandler(context: Context) : ReactNativeHostHandler {
|
|
15
19
|
private val contextHolder = WeakReference(context)
|
|
@@ -36,4 +40,18 @@ class DevLauncherReactNativeHostHandler(context: Context) : ReactNativeHostHandl
|
|
|
36
40
|
}
|
|
37
41
|
return HermesExecutorFactory()
|
|
38
42
|
}
|
|
43
|
+
|
|
44
|
+
override fun onWillCreateReactInstance(useDeveloperSupport: Boolean) {
|
|
45
|
+
super.onWillCreateReactInstance(useDeveloperSupport)
|
|
46
|
+
// On New Architecture mode, `onWillCreateReactInstance()` would be called
|
|
47
|
+
// inside `DevLauncherController.initialize()`.
|
|
48
|
+
// The `DevLauncherController.instance` is not available at this point.
|
|
49
|
+
// Posting the updates interface setup to next run loop.
|
|
50
|
+
CoroutineScope(Dispatchers.Main).launch {
|
|
51
|
+
UpdatesControllerRegistry.controller?.get()?.let {
|
|
52
|
+
DevLauncherController.instance.updatesInterface = it
|
|
53
|
+
it.updatesInterfaceCallbacks = WeakReference(DevLauncherController.instance)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
39
57
|
}
|
package/android/src/rn74/debug/expo/modules/devlauncher/react/DevLauncherDevSupportManagerSwapper.kt
CHANGED
|
@@ -16,8 +16,6 @@ import expo.modules.devlauncher.helpers.getProtectedFieldValue
|
|
|
16
16
|
import expo.modules.devlauncher.helpers.setProtectedDeclaredField
|
|
17
17
|
import expo.modules.devlauncher.koin.DevLauncherKoinComponent
|
|
18
18
|
import expo.modules.devlauncher.launcher.DevLauncherControllerInterface
|
|
19
|
-
import expo.modules.devlauncher.react.DevLauncherBridgeDevSupportManager
|
|
20
|
-
import expo.modules.devlauncher.react.DevLauncherBridgelessDevSupportManager
|
|
21
19
|
import kotlinx.coroutines.delay
|
|
22
20
|
import kotlinx.coroutines.launch
|
|
23
21
|
import org.koin.core.component.inject
|
package/android/src/rn77/debug/expo/modules/devlauncher/react/DevLauncherDevSupportManagerSwapper.kt
CHANGED
|
@@ -16,8 +16,6 @@ import expo.modules.devlauncher.helpers.getProtectedFieldValue
|
|
|
16
16
|
import expo.modules.devlauncher.helpers.setProtectedDeclaredField
|
|
17
17
|
import expo.modules.devlauncher.koin.DevLauncherKoinComponent
|
|
18
18
|
import expo.modules.devlauncher.launcher.DevLauncherControllerInterface
|
|
19
|
-
import expo.modules.devlauncher.react.DevLauncherBridgeDevSupportManager
|
|
20
|
-
import expo.modules.devlauncher.react.DevLauncherBridgelessDevSupportManager
|
|
21
19
|
import kotlinx.coroutines.delay
|
|
22
20
|
import kotlinx.coroutines.launch
|
|
23
21
|
import org.koin.core.component.inject
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-launcher",
|
|
3
3
|
"title": "Expo Development Launcher",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.29",
|
|
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",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
],
|
|
67
67
|
"testTimeout": 15000
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "81941fa03383e748ba1b6345d9ca0d048bb5c4d1"
|
|
70
70
|
}
|