expo-manifests 0.14.4-canary-20240628-1ba8152 → 1.0.0-canary-20240814-ce0f7d5
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 +4 -0
- package/android/src/main/java/expo/modules/manifests/core/Manifest.kt +1 -1
- package/build/Manifests.d.ts +16 -19
- package/build/Manifests.d.ts.map +1 -1
- package/build/Manifests.js.map +1 -1
- package/ios/EXManifests.podspec +4 -1
- package/package.json +5 -5
- package/src/Manifests.ts +18 -19
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
### 🛠 Breaking changes
|
|
6
6
|
|
|
7
|
+
- Bumped iOS and tvOS deployment target to 15.1. ([#30840](https://github.com/expo/expo/pull/30840) by [@tsapeta](https://github.com/tsapeta))
|
|
8
|
+
|
|
7
9
|
### 🎉 New features
|
|
8
10
|
|
|
9
11
|
### 🐛 Bug fixes
|
|
10
12
|
|
|
13
|
+
- Only import from `expo/config` to follow proper dependency chains. ([#30501](https://github.com/expo/expo/pull/30501) by [@byCedric](https://github.com/byCedric))
|
|
14
|
+
|
|
11
15
|
### 💡 Others
|
|
12
16
|
|
|
13
17
|
## 0.14.3 — 2024-05-16
|
|
@@ -222,7 +222,7 @@ abstract class Manifest(protected val json: JSONObject) {
|
|
|
222
222
|
@Throws(JSONException::class, IllegalArgumentException::class)
|
|
223
223
|
fun getPluginProperties(packageName: String): Map<String, Any>? {
|
|
224
224
|
val pluginsRawValue = getExpoClientConfigRootObject()?.getNullable<JSONArray>("plugins") ?: return null
|
|
225
|
-
val plugins = PluginType.fromRawArrayValue(pluginsRawValue)
|
|
225
|
+
val plugins = PluginType.fromRawArrayValue(pluginsRawValue)
|
|
226
226
|
return plugins.filterIsInstance<PluginType.WithProps>()
|
|
227
227
|
.firstOrNull { it.plugin.first == packageName }
|
|
228
228
|
?.plugin?.second
|
package/build/Manifests.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { ExpoConfig } from '
|
|
2
|
-
export
|
|
1
|
+
import type { ExpoConfig } from 'expo/config';
|
|
2
|
+
export type ManifestAsset = {
|
|
3
3
|
url: string;
|
|
4
|
-
}
|
|
4
|
+
};
|
|
5
|
+
export type ExpoClientConfig = ExpoConfig & {
|
|
6
|
+
/**
|
|
7
|
+
* Only present during development using `@expo/cli`.
|
|
8
|
+
*/
|
|
9
|
+
hostUri?: string;
|
|
10
|
+
};
|
|
5
11
|
export type ManifestExtra = ClientScopingConfig & {
|
|
6
|
-
expoClient?:
|
|
7
|
-
/**
|
|
8
|
-
* Only present during development using @expo/cli.
|
|
9
|
-
*/
|
|
10
|
-
hostUri?: string;
|
|
11
|
-
};
|
|
12
|
+
expoClient?: ExpoClientConfig;
|
|
12
13
|
expoGo?: ExpoGoConfig;
|
|
13
14
|
eas?: EASConfig;
|
|
14
15
|
};
|
|
@@ -29,13 +30,12 @@ export type ClientScopingConfig = {
|
|
|
29
30
|
export type ExpoGoConfig = {
|
|
30
31
|
mainModuleName?: string;
|
|
31
32
|
debuggerHost?: string;
|
|
32
|
-
developer?: {
|
|
33
|
+
developer?: Record<string, any> & {
|
|
33
34
|
tool?: string;
|
|
34
|
-
[key: string]: any;
|
|
35
35
|
};
|
|
36
36
|
packagerOpts?: ExpoGoPackagerOpts;
|
|
37
37
|
};
|
|
38
|
-
export type ExpoGoPackagerOpts = {
|
|
38
|
+
export type ExpoGoPackagerOpts = Record<string, any> & {
|
|
39
39
|
hostType?: string;
|
|
40
40
|
dev?: boolean;
|
|
41
41
|
strict?: boolean;
|
|
@@ -43,10 +43,9 @@ export type ExpoGoPackagerOpts = {
|
|
|
43
43
|
urlType?: string;
|
|
44
44
|
urlRandomness?: string;
|
|
45
45
|
lanType?: string;
|
|
46
|
-
[key: string]: any;
|
|
47
46
|
};
|
|
48
47
|
/**
|
|
49
|
-
* A expo-updates manifest.
|
|
48
|
+
* A `expo-updates` manifest.
|
|
50
49
|
*/
|
|
51
50
|
export type ExpoUpdatesManifest = {
|
|
52
51
|
id: string;
|
|
@@ -58,14 +57,13 @@ export type ExpoUpdatesManifest = {
|
|
|
58
57
|
extra?: ManifestExtra;
|
|
59
58
|
};
|
|
60
59
|
/**
|
|
61
|
-
* @deprecated renamed to ExpoUpdatesManifest
|
|
62
|
-
* @see ExpoUpdatesManifest
|
|
60
|
+
* @deprecated renamed to `ExpoUpdatesManifest`, will be removed in a few versions.
|
|
63
61
|
*/
|
|
64
62
|
export type NewManifest = ExpoUpdatesManifest;
|
|
65
63
|
/**
|
|
66
64
|
* An embedded manifest.
|
|
67
65
|
*
|
|
68
|
-
* Generated during build in createManifest.js build step script.
|
|
66
|
+
* Generated during build in **createManifest.js** build step script.
|
|
69
67
|
*/
|
|
70
68
|
export type EmbeddedManifest = {
|
|
71
69
|
id: string;
|
|
@@ -73,8 +71,7 @@ export type EmbeddedManifest = {
|
|
|
73
71
|
assets: any[];
|
|
74
72
|
};
|
|
75
73
|
/**
|
|
76
|
-
* @deprecated
|
|
77
|
-
* @see EmbeddedManifest
|
|
74
|
+
* @deprecated Renamed to `EmbeddedManifest`, will be removed in a few versions.
|
|
78
75
|
*/
|
|
79
76
|
export type BareManifest = EmbeddedManifest;
|
|
80
77
|
//# sourceMappingURL=Manifests.d.ts.map
|
package/build/Manifests.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifests.d.ts","sourceRoot":"","sources":["../src/Manifests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Manifests.d.ts","sourceRoot":"","sources":["../src/Manifests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,gBAAgB,G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CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,mBAAmB,CAAC;AAE9C;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC"}
|
package/build/Manifests.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifests.js","sourceRoot":"","sources":["../src/Manifests.ts"],"names":[],"mappings":"","sourcesContent":["import { ExpoConfig } from '
|
|
1
|
+
{"version":3,"file":"Manifests.js","sourceRoot":"","sources":["../src/Manifests.ts"],"names":[],"mappings":"","sourcesContent":["import type { ExpoConfig } from 'expo/config';\n\n// @docsMissing\nexport type ManifestAsset = {\n url: string;\n};\n\nexport type ExpoClientConfig = ExpoConfig & {\n /**\n * Only present during development using `@expo/cli`.\n */\n hostUri?: string;\n};\n\n// @docsMissing\nexport type ManifestExtra = ClientScopingConfig & {\n expoClient?: ExpoClientConfig;\n expoGo?: ExpoGoConfig;\n eas?: EASConfig;\n};\n\n// @needsAudit\nexport type EASConfig = {\n /**\n * The ID for this project if it's using EAS. UUID. This value will not change when a project is\n * transferred between accounts or renamed.\n */\n projectId?: string;\n};\n\n// @needsAudit\nexport type ClientScopingConfig = {\n /**\n * An opaque unique string for scoping client-side data to this project. This value\n * will not change when a project is transferred between accounts or renamed.\n */\n scopeKey?: string;\n};\n\n// @docsMissing\nexport type ExpoGoConfig = {\n mainModuleName?: string;\n debuggerHost?: string;\n developer?: Record<string, any> & {\n tool?: string;\n };\n packagerOpts?: ExpoGoPackagerOpts;\n};\n\n// @docsMissing\nexport type ExpoGoPackagerOpts = Record<string, any> & {\n hostType?: string;\n dev?: boolean;\n strict?: boolean;\n minify?: boolean;\n urlType?: string;\n urlRandomness?: string;\n lanType?: string;\n};\n\n/**\n * A `expo-updates` manifest.\n */\nexport type ExpoUpdatesManifest = {\n id: string;\n createdAt: string;\n runtimeVersion: string;\n launchAsset: ManifestAsset;\n assets: ManifestAsset[];\n metadata: object;\n extra?: ManifestExtra;\n};\n\n/**\n * @deprecated renamed to `ExpoUpdatesManifest`, will be removed in a few versions.\n */\nexport type NewManifest = ExpoUpdatesManifest;\n\n/**\n * An embedded manifest.\n *\n * Generated during build in **createManifest.js** build step script.\n */\nexport type EmbeddedManifest = {\n id: string;\n commitTime: number;\n assets: any[]; // intentionally underspecified for now since there are no uses in JS\n};\n\n/**\n * @deprecated Renamed to `EmbeddedManifest`, will be removed in a few versions.\n */\nexport type BareManifest = EmbeddedManifest;\n"]}
|
package/ios/EXManifests.podspec
CHANGED
|
@@ -10,7 +10,10 @@ 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.platforms = {
|
|
13
|
+
s.platforms = {
|
|
14
|
+
:ios => '15.1',
|
|
15
|
+
:tvos => '15.1'
|
|
16
|
+
}
|
|
14
17
|
s.swift_version = '5.4'
|
|
15
18
|
s.source = { git: 'https://github.com/expo/expo.git' }
|
|
16
19
|
s.static_framework = true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-manifests",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-canary-20240814-ce0f7d5",
|
|
4
4
|
"description": "Code to parse and use Expo and Expo Updates manifests.",
|
|
5
5
|
"main": "build/Manifests.js",
|
|
6
6
|
"types": "build/Manifests.d.ts",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"preset": "expo-module-scripts"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@expo/config": "9.1.0-canary-
|
|
38
|
-
"expo-json-utils": "0.
|
|
37
|
+
"@expo/config": "9.1.0-canary-20240814-ce0f7d5",
|
|
38
|
+
"expo-json-utils": "1.0.0-canary-20240814-ce0f7d5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"expo-module-scripts": "3.6.0-canary-
|
|
41
|
+
"expo-module-scripts": "3.6.0-canary-20240814-ce0f7d5"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"expo": "*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "ce0f7d5c7eaec2c8d06ee4e0dc0e58cd6c1612ed"
|
|
47
47
|
}
|
package/src/Manifests.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { ExpoConfig } from '
|
|
1
|
+
import type { ExpoConfig } from 'expo/config';
|
|
2
2
|
|
|
3
3
|
// @docsMissing
|
|
4
|
-
export
|
|
4
|
+
export type ManifestAsset = {
|
|
5
5
|
url: string;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type ExpoClientConfig = ExpoConfig & {
|
|
9
|
+
/**
|
|
10
|
+
* Only present during development using `@expo/cli`.
|
|
11
|
+
*/
|
|
12
|
+
hostUri?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
7
15
|
// @docsMissing
|
|
8
16
|
export type ManifestExtra = ClientScopingConfig & {
|
|
9
|
-
expoClient?:
|
|
10
|
-
/**
|
|
11
|
-
* Only present during development using @expo/cli.
|
|
12
|
-
*/
|
|
13
|
-
hostUri?: string;
|
|
14
|
-
};
|
|
17
|
+
expoClient?: ExpoClientConfig;
|
|
15
18
|
expoGo?: ExpoGoConfig;
|
|
16
19
|
eas?: EASConfig;
|
|
17
20
|
};
|
|
@@ -38,15 +41,14 @@ export type ClientScopingConfig = {
|
|
|
38
41
|
export type ExpoGoConfig = {
|
|
39
42
|
mainModuleName?: string;
|
|
40
43
|
debuggerHost?: string;
|
|
41
|
-
developer?: {
|
|
44
|
+
developer?: Record<string, any> & {
|
|
42
45
|
tool?: string;
|
|
43
|
-
[key: string]: any;
|
|
44
46
|
};
|
|
45
47
|
packagerOpts?: ExpoGoPackagerOpts;
|
|
46
48
|
};
|
|
47
49
|
|
|
48
50
|
// @docsMissing
|
|
49
|
-
export type ExpoGoPackagerOpts = {
|
|
51
|
+
export type ExpoGoPackagerOpts = Record<string, any> & {
|
|
50
52
|
hostType?: string;
|
|
51
53
|
dev?: boolean;
|
|
52
54
|
strict?: boolean;
|
|
@@ -54,11 +56,10 @@ export type ExpoGoPackagerOpts = {
|
|
|
54
56
|
urlType?: string;
|
|
55
57
|
urlRandomness?: string;
|
|
56
58
|
lanType?: string;
|
|
57
|
-
[key: string]: any;
|
|
58
59
|
};
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
|
-
* A expo-updates manifest.
|
|
62
|
+
* A `expo-updates` manifest.
|
|
62
63
|
*/
|
|
63
64
|
export type ExpoUpdatesManifest = {
|
|
64
65
|
id: string;
|
|
@@ -71,15 +72,14 @@ export type ExpoUpdatesManifest = {
|
|
|
71
72
|
};
|
|
72
73
|
|
|
73
74
|
/**
|
|
74
|
-
* @deprecated renamed to ExpoUpdatesManifest
|
|
75
|
-
* @see ExpoUpdatesManifest
|
|
75
|
+
* @deprecated renamed to `ExpoUpdatesManifest`, will be removed in a few versions.
|
|
76
76
|
*/
|
|
77
77
|
export type NewManifest = ExpoUpdatesManifest;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* An embedded manifest.
|
|
81
81
|
*
|
|
82
|
-
* Generated during build in createManifest.js build step script.
|
|
82
|
+
* Generated during build in **createManifest.js** build step script.
|
|
83
83
|
*/
|
|
84
84
|
export type EmbeddedManifest = {
|
|
85
85
|
id: string;
|
|
@@ -88,7 +88,6 @@ export type EmbeddedManifest = {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
* @deprecated
|
|
92
|
-
* @see EmbeddedManifest
|
|
91
|
+
* @deprecated Renamed to `EmbeddedManifest`, will be removed in a few versions.
|
|
93
92
|
*/
|
|
94
93
|
export type BareManifest = EmbeddedManifest;
|
package/tsconfig.json
CHANGED