expo-manifests 0.5.1 → 0.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,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.5.2 — 2023-02-21
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Fixed default `expo.jsEngine` value when SDK is lower than 48. ([#21266](https://github.com/expo/expo/pull/21266) by [@kudo](https://github.com/kudo))
|
|
18
|
+
|
|
13
19
|
## 0.5.1 — 2023-02-09
|
|
14
20
|
|
|
15
21
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -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.5.
|
|
6
|
+
version = '0.5.2'
|
|
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", 33)
|
|
76
76
|
versionCode 31
|
|
77
|
-
versionName '0.5.
|
|
77
|
+
versionName '0.5.2'
|
|
78
78
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
79
79
|
}
|
|
80
80
|
lintOptions {
|
|
@@ -169,8 +169,14 @@ abstract class Manifest(protected val json: JSONObject) {
|
|
|
169
169
|
|
|
170
170
|
val jsEngine: String by lazy {
|
|
171
171
|
val expoClientConfig = getExpoClientConfigRootObject()
|
|
172
|
-
expoClientConfig
|
|
173
|
-
?.getNullable<JSONObject>("android")?.getNullable<String>("jsEngine") ?: expoClientConfig?.getNullable<String>("jsEngine")
|
|
172
|
+
var result = expoClientConfig
|
|
173
|
+
?.getNullable<JSONObject>("android")?.getNullable<String>("jsEngine") ?: expoClientConfig?.getNullable<String>("jsEngine")
|
|
174
|
+
if (result == null) {
|
|
175
|
+
val sdkVersionComponents = getSDKVersion()?.split(".")
|
|
176
|
+
val sdkMajorVersion = if (sdkVersionComponents?.size == 3) sdkVersionComponents[0].toIntOrNull() else 0
|
|
177
|
+
result = if (sdkMajorVersion in 1..47) "jsc" else "hermes"
|
|
178
|
+
}
|
|
179
|
+
result
|
|
174
180
|
}
|
|
175
181
|
|
|
176
182
|
fun getIconUrl(): String? {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// Copyright © 2021 650 Industries. All rights reserved.
|
|
2
2
|
|
|
3
3
|
#import <EXJSONUtils/NSDictionary+EXJSONUtils.h>
|
|
4
|
+
#import <EXManifests/EXManifestsManifest.h>
|
|
4
5
|
|
|
5
6
|
NS_ASSUME_NONNULL_BEGIN
|
|
6
7
|
|
|
7
|
-
@interface EXManifestsBaseManifest : NSObject
|
|
8
|
+
@interface EXManifestsBaseManifest : NSObject<EXManifestsManifestBehavior>
|
|
8
9
|
|
|
9
10
|
@property (nonatomic, readonly, strong) NSDictionary* rawManifestJSON;
|
|
10
11
|
|
|
@@ -163,7 +163,12 @@
|
|
|
163
163
|
]];
|
|
164
164
|
}
|
|
165
165
|
if (!result) {
|
|
166
|
-
|
|
166
|
+
int sdkMajorVersion = [self sdkMajorVersion];
|
|
167
|
+
if (sdkMajorVersion > 0 && sdkMajorVersion < 48) {
|
|
168
|
+
result = @"jsc";
|
|
169
|
+
} else {
|
|
170
|
+
result = @"hermes";
|
|
171
|
+
}
|
|
167
172
|
}
|
|
168
173
|
return result;
|
|
169
174
|
}
|
|
@@ -305,4 +310,14 @@
|
|
|
305
310
|
return nil;
|
|
306
311
|
}
|
|
307
312
|
|
|
313
|
+
- (int)sdkMajorVersion
|
|
314
|
+
{
|
|
315
|
+
NSString *sdkVersion = [self sdkVersion];
|
|
316
|
+
NSArray<NSString *> *components = [sdkVersion componentsSeparatedByString:@"."];
|
|
317
|
+
if (components.count == 3) {
|
|
318
|
+
return [components[0] intValue];
|
|
319
|
+
}
|
|
320
|
+
return 0;
|
|
321
|
+
}
|
|
322
|
+
|
|
308
323
|
@end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-manifests",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Code to parse and use Expo and Expo Updates manifests.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"expo-json-utils": "~0.5.0"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "d7ecf4eaf234d2f1100249a2c893a948d47376aa"
|
|
26
26
|
}
|