shipthis 0.1.25 → 0.1.26

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-mPUG2R4N.js +76 -0
  2. package/dist/Command-B3AmRt2w.js +28 -0
  3. package/dist/CommandGame-BCMzP9pc.js +9 -0
  4. package/dist/Create-CsJxpzUs.js +59 -0
  5. package/dist/Import-v0M_ygyF.js +110 -0
  6. package/dist/JobProgress-9uvq8IBn.js +121 -0
  7. package/dist/JobStatusTable-Bf7J9WXe.js +191 -0
  8. package/dist/NextSteps-CK9zHOCt.js +18 -0
  9. package/dist/ProgressSpinner-6pw1T8Iw.js +16 -0
  10. package/dist/ProjectCredentialsTable-CTkP1mvy.js +37 -0
  11. package/dist/RunWithSpinner-BVXNWGD3.js +27 -0
  12. package/dist/StatusTable-Dm5St4g-.js +33 -0
  13. package/dist/Table-CvM6pccN.js +101 -0
  14. package/dist/Title-BCQtayg6.js +6 -0
  15. package/dist/UserCredentialsTable-DhtM_iTG.js +82 -0
  16. package/dist/baseAppleCommand-IGl6KTvv.js +10 -0
  17. package/dist/baseGameAndroidCommand-DFn4zMvq.js +43 -0
  18. package/dist/commands/apple/apiKey/create.js +103 -0
  19. package/dist/commands/apple/apiKey/export.js +81 -0
  20. package/dist/commands/apple/apiKey/import.js +85 -0
  21. package/dist/commands/apple/apiKey/status.js +122 -0
  22. package/dist/commands/apple/certificate/create.js +133 -0
  23. package/dist/commands/apple/certificate/export.js +81 -0
  24. package/dist/commands/apple/certificate/import.js +85 -0
  25. package/dist/commands/apple/certificate/status.js +130 -0
  26. package/dist/commands/apple/login.js +76 -0
  27. package/dist/commands/apple/status.js +79 -0
  28. package/dist/commands/dashboard.js +38 -0
  29. package/dist/commands/game/android/apiKey/connect.js +74 -0
  30. package/dist/commands/game/android/apiKey/create.js +74 -0
  31. package/dist/commands/game/android/apiKey/export.js +84 -0
  32. package/dist/commands/game/android/apiKey/import.js +93 -0
  33. package/dist/commands/game/android/apiKey/invite.js +81 -0
  34. package/dist/commands/game/android/apiKey/status.js +87 -0
  35. package/dist/commands/game/android/keyStore/create.js +69 -0
  36. package/dist/commands/game/android/keyStore/export.js +83 -0
  37. package/dist/commands/game/android/keyStore/import.js +112 -0
  38. package/dist/commands/game/android/keyStore/status.js +70 -0
  39. package/dist/commands/game/android/status.js +84 -0
  40. package/dist/commands/game/build/download.js +80 -0
  41. package/dist/commands/game/build/list.js +94 -0
  42. package/dist/commands/game/create.js +67 -0
  43. package/dist/commands/game/details.js +113 -0
  44. package/dist/commands/game/export.js +58 -0
  45. package/dist/commands/game/ios/app/addTester.js +124 -0
  46. package/dist/commands/game/ios/app/create.js +117 -0
  47. package/dist/commands/game/ios/app/status.js +66 -0
  48. package/dist/commands/game/ios/app/sync.js +95 -0
  49. package/dist/commands/game/ios/profile/create.js +129 -0
  50. package/dist/commands/game/ios/profile/export.js +83 -0
  51. package/dist/commands/game/ios/profile/import.js +92 -0
  52. package/dist/commands/game/ios/profile/status.js +139 -0
  53. package/dist/commands/game/ios/status.js +92 -0
  54. package/dist/commands/game/ios/wizard.js +153 -0
  55. package/dist/commands/game/job/list.js +91 -0
  56. package/dist/commands/game/job/status.js +91 -0
  57. package/dist/commands/game/list.js +83 -0
  58. package/dist/commands/game/ship.js +216 -0
  59. package/dist/commands/game/status.js +114 -0
  60. package/dist/commands/game/wizard.js +686 -0
  61. package/dist/commands/internal/fastlane.js +74 -0
  62. package/dist/commands/internal/readme.js +937 -0
  63. package/dist/commands/login.js +92 -0
  64. package/dist/commands/status.js +76 -0
  65. package/dist/export-CVs_xoDN.js +36 -0
  66. package/dist/git-DREGq-jc.js +32 -0
  67. package/dist/import-Ch5O7xfN.js +47 -0
  68. package/dist/index-BB00V5oF.js +136 -0
  69. package/dist/index-BD1WLuFJ.js +125 -0
  70. package/dist/index-CIa2EDQ6.js +24 -0
  71. package/dist/index-CboPN9aq.js +138 -0
  72. package/dist/index-DkNQs11R.js +711 -0
  73. package/dist/index-nnzhQ3nY.js +209 -0
  74. package/dist/index.d.ts +1 -0
  75. package/dist/index.js +1 -0
  76. package/dist/upload-CRE2nVdd.js +60 -0
  77. package/dist/useAndroidServiceAccountTestResult-DcYDam-p.js +52 -0
  78. package/dist/useAppleApp-B16WbUxJ.js +32 -0
  79. package/dist/useAppleBundleId-DobPATan.js +64 -0
  80. package/dist/useJobWatching--BvVn7xS.js +45 -0
  81. package/dist/useProjectCredentials-Btnr7WK3.js +54 -0
  82. package/dist/useWebSocket-ByuNoqRw.js +36 -0
  83. package/dist/utils/help.js +14 -0
  84. package/package.json +1 -1
