@wix/himalaya-cli 0.1732.0 → 0.1734.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 -22
- package/guides/qa-builds.md +4 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -159195,7 +159195,7 @@ function launcherActivityName(manifest2) {
|
|
|
159195
159195
|
}
|
|
159196
159196
|
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
159197
|
}
|
|
159198
|
-
function
|
|
159198
|
+
function renderStoreManifest(identity, activityName) {
|
|
159199
159199
|
const filters = [];
|
|
159200
159200
|
const browsable = [
|
|
159201
159201
|
` <action android:name="android.intent.action.VIEW" />`,
|
|
@@ -159206,18 +159206,14 @@ function renderReleaseManifest(identity, activityName) {
|
|
|
159206
159206
|
filters.push(` <intent-filter>`, ...browsable, ` <data android:scheme="${xmlAttr(scheme)}" />`, ` </intent-filter>`);
|
|
159207
159207
|
}
|
|
159208
159208
|
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
|
-
);
|
|
159209
|
+
const host = `android:scheme="https" android:host="${xmlAttr(d2.host)}"`;
|
|
159210
|
+
const data = d2.path ? [` <data ${host} android:path="${xmlAttr(d2.path)}" />`, ` <data ${host} android:pathPrefix="${xmlAttr(d2.path)}/" />`] : [` <data ${host} />`];
|
|
159211
|
+
filters.push(` <intent-filter android:autoVerify="true">`, ...browsable, ...data, ` </intent-filter>`);
|
|
159216
159212
|
}
|
|
159217
159213
|
return [
|
|
159218
159214
|
`<?xml version="1.0" encoding="utf-8"?>`,
|
|
159219
|
-
|
|
159220
|
-
`<!--
|
|
159215
|
+
STORE_MANIFEST_HEADER,
|
|
159216
|
+
`<!-- Store builds only (-P${STORE_ADOPT_GRADLE_PROPERTY}=true): the adopted store identity's URL schemes and App Links (${identity.androidApplicationId}). -->`,
|
|
159221
159217
|
`<manifest xmlns:android="http://schemas.android.com/apk/res/android"`,
|
|
159222
159218
|
` xmlns:tools="http://schemas.android.com/tools">`,
|
|
159223
159219
|
` <application>`,
|
|
@@ -159232,15 +159228,19 @@ function renderReleaseManifest(identity, activityName) {
|
|
|
159232
159228
|
function renderAdoptGradle(identity, indent) {
|
|
159233
159229
|
if (!identity) return [];
|
|
159234
159230
|
return [
|
|
159235
|
-
`${indent}// store.adopt (#4647):
|
|
159236
|
-
`${indent}
|
|
159237
|
-
`${indent}
|
|
159238
|
-
`${indent}
|
|
159231
|
+
`${indent}// store.adopt (#4647, #5911): only a store build (-P${STORE_ADOPT_GRADLE_PROPERTY}=true, set by the play-internal`,
|
|
159232
|
+
`${indent}// lane and tools/store-release) ships under the adopted listing's id and manifest.`,
|
|
159233
|
+
`${indent}if (providers.gradleProperty("${STORE_ADOPT_GRADLE_PROPERTY}").orNull == "true") {`,
|
|
159234
|
+
`${indent} android.sourceSets.getByName("release").manifest.srcFile("${STORE_MANIFEST_REL}")`,
|
|
159235
|
+
`${indent} androidComponents {`,
|
|
159236
|
+
`${indent} onVariants(selector().withBuildType("release")) { variant ->`,
|
|
159237
|
+
`${indent} variant.applicationId.set("${identity.androidApplicationId}")`,
|
|
159238
|
+
`${indent} }`,
|
|
159239
159239
|
`${indent} }`,
|
|
159240
159240
|
`${indent}}`
|
|
159241
159241
|
];
|
|
159242
159242
|
}
|
|
159243
|
-
var LABEL_STORE_ADOPT_SETTINGS, LABEL_STORE_ADOPT_ENTITLEMENTS, LABEL_STORE_ADOPT_INFO, LABEL_STORE_ADOPT_GRADLE, APP_GROUPS_KEY, ASSOCIATED_DOMAINS_KEY,
|
|
159243
|
+
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
159244
|
var init_store_adopt2 = __esm({
|
|
159245
159245
|
"../native-config/store-adopt.ts"() {
|
|
159246
159246
|
init_define_HHP_CATALOG();
|
|
@@ -159251,7 +159251,9 @@ var init_store_adopt2 = __esm({
|
|
|
159251
159251
|
LABEL_STORE_ADOPT_GRADLE = "himalaya:store:adopt";
|
|
159252
159252
|
APP_GROUPS_KEY = "com.apple.security.application-groups";
|
|
159253
159253
|
ASSOCIATED_DOMAINS_KEY = "com.apple.developer.associated-domains";
|
|
159254
|
-
|
|
159254
|
+
STORE_ADOPT_GRADLE_PROPERTY = "himiStoreAdopt";
|
|
159255
|
+
STORE_MANIFEST_REL = "src/storeAdopt/AndroidManifest.xml";
|
|
159256
|
+
STORE_MANIFEST_HEADER = "<!-- GENERATED by tools/native-config from config.ts store.adopt (#4647) \u2014 do not edit. -->";
|
|
159255
159257
|
LiteralParser = class {
|
|
159256
159258
|
constructor(src) {
|
|
159257
159259
|
this.src = src;
|
|
@@ -180031,10 +180033,15 @@ function storeAdoptPaths(app2) {
|
|
|
180031
180033
|
iosYml: iosProjectYml(app2),
|
|
180032
180034
|
storeSpec: iosStoreSpec(app2),
|
|
180033
180035
|
manifest: manifest2,
|
|
180034
|
-
|
|
180036
|
+
storeManifest: join68(dirname39(manifest2), "..", "..", STORE_MANIFEST_REL),
|
|
180037
|
+
legacyReleaseManifest: join68(dirname39(manifest2), "..", "release", "AndroidManifest.xml"),
|
|
180035
180038
|
gradle: androidAppGradle(app2)
|
|
180036
180039
|
};
|
|
180037
180040
|
}
|
|
180041
|
+
function removeGeneratedManifest(path2, check) {
|
|
180042
|
+
const ours = existsSync72(path2) && readFileSync81(path2, "utf8").split("\n").slice(0, 3).includes(STORE_MANIFEST_HEADER);
|
|
180043
|
+
return ours ? removeWholeFile(path2, check) : { path: path2, outcome: "skipped" };
|
|
180044
|
+
}
|
|
180038
180045
|
function blockBody(text25, label4) {
|
|
180039
180046
|
const lines2 = text25.split("\n");
|
|
180040
180047
|
const b3 = lines2.findIndex((l3) => isBegin(l3, "yaml", label4));
|
|
@@ -180042,11 +180049,9 @@ function blockBody(text25, label4) {
|
|
|
180042
180049
|
return b3 < 0 || e2 < b3 ? [] : lines2.slice(b3 + 1, e2);
|
|
180043
180050
|
}
|
|
180044
180051
|
function genStoreAdopt(paths2, adopted, check) {
|
|
180045
|
-
const out2 = [];
|
|
180052
|
+
const out2 = [removeGeneratedManifest(paths2.legacyReleaseManifest, check)];
|
|
180046
180053
|
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" });
|
|
180054
|
+
out2.push(removeGeneratedManifest(paths2.storeManifest, check));
|
|
180050
180055
|
out2.push(applyToFile(paths2.gradle, "slash", LABEL_STORE_ADOPT_GRADLE, (i2) => renderAdoptGradle(void 0, i2), check));
|
|
180051
180056
|
return out2;
|
|
180052
180057
|
}
|
|
@@ -180068,7 +180073,7 @@ function genStoreAdopt(paths2, adopted, check) {
|
|
|
180068
180073
|
}
|
|
180069
180074
|
if (existsSync72(paths2.manifest)) {
|
|
180070
180075
|
const activity = launcherActivityName(readFileSync81(paths2.manifest, "utf8"));
|
|
180071
|
-
out2.push(applyWholeFile(paths2.
|
|
180076
|
+
out2.push(applyWholeFile(paths2.storeManifest, renderStoreManifest(adopted, activity), check));
|
|
180072
180077
|
}
|
|
180073
180078
|
if (existsSync72(paths2.gradle)) {
|
|
180074
180079
|
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.1734.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": "7d58ec26d9f259af497715fa06d273c63657f2f35d8a123c98e55671"
|
|
86
86
|
}
|