expo-modules-core 0.4.2 → 0.4.6

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,24 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.4.6 — 2021-10-27
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 0.4.5 — 2021-10-25
18
+
19
+ _This version does not introduce any user-facing changes._
20
+
21
+ ## 0.4.4 — 2021-10-15
22
+
23
+ ### 🐛 Bug fixes
24
+
25
+ - Fix UIManager has not setter or ivar error when reloading app. ([#14741](https://github.com/expo/expo/pull/14741) by [@kudo](https://github.com/kudo))
26
+
27
+ ## 0.4.3 — 2021-10-15
28
+
29
+ _This version does not introduce any user-facing changes._
30
+
13
31
  ## 0.4.2 — 2021-10-01
14
32
 
15
33
  _This version does not introduce any user-facing changes._
package/README.md CHANGED
@@ -8,7 +8,7 @@ For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-
8
8
 
9
9
  # Installation in bare React Native projects
10
10
 
11
- For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/expo/expo/tree/master/packages/react-native-unimodules) before continuing.
11
+ For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.
12
12
 
13
13
  ### Add the package to your npm dependencies
14
14
 
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.4.2'
6
+ version = '0.4.6'
7
7
 
8
8
  buildscript {
9
9
  // Simple helper that allows the root project to override versions declared by this library.
@@ -56,8 +56,9 @@ android {
56
56
  defaultConfig {
57
57
  minSdkVersion safeExtGet("minSdkVersion", 21)
58
58
  targetSdkVersion safeExtGet("targetSdkVersion", 30)
59
+ consumerProguardFiles 'proguard-rules.pro'
59
60
  versionCode 1
60
- versionName "0.4.2"
61
+ versionName "0.4.6"
61
62
  }
62
63
  lintOptions {
63
64
  abortOnError false
@@ -1,6 +1,6 @@
1
1
  // Copyright 2016-present 650 Industries. All rights reserved.
2
2
 
3
- #import <ExpoModulesCore/EXBarCodeScannerInterface.h>
3
+ #import <ExpoModulesCore/EXBarcodeScannerInterface.h>
4
4
 
5
5
  @protocol EXBarCodeScannerProviderInterface
6
6
 
@@ -189,8 +189,6 @@ RCT_EXPORT_METHOD(callMethod:(NSString *)moduleName methodNameOrKey:(id)methodNa
189
189
 
190
190
  - (id<ModulesProviderObjCProtocol>)getExpoModulesProvider
191
191
  {
192
- // Dynamically gets the modules provider class.
193
- // NOTE: This needs to be versioned in Expo Go.
194
192
  Class generatedExpoModulesProvider = NSClassFromString(@"ExpoModulesProvider");
195
193
  // Checks if `ExpoModulesProvider` was generated
196
194
  if (generatedExpoModulesProvider) {
@@ -244,6 +242,11 @@ RCT_EXPORT_METHOD(callMethod:(NSString *)moduleName methodNameOrKey:(id)methodNa
244
242
  }
245
243
  }
246
244
 
245
+ // `registerAdditionalModuleClasses:` call below is not thread-safe if RCTUIManager is not initialized.
246
+ // The case happens especially with reanimated which accesses `bridge.uiManager` and initialize bridge in js thread.
247
+ // Accessing uiManager here, we try to make sure RCTUIManager is initialized.
248
+ [bridge uiManager];
249
+
247
250
  // Register the view managers as additional modules.
248
251
  [bridge registerAdditionalModuleClasses:additionalModuleClasses];
249
252
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "0.4.2",
3
+ "version": "0.4.6",
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": "^2.0.0"
44
44
  },
45
- "gitHead": "2718b696f4a6919905b0f47ebb24ff65b42d8ff9"
45
+ "gitHead": "59adc892501ce855c3c758fc984e06a766d00f76"
46
46
  }