expo-modules-core 1.5.9 → 1.5.11

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
+ ## 1.5.11 — 2023-08-29
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [Android] Fixed owner type of view functions. ([#24135](https://github.com/expo/expo/pull/24135) by [@lukmccall](https://github.com/lukmccall))
18
+
19
+ ## 1.5.10 — 2023-08-22
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - Fixed Fabric setup error on iOS. ([#24004](https://github.com/expo/expo/pull/24004) by [@kudo](https://github.com/kudo))
24
+
13
25
  ## 1.5.9 — 2023-07-29
14
26
 
15
27
  ### 🐛 Bug fixes
@@ -6,7 +6,7 @@ apply plugin: 'maven-publish'
6
6
  apply plugin: "de.undercouch.download"
7
7
 
8
8
  group = 'host.exp.exponent'
9
- version = '1.5.9'
9
+ version = '1.5.11'
10
10
 
11
11
  buildscript {
12
12
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -160,7 +160,7 @@ android {
160
160
  targetSdkVersion safeExtGet("targetSdkVersion", 33)
161
161
  consumerProguardFiles 'proguard-rules.pro'
162
162
  versionCode 1
163
- versionName "1.5.9"
163
+ versionName "1.5.11"
164
164
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
165
165
 
166
166
  testInstrumentationRunner "expo.modules.TestRunner"
@@ -52,6 +52,7 @@ class ViewDefinitionBuilder<T : View>(
52
52
  asyncFunctions.forEach { (_, function) ->
53
53
  function.runOnQueue(Queues.MAIN)
54
54
  function.ownerType = viewType
55
+ function.canTakeOwner = true
55
56
  }
56
57
 
57
58
  return ViewManagerDefinition(
@@ -186,7 +187,6 @@ class ViewDefinitionBuilder<T : View>(
186
187
  } else {
187
188
  AsyncFunctionComponent(name, arrayOf({ typeOf<P0>() }.toAnyType<P0>())) { body(it[0] as P0) }
188
189
  }.also {
189
- it.ownerType = viewType
190
190
  asyncFunctions[name] = it
191
191
  }
192
192
  }
@@ -4,22 +4,22 @@
4
4
 
5
5
  #import <React/RCTRootView.h>
6
6
 
7
- #if __has_include(<React/RCTAppSetupUtils.h>)
7
+ #if __has_include(<React-RCTAppDelegate/RCTAppSetupUtils.h>)
8
+ #import <React-RCTAppDelegate/RCTAppSetupUtils.h>
9
+ #elif __has_include(<React_RCTAppDelegate/RCTAppSetupUtils.h>)
10
+ // for importing the header from framework, the dash will be transformed to underscore
11
+ #import <React_RCTAppDelegate/RCTAppSetupUtils.h>
12
+ #else
13
+ // react-native < 0.72
8
14
  #import <React/RCTAppSetupUtils.h>
9
15
  #endif
10
16
 
11
17
  UIView *EXAppSetupDefaultRootView(RCTBridge *bridge, NSString *moduleName, NSDictionary *initialProperties, BOOL fabricEnabled)
12
18
  {
13
- #if __has_include(<React/RCTAppSetupUtils.h>)
14
-
15
19
  #if REACT_NATIVE_MINOR_VERSION >= 71
16
20
  return RCTAppSetupDefaultRootView(bridge, moduleName, initialProperties, fabricEnabled);
17
21
  #else
18
22
  return RCTAppSetupDefaultRootView(bridge, moduleName, initialProperties);
19
23
  #endif // REACT_NATIVE_MINOR_VERSION >= 71
20
-
21
- #else
22
- return [[RCTRootView alloc] initWithBridge:bridge moduleName:moduleName initialProperties:initialProperties];
23
- #endif // __has_include(<React/RCTAppSetupUtils.h>)
24
24
  }
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "1.5.9",
3
+ "version": "1.5.11",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -42,5 +42,5 @@
42
42
  "@testing-library/react-hooks": "^7.0.1",
43
43
  "expo-module-scripts": "^3.0.0"
44
44
  },
45
- "gitHead": "0d774d352ca6d11f83a3223199c8e5f6ba4c8e09"
45
+ "gitHead": "7a1079dcba56e0bb7504210049b6195b64f13834"
46
46
  }