expo-modules-core 2.2.2 → 2.2.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.2.3 — 2025-03-11
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fixed `kotlinx.coroutines.CancellableContinuationImpl.alreadyResumedError` error on Android. ([#35114](https://github.com/expo/expo/pull/35114) by [@kudo](https://github.com/kudo))
18
+
13
19
  ## 2.2.2 — 2025-02-14
14
20
 
15
21
  ### 🎉 New features
@@ -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.2.2'
6
+ version = '2.2.3'
7
7
 
8
8
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
9
  apply from: expoModulesCorePlugin
@@ -86,7 +86,7 @@ android {
86
86
  defaultConfig {
87
87
  consumerProguardFiles 'proguard-rules.pro'
88
88
  versionCode 1
89
- versionName "2.2.2"
89
+ versionName "2.2.3"
90
90
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
91
91
 
92
92
  testInstrumentationRunner "expo.modules.TestRunner"
@@ -38,8 +38,10 @@ suspend inline fun <R> AppCompatActivityAware.withActivityAvailable(
38
38
  ): R = suspendCancellableCoroutine { continuation ->
39
39
  val listener = object : OnActivityAvailableListener {
40
40
  override fun onActivityAvailable(activity: AppCompatActivity) {
41
- removeOnActivityAvailableListener(this)
42
- continuation.resumeWith(runCatching { onActivityAvailable(activity) })
41
+ if (continuation.isActive) {
42
+ removeOnActivityAvailableListener(this)
43
+ continuation.resumeWith(runCatching { onActivityAvailable(activity) })
44
+ }
43
45
  }
44
46
  }
45
47
  addOnActivityAvailableListener(listener)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "2.2.2",
3
+ "version": "2.2.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.4"
46
46
  },
47
- "gitHead": "7080126694798ca950d5dc3ef33483a17fa401bb"
47
+ "gitHead": "1992dd3ba012ec59a646e383b9895ea6b577948b"
48
48
  }