expo-modules-core 2.0.1 → 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,18 @@
|
|
|
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
|
+
|
|
19
|
+
## 2.0.2 — 2024-11-13
|
|
20
|
+
|
|
21
|
+
### 💡 Others
|
|
22
|
+
|
|
23
|
+
- [Android] Added `executeTask` method to `TaskManagerUtilsInterface` ([#32849](https://github.com/expo/expo/pull/32849) by [@chrfalch](https://github.com/chrfalch))
|
|
24
|
+
|
|
13
25
|
## 2.0.1 — 2024-11-12
|
|
14
26
|
|
|
15
27
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
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.
|
|
70
|
+
versionName "2.0.3"
|
|
71
71
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
|
|
72
72
|
|
|
73
73
|
testInstrumentationRunner "expo.modules.TestRunner"
|
package/android/src/main/java/expo/modules/interfaces/taskManager/TaskManagerUtilsInterface.java
CHANGED
|
@@ -3,6 +3,7 @@ package expo.modules.interfaces.taskManager;
|
|
|
3
3
|
import android.app.PendingIntent;
|
|
4
4
|
import android.app.job.JobParameters;
|
|
5
5
|
import android.content.Context;
|
|
6
|
+
import android.os.Bundle;
|
|
6
7
|
import android.os.PersistableBundle;
|
|
7
8
|
|
|
8
9
|
import java.util.List;
|
|
@@ -23,6 +24,11 @@ public interface TaskManagerUtilsInterface {
|
|
|
23
24
|
*/
|
|
24
25
|
void scheduleJob(Context context, TaskInterface task, List<PersistableBundle> data);
|
|
25
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Executes a task directly
|
|
29
|
+
*/
|
|
30
|
+
void executeTask(TaskInterface task, Bundle data);
|
|
31
|
+
|
|
26
32
|
/**
|
|
27
33
|
* Cancels scheduled job with given identifier.
|
|
28
34
|
*/
|
|
@@ -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.
|
|
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": "
|
|
47
|
+
"gitHead": "b7b95a93855cb4863b626c4524fc6e8b3a2305eb"
|
|
48
48
|
}
|