expo-dev-launcher 6.0.12 → 6.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 CHANGED
@@ -10,11 +10,18 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 6.0.13 — 2025-10-01
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [iOS] Adjust tvOS colors. ([#40006](https://github.com/expo/expo/pull/40006) by [@douglowder](https://github.com/douglowder))
18
+
13
19
  ## 6.0.12 — 2025-09-22
14
20
 
15
21
  ### 🎉 New features
16
22
 
17
23
  - [Android] Adds loading state when connecting to a development server. ([#39873](https://github.com/expo/expo/pull/39873) by [@lukmccall](https://github.com/lukmccall))
24
+ - Remove `ExpoAppDelegate` inheritance requirement ([#39844](https://github.com/expo/expo/pull/39844) by [@gabrieldonadel](https://github.com/gabrieldonadel))
18
25
 
19
26
  ### 🐛 Bug fixes
20
27
 
@@ -20,13 +20,13 @@ expoModule {
20
20
  }
21
21
 
22
22
  group = "host.exp.exponent"
23
- version = "6.0.12"
23
+ version = "6.0.13"
24
24
 
25
25
  android {
26
26
  namespace "expo.modules.devlauncher"
27
27
  defaultConfig {
28
28
  versionCode 9
29
- versionName "6.0.12"
29
+ versionName "6.0.13"
30
30
  }
31
31
 
32
32
  buildTypes {
@@ -50,21 +50,51 @@ public class ExpoDevLauncherReactDelegateHandler: ExpoReactDelegateHandler, EXDe
50
50
  // MARK: EXDevelopmentClientControllerDelegate implementations
51
51
 
52
52
  public func devLauncherController(_ developmentClientController: EXDevLauncherController, didStartWithSuccess success: Bool) {
53
- guard let appDelegate = (UIApplication.shared.delegate as? (any ReactNativeFactoryProvider)) ??
54
- ((UIApplication.shared.delegate as? NSObject)?.value(forKey: "_expoAppDelegate") as? (any ReactNativeFactoryProvider)) else {
53
+ let appDelegate = (UIApplication.shared.delegate as? (any ReactNativeFactoryProvider)) ??
54
+ (UIApplication.shared.delegate?.responds(to: Selector(("_expoAppDelegate"))) ?? false ?
55
+ ((UIApplication.shared.delegate as? NSObject)?.value(forKey: "_expoAppDelegate") as? (any ReactNativeFactoryProvider)) : nil)
56
+ let reactDelegate = self.reactDelegate
57
+
58
+ guard let reactNativeFactory = appDelegate?.factory as? RCTReactNativeFactory ?? reactDelegate?.reactNativeFactory as? RCTReactNativeFactory else {
55
59
  fatalError("`UIApplication.shared.delegate` must be an `ExpoAppDelegate` or `EXAppDelegateWrapper`")
56
60
  }
57
- self.reactNativeFactory = appDelegate.factory as? RCTReactNativeFactory
61
+ self.reactNativeFactory = reactNativeFactory
58
62
 
59
63
  // Reset rctAppDelegate so we can relaunch the app
60
- if self.reactNativeFactory?.delegate?.newArchEnabled() ?? false {
64
+ if RCTIsNewArchEnabled() {
61
65
  self.reactNativeFactory?.rootViewFactory.setValue(nil, forKey: "_reactHost")
62
66
  } else {
63
67
  self.reactNativeFactory?.bridge = nil
64
68
  self.reactNativeFactory?.rootViewFactory.bridge = nil
65
69
  }
66
70
 
67
- let rootView = appDelegate.recreateRootView(
71
+ func recreateRootView(
72
+ withBundleURL: URL?,
73
+ moduleName: String?,
74
+ initialProps: [AnyHashable: Any]?,
75
+ launchOptions: [AnyHashable: Any]?
76
+ ) -> UIView {
77
+ if let appDelegate = appDelegate {
78
+ return appDelegate.recreateRootView(
79
+ withBundleURL: withBundleURL,
80
+ moduleName: moduleName,
81
+ initialProps: initialProps,
82
+ launchOptions: launchOptions
83
+ )
84
+ }
85
+ if let factory = reactDelegate?.reactNativeFactory {
86
+ return factory.recreateRootView(
87
+ withBundleURL: withBundleURL,
88
+ moduleName: moduleName,
89
+ initialProps: initialProps,
90
+ launchOptions: launchOptions
91
+ )
92
+ }
93
+
94
+ fatalError("`UIApplication.shared.delegate` must be an `ExpoAppDelegate` or `EXAppDelegateWrapper`")
95
+ }
96
+
97
+ let rootView = recreateRootView(
68
98
  withBundleURL: developmentClientController.sourceUrl(),
69
99
  moduleName: self.rootViewModuleName,
70
100
  initialProps: self.rootViewInitialProperties,
@@ -132,6 +132,7 @@ struct DevServersView: View {
132
132
  } label: {
133
133
  Text("info".uppercased())
134
134
  #if os(tvOS)
135
+ .foregroundColor(.primary)
135
136
  .font(.system(size: 24))
136
137
  #else
137
138
  .font(.system(size: 12))
@@ -51,6 +51,9 @@ struct HomeTabView: View {
51
51
  .padding()
52
52
  }
53
53
  }
54
+ #if os(tvOS)
55
+ .background()
56
+ #endif
54
57
  .overlay(
55
58
  DevServerInfoModal(showingInfoDialog: $showingInfoDialog)
56
59
  )
@@ -56,6 +56,9 @@ struct SettingsTabView: View {
56
56
  .padding()
57
57
  }
58
58
  .frame(maxWidth: .infinity, maxHeight: .infinity)
59
+ #if os(tvOS)
60
+ .background()
61
+ #endif
59
62
  .navigationBarHidden(true)
60
63
  }
61
64
 
@@ -20,6 +20,9 @@ struct UpdatesTabView: View {
20
20
  }
21
21
  }
22
22
  }
23
+ #if os(tvOS)
24
+ .background()
25
+ #endif
23
26
  }
24
27
  }
25
28
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-dev-launcher",
3
3
  "title": "Expo Development Launcher",
4
- "version": "6.0.12",
4
+ "version": "6.0.13",
5
5
  "description": "Pre-release version of the Expo development launcher package for testing.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -15,11 +15,11 @@
15
15
  "license": "MIT",
16
16
  "homepage": "https://docs.expo.dev",
17
17
  "dependencies": {
18
- "expo-dev-menu": "7.0.12",
18
+ "expo-dev-menu": "7.0.13",
19
19
  "expo-manifests": "~1.0.8"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "expo": "*"
23
23
  },
24
- "gitHead": "6523053d0d997d2a21f580d2752b2f873c122038"
24
+ "gitHead": "1ab3b9621b78b77b81049ebf06149753a1e0898c"
25
25
  }