@@ -0,0 +1,74 @@
1
+ import fs__default, { promises } from 'fs';
2
+ import path from 'path';
3
+ import { Args, Flags } from '@oclif/core';
4
+ import { Y as BaseCommand } from '../../index-DkNQs11R.js';
5
+ import '@expo/apple-utils/build/index.js';
6
+ import 'axios';
7
+ import 'crypto-js';
8
+ import 'uuid';
9
+ import 'luxon';
10
+ import 'crypto';
11
+ import 'readline-sync';
12
+ import 'node:readline';
13
+ import 'node:path';
14
+ import 'node:url';
15
+ import 'isomorphic-git';
16
+ import 'ini';
17
+ import 'deepmerge';
18
+ import 'react';
19
+ import '@tanstack/react-query';
20
+ import 'fast-glob';
21
+ import 'yazl';
22
+ import 'socket.io-client';
23
+
24
+ function generateFastlaneSession(cookieData) {
25
+ return cookieData.cookies.map((cookie) => {
26
+ return `- !ruby/object:HTTP::Cookie
27
+ name: ${cookie.key}
28
+ value: ${cookie.value}
29
+ domain: ${cookie.domain}
30
+ for_domain: ${cookie.hostOnly ? "false" : "true"}
31
+ path: "${cookie.path}"
32
+ secure: ${cookie.secure || false}
33
+ httponly: ${cookie.httpOnly || false}
34
+ expires: ${cookie.expires ? `"${cookie.expires}"` : ""}
35
+ max_age: ${cookie.maxAge || ""}
36
+ created_at: ${cookie.creation}
37
+ accessed_at: ${cookie.lastAccessed}`;
38
+ }).join("\n");
39
+ }
40
+ class AppleFastlane extends BaseCommand {
41
+ static args = {
42
+ username: Args.string({ description: "Your Apple email address", required: true }),
43
+ file: Args.string({ description: "Path where the fastlane session will be written", required: true })
44
+ };
45
+ static description = "Output a fastlane session file which can be used with xcodes";
46
+ static examples = [
47
+ "<%= config.bin %> <%= command.id %>",
48
+ "<%= config.bin %> <%= command.id %> --force --username me@email.nowhere"
49
+ ];
50
+ static flags = {
51
+ force: Flags.boolean({ char: "f" })
52
+ };
53
+ async run() {
54
+ const { args } = this;
55
+ const { username, file } = args;
56
+ const homeDirectory = this.config.home;
57
+ const inputFilePath = path.join(homeDirectory, ".app-store", "auth", username, "cookie");
58
+ if (!fs__default.existsSync(inputFilePath)) {
59
+ throw new Error(`No expo auth file found for ${username}`);
60
+ }
61
+ if (fs__default.existsSync(file) && !this.flags.force) {
62
+ throw new Error(`The file ${file} already exists. Use --force to overwrite it.`);
63
+ }
64
+ const outputFilePath = file;
65
+ const fileContent = await promises.readFile(inputFilePath, "utf-8");
66
+ const cookieData = JSON.parse(fileContent);
67
+ const yamlContent = generateFastlaneSession(cookieData);
68
+ await promises.mkdir(path.dirname(outputFilePath), { recursive: true });
69
+ await promises.writeFile(outputFilePath, yamlContent, "utf-8");
70
+ console.log(`FASTLANE_SESSION written to ${outputFilePath}`);
71
+ }
72
+ }
73
+
74
+ export { AppleFastlane as default };