expo-modules-core 1.12.21 → 1.12.23

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,11 +10,21 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 1.12.23 — 2024-08-23
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 1.12.22 — 2024-08-20
18
+
19
+ _This version does not introduce any user-facing changes._
20
+
13
21
  ## 1.12.21 — 2024-08-14
14
22
 
15
23
  ### 🐛 Bug fixes
16
24
 
17
25
  - [iOS] Fix getExternalPathPermissions returns no read/write permissions. ([#30540](https://github.com/expo/expo/pull/30540) by [@dispelpowerone](https://github.com/dispelpowerone))
26
+ - [android] Fix accessing the `runtimeExecutor` from kotlin when the new arch is enabled. ([#31058](https://github.com/expo/expo/pull/31058) by [@alanjhughes](https://github.com/alanjhughes))
27
+ - [android] Fix accessing the `runtimeExecutor` from kotlin when the new arch is enabled on 0.75.2. ([#31122](https://github.com/expo/expo/pull/31122) by [@alanjhughes](https://github.com/alanjhughes))
18
28
 
19
29
  ### ⚠️ Notices
20
30
 
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '1.12.21'
4
+ version = '1.12.23'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -63,7 +63,7 @@ android {
63
63
  defaultConfig {
64
64
  consumerProguardFiles 'proguard-rules.pro'
65
65
  versionCode 1
66
- versionName "1.12.21"
66
+ versionName "1.12.23"
67
67
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
68
68
 
69
69
  testInstrumentationRunner "expo.modules.TestRunner"
@@ -169,13 +169,13 @@ class AppContext(
169
169
  if (reactContext.isBridgeless) {
170
170
  val runtimeExecutor: RuntimeExecutor = try {
171
171
  // When react-native version >= 0.75.0 get runtimeExecutor from catalystInstance
172
- val catalystInstanceField = reactContext.javaClass.getDeclaredField("catalystInstance")
173
- val catalystInstance = catalystInstanceField.get(reactContext)
174
- val runtimeExecutorField = catalystInstance.javaClass.getDeclaredField("runtimeExecutor")
175
- runtimeExecutorField.get(catalystInstance) as RuntimeExecutor
172
+ val catalystInstanceGetter = reactContext.javaClass.getMethod("getCatalystInstance")
173
+ val catalystInstance = catalystInstanceGetter.invoke(reactContext)
174
+ val runtimeExecutorGetter = catalystInstance.javaClass.getMethod("getRuntimeExecutor")
175
+ runtimeExecutorGetter.invoke(catalystInstance) as RuntimeExecutor
176
176
  } catch (e: NoSuchFieldException) {
177
- val runtimeExecutorField = reactContext.javaClass.getDeclaredField("runtimeExecutor")
178
- runtimeExecutorField.get(reactContext) as RuntimeExecutor
177
+ val method = reactContext.javaClass.getMethod("getRuntimeExecutor")
178
+ method.invoke(reactContext) as RuntimeExecutor
179
179
  }
180
180
 
181
181
  jsiInterop.installJSIForBridgeless(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "1.12.21",
3
+ "version": "1.12.23",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -44,5 +44,5 @@
44
44
  "@testing-library/react-hooks": "^7.0.1",
45
45
  "expo-module-scripts": "^3.0.0"
46
46
  },
47
- "gitHead": "07bfec459aad07ff4c792d0fd5fdca853a55dbd0"
47
+ "gitHead": "a1b4a5fbbc9e1a5bb310cac977ed84da13040ad5"
48
48
  }