@wix/himalaya-cli 0.1732.0 → 0.1733.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/cli.mjs +27 -23
- package/guides/qa-builds.md +4 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -29210,7 +29210,6 @@ var init_page_worker = __esm({
|
|
|
29210
29210
|
var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
|
|
29211
29211
|
var init_icon_catalog_generated = __esm({
|
|
29212
29212
|
"../../core/ts/src/icon-catalog.generated.ts"() {
|
|
29213
|
-
"use strict";
|
|
29214
29213
|
init_define_HHP_CATALOG();
|
|
29215
29214
|
ICON_VIEW_BOX = 24;
|
|
29216
29215
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -159195,7 +159194,7 @@ function launcherActivityName(manifest2) {
|
|
|
159195
159194
|
}
|
|
159196
159195
|
throw new Error("store.adopt: the Android manifest has no launcher activity (an <activity> with android.intent.action.MAIN) to receive the adopted links");
|
|
159197
159196
|
}
|
|
159198
|
-
function
|
|
159197
|
+
function renderStoreManifest(identity, activityName) {
|
|
159199
159198
|
const filters = [];
|
|
159200
159199
|
const browsable = [
|
|
159201
159200
|
` <action android:name="android.intent.action.VIEW" />`,
|
|
@@ -159206,18 +159205,14 @@ function renderReleaseManifest(identity, activityName) {
|
|
|
159206
159205
|
filters.push(` <intent-filter>`, ...browsable, ` <data android:scheme="${xmlAttr(scheme)}" />`, ` </intent-filter>`);
|
|
159207
159206
|
}
|
|
159208
159207
|
for (const d2 of identity.associatedDomains) {
|
|
159209
|
-
const
|
|
159210
|
-
|
|
159211
|
-
|
|
159212
|
-
...browsable,
|
|
159213
|
-
` <data android:scheme="https" android:host="${xmlAttr(d2.host)}"${path2} />`,
|
|
159214
|
-
` </intent-filter>`
|
|
159215
|
-
);
|
|
159208
|
+
const host = `android:scheme="https" android:host="${xmlAttr(d2.host)}"`;
|
|
159209
|
+
const data = d2.path ? [` <data ${host} android:path="${xmlAttr(d2.path)}" />`, ` <data ${host} android:pathPrefix="${xmlAttr(d2.path)}/" />`] : [` <data ${host} />`];
|
|
159210
|
+
filters.push(` <intent-filter android:autoVerify="true">`, ...browsable, ...data, ` </intent-filter>`);
|
|
159216
159211
|
}
|
|
159217
159212
|
return [
|
|
159218
159213
|
`<?xml version="1.0" encoding="utf-8"?>`,
|
|
159219
|
-
|
|
159220
|
-
`<!--
|
|
159214
|
+
STORE_MANIFEST_HEADER,
|
|
159215
|
+
`<!-- Store builds only (-P${STORE_ADOPT_GRADLE_PROPERTY}=true): the adopted store identity's URL schemes and App Links (${identity.androidApplicationId}). -->`,
|
|
159221
159216
|
`<manifest xmlns:android="http://schemas.android.com/apk/res/android"`,
|
|
159222
159217
|
` xmlns:tools="http://schemas.android.com/tools">`,
|
|
159223
159218
|
` <application>`,
|
|
@@ -159232,15 +159227,19 @@ function renderReleaseManifest(identity, activityName) {
|
|
|
159232
159227
|
function renderAdoptGradle(identity, indent) {
|
|
159233
159228
|
if (!identity) return [];
|
|
159234
159229
|
return [
|
|
159235
|
-
`${indent}// store.adopt (#4647):
|
|
159236
|
-
`${indent}
|
|
159237
|
-
`${indent}
|
|
159238
|
-
`${indent}
|
|
159230
|
+
`${indent}// store.adopt (#4647, #5911): only a store build (-P${STORE_ADOPT_GRADLE_PROPERTY}=true, set by the play-internal`,
|
|
159231
|
+
`${indent}// lane and tools/store-release) ships under the adopted listing's id and manifest.`,
|
|
159232
|
+
`${indent}if (providers.gradleProperty("${STORE_ADOPT_GRADLE_PROPERTY}").orNull == "true") {`,
|
|
159233
|
+
`${indent} android.sourceSets.getByName("release").manifest.srcFile("${STORE_MANIFEST_REL}")`,
|
|
159234
|
+
`${indent} androidComponents {`,
|
|
159235
|
+
`${indent} onVariants(selector().withBuildType("release")) { variant ->`,
|
|
159236
|
+
`${indent} variant.applicationId.set("${identity.androidApplicationId}")`,
|
|
159237
|
+
`${indent} }`,
|
|
159239
159238
|
`${indent} }`,
|
|
159240
159239
|
`${indent}}`
|
|
159241
159240
|
];
|
|
159242
159241
|
}
|
|
159243
|
-
var LABEL_STORE_ADOPT_SETTINGS, LABEL_STORE_ADOPT_ENTITLEMENTS, LABEL_STORE_ADOPT_INFO, LABEL_STORE_ADOPT_GRADLE, APP_GROUPS_KEY, ASSOCIATED_DOMAINS_KEY,
|
|
159242
|
+
var LABEL_STORE_ADOPT_SETTINGS, LABEL_STORE_ADOPT_ENTITLEMENTS, LABEL_STORE_ADOPT_INFO, LABEL_STORE_ADOPT_GRADLE, APP_GROUPS_KEY, ASSOCIATED_DOMAINS_KEY, STORE_ADOPT_GRADLE_PROPERTY, STORE_MANIFEST_REL, STORE_MANIFEST_HEADER, LiteralParser, q2, indentOf, marker, xmlAttr;
|
|
159244
159243
|
var init_store_adopt2 = __esm({
|
|
159245
159244
|
"../native-config/store-adopt.ts"() {
|
|
159246
159245
|
init_define_HHP_CATALOG();
|
|
@@ -159251,7 +159250,9 @@ var init_store_adopt2 = __esm({
|
|
|
159251
159250
|
LABEL_STORE_ADOPT_GRADLE = "himalaya:store:adopt";
|
|
159252
159251
|
APP_GROUPS_KEY = "com.apple.security.application-groups";
|
|
159253
159252
|
ASSOCIATED_DOMAINS_KEY = "com.apple.developer.associated-domains";
|
|
159254
|
-
|
|
159253
|
+
STORE_ADOPT_GRADLE_PROPERTY = "himiStoreAdopt";
|
|
159254
|
+
STORE_MANIFEST_REL = "src/storeAdopt/AndroidManifest.xml";
|
|
159255
|
+
STORE_MANIFEST_HEADER = "<!-- GENERATED by tools/native-config from config.ts store.adopt (#4647) \u2014 do not edit. -->";
|
|
159255
159256
|
LiteralParser = class {
|
|
159256
159257
|
constructor(src) {
|
|
159257
159258
|
this.src = src;
|
|
@@ -180031,10 +180032,15 @@ function storeAdoptPaths(app2) {
|
|
|
180031
180032
|
iosYml: iosProjectYml(app2),
|
|
180032
180033
|
storeSpec: iosStoreSpec(app2),
|
|
180033
180034
|
manifest: manifest2,
|
|
180034
|
-
|
|
180035
|
+
storeManifest: join68(dirname39(manifest2), "..", "..", STORE_MANIFEST_REL),
|
|
180036
|
+
legacyReleaseManifest: join68(dirname39(manifest2), "..", "release", "AndroidManifest.xml"),
|
|
180035
180037
|
gradle: androidAppGradle(app2)
|
|
180036
180038
|
};
|
|
180037
180039
|
}
|
|
180040
|
+
function removeGeneratedManifest(path2, check) {
|
|
180041
|
+
const ours = existsSync72(path2) && readFileSync81(path2, "utf8").split("\n").slice(0, 3).includes(STORE_MANIFEST_HEADER);
|
|
180042
|
+
return ours ? removeWholeFile(path2, check) : { path: path2, outcome: "skipped" };
|
|
180043
|
+
}
|
|
180038
180044
|
function blockBody(text25, label4) {
|
|
180039
180045
|
const lines2 = text25.split("\n");
|
|
180040
180046
|
const b3 = lines2.findIndex((l3) => isBegin(l3, "yaml", label4));
|
|
@@ -180042,11 +180048,9 @@ function blockBody(text25, label4) {
|
|
|
180042
180048
|
return b3 < 0 || e2 < b3 ? [] : lines2.slice(b3 + 1, e2);
|
|
180043
180049
|
}
|
|
180044
180050
|
function genStoreAdopt(paths2, adopted, check) {
|
|
180045
|
-
const out2 = [];
|
|
180051
|
+
const out2 = [removeGeneratedManifest(paths2.legacyReleaseManifest, check)];
|
|
180046
180052
|
if (!adopted) {
|
|
180047
|
-
|
|
180048
|
-
const ours = existsSync72(r3) && readFileSync81(r3, "utf8").split("\n").slice(0, 3).includes(RELEASE_MANIFEST_HEADER);
|
|
180049
|
-
out2.push(ours ? removeWholeFile(r3, check) : { path: r3, outcome: "skipped" });
|
|
180053
|
+
out2.push(removeGeneratedManifest(paths2.storeManifest, check));
|
|
180050
180054
|
out2.push(applyToFile(paths2.gradle, "slash", LABEL_STORE_ADOPT_GRADLE, (i2) => renderAdoptGradle(void 0, i2), check));
|
|
180051
180055
|
return out2;
|
|
180052
180056
|
}
|
|
@@ -180068,7 +180072,7 @@ function genStoreAdopt(paths2, adopted, check) {
|
|
|
180068
180072
|
}
|
|
180069
180073
|
if (existsSync72(paths2.manifest)) {
|
|
180070
180074
|
const activity = launcherActivityName(readFileSync81(paths2.manifest, "utf8"));
|
|
180071
|
-
out2.push(applyWholeFile(paths2.
|
|
180075
|
+
out2.push(applyWholeFile(paths2.storeManifest, renderStoreManifest(adopted, activity), check));
|
|
180072
180076
|
}
|
|
180073
180077
|
if (existsSync72(paths2.gradle)) {
|
|
180074
180078
|
if (!hasMarkers(readFileSync81(paths2.gradle, "utf8"), "slash", LABEL_STORE_ADOPT_GRADLE)) {
|
package/guides/qa-builds.md
CHANGED
|
@@ -94,7 +94,10 @@ himi dist --app <app> --platform android --destination play-internal --release <
|
|
|
94
94
|
ordinary QA builds strip. The IPA then goes to MRE as Player's does, with the release titled by the
|
|
95
95
|
app. The job record carries `adoptedStoreId`, which `himi dist status` prints.
|
|
96
96
|
- **play-internal** builds a release `.aab` under the adopted applicationId with the allow-listed
|
|
97
|
-
keystore, and `--version` becomes its versionName.
|
|
97
|
+
keystore, and `--version` becomes its versionName. It is the only `himi dist` build that adopts on
|
|
98
|
+
Android: the pool gets `DIST_STORE_ADOPT=1` and runs gradle with `-PhimiStoreAdopt=true`.
|
|
99
|
+
An ordinary Android QA build of the same app — APK or `--aab` — keeps the app's own applicationId
|
|
100
|
+
and QA key, so it installs beside the Play app. When the pool reports the bundle, an
|
|
98
101
|
authenticated `himi dist status` read starts the upload in the background and answers at once
|
|
99
102
|
(`himi dist` keeps waiting until it settles). A claim whose read died is taken over after
|
|
100
103
|
60 minutes. The taker first asks Play whether the bundle's versionCode is already uploaded, and records
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1733.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "e74e96cc657d078d8a87e02ad1290c32867f2733775c622b6d0839e4"
|
|
86
86
|
}
|