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 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
@@ -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.0'
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.0"
163
+ versionName "1.5.2"
164
164
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
165
165
 
166
166
  testInstrumentationRunner "expo.modules.TestRunner"
@@ -8,7 +8,6 @@ public interface ConstantsInterface {
8
8
  String getAppScopeKey();
9
9
  String getAppOwnership();
10
10
  String getDeviceName();
11
- int getDeviceYearClass();
12
11
  boolean getIsDevice();
13
12
  int getStatusBarHeight();
14
13
  String getSystemVersion();
@@ -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("ExpoModulesCore-umbrella.h")
12
- #import "ExpoModulesCore-umbrella.h"
11
+ #if __has_include(<ExpoModulesCore/ExpoModulesCore-umbrella.h>)
12
+ #import <ExpoModulesCore/ExpoModulesCore-umbrella.h>
13
13
  #endif
@@ -15,8 +15,6 @@
15
15
  - (NSArray<NSString *> *)systemFontNames;
16
16
 
17
17
  + (NSString *)devicePlatform;
18
- + (NSString *)deviceModel;
19
- + (NSNumber *)deviceYear;
20
18
  + (NSString *)deviceName;
21
19
 
22
20
  @end
@@ -4,7 +4,7 @@
4
4
 
5
5
  // Swift classes need forward-declaration in the headers.
6
6
  @class EXAppContext;
7
- @class ExpoRuntime;
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 ExpoRuntime *)runtimeFromBridge:(nonnull RCTBridge *)bridge NS_SWIFT_NAME(runtime(fromBridge:));
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 ExpoRuntime *)runtimeFromBridge:(nonnull RCTBridge *)bridge
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 ? [[ExpoRuntime alloc] initWithRuntime:jsiRuntime callInvoker:bridge.jsCallInvoker] : nil;
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
- ExpoRuntime *runtime = [appContext _runtime];
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) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  private let coreObjectPropertyName = "expo"
5
5
 
6
- @objc(ExpoRuntime)
6
+ @objc(EXRuntime)
7
7
  public final class ExpoRuntime: JavaScriptRuntime {
8
8
  /**
9
9
  The core object of the Expo runtime that is used to scope native Expo-specific functionalities.
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.0",
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": "fa5ecca8251986b9f197cc14074eec0ab6dfb6db"
45
+ "gitHead": "0efde1d91bcf609c94a9f9b57f47afd9ef315e2d"
46
46
  }