eas-cli 16.2.0 → 16.2.1
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/README.md +75 -75
- package/build/commands/upload.d.ts +18 -0
- package/build/commands/upload.js +253 -0
- package/build/credentials/ios/appstore/ensureTestFlightGroup.js +4 -3
- package/build/graphql/generated.d.ts +110 -0
- package/build/graphql/generated.js +6 -2
- package/build/graphql/mutations/LocalBuildMutation.d.ts +5 -0
- package/build/graphql/mutations/LocalBuildMutation.js +38 -0
- package/build/graphql/mutations/UploadSessionMutation.d.ts +1 -1
- package/build/graphql/mutations/UploadSessionMutation.js +4 -3
- package/build/metadata/download.js +1 -1
- package/build/metadata/upload.js +1 -1
- package/build/metadata/utils/telemetry.d.ts +3 -3
- package/build/metadata/utils/telemetry.js +9 -9
- package/build/run/ios/xcode.d.ts +15 -0
- package/build/run/ios/xcode.js +24 -1
- package/build/uploads.js +2 -1
- package/oclif.manifest.json +47 -1
- package/package.json +4 -3
package/build/run/ios/xcode.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.openAppStoreAsync = exports.getXcodeVersionAsync = exports.APP_STORE_ID = exports.MIN_XCODE_VERSION = void 0;
|
|
3
|
+
exports.openAppStoreAsync = exports.resolveXcodeProjectAsync = exports.getXcodeBuildSettingsAsync = exports.getXcodeVersionAsync = exports.APP_STORE_ID = exports.MIN_XCODE_VERSION = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const fast_glob_1 = tslib_1.__importDefault(require("fast-glob"));
|
|
7
8
|
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
8
9
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
9
10
|
// Based on the RN docs (Aug 2020).
|
|
@@ -26,6 +27,28 @@ async function getXcodeVersionAsync() {
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
exports.getXcodeVersionAsync = getXcodeVersionAsync;
|
|
30
|
+
async function getXcodeBuildSettingsAsync(xcworkspacePath, scheme) {
|
|
31
|
+
const { stdout } = await (0, spawn_async_1.default)('xcodebuild', [
|
|
32
|
+
'-workspace',
|
|
33
|
+
xcworkspacePath,
|
|
34
|
+
'-scheme',
|
|
35
|
+
scheme,
|
|
36
|
+
'-showBuildSettings',
|
|
37
|
+
'-json',
|
|
38
|
+
]);
|
|
39
|
+
return JSON.parse(stdout);
|
|
40
|
+
}
|
|
41
|
+
exports.getXcodeBuildSettingsAsync = getXcodeBuildSettingsAsync;
|
|
42
|
+
async function resolveXcodeProjectAsync(projectRoot) {
|
|
43
|
+
const ignoredPaths = ['**/@(Carthage|Pods|vendor|node_modules)/**'];
|
|
44
|
+
const paths = await (0, fast_glob_1.default)(`ios/*.xcworkspace`, {
|
|
45
|
+
cwd: projectRoot,
|
|
46
|
+
onlyDirectories: true,
|
|
47
|
+
ignore: ignoredPaths,
|
|
48
|
+
});
|
|
49
|
+
return paths[0];
|
|
50
|
+
}
|
|
51
|
+
exports.resolveXcodeProjectAsync = resolveXcodeProjectAsync;
|
|
29
52
|
async function openAppStoreAsync(appId) {
|
|
30
53
|
const link = getAppStoreLink(appId);
|
|
31
54
|
await (0, spawn_async_1.default)(`open`, [link]);
|
package/build/uploads.js
CHANGED
|
@@ -6,9 +6,10 @@ const form_data_1 = tslib_1.__importDefault(require("form-data"));
|
|
|
6
6
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
7
7
|
const promise_retry_1 = tslib_1.__importDefault(require("promise-retry"));
|
|
8
8
|
const fetch_1 = tslib_1.__importDefault(require("./fetch"));
|
|
9
|
+
const generated_1 = require("./graphql/generated");
|
|
9
10
|
const UploadSessionMutation_1 = require("./graphql/mutations/UploadSessionMutation");
|
|
10
11
|
async function uploadFileAtPathToGCSAsync(graphqlClient, type, path, handleProgressEvent = () => { }) {
|
|
11
|
-
const signedUrl = await UploadSessionMutation_1.UploadSessionMutation.createUploadSessionAsync(graphqlClient, type);
|
|
12
|
+
const signedUrl = await UploadSessionMutation_1.UploadSessionMutation.createUploadSessionAsync(graphqlClient, type, type === generated_1.UploadSessionType.EasShareGcsAppArchive ? path : undefined);
|
|
12
13
|
await uploadWithSignedUrlWithProgressAsync(path, signedUrl, handleProgressEvent);
|
|
13
14
|
return signedUrl.bucketKey;
|
|
14
15
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.2.
|
|
2
|
+
"version": "16.2.1",
|
|
3
3
|
"commands": {
|
|
4
4
|
"analytics": {
|
|
5
5
|
"id": "analytics",
|
|
@@ -214,6 +214,52 @@
|
|
|
214
214
|
"vcsClient": {}
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
|
+
"upload": {
|
|
218
|
+
"id": "upload",
|
|
219
|
+
"description": "upload a local build and generate a sharable link",
|
|
220
|
+
"strict": true,
|
|
221
|
+
"pluginName": "eas-cli",
|
|
222
|
+
"pluginAlias": "eas-cli",
|
|
223
|
+
"pluginType": "core",
|
|
224
|
+
"hidden": true,
|
|
225
|
+
"aliases": [],
|
|
226
|
+
"flags": {
|
|
227
|
+
"platform": {
|
|
228
|
+
"name": "platform",
|
|
229
|
+
"type": "option",
|
|
230
|
+
"char": "p",
|
|
231
|
+
"helpValue": "(ios|android)",
|
|
232
|
+
"multiple": false,
|
|
233
|
+
"options": [
|
|
234
|
+
"ios",
|
|
235
|
+
"android"
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
"build-path": {
|
|
239
|
+
"name": "build-path",
|
|
240
|
+
"type": "option",
|
|
241
|
+
"description": "Path for the local build",
|
|
242
|
+
"multiple": false
|
|
243
|
+
},
|
|
244
|
+
"fingerprint": {
|
|
245
|
+
"name": "fingerprint",
|
|
246
|
+
"type": "option",
|
|
247
|
+
"description": "Fingerprint hash of the local build",
|
|
248
|
+
"multiple": false
|
|
249
|
+
},
|
|
250
|
+
"non-interactive": {
|
|
251
|
+
"name": "non-interactive",
|
|
252
|
+
"type": "boolean",
|
|
253
|
+
"description": "Run the command in non-interactive mode.",
|
|
254
|
+
"allowNo": false
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"args": {},
|
|
258
|
+
"contextDefinition": {
|
|
259
|
+
"projectId": {},
|
|
260
|
+
"loggedIn": {}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
217
263
|
"account:login": {
|
|
218
264
|
"id": "account:login",
|
|
219
265
|
"description": "log in with your Expo account",
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eas-cli",
|
|
3
3
|
"description": "EAS command line tool",
|
|
4
|
-
"version": "16.2.
|
|
4
|
+
"version": "16.2.1",
|
|
5
5
|
"author": "Expo <support@expo.dev>",
|
|
6
6
|
"bin": {
|
|
7
7
|
"eas": "./bin/run"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "https://github.com/expo/eas-cli/issues",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@expo/apple-utils": "2.1.
|
|
11
|
+
"@expo/apple-utils": "2.1.12",
|
|
12
12
|
"@expo/code-signing-certificates": "0.0.5",
|
|
13
13
|
"@expo/config": "10.0.6",
|
|
14
14
|
"@expo/config-plugins": "9.0.12",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"nanoid": "3.3.8",
|
|
69
69
|
"node-fetch": "2.6.7",
|
|
70
70
|
"node-forge": "1.3.1",
|
|
71
|
+
"node-stream-zip": "1.15.0",
|
|
71
72
|
"nullthrows": "1.1.1",
|
|
72
73
|
"ora": "5.1.0",
|
|
73
74
|
"pkg-dir": "4.2.0",
|
|
@@ -238,5 +239,5 @@
|
|
|
238
239
|
"node": "20.11.0",
|
|
239
240
|
"yarn": "1.22.21"
|
|
240
241
|
},
|
|
241
|
-
"gitHead": "
|
|
242
|
+
"gitHead": "89d1572f9d84809c951ecbe359ea37b5c25fdaf3"
|
|
242
243
|
}
|