expo-modules-core 2.0.2 → 2.0.3

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,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 2.0.3 — 2024-11-14
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fixed requests from `expo/fetch` being stuck on iOS. ([#32894](https://github.com/expo/expo/pull/32894) by [@kudo](https://github.com/kudo))
18
+
13
19
  ## 2.0.2 — 2024-11-13
14
20
 
15
21
  ### 💡 Others
@@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
3
  apply plugin: 'com.android.library'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '2.0.2'
6
+ version = '2.0.3'
7
7
 
8
8
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
9
  apply from: expoModulesCorePlugin
@@ -67,7 +67,7 @@ android {
67
67
  defaultConfig {
68
68
  consumerProguardFiles 'proguard-rules.pro'
69
69
  versionCode 1
70
- versionName "2.0.2"
70
+ versionName "2.0.3"
71
71
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
72
72
 
73
73
  testInstrumentationRunner "expo.modules.TestRunner"
@@ -89,12 +89,15 @@ public final class URLSessionSessionDelegateProxy: NSObject, URLSessionDataDeleg
89
89
  didReceive challenge: URLAuthenticationChallenge,
90
90
  completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
91
91
  ) {
92
- if let delegate = getDelegate(task: task) {
92
+ if let delegate = getDelegate(task: task),
93
+ delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:didReceive:completionHandler:))) {
93
94
  delegate.urlSession?(
94
95
  session,
95
96
  task: task,
96
97
  didReceive: challenge,
97
98
  completionHandler: completionHandler)
99
+ } else {
100
+ completionHandler(.performDefaultHandling, nil)
98
101
  }
99
102
  }
100
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -44,5 +44,5 @@
44
44
  "@testing-library/react-native": "^12.5.2",
45
45
  "expo-module-scripts": "^4.0.0"
46
46
  },
47
- "gitHead": "c4999f5aa407155a170830a0fa17e3e3ca1fcbee"
47
+ "gitHead": "b7b95a93855cb4863b626c4524fc6e8b3a2305eb"
48
48
  }