expo-manifests 0.2.4 → 0.3.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 +16 -2
- package/android/build.gradle +33 -14
- package/android/src/main/java/expo/modules/manifests/core/BaseLegacyManifest.kt +0 -12
- package/android/src/main/java/expo/modules/manifests/core/Manifest.kt +5 -4
- package/android/src/main/java/expo/modules/manifests/core/NewManifest.kt +0 -4
- package/ios/EXManifests/EXManifestsBaseManifest.h +1 -0
- package/ios/EXManifests/EXManifestsBaseManifest.m +8 -0
- package/ios/EXManifests/EXManifestsManifest.h +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,13 +10,27 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
-
## 0.
|
|
13
|
+
## 0.3.0 — 2022-04-18
|
|
14
|
+
|
|
15
|
+
### 🎉 New features
|
|
16
|
+
|
|
17
|
+
- Add `logUrl` getter to both platforms. ([#16709](https://github.com/expo/expo/pull/16709) by [@esamelson](https://github.com/esamelson))
|
|
18
|
+
|
|
19
|
+
### 🐛 Bug fixes
|
|
20
|
+
|
|
21
|
+
- Add support for expo project information certificate extension. ([#16607](https://github.com/expo/expo/pull/16607) by [@wschurman](https://github.com/wschurman))
|
|
22
|
+
|
|
23
|
+
### ⚠️ Notices
|
|
24
|
+
|
|
25
|
+
- On Android bump `compileSdkVersion` to `31`, `targetSdkVersion` to `31` and `Java` version to `11`. ([#16941](https://github.com/expo/expo/pull/16941) by [@bbarthec](https://github.com/bbarthec))
|
|
26
|
+
|
|
27
|
+
## 0.2.4 - 2022-02-01
|
|
14
28
|
|
|
15
29
|
### 🐛 Bug fixes
|
|
16
30
|
|
|
17
31
|
- Fix `Plugin with id 'maven' not found` build error from Android Gradle 7. ([#16080](https://github.com/expo/expo/pull/16080) by [@kudo](https://github.com/kudo))
|
|
18
32
|
|
|
19
|
-
## 0.2.3
|
|
33
|
+
## 0.2.3 - 2022-01-18
|
|
20
34
|
|
|
21
35
|
_This version does not introduce any user-facing changes._
|
|
22
36
|
|
package/android/build.gradle
CHANGED
|
@@ -3,20 +3,35 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '0.
|
|
6
|
+
version = '0.3.0'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
|
+
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
10
|
+
if (expoModulesCorePlugin.exists()) {
|
|
11
|
+
apply from: expoModulesCorePlugin
|
|
12
|
+
applyKotlinExpoModulesCorePlugin()
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
10
16
|
ext.safeExtGet = { prop, fallback ->
|
|
11
17
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
12
18
|
}
|
|
13
19
|
|
|
20
|
+
// Ensures backward compatibility
|
|
21
|
+
ext.getKotlinVersion = {
|
|
22
|
+
if (ext.has("kotlinVersion")) {
|
|
23
|
+
ext.kotlinVersion()
|
|
24
|
+
} else {
|
|
25
|
+
ext.safeExtGet("kotlinVersion", "1.6.10")
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
14
29
|
repositories {
|
|
15
30
|
mavenCentral()
|
|
16
31
|
}
|
|
17
32
|
|
|
18
33
|
dependencies {
|
|
19
|
-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${
|
|
34
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}")
|
|
20
35
|
}
|
|
21
36
|
}
|
|
22
37
|
|
|
@@ -44,18 +59,22 @@ afterEvaluate {
|
|
|
44
59
|
}
|
|
45
60
|
|
|
46
61
|
android {
|
|
47
|
-
compileSdkVersion safeExtGet("compileSdkVersion",
|
|
62
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 31)
|
|
48
63
|
|
|
49
64
|
compileOptions {
|
|
50
|
-
sourceCompatibility JavaVersion.
|
|
51
|
-
targetCompatibility JavaVersion.
|
|
65
|
+
sourceCompatibility JavaVersion.VERSION_11
|
|
66
|
+
targetCompatibility JavaVersion.VERSION_11
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
kotlinOptions {
|
|
70
|
+
jvmTarget = JavaVersion.VERSION_11.majorVersion
|
|
52
71
|
}
|
|
53
72
|
|
|
54
73
|
defaultConfig {
|
|
55
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
56
|
-
targetSdkVersion safeExtGet("targetSdkVersion",
|
|
75
|
+
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
57
76
|
versionCode 31
|
|
58
|
-
versionName '0.
|
|
77
|
+
versionName '0.3.0'
|
|
59
78
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
60
79
|
}
|
|
61
80
|
lintOptions {
|
|
@@ -73,17 +92,17 @@ dependencies {
|
|
|
73
92
|
implementation project(':expo-json-utils')
|
|
74
93
|
|
|
75
94
|
testImplementation 'junit:junit:4.12'
|
|
76
|
-
testImplementation 'androidx.test:core:1.
|
|
95
|
+
testImplementation 'androidx.test:core:1.4.0'
|
|
77
96
|
testImplementation 'org.mockito:mockito-core:1.10.19'
|
|
78
|
-
testImplementation 'io.mockk:mockk:1.
|
|
97
|
+
testImplementation 'io.mockk:mockk:1.12.3'
|
|
79
98
|
|
|
80
|
-
androidTestImplementation 'androidx.test:runner:1.
|
|
81
|
-
androidTestImplementation 'androidx.test:core:1.
|
|
82
|
-
androidTestImplementation 'androidx.test:rules:1.
|
|
99
|
+
androidTestImplementation 'androidx.test:runner:1.4.0'
|
|
100
|
+
androidTestImplementation 'androidx.test:core:1.4.0'
|
|
101
|
+
androidTestImplementation 'androidx.test:rules:1.4.0'
|
|
83
102
|
androidTestImplementation 'org.mockito:mockito-android:3.7.7'
|
|
84
|
-
androidTestImplementation 'io.mockk:mockk-android:1.
|
|
103
|
+
androidTestImplementation 'io.mockk:mockk-android:1.12.3'
|
|
85
104
|
|
|
86
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${
|
|
105
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
|
|
87
106
|
}
|
|
88
107
|
repositories {
|
|
89
108
|
mavenCentral()
|
|
@@ -13,8 +13,6 @@ abstract class BaseLegacyManifest(json: JSONObject) : Manifest(json) {
|
|
|
13
13
|
|
|
14
14
|
override fun getEASProjectID(): String? = json.getNullable("projectId")
|
|
15
15
|
|
|
16
|
-
fun getMetadata(): JSONObject? = json.getNullable("metadata")
|
|
17
|
-
|
|
18
16
|
override fun getAssets(): JSONArray? = json.getNullable("assets")
|
|
19
17
|
|
|
20
18
|
@Throws(JSONException::class)
|
|
@@ -35,14 +33,4 @@ abstract class BaseLegacyManifest(json: JSONObject) : Manifest(json) {
|
|
|
35
33
|
override fun getAppKey(): String? = json.getNullable("appKey")
|
|
36
34
|
|
|
37
35
|
fun getCommitTime(): String? = json.getNullable("commitTime")
|
|
38
|
-
|
|
39
|
-
@Throws(JSONException::class)
|
|
40
|
-
private fun getPublishedTime(): String = json.require("publishedTime")
|
|
41
|
-
|
|
42
|
-
override fun getSortTime(): String? {
|
|
43
|
-
// use commitTime instead of publishedTime as it is more accurate;
|
|
44
|
-
// however, fall back to publishedTime in case older cached manifests do not contain
|
|
45
|
-
// the commitTime key (we have not always served it)
|
|
46
|
-
return getCommitTime() ?: getPublishedTime()
|
|
47
|
-
}
|
|
48
36
|
}
|
|
@@ -68,6 +68,8 @@ abstract class Manifest(protected val json: JSONObject) {
|
|
|
68
68
|
@Throws(JSONException::class)
|
|
69
69
|
fun getRevisionId(): String = getExpoClientConfigRootObject()!!.require("revisionId")
|
|
70
70
|
|
|
71
|
+
fun getMetadata(): JSONObject? = json.getNullable("metadata")
|
|
72
|
+
|
|
71
73
|
abstract fun getSDKVersion(): String?
|
|
72
74
|
|
|
73
75
|
abstract fun getAssets(): JSONArray?
|
|
@@ -99,9 +101,10 @@ abstract class Manifest(protected val json: JSONObject) {
|
|
|
99
101
|
|
|
100
102
|
fun getDebuggerHost(): String = getExpoGoConfigRootObject()!!.require("debuggerHost")
|
|
101
103
|
fun getMainModuleName(): String = getExpoGoConfigRootObject()!!.require("mainModuleName")
|
|
104
|
+
fun getLogUrl(): String? = getExpoGoConfigRootObject()?.getNullable("logUrl")
|
|
102
105
|
fun getHostUri(): String? = getExpoGoConfigRootObject()?.getNullable("hostUri")
|
|
103
106
|
|
|
104
|
-
fun isVerified(): Boolean = json.
|
|
107
|
+
fun isVerified(): Boolean = json.getNullable("isVerified") ?: false
|
|
105
108
|
|
|
106
109
|
abstract fun getAppKey(): String?
|
|
107
110
|
|
|
@@ -120,8 +123,6 @@ abstract class Manifest(protected val json: JSONObject) {
|
|
|
120
123
|
return expoClientConfig.getNullable("updates")
|
|
121
124
|
}
|
|
122
125
|
|
|
123
|
-
abstract fun getSortTime(): String?
|
|
124
|
-
|
|
125
126
|
fun getPrimaryColor(): String? {
|
|
126
127
|
val expoClientConfig = getExpoClientConfigRootObject() ?: return null
|
|
127
128
|
return expoClientConfig.getNullable("primaryColor")
|
|
@@ -171,7 +172,7 @@ abstract class Manifest(protected val json: JSONObject) {
|
|
|
171
172
|
val sharedJsEngine = expoClientConfig.getNullable<String>("jsEngine")
|
|
172
173
|
val androidJsEngine = expoClientConfig
|
|
173
174
|
.getNullable<JSONObject>("android")?.getNullable<String>("jsEngine")
|
|
174
|
-
return androidJsEngine ?: sharedJsEngine
|
|
175
|
+
return androidJsEngine ?: sharedJsEngine
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
fun getIconUrl(): String? {
|
|
@@ -67,10 +67,6 @@ class NewManifest(json: JSONObject) : Manifest(json) {
|
|
|
67
67
|
|
|
68
68
|
override fun getAppKey(): String? = null
|
|
69
69
|
|
|
70
|
-
override fun getSortTime(): String {
|
|
71
|
-
return getCreatedAt()
|
|
72
|
-
}
|
|
73
|
-
|
|
74
70
|
private fun getExtra(): JSONObject? {
|
|
75
71
|
return json.getNullable("extra")
|
|
76
72
|
}
|
|
@@ -26,6 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
26
26
|
- (nullable NSString *)orientation;
|
|
27
27
|
- (nullable NSDictionary *)experiments;
|
|
28
28
|
- (nullable NSDictionary *)developer;
|
|
29
|
+
- (nullable NSString *)logUrl;
|
|
29
30
|
- (nullable NSString *)facebookAppId;
|
|
30
31
|
- (nullable NSString *)facebookApplicationName;
|
|
31
32
|
- (BOOL)facebookAutoInitEnabled;
|
|
@@ -119,6 +119,14 @@
|
|
|
119
119
|
return [expoGoConfig nullableDictionaryForKey:@"developer"];
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
- (nullable NSString *)logUrl {
|
|
123
|
+
NSDictionary *expoGoConfig = self.expoGoConfigRootObject;
|
|
124
|
+
if (!expoGoConfig) {
|
|
125
|
+
return nil;
|
|
126
|
+
}
|
|
127
|
+
return [expoGoConfig nullableStringForKey:@"logUrl"];
|
|
128
|
+
}
|
|
129
|
+
|
|
122
130
|
- (nullable NSString *)facebookAppId {
|
|
123
131
|
NSDictionary *expoClientConfig = self.expoClientConfigRootObject;
|
|
124
132
|
if (!expoClientConfig) {
|
|
@@ -56,6 +56,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
56
56
|
- (nullable NSString *)orientation;
|
|
57
57
|
- (nullable NSDictionary *)experiments;
|
|
58
58
|
- (nullable NSDictionary *)developer;
|
|
59
|
+
- (nullable NSString *)logUrl;
|
|
59
60
|
- (nullable NSString *)facebookAppId;
|
|
60
61
|
- (nullable NSString *)facebookApplicationName;
|
|
61
62
|
- (BOOL)facebookAutoInitEnabled;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-manifests",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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.
|
|
23
|
+
"expo-json-utils": "~0.3.0"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "22dce752354bb429c84851bc4389abe47a766b1f"
|
|
26
26
|
}
|