expo-manifests 0.3.1 → 0.4.0

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,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.4.0 — 2022-10-25
14
+
15
+ ### 🛠 Breaking changes
16
+
17
+ - Bumped iOS deployment target to 13.0 and deprecated support for iOS 12. ([#18873](https://github.com/expo/expo/pull/18873) by [@tsapeta](https://github.com/tsapeta))
18
+
19
+ ### ⚠️ Notices
20
+
21
+ - Replace `getAndroidJsEngine` as `jsEngine` lazy kotlin property. ([#19116](https://github.com/expo/expo/pull/19116) by [@kudo](https://github.com/kudo))
22
+
13
23
  ## 0.3.1 — 2022-07-16
14
24
 
15
25
  _This version does not introduce any user-facing changes._
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.3.1'
6
+ version = '0.4.0'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -74,7 +74,7 @@ android {
74
74
  minSdkVersion safeExtGet("minSdkVersion", 21)
75
75
  targetSdkVersion safeExtGet("targetSdkVersion", 31)
76
76
  versionCode 31
77
- versionName '0.3.1'
77
+ versionName '0.4.0'
78
78
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
79
79
  }
80
80
  lintOptions {
@@ -167,12 +167,10 @@ abstract class Manifest(protected val json: JSONObject) {
167
167
  return expoClientConfig.getNullable("androidNavigationBar")
168
168
  }
169
169
 
170
- fun getAndroidJsEngine(): String? {
171
- val expoClientConfig = getExpoClientConfigRootObject() ?: return null
172
- val sharedJsEngine = expoClientConfig.getNullable<String>("jsEngine")
173
- val androidJsEngine = expoClientConfig
174
- .getNullable<JSONObject>("android")?.getNullable<String>("jsEngine")
175
- return androidJsEngine ?: sharedJsEngine
170
+ val jsEngine: String by lazy {
171
+ val expoClientConfig = getExpoClientConfigRootObject()
172
+ expoClientConfig
173
+ ?.getNullable<JSONObject>("android")?.getNullable<String>("jsEngine") ?: expoClientConfig?.getNullable<String>("jsEngine") ?: "jsc"
176
174
  }
177
175
 
178
176
  fun getIconUrl(): String? {
@@ -30,6 +30,7 @@ NS_ASSUME_NONNULL_BEGIN
30
30
  - (nullable NSString *)facebookAppId;
31
31
  - (nullable NSString *)facebookApplicationName;
32
32
  - (BOOL)facebookAutoInitEnabled;
33
+ - (NSString *)jsEngine;
33
34
 
34
35
  - (BOOL)isDevelopmentMode;
35
36
  - (BOOL)isDevelopmentSilentLaunch;
@@ -152,6 +152,22 @@
152
152
  return enabledNumber != nil && [enabledNumber boolValue];
153
153
  }
154
154
 
155
+ - (NSString *)jsEngine {
156
+ NSString *result = nil;
157
+ NSDictionary *expoClientConfig = self.expoClientConfigRootObject;
158
+ if (expoClientConfig) {
159
+ result = [[self class] getStringFromManifest:expoClientConfig
160
+ paths:@[
161
+ @[@"ios", @"jsEngine"],
162
+ @[@"jsEngine"],
163
+ ]];
164
+ }
165
+ if (!result) {
166
+ result = @"jsc";
167
+ }
168
+ return result;
169
+ }
170
+
155
171
  # pragma mark - Derived Methods
156
172
 
157
173
  - (BOOL)isDevelopmentMode {
@@ -60,6 +60,7 @@ NS_ASSUME_NONNULL_BEGIN
60
60
  - (nullable NSString *)facebookAppId;
61
61
  - (nullable NSString *)facebookApplicationName;
62
62
  - (BOOL)facebookAutoInitEnabled;
63
+ - (NSString *)jsEngine;
63
64
 
64
65
  # pragma mark - Derived Methods
65
66
 
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.license = package['license']
11
11
  s.author = package['author']
12
12
  s.homepage = package['homepage']
13
- s.platform = :ios, '12.0'
13
+ s.platform = :ios, '13.0'
14
14
  s.source = { git: 'https://github.com/expo/expo.git' }
15
15
  s.static_framework = true
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-manifests",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Code to parse and use Expo and Expo Updates manifests.",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -20,7 +20,7 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://docs.expo.dev/versions/latest/sdk/module-template",
22
22
  "dependencies": {
23
- "expo-json-utils": "~0.3.0"
23
+ "expo-json-utils": "~0.4.0"
24
24
  },
25
- "gitHead": "c6678c65b68e45062d49a2deea8e822f69388278"
25
+ "gitHead": "eab2b09c735fb0fc2bf734a3f29a6593adba3838"
26
26
  }