expo-modules-test-core 1.0.2-canary-20251216-6e1f9a7 → 1.0.2-canary-20251223-b83b31e
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/android/build.gradle
CHANGED
|
@@ -4,7 +4,7 @@ plugins {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
group = 'org.unimodules'
|
|
7
|
-
version = '1.0.2-canary-
|
|
7
|
+
version = '1.0.2-canary-20251223-b83b31e'
|
|
8
8
|
|
|
9
9
|
expoModule {
|
|
10
10
|
canBePublished false
|
|
@@ -14,7 +14,7 @@ android {
|
|
|
14
14
|
namespace "org.unimodules.test.core"
|
|
15
15
|
defaultConfig {
|
|
16
16
|
versionCode 3
|
|
17
|
-
versionName '1.0.2-canary-
|
|
17
|
+
versionName '1.0.2-canary-20251223-b83b31e'
|
|
18
18
|
}
|
|
19
19
|
packagingOptions {
|
|
20
20
|
resources {
|
|
@@ -8,6 +8,7 @@ import expo.modules.core.interfaces.services.EventEmitter
|
|
|
8
8
|
import expo.modules.kotlin.AppContext
|
|
9
9
|
import expo.modules.kotlin.ModuleHolder
|
|
10
10
|
import expo.modules.kotlin.modules.Module
|
|
11
|
+
import expo.modules.kotlin.services.ServicesProvider
|
|
11
12
|
import io.mockk.MockK
|
|
12
13
|
import io.mockk.MockKGateway
|
|
13
14
|
import io.mockk.every
|
|
@@ -123,7 +124,8 @@ private fun prepareMockAppContext(customAppContext: AppContext?): AppContext {
|
|
|
123
124
|
val appContext = customAppContext ?: AppContext(
|
|
124
125
|
modulesProvider = mockk(relaxed = true),
|
|
125
126
|
legacyModuleRegistry = mockk(relaxed = true),
|
|
126
|
-
reactContextHolder = WeakReference(reactContext)
|
|
127
|
+
reactContextHolder = WeakReference(reactContext),
|
|
128
|
+
ServicesProvider(reactContext)
|
|
127
129
|
)
|
|
128
130
|
|
|
129
131
|
// as AppContext holds only weak reference to Android Context which can be destroyed too early
|
package/package.json
CHANGED