@hot-updater/protocol 1.2.0-rc.30 → 1.2.0-rc.31
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/native-artifact.cjs
CHANGED
|
@@ -1374,6 +1374,7 @@ const checkNativeArtifact = (info, { updateStrategy, appIds = [], channel: chann
|
|
|
1374
1374
|
channel,
|
|
1375
1375
|
fingerprintHash,
|
|
1376
1376
|
appVersion,
|
|
1377
|
+
nativeAppVersion: typeof info.appVersion === "string" && info.appVersion.trim() ? info.appVersion : null,
|
|
1377
1378
|
builtInBundlePath: info.builtInBundle.path,
|
|
1378
1379
|
sandbox: info.sandbox.code,
|
|
1379
1380
|
sandboxUrlScheme: info.sandbox.code ? info.entry.sandboxUrlScheme : null
|
|
@@ -116,7 +116,14 @@ interface ImportableNativeBuild {
|
|
|
116
116
|
/** The channel the app reports: its own, or `production` without one. */
|
|
117
117
|
readonly channel: string;
|
|
118
118
|
readonly fingerprintHash: string | null;
|
|
119
|
+
/** The version OTAs target: null under the fingerprint strategy. */
|
|
119
120
|
readonly appVersion: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* The app version the artifact reports, its `CFBundleShortVersionString`
|
|
123
|
+
* or `versionName`, whatever the update strategy: null when it has none
|
|
124
|
+
* or it can't be read.
|
|
125
|
+
*/
|
|
126
|
+
readonly nativeAppVersion: string | null;
|
|
120
127
|
/** The built-in bundle's entry in the archive. */
|
|
121
128
|
readonly builtInBundlePath: string;
|
|
122
129
|
/** Whether the artifact holds the sandbox layer: a sandbox build. */
|
|
@@ -116,7 +116,14 @@ interface ImportableNativeBuild {
|
|
|
116
116
|
/** The channel the app reports: its own, or `production` without one. */
|
|
117
117
|
readonly channel: string;
|
|
118
118
|
readonly fingerprintHash: string | null;
|
|
119
|
+
/** The version OTAs target: null under the fingerprint strategy. */
|
|
119
120
|
readonly appVersion: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* The app version the artifact reports, its `CFBundleShortVersionString`
|
|
123
|
+
* or `versionName`, whatever the update strategy: null when it has none
|
|
124
|
+
* or it can't be read.
|
|
125
|
+
*/
|
|
126
|
+
readonly nativeAppVersion: string | null;
|
|
120
127
|
/** The built-in bundle's entry in the archive. */
|
|
121
128
|
readonly builtInBundlePath: string;
|
|
122
129
|
/** Whether the artifact holds the sandbox layer: a sandbox build. */
|
package/dist/native-artifact.mjs
CHANGED
|
@@ -1373,6 +1373,7 @@ const checkNativeArtifact = (info, { updateStrategy, appIds = [], channel: chann
|
|
|
1373
1373
|
channel,
|
|
1374
1374
|
fingerprintHash,
|
|
1375
1375
|
appVersion,
|
|
1376
|
+
nativeAppVersion: typeof info.appVersion === "string" && info.appVersion.trim() ? info.appVersion : null,
|
|
1376
1377
|
builtInBundlePath: info.builtInBundle.path,
|
|
1377
1378
|
sandbox: info.sandbox.code,
|
|
1378
1379
|
sandboxUrlScheme: info.sandbox.code ? info.entry.sandboxUrlScheme : null
|