shipthis 0.1.31 → 0.1.33
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-BhHPCvRm.js} +17 -19
- package/dist/Command-BDIkuv2g.js +29 -0
- package/dist/CommandGame-CvBIjPZp.js +7 -0
- package/dist/{Create-ISdroJ3G.js → Create-Lpe0B8nT.js} +20 -20
- package/dist/GameStatus-5XpufIY_.js +137 -0
- package/dist/{Import-CfThJF6k.js → Import-DFzrAG04.js} +34 -36
- package/dist/{JobLogTail-BWzbQBZz.js → JobLogTail-BYcJgPcL.js} +53 -52
- package/dist/{JobProgress-DjIkuk5U.js → JobProgress-BcrE7CUK.js} +40 -38
- package/dist/{JobStatusTable-CEqWU73q.js → JobStatusTable-Bi-y8ZZT.js} +14 -13
- package/dist/{NextSteps-CK9zHOCt.js → NextSteps-DbJHmscQ.js} +1 -3
- package/dist/{ProgressSpinner-6pw1T8Iw.js → ProgressSpinner-Um6ARKlk.js} +2 -2
- package/dist/{ProjectCredentialsTable-u9ruZ9mN.js → ProjectCredentialsTable-B4vDJl4l.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-CwkZTFBD.js} +18 -19
- package/dist/{baseAppleCommand-zhkGlKq0.js → baseAppleCommand-BKXweb-U.js} +1 -1
- package/dist/{baseGameAndroidCommand-DJ-cMLa_.js → baseGameAndroidCommand-CAi-BSsH.js} +23 -23
- package/dist/commands/apple/apiKey/create.js +36 -36
- package/dist/commands/apple/apiKey/export.js +27 -27
- package/dist/commands/apple/apiKey/import.js +28 -28
- package/dist/commands/apple/apiKey/status.js +32 -32
- package/dist/commands/apple/certificate/create.js +40 -40
- package/dist/commands/apple/certificate/export.js +27 -27
- package/dist/commands/apple/certificate/import.js +28 -28
- package/dist/commands/apple/certificate/status.js +33 -33
- package/dist/commands/apple/login.js +15 -15
- package/dist/commands/apple/status.js +27 -27
- package/dist/commands/dashboard.js +10 -10
- package/dist/commands/game/android/apiKey/connect.js +28 -28
- package/dist/commands/game/android/apiKey/create.js +29 -29
- package/dist/commands/game/android/apiKey/export.js +30 -30
- package/dist/commands/game/android/apiKey/import.js +32 -32
- package/dist/commands/game/android/apiKey/invite.js +14 -14
- package/dist/commands/game/android/apiKey/status.js +30 -30
- package/dist/commands/game/android/keyStore/create.js +25 -25
- package/dist/commands/game/android/keyStore/export.js +29 -29
- package/dist/commands/game/android/keyStore/import.js +36 -36
- package/dist/commands/game/android/keyStore/status.js +26 -26
- package/dist/commands/game/android/status.js +15 -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 -15
- package/dist/commands/game/details.js +35 -36
- package/dist/commands/game/export.js +12 -12
- package/dist/commands/game/ios/app/addTester.js +37 -32
- 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 +32 -32
- package/dist/commands/game/ios/profile/export.js +29 -29
- package/dist/commands/game/ios/profile/import.js +33 -33
- 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 +39 -34
- package/dist/commands/game/job/list.js +34 -34
- package/dist/commands/game/job/status.js +32 -32
- package/dist/commands/game/list.js +38 -40
- package/dist/commands/game/ship.js +81 -77
- package/dist/commands/game/status.js +38 -85
- package/dist/commands/game/wizard.js +253 -242
- package/dist/commands/internal/fastlane.js +15 -17
- package/dist/commands/internal/readme.js +38 -36
- package/dist/commands/login.js +14 -14
- package/dist/commands/status.js +32 -30
- package/dist/{export-DZxo2_e_.js → export-DLQrUEBK.js} +5 -5
- package/dist/{git-DREGq-jc.js → git-BpsfNFZ_.js} +8 -8
- package/dist/{import-8pL1AF47.js → import-BoY5e0uJ.js} +14 -14
- package/dist/{index-DJ078v-U.js → index-B27WJDxn.js} +43 -27
- package/dist/{index-DKQjnJrC.js → index-CisLwc7e.js} +42 -44
- package/dist/{index-C6aAyrXW.js → index-Crv7S0bl.js} +6 -6
- package/dist/{index-BHh0BZvD.js → index-DC0GJtAy.js} +50 -60
- package/dist/{index-CyvGh-kt.js → index-DfUg5j06.js} +93 -92
- package/dist/{index-w3lHxk5O.js → index-pj8JVg5X.js} +242 -225
- package/dist/{upload-BTpxj3QP.js → upload-C8S17EU_.js} +22 -22
- package/dist/{useAndroidServiceAccountTestResult-Dy3Ag7_r.js → useAndroidServiceAccountTestResult-D4e5AKAZ.js} +11 -13
- package/dist/{useAppleApp-h1Ogi_qc.js → useAppleApp-Dr6URQvC.js} +4 -4
- package/dist/{useAppleBundleId-B3TTNap0.js → useAppleBundleId-DELAwSQp.js} +6 -6
- package/dist/{useProjectCredentials-DpeXZcHP.js → useProjectCredentials-BjvdJdQg.js} +10 -12
- package/dist/{useWebSocket-gyuCsore.js → useWebSocket-CRV7V69Q.js} +1 -1
- package/dist/utils/help.js +4 -4
- package/package.json +5 -4
- 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-pj8JVg5X.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-CwkZTFBD.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-DfUg5j06.js';
|
|
32
|
+
import { g as getShortUUID } from '../../../index-B27WJDxn.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-BDIkuv2g.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-D4e5AKAZ.js';
|
|
41
41
|
|
|
42
42
|
async function queryAppleCertificates({ ctx }) {
|
|
43
43
|
const appleCerts = await Certificate.getAsync(ctx, {
|
|
@@ -50,22 +50,22 @@ async function queryAppleCertificates({ ctx }) {
|
|
|
50
50
|
return appleCerts;
|
|
51
51
|
}
|
|
52
52
|
const canAppleCertificateBeUsed = (cert, userCredentials) => {
|
|
53
|
-
if (cert.attributes.status
|
|
54
|
-
return userCredentials.some((cred) => cred.isActive && cred.serialNumber
|
|
53
|
+
if (cert.attributes.status !== "Issued") return false;
|
|
54
|
+
return userCredentials.some((cred) => cred.isActive && cred.serialNumber === cert.attributes.serialNumber);
|
|
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,32 @@
|
|
|
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-pj8JVg5X.js';
|
|
3
|
+
import { a as getInput, e as getMaskedInput } from '../../index-B27WJDxn.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';
|
|
23
|
+
import 'fullscreen-ink';
|
|
24
24
|
import 'ink';
|
|
25
25
|
|
|
26
26
|
async function getNewAuthState(username, password) {
|
|
27
27
|
const authState = await Auth.loginAsync({
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
password,
|
|
29
|
+
username
|
|
30
30
|
});
|
|
31
31
|
return authState;
|
|
32
32
|
}
|
|
@@ -39,12 +39,12 @@ class AppleLogin extends BaseAuthenticatedCommand {
|
|
|
39
39
|
"<%= config.bin %> <%= command.id %> --force --appleEmail me@email.nowhere"
|
|
40
40
|
];
|
|
41
41
|
static flags = {
|
|
42
|
-
quiet: Flags.boolean({ char: "q", description: "Avoid output except for interactions and errors" }),
|
|
43
|
-
force: Flags.boolean({ char: "f" }),
|
|
44
42
|
appleEmail: Flags.string({
|
|
45
43
|
char: "e",
|
|
46
44
|
description: "Your Apple Developer email address"
|
|
47
|
-
})
|
|
45
|
+
}),
|
|
46
|
+
force: Flags.boolean({ char: "f" }),
|
|
47
|
+
quiet: Flags.boolean({ char: "q", description: "Avoid output except for interactions and errors" })
|
|
48
48
|
};
|
|
49
49
|
async run() {
|
|
50
50
|
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-pj8JVg5X.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-DfUg5j06.js';
|
|
33
|
+
import { C as Command } from '../../Command-BDIkuv2g.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-B27WJDxn.js';
|
|
39
|
+
import '../../useAndroidServiceAccountTestResult-D4e5AKAZ.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,26 +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-pj8JVg5X.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';
|
|
23
|
+
import 'fullscreen-ink';
|
|
24
24
|
import 'ink';
|
|
25
25
|
|
|
26
26
|
class Dashboard extends BaseAuthenticatedCommand {
|
|
@@ -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-pj8JVg5X.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-DC0GJtAy.js';
|
|
26
|
+
import '../../../../index-DfUg5j06.js';
|
|
27
|
+
import '@inkjs/ui';
|
|
28
|
+
import 'marked';
|
|
29
|
+
import 'marked-terminal';
|
|
30
|
+
import 'qrcode';
|
|
31
|
+
import { C as CommandGame } from '../../../../CommandGame-CvBIjPZp.js';
|
|
32
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CAi-BSsH.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-D4e5AKAZ.js';
|
|
38
|
+
import '../../../../useWebSocket-CRV7V69Q.js';
|
|
39
|
+
import '../../../../index-B27WJDxn.js';
|
|
40
|
+
import '../../../../Command-BDIkuv2g.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-pj8JVg5X.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-Crv7S0bl.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-DfUg5j06.js';
|
|
32
|
+
import { C as CreateServiceAccountKey } from '../../../../index-CisLwc7e.js';
|
|
33
|
+
import { C as CommandGame } from '../../../../CommandGame-CvBIjPZp.js';
|
|
34
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CAi-BSsH.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-B27WJDxn.js';
|
|
39
|
+
import '../../../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
|
|
40
|
+
import '../../../../useWebSocket-CRV7V69Q.js';
|
|
41
|
+
import '../../../../useProjectCredentials-BjvdJdQg.js';
|
|
42
|
+
import '../../../../ProgressSpinner-Um6ARKlk.js';
|
|
43
|
+
import '../../../../Command-BDIkuv2g.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();
|
|
@@ -60,7 +60,7 @@ class GameAndroidApiKeyCreate extends BaseGameAndroidCommand {
|
|
|
60
60
|
this.checkGoogleAuth(waitForAuth);
|
|
61
61
|
const projectCredentials = await getProjectCredentials(game.id);
|
|
62
62
|
const hasApiKey = projectCredentials.some(
|
|
63
|
-
(cred) => cred.platform
|
|
63
|
+
(cred) => cred.platform === Platform.ANDROID && cred.isActive && cred.type === CredentialsType.KEY
|
|
64
64
|
);
|
|
65
65
|
if (hasApiKey && !force) {
|
|
66
66
|
this.error("An API Key is already set on this game. Use --force to overwrite it.");
|
|
@@ -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-Crv7S0bl.js';
|
|
6
|
+
import { P as Platform, C as CredentialsType } from '../../../../index-pj8JVg5X.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-DfUg5j06.js';
|
|
33
|
+
import { C as Command } from '../../../../Command-BDIkuv2g.js';
|
|
34
|
+
import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-CAi-BSsH.js';
|
|
35
|
+
import { e as exportCredential } from '../../../../export-DLQrUEBK.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-B27WJDxn.js';
|
|
40
|
+
import '../../../../useAndroidServiceAccountTestResult-D4e5AKAZ.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;
|
|
@@ -60,7 +60,7 @@ class GameAndroidApiKeyExport extends BaseGameAndroidCommand {
|
|
|
60
60
|
}
|
|
61
61
|
const projectCredentials = await getProjectCredentials(game.id);
|
|
62
62
|
const projectAndroidApiKeyCreds = projectCredentials.filter(
|
|
63
|
-
(cred) => cred.platform
|
|
63
|
+
(cred) => cred.platform === Platform.ANDROID && cred.type === CredentialsType.KEY && cred.isActive
|
|
64
64
|
);
|
|
65
65
|
if (projectAndroidApiKeyCreds.length === 0) {
|
|
66
66
|
this.error("No Android Service Account API Key found which can be exported.");
|
|
@@ -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
|
) })
|