@gpc-cli/core 0.9.64 → 0.9.66
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/{chunk-Q5TLP5QV.js → chunk-DL2CTMCL.js} +213 -27
- package/dist/chunk-DL2CTMCL.js.map +1 -0
- package/dist/index.d.ts +28 -3
- package/dist/index.js +8 -51
- package/dist/index.js.map +1 -1
- package/dist/{releases-X4RWUWL4.js → releases-2G45I6K2.js} +4 -2
- package/package.json +1 -1
- package/dist/chunk-Q5TLP5QV.js.map +0 -1
- /package/dist/{releases-X4RWUWL4.js.map → releases-2G45I6K2.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -4,12 +4,15 @@ import {
|
|
|
4
4
|
GpcError,
|
|
5
5
|
NetworkError,
|
|
6
6
|
applyReleaseNotes,
|
|
7
|
+
assignRelease,
|
|
7
8
|
commitWithRescue,
|
|
8
9
|
createTrack,
|
|
9
10
|
diffReleases,
|
|
10
11
|
fetchReleaseNotes,
|
|
12
|
+
findBundle,
|
|
11
13
|
getReleasesStatus,
|
|
12
14
|
isVersionedNotesDir,
|
|
15
|
+
listBundles,
|
|
13
16
|
listTracks,
|
|
14
17
|
promoteRelease,
|
|
15
18
|
readReleaseNotesForVersion,
|
|
@@ -22,8 +25,9 @@ import {
|
|
|
22
25
|
validateAndCommit,
|
|
23
26
|
validateReleaseNotes,
|
|
24
27
|
validateUploadFile,
|
|
28
|
+
waitForBundle,
|
|
25
29
|
waitForBundleProcessing
|
|
26
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-DL2CTMCL.js";
|
|
27
31
|
|
|
28
32
|
// src/output.ts
|
|
29
33
|
import process2 from "process";
|
|
@@ -3222,7 +3226,7 @@ async function handleBreach(event, config, client) {
|
|
|
3222
3226
|
}
|
|
3223
3227
|
case "halt": {
|
|
3224
3228
|
try {
|
|
3225
|
-
const { updateRollout: updateRollout2 } = await import("./releases-
|
|
3229
|
+
const { updateRollout: updateRollout2 } = await import("./releases-2G45I6K2.js");
|
|
3226
3230
|
await updateRollout2(client, config.packageName, config.track, "halt");
|
|
3227
3231
|
halted = true;
|
|
3228
3232
|
} catch {
|
|
@@ -4860,7 +4864,7 @@ var SEVERITY_ORDER = {
|
|
|
4860
4864
|
};
|
|
4861
4865
|
var DEFAULT_PREFLIGHT_CONFIG = {
|
|
4862
4866
|
failOn: "error",
|
|
4863
|
-
targetSdkMinimum:
|
|
4867
|
+
targetSdkMinimum: 36,
|
|
4864
4868
|
maxDownloadSizeMb: 150,
|
|
4865
4869
|
allowedPermissions: [],
|
|
4866
4870
|
disabledRules: [],
|
|
@@ -8540,54 +8544,6 @@ async function syncImages(client, packageName, dir, options) {
|
|
|
8540
8544
|
}
|
|
8541
8545
|
}
|
|
8542
8546
|
|
|
8543
|
-
// src/commands/bundles.ts
|
|
8544
|
-
import { PlayApiError as PlayApiError2 } from "@gpc-cli/api";
|
|
8545
|
-
async function listBundles(client, packageName) {
|
|
8546
|
-
const edit = await client.edits.insert(packageName);
|
|
8547
|
-
try {
|
|
8548
|
-
const bundles = await client.bundles.list(packageName, edit.id);
|
|
8549
|
-
await client.edits.delete(packageName, edit.id).catch(() => {
|
|
8550
|
-
});
|
|
8551
|
-
return bundles;
|
|
8552
|
-
} catch (error) {
|
|
8553
|
-
await client.edits.delete(packageName, edit.id).catch(() => {
|
|
8554
|
-
});
|
|
8555
|
-
throw error;
|
|
8556
|
-
}
|
|
8557
|
-
}
|
|
8558
|
-
async function findBundle(client, packageName, versionCode) {
|
|
8559
|
-
const bundles = await listBundles(client, packageName);
|
|
8560
|
-
return bundles.find((b) => b.versionCode === versionCode) ?? null;
|
|
8561
|
-
}
|
|
8562
|
-
function isRetryableError(error) {
|
|
8563
|
-
if (!(error instanceof PlayApiError2)) return false;
|
|
8564
|
-
const status = error.statusCode;
|
|
8565
|
-
return status === 429 || status === 500 || status === 503 || status === 409;
|
|
8566
|
-
}
|
|
8567
|
-
async function waitForBundle(client, packageName, versionCode, options) {
|
|
8568
|
-
const timeout = options?.timeout ?? 6e5;
|
|
8569
|
-
const interval = options?.interval ?? 15e3;
|
|
8570
|
-
const deadline = Date.now() + timeout;
|
|
8571
|
-
while (Date.now() < deadline) {
|
|
8572
|
-
try {
|
|
8573
|
-
const bundles = await listBundles(client, packageName);
|
|
8574
|
-
const match = bundles.find((b) => b.versionCode === versionCode);
|
|
8575
|
-
if (match) return match;
|
|
8576
|
-
} catch (error) {
|
|
8577
|
-
if (!isRetryableError(error)) throw error;
|
|
8578
|
-
}
|
|
8579
|
-
const remaining = deadline - Date.now();
|
|
8580
|
-
if (remaining <= 0) break;
|
|
8581
|
-
await new Promise((r) => setTimeout(r, Math.min(interval, remaining)));
|
|
8582
|
-
}
|
|
8583
|
-
throw new GpcError(
|
|
8584
|
-
`Bundle version code ${versionCode} not found after ${Math.round(timeout / 1e3)}s`,
|
|
8585
|
-
"BUNDLE_WAIT_TIMEOUT",
|
|
8586
|
-
4,
|
|
8587
|
-
"The bundle may still be processing. Try again with a longer --timeout, or check the Play Console."
|
|
8588
|
-
);
|
|
8589
|
-
}
|
|
8590
|
-
|
|
8591
8547
|
// src/signing-consistency.ts
|
|
8592
8548
|
async function checkSigningConsistency(accessToken, packageName, apiHost = "androidpublisher.googleapis.com") {
|
|
8593
8549
|
const baseUrl = `https://${apiHost}/androidpublisher/v3/applications/${encodeURIComponent(packageName)}`;
|
|
@@ -8817,6 +8773,7 @@ export {
|
|
|
8817
8773
|
analyzeRemoteListings,
|
|
8818
8774
|
analyzeReviews2 as analyzeReviews,
|
|
8819
8775
|
applyReleaseNotes,
|
|
8776
|
+
assignRelease,
|
|
8820
8777
|
batchGetOrders,
|
|
8821
8778
|
batchSyncInAppProducts,
|
|
8822
8779
|
buildChecklist,
|