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.
Files changed (84) hide show
  1. package/dist/{AppleBundleIdDetails-eoK5F8Qn.js → AppleBundleIdDetails-6H3cNWxw.js} +17 -19
  2. package/dist/Command-WPpmLPkL.js +29 -0
  3. package/dist/CommandGame-cxzWG4nT.js +7 -0
  4. package/dist/{Create-ISdroJ3G.js → Create-3Ob8sjik.js} +20 -20
  5. package/dist/GameStatus-BQEtVKvv.js +137 -0
  6. package/dist/{Import-CfThJF6k.js → Import-CFuPDI0K.js} +33 -35
  7. package/dist/{JobLogTail-BWzbQBZz.js → JobLogTail-0CBLoG8N.js} +53 -52
  8. package/dist/{JobProgress-DjIkuk5U.js → JobProgress-lKqVT88m.js} +35 -36
  9. package/dist/{JobStatusTable-CEqWU73q.js → JobStatusTable-C_ZsZJCm.js} +14 -13
  10. package/dist/{NextSteps-CK9zHOCt.js → NextSteps-DbJHmscQ.js} +1 -3
  11. package/dist/{ProgressSpinner-6pw1T8Iw.js → ProgressSpinner-DGcakQSK.js} +1 -1
  12. package/dist/{ProjectCredentialsTable-u9ruZ9mN.js → ProjectCredentialsTable-B5pHOnGu.js} +11 -10
  13. package/dist/{StatusTable-Dm5St4g-.js → StatusTable-DzRWcMr4.js} +7 -9
  14. package/dist/{Table-CvM6pccN.js → Table-FaNgpyeq.js} +15 -15
  15. package/dist/{UserCredentialsTable-Q7u9M-ap.js → UserCredentialsTable-3W3qesh7.js} +18 -19
  16. package/dist/{baseAppleCommand-zhkGlKq0.js → baseAppleCommand-BGV088--.js} +1 -1
  17. package/dist/{baseGameAndroidCommand-DJ-cMLa_.js → baseGameAndroidCommand-CsemgVjp.js} +23 -23
  18. package/dist/commands/apple/apiKey/create.js +35 -35
  19. package/dist/commands/apple/apiKey/export.js +26 -26
  20. package/dist/commands/apple/apiKey/import.js +27 -27
  21. package/dist/commands/apple/apiKey/status.js +31 -31
  22. package/dist/commands/apple/certificate/create.js +39 -39
  23. package/dist/commands/apple/certificate/export.js +26 -26
  24. package/dist/commands/apple/certificate/import.js +27 -27
  25. package/dist/commands/apple/certificate/status.js +31 -31
  26. package/dist/commands/apple/login.js +15 -16
  27. package/dist/commands/apple/status.js +27 -27
  28. package/dist/commands/dashboard.js +10 -11
  29. package/dist/commands/game/android/apiKey/connect.js +28 -28
  30. package/dist/commands/game/android/apiKey/create.js +28 -28
  31. package/dist/commands/game/android/apiKey/export.js +29 -29
  32. package/dist/commands/game/android/apiKey/import.js +31 -31
  33. package/dist/commands/game/android/apiKey/invite.js +14 -15
  34. package/dist/commands/game/android/apiKey/status.js +29 -29
  35. package/dist/commands/game/android/keyStore/create.js +24 -24
  36. package/dist/commands/game/android/keyStore/export.js +28 -28
  37. package/dist/commands/game/android/keyStore/import.js +35 -35
  38. package/dist/commands/game/android/keyStore/status.js +26 -26
  39. package/dist/commands/game/android/status.js +14 -58
  40. package/dist/commands/game/build/download.js +24 -24
  41. package/dist/commands/game/build/list.js +37 -37
  42. package/dist/commands/game/create.js +15 -16
  43. package/dist/commands/game/details.js +35 -36
  44. package/dist/commands/game/export.js +12 -13
  45. package/dist/commands/game/ios/app/addTester.js +24 -24
  46. package/dist/commands/game/ios/app/create.js +24 -24
  47. package/dist/commands/game/ios/app/status.js +29 -29
  48. package/dist/commands/game/ios/app/sync.js +31 -31
  49. package/dist/commands/game/ios/profile/create.js +30 -30
  50. package/dist/commands/game/ios/profile/export.js +28 -28
  51. package/dist/commands/game/ios/profile/import.js +32 -32
  52. package/dist/commands/game/ios/profile/status.js +36 -36
  53. package/dist/commands/game/ios/status.js +46 -58
  54. package/dist/commands/game/ios/wizard.js +31 -31
  55. package/dist/commands/game/job/list.js +34 -34
  56. package/dist/commands/game/job/status.js +31 -31
  57. package/dist/commands/game/list.js +37 -39
  58. package/dist/commands/game/ship.js +73 -71
  59. package/dist/commands/game/status.js +38 -85
  60. package/dist/commands/game/wizard.js +250 -239
  61. package/dist/commands/internal/fastlane.js +15 -18
  62. package/dist/commands/internal/readme.js +38 -37
  63. package/dist/commands/login.js +14 -15
  64. package/dist/commands/status.js +32 -30
  65. package/dist/{export-DZxo2_e_.js → export-CXsVPXA1.js} +5 -5
  66. package/dist/{git-DREGq-jc.js → git-BpsfNFZ_.js} +8 -8
  67. package/dist/{import-8pL1AF47.js → import-DGvG5REx.js} +14 -14
  68. package/dist/{index-w3lHxk5O.js → index-BhhiXbey.js} +240 -224
  69. package/dist/{index-BHh0BZvD.js → index-C03TV1_J.js} +37 -55
  70. package/dist/{index-CyvGh-kt.js → index-C66Dd8Xc.js} +77 -87
  71. package/dist/{index-DJ078v-U.js → index-CGBdOm1q.js} +43 -28
  72. package/dist/{index-DKQjnJrC.js → index-CS9Gwcb0.js} +41 -43
  73. package/dist/{index-C6aAyrXW.js → index-CtTI85m-.js} +6 -6
  74. package/dist/{upload-BTpxj3QP.js → upload-8y5MQEm9.js} +22 -22
  75. package/dist/{useAndroidServiceAccountTestResult-Dy3Ag7_r.js → useAndroidServiceAccountTestResult-DZk5SMxI.js} +11 -13
  76. package/dist/{useAppleApp-h1Ogi_qc.js → useAppleApp-DWYGURwU.js} +4 -4
  77. package/dist/{useAppleBundleId-B3TTNap0.js → useAppleBundleId-PsTJ2g1B.js} +6 -6
  78. package/dist/{useProjectCredentials-DpeXZcHP.js → useProjectCredentials-BEphqa18.js} +10 -12
  79. package/dist/{useWebSocket-gyuCsore.js → useWebSocket-5PYa2QER.js} +1 -1
  80. package/dist/utils/help.js +4 -4
  81. package/package.json +4 -3
  82. package/dist/Command-DFdHXDiU.js +0 -44
  83. package/dist/CommandGame-Dif-oSky.js +0 -9
  84. 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, l as Certificate, m as CertificateType, P as Platform, C as CredentialsType, B as BaseAuthenticatedCommand } from '../../../index-w3lHxk5O.js';
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 'axios';
9
- import 'crypto-js';
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 'string-length';
30
- import 'strip-ansi';
31
- import { g as getShortUUID } from '../../../index-DJ078v-U.js';
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-CK9zHOCt.js';
36
- import { C as Command } from '../../../Command-DFdHXDiU.js';
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 '../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
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
- queryKey: ["appleCertificates"],
68
- queryFn: () => queryAppleCertificates(props)
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, { marginLeft: 2, marginBottom: 1, flexDirection: "column", children: [
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: { type: CredentialsType.CERTIFICATE, platform: Platform.IOS }
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 { Z as Auth, B as BaseAuthenticatedCommand } from '../../index-w3lHxk5O.js';
3
- import { a as getInput, e as getMaskedInput } from '../../index-DJ078v-U.js';
4
- import 'path';
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 'react';
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
- username,
29
- password
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-CyvGh-kt.js';
3
+ import { B as BaseAuthenticatedCommand } from '../../index-BhhiXbey.js';
6
4
  import 'ink-spinner';
7
- import 'axios';
8
- import 'crypto-js';
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 'path';
28
- import { N as NextSteps } from '../../NextSteps-CK9zHOCt.js';
30
+ import { N as NextSteps } from '../../NextSteps-DbJHmscQ.js';
29
31
  import 'qrcode';
30
- import { S as StatusTable } from '../../StatusTable-Dm5St4g-.js';
31
- import 'string-length';
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 '../../index-DJ078v-U.js';
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
- let steps = [];
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", statuses }),
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, V as getSingleUseUrl } from '../index-w3lHxk5O.js';
3
- import 'path';
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 'react';
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 { Q as getGoogleStatus, S as disconnectGoogle } from '../../../../index-w3lHxk5O.js';
5
- import 'react';
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 '@inkjs/ui';
9
- import 'axios';
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 { C as ConnectGoogle } from '../../../../index-BHh0BZvD.js';
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 { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DJ-cMLa_.js';
33
- import '@expo/apple-utils/build/index.js';
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 'ini';
34
+ import '@expo/apple-utils/build/index.js';
36
35
  import 'deepmerge';
37
- import '../../../../index-DJ078v-U.js';
38
- import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
39
- import '../../../../useWebSocket-gyuCsore.js';
40
- import '../../../../Command-DFdHXDiU.js';
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
- force: Flags.boolean({ char: "f" }),
53
- disconnect: Flags.boolean({ char: "d" })
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 'react';
5
- import '../../../../index-CyvGh-kt.js';
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 'fs';
8
+ import { P as Platform, C as CredentialsType } from '../../../../index-BhhiXbey.js';
12
9
  import 'luxon';
13
- import { a as getProjectCredentials } from '../../../../index-C6aAyrXW.js';
14
- import '@inkjs/ui';
15
- import '@tanstack/react-query';
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 'string-length';
31
- import 'strip-ansi';
32
- import { C as CreateServiceAccountKey } from '../../../../index-DKQjnJrC.js';
33
- import { C as CommandGame } from '../../../../CommandGame-Dif-oSky.js';
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 '../../../../useWebSocket-gyuCsore.js';
41
- import '../../../../useProjectCredentials-DpeXZcHP.js';
42
- import '../../../../ProgressSpinner-6pw1T8Iw.js';
43
- import '../../../../Command-DFdHXDiU.js';
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
- waitForAuth: Flags.boolean({ char: "w", description: "Wait for Google Authentication (10 mins)." }),
55
- force: Flags.boolean({ char: "f" })
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 * as fs from 'fs';
5
- import { P as Platform, C as CredentialsType } from '../../../../index-w3lHxk5O.js';
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 'axios';
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-BVXNWGD3.js';
31
- import 'string-length';
32
- import 'strip-ansi';
33
- import { C as Command } from '../../../../Command-DFdHXDiU.js';
34
- import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DJ-cMLa_.js';
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 '../../../../index-DJ078v-U.js';
40
- import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
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
- gameId: Flags.string({ char: "g", description: "The ID of the game" }),
50
- force: Flags.boolean({ char: "f", description: "Overwrite the file if it already exists" })
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
- msgInProgress: `Exporting Android Service Account API Key to ${file}...`,
74
+ executeMethod: () => exportCredential({ credentialId: apiKey.id, projectId: game.id, zipPath: file }),
75
75
  msgComplete: `Android Service Account API Key exported to ${file}`,
76
- executeMethod: () => exportCredential({ zipPath: file, credentialId: apiKey.id, projectId: game.id }),
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 * as fs from 'fs';
5
- import { P as Platform, C as CredentialsType } from '../../../../index-w3lHxk5O.js';
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 'axios';
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-BVXNWGD3.js';
31
- import 'string-length';
32
- import 'strip-ansi';
33
- import { C as Command } from '../../../../Command-DFdHXDiU.js';
34
- import { B as BaseGameAndroidCommand } from '../../../../baseGameAndroidCommand-DJ-cMLa_.js';
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 '../../../../index-DJ078v-U.js';
40
- import '../../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
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
- gameId: Flags.string({ char: "g", description: "The ID of the game" }),
53
- force: Flags.boolean({ char: "f" })
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
- platform: Platform.ANDROID
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
  ) })