shipthis 0.1.31 → 0.1.32
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/dist/{AppleBundleIdDetails-eoK5F8Qn.js → AppleBundleIdDetails-6H3cNWxw.js} +17 -19
- package/dist/Command-WPpmLPkL.js +29 -0
- package/dist/CommandGame-cxzWG4nT.js +7 -0
- package/dist/{Create-ISdroJ3G.js → Create-3Ob8sjik.js} +20 -20
- package/dist/GameStatus-BQEtVKvv.js +137 -0
- package/dist/{Import-CfThJF6k.js → Import-CFuPDI0K.js} +33 -35
- package/dist/{JobLogTail-BWzbQBZz.js → JobLogTail-0CBLoG8N.js} +53 -52
- package/dist/{JobProgress-DjIkuk5U.js → JobProgress-lKqVT88m.js} +35 -36
- package/dist/{JobStatusTable-CEqWU73q.js → JobStatusTable-C_ZsZJCm.js} +14 -13
- package/dist/{NextSteps-CK9zHOCt.js → NextSteps-DbJHmscQ.js} +1 -3
- package/dist/{ProgressSpinner-6pw1T8Iw.js → ProgressSpinner-DGcakQSK.js} +1 -1
- package/dist/{ProjectCredentialsTable-u9ruZ9mN.js → ProjectCredentialsTable-B5pHOnGu.js} +11 -10
- package/dist/{StatusTable-Dm5St4g-.js → StatusTable-DzRWcMr4.js} +7 -9
- package/dist/{Table-CvM6pccN.js → Table-FaNgpyeq.js} +15 -15
- package/dist/{UserCredentialsTable-Q7u9M-ap.js → UserCredentialsTable-3W3qesh7.js} +18 -19
- package/dist/{baseAppleCommand-zhkGlKq0.js → baseAppleCommand-BGV088--.js} +1 -1
- package/dist/{baseGameAndroidCommand-DJ-cMLa_.js → baseGameAndroidCommand-CsemgVjp.js} +23 -23
- package/dist/commands/apple/apiKey/create.js +35 -35
- package/dist/commands/apple/apiKey/export.js +26 -26
- package/dist/commands/apple/apiKey/import.js +27 -27
- package/dist/commands/apple/apiKey/status.js +31 -31
- package/dist/commands/apple/certificate/create.js +39 -39
- package/dist/commands/apple/certificate/export.js +26 -26
- package/dist/commands/apple/certificate/import.js +27 -27
- package/dist/commands/apple/certificate/status.js +31 -31
- package/dist/commands/apple/login.js +15 -16
- package/dist/commands/apple/status.js +27 -27
- package/dist/commands/dashboard.js +10 -11
- package/dist/commands/game/android/apiKey/connect.js +28 -28
- package/dist/commands/game/android/apiKey/create.js +28 -28
- package/dist/commands/game/android/apiKey/export.js +29 -29
- package/dist/commands/game/android/apiKey/import.js +31 -31
- package/dist/commands/game/android/apiKey/invite.js +14 -15
- package/dist/commands/game/android/apiKey/status.js +29 -29
- package/dist/commands/game/android/keyStore/create.js +24 -24
- package/dist/commands/game/android/keyStore/export.js +28 -28
- package/dist/commands/game/android/keyStore/import.js +35 -35
- package/dist/commands/game/android/keyStore/status.js +26 -26
- package/dist/commands/game/android/status.js +14 -58
- package/dist/commands/game/build/download.js +24 -24
- package/dist/commands/game/build/list.js +37 -37
- package/dist/commands/game/create.js +15 -16
- package/dist/commands/game/details.js +35 -36
- package/dist/commands/game/export.js +12 -13
- package/dist/commands/game/ios/app/addTester.js +24 -24
- package/dist/commands/game/ios/app/create.js +24 -24
- package/dist/commands/game/ios/app/status.js +29 -29
- package/dist/commands/game/ios/app/sync.js +31 -31
- package/dist/commands/game/ios/profile/create.js +30 -30
- package/dist/commands/game/ios/profile/export.js +28 -28
- package/dist/commands/game/ios/profile/import.js +32 -32
- package/dist/commands/game/ios/profile/status.js +36 -36
- package/dist/commands/game/ios/status.js +46 -58
- package/dist/commands/game/ios/wizard.js +31 -31
- package/dist/commands/game/job/list.js +34 -34
- package/dist/commands/game/job/status.js +31 -31
- package/dist/commands/game/list.js +37 -39
- package/dist/commands/game/ship.js +73 -71
- package/dist/commands/game/status.js +38 -85
- package/dist/commands/game/wizard.js +250 -239
- package/dist/commands/internal/fastlane.js +15 -18
- package/dist/commands/internal/readme.js +38 -37
- package/dist/commands/login.js +14 -15
- package/dist/commands/status.js +32 -30
- package/dist/{export-DZxo2_e_.js → export-CXsVPXA1.js} +5 -5
- package/dist/{git-DREGq-jc.js → git-BpsfNFZ_.js} +8 -8
- package/dist/{import-8pL1AF47.js → import-DGvG5REx.js} +14 -14
- package/dist/{index-w3lHxk5O.js → index-BhhiXbey.js} +240 -224
- package/dist/{index-BHh0BZvD.js → index-C03TV1_J.js} +37 -55
- package/dist/{index-CyvGh-kt.js → index-C66Dd8Xc.js} +77 -87
- package/dist/{index-DJ078v-U.js → index-CGBdOm1q.js} +43 -28
- package/dist/{index-DKQjnJrC.js → index-CS9Gwcb0.js} +41 -43
- package/dist/{index-C6aAyrXW.js → index-CtTI85m-.js} +6 -6
- package/dist/{upload-BTpxj3QP.js → upload-8y5MQEm9.js} +22 -22
- package/dist/{useAndroidServiceAccountTestResult-Dy3Ag7_r.js → useAndroidServiceAccountTestResult-DZk5SMxI.js} +11 -13
- package/dist/{useAppleApp-h1Ogi_qc.js → useAppleApp-DWYGURwU.js} +4 -4
- package/dist/{useAppleBundleId-B3TTNap0.js → useAppleBundleId-PsTJ2g1B.js} +6 -6
- package/dist/{useProjectCredentials-DpeXZcHP.js → useProjectCredentials-BEphqa18.js} +10 -12
- package/dist/{useWebSocket-gyuCsore.js → useWebSocket-5PYa2QER.js} +1 -1
- package/dist/utils/help.js +4 -4
- package/package.json +4 -3
- package/dist/Command-DFdHXDiU.js +0 -44
- package/dist/CommandGame-Dif-oSky.js +0 -9
- package/dist/{RunWithSpinner-BVXNWGD3.js → RunWithSpinner-gMVA07bZ.js} +2 -2
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Flags } from '@oclif/core';
|
|
3
3
|
import { Box, Text, render } from 'ink';
|
|
4
|
-
import { b as getShortDate,
|
|
5
|
-
import 'react';
|
|
6
|
-
import '../../../index-CyvGh-kt.js';
|
|
4
|
+
import { b as getShortDate, k as Certificate, l as CertificateType, P as Platform, C as CredentialsType, B as BaseAuthenticatedCommand } from '../../../index-BhhiXbey.js';
|
|
7
5
|
import Spinner from 'ink-spinner';
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import 'uuid';
|
|
11
|
-
import 'fs';
|
|
12
|
-
import { DateTime } from 'luxon';
|
|
13
|
-
import '@inkjs/ui';
|
|
14
|
-
import { useQuery } from '@tanstack/react-query';
|
|
15
|
-
import 'yazl';
|
|
16
|
-
import 'crypto';
|
|
17
|
-
import 'readline-sync';
|
|
18
|
-
import 'node:readline';
|
|
6
|
+
import 'node:crypto';
|
|
7
|
+
import 'node:fs';
|
|
19
8
|
import 'node:path';
|
|
9
|
+
import 'node:readline';
|
|
20
10
|
import 'node:url';
|
|
11
|
+
import 'readline-sync';
|
|
12
|
+
import { DateTime } from 'luxon';
|
|
13
|
+
import 'axios';
|
|
21
14
|
import 'isomorphic-git';
|
|
15
|
+
import { useQuery } from '@tanstack/react-query';
|
|
16
|
+
import 'react';
|
|
17
|
+
import 'crypto-js';
|
|
18
|
+
import 'uuid';
|
|
22
19
|
import 'fast-glob';
|
|
20
|
+
import 'yazl';
|
|
23
21
|
import 'socket.io-client';
|
|
22
|
+
import 'fullscreen-ink';
|
|
23
|
+
import 'string-length';
|
|
24
|
+
import 'strip-ansi';
|
|
24
25
|
import 'open';
|
|
26
|
+
import { u as useUserCredentials, U as UserCredentialsTable } from '../../../UserCredentialsTable-3W3qesh7.js';
|
|
27
|
+
import '@inkjs/ui';
|
|
25
28
|
import 'marked';
|
|
26
29
|
import 'marked-terminal';
|
|
27
|
-
import 'path';
|
|
28
30
|
import 'qrcode';
|
|
29
|
-
import '
|
|
30
|
-
import '
|
|
31
|
-
import {
|
|
32
|
-
import { u as useUserCredentials, U as UserCredentialsTable } from '../../../UserCredentialsTable-Q7u9M-ap.js';
|
|
33
|
-
import { T as Table } from '../../../Table-CvM6pccN.js';
|
|
31
|
+
import '../../../index-C66Dd8Xc.js';
|
|
32
|
+
import { g as getShortUUID } from '../../../index-CGBdOm1q.js';
|
|
33
|
+
import { T as Table } from '../../../Table-FaNgpyeq.js';
|
|
34
34
|
import { T as Title } from '../../../Title-BCQtayg6.js';
|
|
35
|
-
import { N as NextSteps } from '../../../NextSteps-
|
|
36
|
-
import { C as Command } from '../../../Command-
|
|
35
|
+
import { N as NextSteps } from '../../../NextSteps-DbJHmscQ.js';
|
|
36
|
+
import { C as Command } from '../../../Command-WPpmLPkL.js';
|
|
37
37
|
import '@expo/apple-utils/build/index.js';
|
|
38
|
-
import 'ini';
|
|
39
38
|
import 'deepmerge';
|
|
40
|
-
import '
|
|
39
|
+
import 'ini';
|
|
40
|
+
import '../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
41
41
|
|
|
42
42
|
async function queryAppleCertificates({ ctx }) {
|
|
43
43
|
const appleCerts = await Certificate.getAsync(ctx, {
|
|
@@ -55,17 +55,17 @@ const canAppleCertificateBeUsed = (cert, userCredentials) => {
|
|
|
55
55
|
};
|
|
56
56
|
function getAppleCertificateSummary(cert, userCredentials) {
|
|
57
57
|
return {
|
|
58
|
+
canBeUsed: canAppleCertificateBeUsed(cert, userCredentials),
|
|
59
|
+
expires: getShortDate(DateTime.fromISO(cert.attributes.expirationDate)),
|
|
58
60
|
id: getShortUUID(cert.id),
|
|
59
61
|
name: cert.attributes.name,
|
|
60
|
-
serial: cert.attributes.serialNumber
|
|
61
|
-
expires: getShortDate(DateTime.fromISO(cert.attributes.expirationDate)),
|
|
62
|
-
canBeUsed: canAppleCertificateBeUsed(cert, userCredentials)
|
|
62
|
+
serial: cert.attributes.serialNumber
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
const useAppleCertificates = (props) => {
|
|
66
66
|
const queryResult = useQuery({
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
queryFn: () => queryAppleCertificates(props),
|
|
68
|
+
queryKey: ["appleCertificates"]
|
|
69
69
|
});
|
|
70
70
|
return queryResult;
|
|
71
71
|
};
|
|
@@ -82,7 +82,7 @@ const AppleCertificatesTable = ({ ctx, ...boxProps }) => {
|
|
|
82
82
|
/* @__PURE__ */ jsx(Title, { children: "Distribution Certificates in your Apple account" }),
|
|
83
83
|
isLoading && /* @__PURE__ */ jsx(Spinner, { type: "dots" }),
|
|
84
84
|
certs && userCredentialsResponse && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
85
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
85
|
+
/* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, marginLeft: 2, children: [
|
|
86
86
|
/* @__PURE__ */ jsx(Text, { children: `You have ${certs.length} Distribution Certificates in your Apple account` }),
|
|
87
87
|
/* @__PURE__ */ jsx(Text, { children: `${hasUsable ? "One" : "None"} of these can be used by ShipThis` })
|
|
88
88
|
] }),
|
|
@@ -118,7 +118,7 @@ class AppleCertificateStatus extends BaseAuthenticatedCommand {
|
|
|
118
118
|
UserCredentialsTable,
|
|
119
119
|
{
|
|
120
120
|
credentialTypeName: "Apple iOS Distribution Certificate",
|
|
121
|
-
queryProps: {
|
|
121
|
+
queryProps: { platform: Platform.IOS, type: CredentialsType.CERTIFICATE }
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
124
|
showApple && /* @__PURE__ */ jsx(AppleCertificatesTable, { ctx })
|
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
import { Flags } from '@oclif/core';
|
|
2
|
-
import {
|
|
3
|
-
import { a as getInput, e as getMaskedInput } from '../../index-
|
|
4
|
-
import '
|
|
5
|
-
import 'fs';
|
|
6
|
-
import '@expo/apple-utils/build/index.js';
|
|
2
|
+
import { _ as Auth, B as BaseAuthenticatedCommand } from '../../index-BhhiXbey.js';
|
|
3
|
+
import { a as getInput, e as getMaskedInput } from '../../index-CGBdOm1q.js';
|
|
4
|
+
import 'node:fs';
|
|
7
5
|
import 'axios';
|
|
8
6
|
import 'crypto-js';
|
|
9
7
|
import 'uuid';
|
|
10
8
|
import 'luxon';
|
|
11
|
-
import 'crypto';
|
|
12
|
-
import 'readline-sync';
|
|
13
|
-
import 'node:readline';
|
|
14
9
|
import 'node:path';
|
|
10
|
+
import '@expo/apple-utils/build/index.js';
|
|
11
|
+
import 'node:crypto';
|
|
12
|
+
import 'node:readline';
|
|
15
13
|
import 'node:url';
|
|
14
|
+
import 'readline-sync';
|
|
16
15
|
import 'isomorphic-git';
|
|
17
|
-
import 'ini';
|
|
18
16
|
import 'deepmerge';
|
|
19
|
-
import '
|
|
17
|
+
import 'ini';
|
|
20
18
|
import '@tanstack/react-query';
|
|
19
|
+
import 'react';
|
|
21
20
|
import 'fast-glob';
|
|
22
21
|
import 'yazl';
|
|
23
22
|
import 'socket.io-client';
|
|
24
|
-
import 'ink';
|
|
23
|
+
import 'fullscreen-ink';
|
|
25
24
|
|
|
26
25
|
async function getNewAuthState(username, password) {
|
|
27
26
|
const authState = await Auth.loginAsync({
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
password,
|
|
28
|
+
username
|
|
30
29
|
});
|
|
31
30
|
return authState;
|
|
32
31
|
}
|
|
@@ -39,12 +38,12 @@ class AppleLogin extends BaseAuthenticatedCommand {
|
|
|
39
38
|
"<%= config.bin %> <%= command.id %> --force --appleEmail me@email.nowhere"
|
|
40
39
|
];
|
|
41
40
|
static flags = {
|
|
42
|
-
quiet: Flags.boolean({ char: "q", description: "Avoid output except for interactions and errors" }),
|
|
43
|
-
force: Flags.boolean({ char: "f" }),
|
|
44
41
|
appleEmail: Flags.string({
|
|
45
42
|
char: "e",
|
|
46
43
|
description: "Your Apple Developer email address"
|
|
47
|
-
})
|
|
44
|
+
}),
|
|
45
|
+
force: Flags.boolean({ char: "f" }),
|
|
46
|
+
quiet: Flags.boolean({ char: "q", description: "Avoid output except for interactions and errors" })
|
|
48
47
|
};
|
|
49
48
|
async run() {
|
|
50
49
|
const { flags } = this;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { B as BaseAuthenticatedCommand } from '../../index-w3lHxk5O.js';
|
|
3
|
-
import 'react';
|
|
4
2
|
import { render } from 'ink';
|
|
5
|
-
import '../../index-
|
|
3
|
+
import { B as BaseAuthenticatedCommand } from '../../index-BhhiXbey.js';
|
|
6
4
|
import 'ink-spinner';
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import 'uuid';
|
|
10
|
-
import 'fs';
|
|
11
|
-
import 'luxon';
|
|
12
|
-
import '@inkjs/ui';
|
|
13
|
-
import '@tanstack/react-query';
|
|
14
|
-
import 'yazl';
|
|
15
|
-
import 'crypto';
|
|
16
|
-
import 'readline-sync';
|
|
17
|
-
import 'node:readline';
|
|
5
|
+
import 'node:crypto';
|
|
6
|
+
import 'node:fs';
|
|
18
7
|
import 'node:path';
|
|
8
|
+
import 'node:readline';
|
|
19
9
|
import 'node:url';
|
|
10
|
+
import 'readline-sync';
|
|
11
|
+
import 'luxon';
|
|
12
|
+
import 'axios';
|
|
20
13
|
import 'isomorphic-git';
|
|
21
14
|
import '@oclif/core';
|
|
15
|
+
import '@tanstack/react-query';
|
|
16
|
+
import 'react';
|
|
17
|
+
import 'crypto-js';
|
|
18
|
+
import 'uuid';
|
|
22
19
|
import 'fast-glob';
|
|
20
|
+
import 'yazl';
|
|
23
21
|
import 'socket.io-client';
|
|
22
|
+
import 'fullscreen-ink';
|
|
23
|
+
import 'string-length';
|
|
24
|
+
import 'strip-ansi';
|
|
25
|
+
import { S as StatusTable } from '../../StatusTable-DzRWcMr4.js';
|
|
24
26
|
import 'open';
|
|
27
|
+
import '@inkjs/ui';
|
|
25
28
|
import 'marked';
|
|
26
29
|
import 'marked-terminal';
|
|
27
|
-
import '
|
|
28
|
-
import { N as NextSteps } from '../../NextSteps-CK9zHOCt.js';
|
|
30
|
+
import { N as NextSteps } from '../../NextSteps-DbJHmscQ.js';
|
|
29
31
|
import 'qrcode';
|
|
30
|
-
import
|
|
31
|
-
import '
|
|
32
|
-
import 'strip-ansi';
|
|
33
|
-
import { C as Command } from '../../Command-DFdHXDiU.js';
|
|
32
|
+
import '../../index-C66Dd8Xc.js';
|
|
33
|
+
import { C as Command } from '../../Command-WPpmLPkL.js';
|
|
34
34
|
import '@expo/apple-utils/build/index.js';
|
|
35
|
-
import 'ini';
|
|
36
35
|
import 'deepmerge';
|
|
37
|
-
import '
|
|
38
|
-
import '../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
|
|
36
|
+
import 'ini';
|
|
39
37
|
import '../../Title-BCQtayg6.js';
|
|
38
|
+
import '../../index-CGBdOm1q.js';
|
|
39
|
+
import '../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
40
40
|
|
|
41
41
|
class AppleStatus extends BaseAuthenticatedCommand {
|
|
42
42
|
static args = {};
|
|
@@ -61,15 +61,15 @@ class AppleStatus extends BaseAuthenticatedCommand {
|
|
|
61
61
|
};
|
|
62
62
|
const { isAuthenticatedOnApple, session } = await checkAuth();
|
|
63
63
|
const statuses = {
|
|
64
|
-
"Authenticated on Apple Developer Portal": isAuthenticatedOnApple,
|
|
65
64
|
"Apple Full Name": session?.user?.fullName || "Please authenticate",
|
|
66
|
-
"Apple Provider Name": session?.provider?.name || "Please authenticate"
|
|
65
|
+
"Apple Provider Name": session?.provider?.name || "Please authenticate",
|
|
66
|
+
"Authenticated on Apple Developer Portal": isAuthenticatedOnApple
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
const steps = [];
|
|
69
69
|
if (!isAuthenticatedOnApple) steps.push("shipthis apple login");
|
|
70
70
|
render(
|
|
71
71
|
/* @__PURE__ */ jsxs(Command, { command: this, children: [
|
|
72
|
-
/* @__PURE__ */ jsx(StatusTable, { marginBottom: 1, title: "Apple Status"
|
|
72
|
+
/* @__PURE__ */ jsx(StatusTable, { marginBottom: 1, statuses, title: "Apple Status" }),
|
|
73
73
|
/* @__PURE__ */ jsx(NextSteps, { steps })
|
|
74
74
|
] })
|
|
75
75
|
);
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import open from 'open';
|
|
2
|
-
import { B as BaseAuthenticatedCommand,
|
|
3
|
-
import '
|
|
4
|
-
import 'fs';
|
|
5
|
-
import '@oclif/core';
|
|
6
|
-
import '@expo/apple-utils/build/index.js';
|
|
2
|
+
import { B as BaseAuthenticatedCommand, X as getSingleUseUrl } from '../index-BhhiXbey.js';
|
|
3
|
+
import 'node:fs';
|
|
7
4
|
import 'axios';
|
|
8
5
|
import 'crypto-js';
|
|
9
6
|
import 'uuid';
|
|
10
7
|
import 'luxon';
|
|
11
|
-
import 'crypto';
|
|
12
|
-
import 'readline-sync';
|
|
13
|
-
import 'node:readline';
|
|
14
8
|
import 'node:path';
|
|
9
|
+
import '@oclif/core';
|
|
10
|
+
import '@expo/apple-utils/build/index.js';
|
|
11
|
+
import 'node:crypto';
|
|
12
|
+
import 'node:readline';
|
|
15
13
|
import 'node:url';
|
|
14
|
+
import 'readline-sync';
|
|
16
15
|
import 'isomorphic-git';
|
|
17
|
-
import 'ini';
|
|
18
16
|
import 'deepmerge';
|
|
19
|
-
import '
|
|
17
|
+
import 'ini';
|
|
20
18
|
import '@tanstack/react-query';
|
|
19
|
+
import 'react';
|
|
21
20
|
import 'fast-glob';
|
|
22
21
|
import 'yazl';
|
|
23
22
|
import 'socket.io-client';
|
|
24
|
-
import 'ink';
|
|
23
|
+
import 'fullscreen-ink';
|
|
25
24
|
|
|
26
25
|
class Dashboard extends BaseAuthenticatedCommand {
|
|
27
26
|
static args = {};
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { render } from 'ink';
|
|
3
2
|
import { Flags } from '@oclif/core';
|
|
4
|
-
import {
|
|
5
|
-
import '
|
|
6
|
-
import '../../../../index-CyvGh-kt.js';
|
|
3
|
+
import { render } from 'ink';
|
|
4
|
+
import { Q as getGoogleStatus, T as disconnectGoogle } from '../../../../index-BhhiXbey.js';
|
|
7
5
|
import 'ink-spinner';
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import '@tanstack/react-query';
|
|
11
|
-
import 'fs';
|
|
12
|
-
import 'uuid';
|
|
13
|
-
import 'yazl';
|
|
14
|
-
import 'crypto';
|
|
15
|
-
import 'readline-sync';
|
|
16
|
-
import 'node:readline';
|
|
6
|
+
import 'node:crypto';
|
|
7
|
+
import 'node:fs';
|
|
17
8
|
import 'node:path';
|
|
9
|
+
import 'node:readline';
|
|
18
10
|
import 'node:url';
|
|
11
|
+
import 'readline-sync';
|
|
19
12
|
import 'luxon';
|
|
13
|
+
import 'axios';
|
|
20
14
|
import 'isomorphic-git';
|
|
15
|
+
import '@tanstack/react-query';
|
|
16
|
+
import 'react';
|
|
21
17
|
import 'fast-glob';
|
|
18
|
+
import 'uuid';
|
|
19
|
+
import 'yazl';
|
|
22
20
|
import 'socket.io-client';
|
|
23
|
-
import
|
|
24
|
-
import 'marked';
|
|
25
|
-
import 'marked-terminal';
|
|
26
|
-
import 'path';
|
|
27
|
-
import 'qrcode';
|
|
21
|
+
import 'fullscreen-ink';
|
|
28
22
|
import 'string-length';
|
|
29
23
|
import 'strip-ansi';
|
|
30
|
-
import { C as CommandGame } from '../../../../CommandGame-Dif-oSky.js';
|
|
31
24
|
import 'open';
|
|
32
|
-
import {
|
|
33
|
-
import '
|
|
25
|
+
import { C as ConnectGoogle } from '../../../../index-C03TV1_J.js';
|
|
26
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
27
|
+
import '@inkjs/ui';
|
|
28
|
+
import 'marked';
|
|
29
|
+
import 'marked-terminal';
|
|
30
|
+
import 'qrcode';
|
|
31
|
+
import { C as CommandGame } from '../../../../CommandGame-cxzWG4nT.js';
|
|
32
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CsemgVjp.js';
|
|
34
33
|
import 'crypto-js';
|
|
35
|
-
import '
|
|
34
|
+
import '@expo/apple-utils/build/index.js';
|
|
36
35
|
import 'deepmerge';
|
|
37
|
-
import '
|
|
38
|
-
import '../../../../useAndroidServiceAccountTestResult-
|
|
39
|
-
import '../../../../useWebSocket-
|
|
40
|
-
import '../../../../
|
|
36
|
+
import 'ini';
|
|
37
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
38
|
+
import '../../../../useWebSocket-5PYa2QER.js';
|
|
39
|
+
import '../../../../index-CGBdOm1q.js';
|
|
40
|
+
import '../../../../Command-WPpmLPkL.js';
|
|
41
41
|
|
|
42
42
|
class GameAndroidApiKeyConnect extends BaseGameAndroidCommand {
|
|
43
43
|
static args = {};
|
|
@@ -49,8 +49,8 @@ class GameAndroidApiKeyConnect extends BaseGameAndroidCommand {
|
|
|
49
49
|
];
|
|
50
50
|
static flags = {
|
|
51
51
|
...BaseGameAndroidCommand.flags,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
disconnect: Flags.boolean({ char: "d" }),
|
|
53
|
+
force: Flags.boolean({ char: "f" })
|
|
54
54
|
};
|
|
55
55
|
async run() {
|
|
56
56
|
const googleStatus = await getGoogleStatus();
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { render } from 'ink';
|
|
3
2
|
import { Flags } from '@oclif/core';
|
|
4
|
-
import '
|
|
5
|
-
import '
|
|
6
|
-
import { P as Platform, C as CredentialsType } from '../../../../index-w3lHxk5O.js';
|
|
7
|
-
import 'ink-spinner';
|
|
3
|
+
import { render } from 'ink';
|
|
4
|
+
import 'node:fs';
|
|
8
5
|
import 'axios';
|
|
9
6
|
import 'crypto-js';
|
|
10
7
|
import 'uuid';
|
|
11
|
-
import '
|
|
8
|
+
import { P as Platform, C as CredentialsType } from '../../../../index-BhhiXbey.js';
|
|
12
9
|
import 'luxon';
|
|
13
|
-
import { a as getProjectCredentials } from '../../../../index-
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import 'yazl';
|
|
17
|
-
import 'crypto';
|
|
18
|
-
import 'readline-sync';
|
|
19
|
-
import 'node:readline';
|
|
10
|
+
import { a as getProjectCredentials } from '../../../../index-CtTI85m-.js';
|
|
11
|
+
import 'ink-spinner';
|
|
12
|
+
import 'node:crypto';
|
|
20
13
|
import 'node:path';
|
|
14
|
+
import 'node:readline';
|
|
21
15
|
import 'node:url';
|
|
16
|
+
import 'readline-sync';
|
|
22
17
|
import 'isomorphic-git';
|
|
18
|
+
import '@tanstack/react-query';
|
|
19
|
+
import 'react';
|
|
23
20
|
import 'fast-glob';
|
|
21
|
+
import 'yazl';
|
|
24
22
|
import 'socket.io-client';
|
|
23
|
+
import 'fullscreen-ink';
|
|
24
|
+
import 'string-length';
|
|
25
|
+
import 'strip-ansi';
|
|
25
26
|
import 'open';
|
|
27
|
+
import '@inkjs/ui';
|
|
26
28
|
import 'marked';
|
|
27
29
|
import 'marked-terminal';
|
|
28
|
-
import 'path';
|
|
29
30
|
import 'qrcode';
|
|
30
|
-
import '
|
|
31
|
-
import '
|
|
32
|
-
import { C as
|
|
33
|
-
import {
|
|
34
|
-
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DJ-cMLa_.js';
|
|
35
|
-
import '../../../../index-DJ078v-U.js';
|
|
36
|
-
import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
|
|
31
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
32
|
+
import { C as CreateServiceAccountKey } from '../../../../index-CS9Gwcb0.js';
|
|
33
|
+
import { C as CommandGame } from '../../../../CommandGame-cxzWG4nT.js';
|
|
34
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CsemgVjp.js';
|
|
37
35
|
import '@expo/apple-utils/build/index.js';
|
|
38
|
-
import 'ini';
|
|
39
36
|
import 'deepmerge';
|
|
40
|
-
import '
|
|
41
|
-
import '../../../../
|
|
42
|
-
import '../../../../
|
|
43
|
-
import '../../../../
|
|
37
|
+
import 'ini';
|
|
38
|
+
import '../../../../index-CGBdOm1q.js';
|
|
39
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
40
|
+
import '../../../../useWebSocket-5PYa2QER.js';
|
|
41
|
+
import '../../../../useProjectCredentials-BEphqa18.js';
|
|
42
|
+
import '../../../../ProgressSpinner-DGcakQSK.js';
|
|
43
|
+
import '../../../../Command-WPpmLPkL.js';
|
|
44
44
|
|
|
45
45
|
class GameAndroidApiKeyCreate extends BaseGameAndroidCommand {
|
|
46
46
|
static args = {};
|
|
@@ -51,8 +51,8 @@ class GameAndroidApiKeyCreate extends BaseGameAndroidCommand {
|
|
|
51
51
|
];
|
|
52
52
|
static flags = {
|
|
53
53
|
...BaseGameAndroidCommand.flags,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
force: Flags.boolean({ char: "f" }),
|
|
55
|
+
waitForAuth: Flags.boolean({ char: "w", description: "Wait for Google Authentication (10 mins)." })
|
|
56
56
|
};
|
|
57
57
|
async run() {
|
|
58
58
|
const game = await this.getGame();
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as fs from 'node:fs';
|
|
2
3
|
import { Args, Flags } from '@oclif/core';
|
|
3
4
|
import { render } from 'ink';
|
|
4
|
-
import
|
|
5
|
-
import { P as Platform, C as CredentialsType } from '../../../../index-
|
|
6
|
-
import { a as getProjectCredentials } from '../../../../index-C6aAyrXW.js';
|
|
7
|
-
import 'react';
|
|
8
|
-
import '../../../../index-CyvGh-kt.js';
|
|
5
|
+
import { a as getProjectCredentials } from '../../../../index-CtTI85m-.js';
|
|
6
|
+
import { P as Platform, C as CredentialsType } from '../../../../index-BhhiXbey.js';
|
|
9
7
|
import 'ink-spinner';
|
|
10
|
-
import '
|
|
11
|
-
import 'crypto-js';
|
|
12
|
-
import 'uuid';
|
|
13
|
-
import 'luxon';
|
|
14
|
-
import '@inkjs/ui';
|
|
15
|
-
import '@tanstack/react-query';
|
|
16
|
-
import 'yazl';
|
|
17
|
-
import 'crypto';
|
|
18
|
-
import 'readline-sync';
|
|
19
|
-
import 'node:readline';
|
|
8
|
+
import 'node:crypto';
|
|
20
9
|
import 'node:path';
|
|
10
|
+
import 'node:readline';
|
|
21
11
|
import 'node:url';
|
|
12
|
+
import 'readline-sync';
|
|
13
|
+
import 'luxon';
|
|
14
|
+
import 'axios';
|
|
22
15
|
import 'isomorphic-git';
|
|
16
|
+
import '@tanstack/react-query';
|
|
17
|
+
import 'react';
|
|
18
|
+
import 'crypto-js';
|
|
19
|
+
import 'uuid';
|
|
23
20
|
import 'fast-glob';
|
|
21
|
+
import 'yazl';
|
|
24
22
|
import 'socket.io-client';
|
|
23
|
+
import 'fullscreen-ink';
|
|
24
|
+
import 'string-length';
|
|
25
|
+
import 'strip-ansi';
|
|
25
26
|
import 'open';
|
|
27
|
+
import '@inkjs/ui';
|
|
26
28
|
import 'marked';
|
|
27
29
|
import 'marked-terminal';
|
|
28
|
-
import 'path';
|
|
29
30
|
import 'qrcode';
|
|
30
|
-
import { R as RunWithSpinner } from '../../../../RunWithSpinner-
|
|
31
|
-
import '
|
|
32
|
-
import '
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { e as exportCredential } from '../../../../export-DZxo2_e_.js';
|
|
31
|
+
import { R as RunWithSpinner } from '../../../../RunWithSpinner-gMVA07bZ.js';
|
|
32
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
33
|
+
import { C as Command } from '../../../../Command-WPpmLPkL.js';
|
|
34
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CsemgVjp.js';
|
|
35
|
+
import { e as exportCredential } from '../../../../export-CXsVPXA1.js';
|
|
36
36
|
import '@expo/apple-utils/build/index.js';
|
|
37
|
-
import 'ini';
|
|
38
37
|
import 'deepmerge';
|
|
39
|
-
import '
|
|
40
|
-
import '../../../../
|
|
38
|
+
import 'ini';
|
|
39
|
+
import '../../../../index-CGBdOm1q.js';
|
|
40
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
41
41
|
|
|
42
42
|
class GameAndroidApiKeyExport extends BaseGameAndroidCommand {
|
|
43
43
|
static args = {
|
|
@@ -46,8 +46,8 @@ class GameAndroidApiKeyExport extends BaseGameAndroidCommand {
|
|
|
46
46
|
static description = "Saves the current Android Service Account API Key to a ZIP file";
|
|
47
47
|
static examples = ["<%= config.bin %> <%= command.id %> keyStore.zip"];
|
|
48
48
|
static flags = {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
force: Flags.boolean({ char: "f", description: "Overwrite the file if it already exists" }),
|
|
50
|
+
gameId: Flags.string({ char: "g", description: "The ID of the game" })
|
|
51
51
|
};
|
|
52
52
|
async run() {
|
|
53
53
|
const { args, flags } = this;
|
|
@@ -71,9 +71,9 @@ class GameAndroidApiKeyExport extends BaseGameAndroidCommand {
|
|
|
71
71
|
/* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
|
|
72
72
|
RunWithSpinner,
|
|
73
73
|
{
|
|
74
|
-
|
|
74
|
+
executeMethod: () => exportCredential({ credentialId: apiKey.id, projectId: game.id, zipPath: file }),
|
|
75
75
|
msgComplete: `Android Service Account API Key exported to ${file}`,
|
|
76
|
-
|
|
76
|
+
msgInProgress: `Exporting Android Service Account API Key to ${file}...`,
|
|
77
77
|
onComplete: handleComplete
|
|
78
78
|
}
|
|
79
79
|
) })
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as fs from 'node:fs';
|
|
2
3
|
import { Args, Flags } from '@oclif/core';
|
|
3
4
|
import { render } from 'ink';
|
|
4
|
-
import
|
|
5
|
-
import { P as Platform, C as CredentialsType } from '../../../../index-
|
|
6
|
-
import { a as getProjectCredentials } from '../../../../index-C6aAyrXW.js';
|
|
7
|
-
import 'react';
|
|
8
|
-
import '../../../../index-CyvGh-kt.js';
|
|
5
|
+
import { a as getProjectCredentials } from '../../../../index-CtTI85m-.js';
|
|
6
|
+
import { P as Platform, C as CredentialsType } from '../../../../index-BhhiXbey.js';
|
|
9
7
|
import 'ink-spinner';
|
|
10
|
-
import '
|
|
11
|
-
import 'crypto-js';
|
|
12
|
-
import 'uuid';
|
|
13
|
-
import 'luxon';
|
|
14
|
-
import '@inkjs/ui';
|
|
15
|
-
import '@tanstack/react-query';
|
|
16
|
-
import 'yazl';
|
|
17
|
-
import 'crypto';
|
|
18
|
-
import 'readline-sync';
|
|
19
|
-
import 'node:readline';
|
|
8
|
+
import 'node:crypto';
|
|
20
9
|
import 'node:path';
|
|
10
|
+
import 'node:readline';
|
|
21
11
|
import 'node:url';
|
|
12
|
+
import 'readline-sync';
|
|
13
|
+
import 'luxon';
|
|
14
|
+
import 'axios';
|
|
22
15
|
import 'isomorphic-git';
|
|
16
|
+
import '@tanstack/react-query';
|
|
17
|
+
import 'react';
|
|
18
|
+
import 'crypto-js';
|
|
19
|
+
import 'uuid';
|
|
23
20
|
import 'fast-glob';
|
|
21
|
+
import 'yazl';
|
|
24
22
|
import 'socket.io-client';
|
|
23
|
+
import 'fullscreen-ink';
|
|
24
|
+
import 'string-length';
|
|
25
|
+
import 'strip-ansi';
|
|
25
26
|
import 'open';
|
|
27
|
+
import '@inkjs/ui';
|
|
26
28
|
import 'marked';
|
|
27
29
|
import 'marked-terminal';
|
|
28
|
-
import 'path';
|
|
29
30
|
import 'qrcode';
|
|
30
|
-
import { R as RunWithSpinner } from '../../../../RunWithSpinner-
|
|
31
|
-
import '
|
|
32
|
-
import '
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { i as importCredential } from '../../../../import-8pL1AF47.js';
|
|
31
|
+
import { R as RunWithSpinner } from '../../../../RunWithSpinner-gMVA07bZ.js';
|
|
32
|
+
import '../../../../index-C66Dd8Xc.js';
|
|
33
|
+
import { C as Command } from '../../../../Command-WPpmLPkL.js';
|
|
34
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CsemgVjp.js';
|
|
35
|
+
import { i as importCredential } from '../../../../import-DGvG5REx.js';
|
|
36
36
|
import '@expo/apple-utils/build/index.js';
|
|
37
|
-
import 'ini';
|
|
38
37
|
import 'deepmerge';
|
|
39
|
-
import '
|
|
40
|
-
import '../../../../
|
|
38
|
+
import 'ini';
|
|
39
|
+
import '../../../../index-CGBdOm1q.js';
|
|
40
|
+
import '../../../../useAndroidServiceAccountTestResult-DZk5SMxI.js';
|
|
41
41
|
|
|
42
42
|
class GameAndroidApiKeyImport extends BaseGameAndroidCommand {
|
|
43
43
|
static args = {
|
|
@@ -49,8 +49,8 @@ class GameAndroidApiKeyImport extends BaseGameAndroidCommand {
|
|
|
49
49
|
static description = "Imports an Android Service Account API Key to your ShipThis account for the specified game.";
|
|
50
50
|
static examples = ["<%= config.bin %> <%= command.id %>"];
|
|
51
51
|
static flags = {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
force: Flags.boolean({ char: "f" }),
|
|
53
|
+
gameId: Flags.string({ char: "g", description: "The ID of the game" })
|
|
54
54
|
};
|
|
55
55
|
async run() {
|
|
56
56
|
const game = await this.getGame();
|
|
@@ -75,14 +75,14 @@ class GameAndroidApiKeyImport extends BaseGameAndroidCommand {
|
|
|
75
75
|
/* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
|
|
76
76
|
RunWithSpinner,
|
|
77
77
|
{
|
|
78
|
-
msgInProgress: `Importing Android Service Account API Key from ${file}...`,
|
|
79
|
-
msgComplete: `Android Service Account API Key imported from ${file}`,
|
|
80
78
|
executeMethod: () => importCredential({
|
|
79
|
+
platform: Platform.ANDROID,
|
|
81
80
|
projectId: game.id,
|
|
82
|
-
zipPath: file,
|
|
83
81
|
type: CredentialsType.KEY,
|
|
84
|
-
|
|
82
|
+
zipPath: file
|
|
85
83
|
}),
|
|
84
|
+
msgComplete: `Android Service Account API Key imported from ${file}`,
|
|
85
|
+
msgInProgress: `Importing Android Service Account API Key from ${file}...`,
|
|
86
86
|
onComplete: handleComplete
|
|
87
87
|
}
|
|
88
88
|
) })
|