expo-modules-core 1.12.24 → 1.12.26

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.12.26 — 2024-10-15
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [Android] Fix error: no viable constructor or deduction guide for deduction of template arguments of 'weak_ptr' ([#29075](https://github.com/expo/expo/pull/29075) by [@rafi16jan](https://github.com/rafi16jan))
18
+
19
+ ## 1.12.25 — 2024-10-02
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - Fixed iOS reload crash on New Architecture mode. ([#31789](https://github.com/expo/expo/pull/31789) by [@kudo](https://github.com/kudo))
24
+
13
25
  ## 1.12.24 — 2024-09-03
14
26
 
15
27
  ### 🐛 Bug fixes
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '1.12.24'
4
+ version = '1.12.26'
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.24"
66
+ versionName "1.12.26"
67
67
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
68
68
 
69
69
  testInstrumentationRunner "expo.modules.TestRunner"
@@ -145,7 +145,7 @@ void JavaScriptModuleObject::decorate(jsi::Runtime &runtime, jsi::Object *module
145
145
  for (auto &[name, classInfo]: classes) {
146
146
  auto &[classRef, constructor, ownerClass] = classInfo;
147
147
  auto classObject = classRef->cthis();
148
- auto weakConstructor = std::weak_ptr(constructor);
148
+ auto weakConstructor = std::weak_ptr<decltype(constructor)::element_type>(constructor);
149
149
  auto klass = SharedObject::createClass(
150
150
  runtime,
151
151
  name.c_str(),
@@ -111,4 +111,8 @@
111
111
  return [[EXReactRootViewFactory alloc] initWithReactDelegate:self.reactDelegate configuration:configuration turboModuleManagerDelegate:self];
112
112
  }
113
113
 
114
+ - (void)customizeRootView:(UIView *)rootView {
115
+ [_expoAppDelegate customizeRootView:rootView];
116
+ }
117
+
114
118
  @end
@@ -70,6 +70,10 @@ open class ExpoAppDelegate: UIResponder, UIApplicationDelegate {
70
70
  subscribers.forEach { $0.applicationWillTerminate?(application) }
71
71
  }
72
72
 
73
+ @objc public func customizeRootView(_ rootView: UIView) {
74
+ subscribers.forEach { $0.customizeRootView?(rootView) }
75
+ }
76
+
73
77
  // TODO: - Responding to Environment Changes
74
78
 
75
79
  // TODO: - Managing App State Restoration
@@ -23,7 +23,9 @@ open class BaseExpoAppDelegateSubscriber: UIResponder {
23
23
  Might be useful for compatibility reasons if we decide to add more things here.
24
24
  */
25
25
  @objc(EXAppDelegateSubscriberProtocol)
26
- public protocol ExpoAppDelegateSubscriberProtocol: UIApplicationDelegate {}
26
+ public protocol ExpoAppDelegateSubscriberProtocol: UIApplicationDelegate {
27
+ @objc optional func customizeRootView(_ rootView: UIView)
28
+ }
27
29
 
28
30
  /**
29
31
  Typealias merging the base class for app delegate subscribers and protocol inheritance to `UIApplicationDelegate`.
@@ -45,7 +45,9 @@ internal final class CoreModule: Module {
45
45
  }
46
46
 
47
47
  AsyncFunction("reloadAppAsync") { (reason: String) in
48
- RCTTriggerReloadCommandListeners(reason)
48
+ DispatchQueue.main.async {
49
+ RCTTriggerReloadCommandListeners(reason)
50
+ }
49
51
  }
50
52
  }
51
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "1.12.24",
3
+ "version": "1.12.26",
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": "de377512cb1707aee70e78cc8fd875d2ba9c3ab4"
47
+ "gitHead": "d2e197a5f6ef614d601f6ae34c08e97b8a85c345"
48
48
  }