@wix/himalaya-cli 0.1910.0 → 0.1911.0
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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/store-adopt.d.ts +8 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +14 -0
- package/dist/browser-plane/assets.json +1 -1
- package/dist/browser-plane/sw.js +10 -10
- package/dist/cli.mjs +75 -7
- package/package.json +2 -2
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/store-adopt.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ export interface StoreAdoptConfig {
|
|
|
20
20
|
iosExtensionBundleIds?: Record<string, string>;
|
|
21
21
|
/** Which keystore signs the Android store build; it must be the one the existing listing was signed with. */
|
|
22
22
|
androidSigning?: AdoptedAndroidSigning;
|
|
23
|
+
/**
|
|
24
|
+
* SHA-256 fingerprint of the certificate the existing Play listing accepts uploads from (64 hex
|
|
25
|
+
* digits, colons allowed). With `androidSigning: "upload-keystore"` it is REQUIRED, and the Android
|
|
26
|
+
* store build refuses a configured keystore whose key does not match it.
|
|
27
|
+
*/
|
|
28
|
+
androidUploadKeySha256?: string;
|
|
23
29
|
/** Extensions the old binary shipped and the new one deliberately does not. Generates nothing. */
|
|
24
30
|
dropExtensions?: string[];
|
|
25
31
|
}
|
|
@@ -39,6 +45,8 @@ export interface AdoptedIdentity {
|
|
|
39
45
|
appStoreId?: string;
|
|
40
46
|
androidApplicationId: string;
|
|
41
47
|
androidSigning?: AdoptedAndroidSigning;
|
|
48
|
+
/** Normalized: 64 lowercase hex digits, no separators. */
|
|
49
|
+
androidUploadKeySha256?: string;
|
|
42
50
|
iosAppGroups: string[];
|
|
43
51
|
/** Extra schemes only (navigation.scheme is not repeated here), lowercased, in declared order. */
|
|
44
52
|
urlSchemes: string[];
|
|
@@ -7354,6 +7354,7 @@ var ADOPT_KEYS = /* @__PURE__ */ new Set([
|
|
|
7354
7354
|
"associatedDomains",
|
|
7355
7355
|
"iosExtensionBundleIds",
|
|
7356
7356
|
"androidSigning",
|
|
7357
|
+
"androidUploadKeySha256",
|
|
7357
7358
|
"dropExtensions"
|
|
7358
7359
|
]);
|
|
7359
7360
|
var IOS_BUNDLE_ID = /^[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+$/;
|
|
@@ -7432,6 +7433,18 @@ function adoptedIdentity(config) {
|
|
|
7432
7433
|
}
|
|
7433
7434
|
androidSigning = adopt.androidSigning;
|
|
7434
7435
|
}
|
|
7436
|
+
let androidUploadKeySha256;
|
|
7437
|
+
if (adopt.androidUploadKeySha256 !== void 0) {
|
|
7438
|
+
const raw2 = adopt.androidUploadKeySha256;
|
|
7439
|
+
const hex = typeof raw2 === "string" ? raw2.replace(/:/g, "").toLowerCase() : "";
|
|
7440
|
+
if (typeof raw2 !== "string" || !/^[0-9a-f]{64}$/.test(hex) || raw2.includes(":") && !/^([0-9A-Fa-f]{2}:){31}[0-9A-Fa-f]{2}$/.test(raw2)) {
|
|
7441
|
+
fail("androidUploadKeySha256", "must be a SHA-256 certificate fingerprint: 64 hex digits, optionally colon-separated.");
|
|
7442
|
+
}
|
|
7443
|
+
androidUploadKeySha256 = hex;
|
|
7444
|
+
}
|
|
7445
|
+
if (androidSigning === "upload-keystore" && androidUploadKeySha256 === void 0) {
|
|
7446
|
+
fail("androidUploadKeySha256", 'is required with androidSigning "upload-keystore": the store build cannot otherwise prove its key is the one Play expects.');
|
|
7447
|
+
}
|
|
7435
7448
|
const iosAppGroups = stringList(adopt, "iosAppGroups");
|
|
7436
7449
|
const seenGroups = /* @__PURE__ */ new Set();
|
|
7437
7450
|
for (const g of iosAppGroups) {
|
|
@@ -7484,6 +7497,7 @@ function adoptedIdentity(config) {
|
|
|
7484
7497
|
...appStoreId !== void 0 ? { appStoreId } : {},
|
|
7485
7498
|
androidApplicationId,
|
|
7486
7499
|
...androidSigning !== void 0 ? { androidSigning } : {},
|
|
7500
|
+
...androidUploadKeySha256 !== void 0 ? { androidUploadKeySha256 } : {},
|
|
7487
7501
|
iosAppGroups,
|
|
7488
7502
|
urlSchemes,
|
|
7489
7503
|
associatedDomains,
|