expo-dev-launcher 58.0.16 → 58.0.18

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
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 58.0.18
4
+
5
+ ### Patch Changes
6
+
7
+ - [Android] Fix a crash on launch on Android 7 caused by `java.time.Duration`. ([#52494](https://github.com/expo/expo/pull/52494) by [@alanjhughes](https://github.com/alanjhughes))
8
+ - Updated dependencies. ([#52599](https://github.com/expo/expo/pull/52599))
9
+ - @expo/schema-utils@58.0.3
10
+
11
+ ## 58.0.17
12
+
13
+ ### Patch Changes
14
+
15
+ - [iOS] Fix the network inspector not showing requests after the dev launcher loads an app while another app is loaded. ([#52430](https://github.com/expo/expo/pull/52430) by [@alanjhughes](https://github.com/alanjhughes))
16
+
3
17
  ## 58.0.16
4
18
 
5
19
  ### Patch Changes
@@ -24,13 +24,13 @@ expoModule {
24
24
  }
25
25
 
26
26
  group = "host.exp.exponent"
27
- version = "58.0.16"
27
+ version = "58.0.18"
28
28
 
29
29
  android {
30
30
  namespace "expo.modules.devlauncher"
31
31
  defaultConfig {
32
32
  versionCode 9
33
- versionName "58.0.16"
33
+ versionName "58.0.18"
34
34
  }
35
35
 
36
36
  buildTypes {
@@ -20,14 +20,14 @@ import kotlinx.coroutines.launch
20
20
  import okhttp3.OkHttpClient
21
21
  import okhttp3.Request
22
22
  import java.util.concurrent.ConcurrentHashMap
23
+ import java.util.concurrent.TimeUnit
23
24
  import kotlin.time.DurationUnit
24
25
  import kotlin.time.toDuration
25
- import kotlin.time.toJavaDuration
26
26
 
27
27
  private const val SERVICE_TYPE = "_expo._tcp."
28
28
 
29
29
  internal val HEALTH_CHECK_INTERVAL = 3.toDuration(DurationUnit.SECONDS)
30
- private val HEALTH_CHECK_TIMEOUT = 5.toDuration(DurationUnit.SECONDS).toJavaDuration()
30
+ private const val HEALTH_CHECK_TIMEOUT_SECONDS = 5L
31
31
 
32
32
  internal abstract class NsdDiscoveryBase(
33
33
  application: Application,
@@ -37,9 +37,9 @@ internal abstract class NsdDiscoveryBase(
37
37
 
38
38
  protected val healthCheckClient: OkHttpClient = httpClient
39
39
  .newBuilder()
40
- .connectTimeout(HEALTH_CHECK_TIMEOUT)
41
- .readTimeout(HEALTH_CHECK_TIMEOUT)
42
- .writeTimeout(HEALTH_CHECK_TIMEOUT)
40
+ .connectTimeout(HEALTH_CHECK_TIMEOUT_SECONDS, TimeUnit.SECONDS)
41
+ .readTimeout(HEALTH_CHECK_TIMEOUT_SECONDS, TimeUnit.SECONDS)
42
+ .writeTimeout(HEALTH_CHECK_TIMEOUT_SECONDS, TimeUnit.SECONDS)
43
43
  .build()
44
44
 
45
45
  private val _manager: NsdManager? =
@@ -571,6 +571,8 @@ static const NSTimeInterval EXDevLauncherDefaultRequestTimeout = 10.0;
571
571
  self.sourceUrl = bundleUrl;
572
572
 
573
573
  #if RCT_DEV
574
+ // Release the old interceptor first: its deinit clears the shared delegate that the new one sets.
575
+ self.networkInterceptor = nil;
574
576
  self.networkInterceptor = [[EXDevLauncherNetworkInterceptor alloc] initWithBundleUrl:bundleUrl];
575
577
  #endif
576
578
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-dev-launcher",
3
3
  "title": "Expo Development Launcher",
4
- "version": "58.0.16",
4
+ "version": "58.0.18",
5
5
  "description": "Pre-release version of the Expo development launcher package for testing.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  "license": "MIT",
16
16
  "homepage": "https://docs.expo.dev",
17
17
  "dependencies": {
18
- "@expo/schema-utils": "^58.0.2",
18
+ "@expo/schema-utils": "^58.0.3",
19
19
  "expo-dev-menu": "~58.0.12",
20
20
  "expo-manifests": "~58.0.1"
21
21
  },