expo-modules-core 2.0.0 → 2.0.2
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.2 — 2024-11-13
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- [Android] Added `executeTask` method to `TaskManagerUtilsInterface` ([#32849](https://github.com/expo/expo/pull/32849) by [@chrfalch](https://github.com/chrfalch))
|
|
18
|
+
|
|
19
|
+
## 2.0.1 — 2024-11-12
|
|
20
|
+
|
|
21
|
+
### 🐛 Bug fixes
|
|
22
|
+
|
|
23
|
+
- [Android] Added `@DoNotStrip` annotation to new `Either` types. ([#32783](https://github.com/expo/expo/pull/32783) by [@alanjhughes](https://github.com/alanjhughes))
|
|
24
|
+
|
|
13
25
|
## 2.0.0 — 2024-11-10
|
|
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.2'
|
|
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.2"
|
|
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
|
*/
|
|
@@ -107,6 +107,7 @@ open class Either<FirstType : Any, SecondType : Any>(
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
@EitherType
|
|
110
|
+
@DoNotStrip
|
|
110
111
|
open class EitherOfThree<FirstType : Any, SecondType : Any, ThirdType : Any>(
|
|
111
112
|
bareValue: Any,
|
|
112
113
|
deferredValue: MutableList<DeferredValue>,
|
|
@@ -122,6 +123,7 @@ open class EitherOfThree<FirstType : Any, SecondType : Any, ThirdType : Any>(
|
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
@EitherType
|
|
126
|
+
@DoNotStrip
|
|
125
127
|
class EitherOfFour<FirstType : Any, SecondType : Any, ThirdType : Any, FourthType : Any>(
|
|
126
128
|
bareValue: Any,
|
|
127
129
|
deferredValue: MutableList<DeferredValue>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-modules-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
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": "c4999f5aa407155a170830a0fa17e3e3ca1fcbee"
|
|
48
48
|
}
|