expo-modules-core 1.5.0 → 1.5.2
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 +8 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/interfaces/constants/ConstantsInterface.java +0 -1
- package/ios/ExpoModulesCore.h +2 -2
- package/ios/Interfaces/Constants/EXConstantsInterface.h +0 -2
- package/ios/JSI/EXJSIInstaller.h +2 -2
- package/ios/JSI/EXJSIInstaller.mm +3 -3
- package/ios/Swift/ExpoRuntime.swift +1 -1
- package/ios/Swift.h +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 1.5.2 — 2023-06-24
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 1.5.1 — 2023-06-22
|
|
18
|
+
|
|
19
|
+
_This version does not introduce any user-facing changes._
|
|
20
|
+
|
|
13
21
|
## 1.5.0 — 2023-06-21
|
|
14
22
|
|
|
15
23
|
### 💡 Others
|
package/android/build.gradle
CHANGED
|
@@ -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
|
+
version = '1.5.2'
|
|
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.
|
|
163
|
+
versionName "1.5.2"
|
|
164
164
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
|
|
165
165
|
|
|
166
166
|
testInstrumentationRunner "expo.modules.TestRunner"
|
package/ios/ExpoModulesCore.h
CHANGED
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
// Otherwise they won't be visible in `ExpoModulesCore-Swift.h`.
|
|
9
9
|
#import <React/RCTView.h>
|
|
10
10
|
|
|
11
|
-
#if __has_include(
|
|
12
|
-
#import
|
|
11
|
+
#if __has_include(<ExpoModulesCore/ExpoModulesCore-umbrella.h>)
|
|
12
|
+
#import <ExpoModulesCore/ExpoModulesCore-umbrella.h>
|
|
13
13
|
#endif
|
package/ios/JSI/EXJSIInstaller.h
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
// Swift classes need forward-declaration in the headers.
|
|
6
6
|
@class EXAppContext;
|
|
7
|
-
@class
|
|
7
|
+
@class EXRuntime;
|
|
8
8
|
|
|
9
9
|
@interface EXJavaScriptRuntimeManager : NSObject
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
Gets the JS runtime from the given bridge. May return `nil` when
|
|
13
13
|
the runtime is not available yet or the remote debugging is enabled.
|
|
14
14
|
*/
|
|
15
|
-
+ (nullable
|
|
15
|
+
+ (nullable EXRuntime *)runtimeFromBridge:(nonnull RCTBridge *)bridge NS_SWIFT_NAME(runtime(fromBridge:));
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
Installs ExpoModules host object in the runtime of the given app context.
|
|
@@ -27,15 +27,15 @@ static NSString *modulesHostObjectLegacyPropertyName = @"ExpoModules";
|
|
|
27
27
|
|
|
28
28
|
@implementation EXJavaScriptRuntimeManager
|
|
29
29
|
|
|
30
|
-
+ (nullable
|
|
30
|
+
+ (nullable EXRuntime *)runtimeFromBridge:(nonnull RCTBridge *)bridge
|
|
31
31
|
{
|
|
32
32
|
jsi::Runtime *jsiRuntime = [bridge respondsToSelector:@selector(runtime)] ? reinterpret_cast<jsi::Runtime *>(bridge.runtime) : nullptr;
|
|
33
|
-
return jsiRuntime ? [[
|
|
33
|
+
return jsiRuntime ? [[EXRuntime alloc] initWithRuntime:jsiRuntime callInvoker:bridge.jsCallInvoker] : nil;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
+ (BOOL)installExpoModulesHostObject:(nonnull EXAppContext *)appContext
|
|
37
37
|
{
|
|
38
|
-
|
|
38
|
+
EXRuntime *runtime = [appContext _runtime];
|
|
39
39
|
|
|
40
40
|
// The runtime may be unavailable, e.g. remote debugger is enabled or it hasn't been set yet.
|
|
41
41
|
if (!runtime) {
|
package/ios/Swift.h
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
// The generated swift header may depend on some Objective-C declarations,
|
|
4
4
|
// adding dependency imports here to prevent declarations not found errors.
|
|
5
5
|
#import <ExpoModulesCore/EXDefines.h>
|
|
6
|
+
#import <ExpoModulesCore/EXJavaScriptObject.h>
|
|
7
|
+
#import <ExpoModulesCore/EXJavaScriptRuntime.h>
|
|
6
8
|
#import <ExpoModulesCore/RCTComponentData+Privates.h>
|
|
7
9
|
|
|
8
10
|
// When `use_frameworks!` is used, the generated Swift header is inside ExpoModulesCore module.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-modules-core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
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": "
|
|
45
|
+
"gitHead": "0efde1d91bcf609c94a9f9b57f47afd9ef315e2d"
|
|
46
46
|
}
|