expo-manifests 0.1.1 → 0.2.3
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 +24 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/manifests/core/Manifest.kt +10 -2
- package/ios/EXManifests/EXManifestsBaseManifest.h +1 -0
- package/ios/EXManifests/EXManifestsBaseManifest.m +8 -0
- package/ios/EXManifests/EXManifestsManifest.h +1 -0
- package/ios/EXManifests.podspec +4 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,30 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.2.3 — 2022-01-18
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 0.2.2 — 2021-10-15
|
|
18
|
+
|
|
19
|
+
_This version does not introduce any user-facing changes._
|
|
20
|
+
|
|
21
|
+
## 0.2.1 — 2021-10-06
|
|
22
|
+
|
|
23
|
+
### 🐛 Bug fixes
|
|
24
|
+
|
|
25
|
+
- Support platform shared jsEngine schema. ([#14654](https://github.com/expo/expo/pull/14654) by [@kudo](https://github.com/kudo))
|
|
26
|
+
|
|
27
|
+
## 0.2.0 — 2021-09-28
|
|
28
|
+
|
|
29
|
+
### 🎉 New features
|
|
30
|
+
|
|
31
|
+
- Added `version` getter to both platforms, and `hostUri` getter to Android, for compatibility with expo-dev-client. ([#14460](https://github.com/expo/expo/pull/14460) by [@esamelson](https://github.com/esamelson))
|
|
32
|
+
|
|
33
|
+
### 🐛 Bug fixes
|
|
34
|
+
|
|
35
|
+
- Fix building errors from use_frameworks! in Podfile. ([#14523](https://github.com/expo/expo/pull/14523) by [@kudo](https://github.com/kudo))
|
|
36
|
+
|
|
13
37
|
## 0.1.1 — 2021-09-16
|
|
14
38
|
|
|
15
39
|
### 🛠 Breaking changes
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '0.
|
|
6
|
+
version = '0.2.3'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
@@ -57,7 +57,7 @@ android {
|
|
|
57
57
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
58
58
|
targetSdkVersion safeExtGet("targetSdkVersion", 30)
|
|
59
59
|
versionCode 31
|
|
60
|
-
versionName '0.
|
|
60
|
+
versionName '0.2.3'
|
|
61
61
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
62
62
|
}
|
|
63
63
|
lintOptions {
|
|
@@ -99,6 +99,7 @@ abstract class Manifest(protected val json: JSONObject) {
|
|
|
99
99
|
|
|
100
100
|
fun getDebuggerHost(): String = getExpoGoConfigRootObject()!!.require("debuggerHost")
|
|
101
101
|
fun getMainModuleName(): String = getExpoGoConfigRootObject()!!.require("mainModuleName")
|
|
102
|
+
fun getHostUri(): String? = getExpoGoConfigRootObject()?.getNullable("hostUri")
|
|
102
103
|
|
|
103
104
|
fun isVerified(): Boolean = json.require("isVerified")
|
|
104
105
|
|
|
@@ -109,6 +110,11 @@ abstract class Manifest(protected val json: JSONObject) {
|
|
|
109
110
|
return expoClientConfig.getNullable("name")
|
|
110
111
|
}
|
|
111
112
|
|
|
113
|
+
fun getVersion(): String? {
|
|
114
|
+
val expoClientConfig = getExpoClientConfigRootObject() ?: return null
|
|
115
|
+
return expoClientConfig.getNullable("version")
|
|
116
|
+
}
|
|
117
|
+
|
|
112
118
|
fun getUpdatesInfo(): JSONObject? {
|
|
113
119
|
val expoClientConfig = getExpoClientConfigRootObject() ?: return null
|
|
114
120
|
return expoClientConfig.getNullable("updates")
|
|
@@ -162,8 +168,10 @@ abstract class Manifest(protected val json: JSONObject) {
|
|
|
162
168
|
|
|
163
169
|
fun getAndroidJsEngine(): String? {
|
|
164
170
|
val expoClientConfig = getExpoClientConfigRootObject() ?: return null
|
|
165
|
-
val
|
|
166
|
-
|
|
171
|
+
val sharedJsEngine = expoClientConfig.getNullable<String>("jsEngine")
|
|
172
|
+
val androidJsEngine = expoClientConfig
|
|
173
|
+
.getNullable<JSONObject>("android")?.getNullable<String>("jsEngine")
|
|
174
|
+
return androidJsEngine ?: sharedJsEngine ?: null
|
|
167
175
|
}
|
|
168
176
|
|
|
169
177
|
fun getIconUrl(): String? {
|
|
@@ -18,6 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
18
18
|
- (nullable NSString *)slug;
|
|
19
19
|
- (nullable NSString *)appKey;
|
|
20
20
|
- (nullable NSString *)name;
|
|
21
|
+
- (nullable NSString *)version;
|
|
21
22
|
- (nullable NSDictionary *)notificationPreferences;
|
|
22
23
|
- (nullable NSDictionary *)updatesInfo;
|
|
23
24
|
- (nullable NSDictionary *)iosConfig;
|
|
@@ -55,6 +55,14 @@
|
|
|
55
55
|
return [expoClientConfig nullableStringForKey:@"name"];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
- (nullable NSString *)version {
|
|
59
|
+
NSDictionary *expoClientConfig = self.expoClientConfigRootObject;
|
|
60
|
+
if (!expoClientConfig) {
|
|
61
|
+
return nil;
|
|
62
|
+
}
|
|
63
|
+
return [expoClientConfig nullableStringForKey:@"version"];
|
|
64
|
+
}
|
|
65
|
+
|
|
58
66
|
- (nullable NSDictionary *)notificationPreferences {
|
|
59
67
|
NSDictionary *expoClientConfig = self.expoClientConfigRootObject;
|
|
60
68
|
if (!expoClientConfig) {
|
|
@@ -48,6 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
48
48
|
- (nullable NSString *)slug;
|
|
49
49
|
- (nullable NSString *)appKey;
|
|
50
50
|
- (nullable NSString *)name;
|
|
51
|
+
- (nullable NSString *)version;
|
|
51
52
|
- (nullable NSDictionary *)notificationPreferences;
|
|
52
53
|
- (nullable NSDictionary *)updatesInfo;
|
|
53
54
|
- (nullable NSDictionary *)iosConfig;
|
package/ios/EXManifests.podspec
CHANGED
|
@@ -12,6 +12,7 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.homepage = package['homepage']
|
|
13
13
|
s.platform = :ios, '12.0'
|
|
14
14
|
s.source = { git: 'https://github.com/expo/expo.git' }
|
|
15
|
+
s.static_framework = true
|
|
15
16
|
|
|
16
17
|
s.dependency 'EXJSONUtils'
|
|
17
18
|
|
|
@@ -20,6 +21,9 @@ Pod::Spec.new do |s|
|
|
|
20
21
|
'GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS' => 'YES'
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
# Swift/Objective-C compatibility
|
|
25
|
+
s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" }
|
|
26
|
+
|
|
23
27
|
if !$ExpoUseSources&.include?(package['name']) && ENV['EXPO_USE_SOURCE'].to_i == 0 && File.exist?("#{s.name}.xcframework") && Gem::Version.new(Pod::VERSION) >= Gem::Version.new('1.10.0')
|
|
24
28
|
s.source_files = "#{s.name}/**/*.h"
|
|
25
29
|
s.vendored_frameworks = "#{s.name}.xcframework"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-manifests",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.3",
|
|
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.
|
|
23
|
+
"expo-json-utils": "~0.2.0"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "7add72f8da01964733755ebc94a1963827e428a0"
|
|
26
26
|
}
|