@hot-updater/plugin-core 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.
@@ -106,6 +106,12 @@ type NativeBuildRegistration = NativeBuildScope & {
106
106
  * out for any other artifact, or an `.ipa` whose profile wasn't read.
107
107
  */
108
108
  readonly exportMethod?: NativeBuildExportMethod | null;
109
+ /**
110
+ * The app version the artifact reports, its `CFBundleShortVersionString`
111
+ * or `versionName`, whatever the update strategy; null or left out when it
112
+ * wasn't read.
113
+ */
114
+ readonly nativeAppVersion?: string | null;
109
115
  readonly artifact: {
110
116
  readonly kind: NativeBuildArtifactKind;
111
117
  readonly storageUri: string;
@@ -106,6 +106,12 @@ type NativeBuildRegistration = NativeBuildScope & {
106
106
  * out for any other artifact, or an `.ipa` whose profile wasn't read.
107
107
  */
108
108
  readonly exportMethod?: NativeBuildExportMethod | null;
109
+ /**
110
+ * The app version the artifact reports, its `CFBundleShortVersionString`
111
+ * or `versionName`, whatever the update strategy; null or left out when it
112
+ * wasn't read.
113
+ */
114
+ readonly nativeAppVersion?: string | null;
109
115
  readonly artifact: {
110
116
  readonly kind: NativeBuildArtifactKind;
111
117
  readonly storageUri: string;
@@ -295,6 +295,12 @@ const channels = require_schema.defineTable({
295
295
  * `export_method` is how an `.ipa` was exported, read from its profile when
296
296
  * it registers and never changed; null on any other artifact, on an `.ipa`
297
297
  * whose profile couldn't be read, and on one registered before the column.
298
+ * `native_app_version` is the app version the artifact itself reports, its
299
+ * `CFBundleShortVersionString` or `versionName`, read from the artifact when
300
+ * it registers and never changed, whatever the update strategy; `app_version`
301
+ * stays the version OTAs target, null on a fingerprint build. It is null
302
+ * when the artifact's can't be read, and on a build registered before the
303
+ * column.
298
304
  * Boolean columns follow one rule: `is_*` for a fact about the row or
299
305
  * `should_*` for an instruction to the client, never null; a unique index over
300
306
  * the rows where one is true keys a derived slot, not the boolean.
@@ -387,6 +393,10 @@ const nativeBuilds = require_schema.defineTable({
387
393
  type: "string",
388
394
  maxLength: 16,
389
395
  required: false
396
+ },
397
+ native_app_version: {
398
+ type: "string",
399
+ required: false
390
400
  }
391
401
  }, {
392
402
  key: ["id"],
@@ -402,6 +402,10 @@ declare const coreSchema: {
402
402
  readonly maxLength: 16;
403
403
  readonly required: false;
404
404
  };
405
+ readonly native_app_version: {
406
+ readonly type: "string";
407
+ readonly required: false;
408
+ };
405
409
  }, {
406
410
  store_build_scope_key: "string";
407
411
  }, {
@@ -402,6 +402,10 @@ declare const coreSchema: {
402
402
  readonly maxLength: 16;
403
403
  readonly required: false;
404
404
  };
405
+ readonly native_app_version: {
406
+ readonly type: "string";
407
+ readonly required: false;
408
+ };
405
409
  }, {
406
410
  store_build_scope_key: "string";
407
411
  }, {
@@ -295,6 +295,12 @@ const channels = defineTable({
295
295
  * `export_method` is how an `.ipa` was exported, read from its profile when
296
296
  * it registers and never changed; null on any other artifact, on an `.ipa`
297
297
  * whose profile couldn't be read, and on one registered before the column.
298
+ * `native_app_version` is the app version the artifact itself reports, its
299
+ * `CFBundleShortVersionString` or `versionName`, read from the artifact when
300
+ * it registers and never changed, whatever the update strategy; `app_version`
301
+ * stays the version OTAs target, null on a fingerprint build. It is null
302
+ * when the artifact's can't be read, and on a build registered before the
303
+ * column.
298
304
  * Boolean columns follow one rule: `is_*` for a fact about the row or
299
305
  * `should_*` for an instruction to the client, never null; a unique index over
300
306
  * the rows where one is true keys a derived slot, not the boolean.
@@ -387,6 +393,10 @@ const nativeBuilds = defineTable({
387
393
  type: "string",
388
394
  maxLength: 16,
389
395
  required: false
396
+ },
397
+ native_app_version: {
398
+ type: "string",
399
+ required: false
390
400
  }
391
401
  }, {
392
402
  key: ["id"],
@@ -134,6 +134,15 @@ interface NativeBuildRow {
134
134
  * before it was recorded.
135
135
  */
136
136
  readonly export_method: NativeBuildExportMethod | null;
137
+ /**
138
+ * The app version the artifact itself reports, its
139
+ * `CFBundleShortVersionString` or `versionName`, whatever the update
140
+ * strategy: a fingerprint build has one too, where `app_version`, the
141
+ * version OTAs target, is null. Read from the artifact when it registered
142
+ * and never changed. Null when it couldn't be read, and on a build
143
+ * registered before it was recorded; a server older than it leaves it out.
144
+ */
145
+ readonly native_app_version?: string | null;
137
146
  }
138
147
  /** Where an iOS device is in the registry: requested, approved, or registered with Apple. */
139
148
  type IosDeviceStatus = "pending" | "approved" | "registered";
@@ -134,6 +134,15 @@ interface NativeBuildRow {
134
134
  * before it was recorded.
135
135
  */
136
136
  readonly export_method: NativeBuildExportMethod | null;
137
+ /**
138
+ * The app version the artifact itself reports, its
139
+ * `CFBundleShortVersionString` or `versionName`, whatever the update
140
+ * strategy: a fingerprint build has one too, where `app_version`, the
141
+ * version OTAs target, is null. Read from the artifact when it registered
142
+ * and never changed. Null when it couldn't be read, and on a build
143
+ * registered before it was recorded; a server older than it leaves it out.
144
+ */
145
+ readonly native_app_version?: string | null;
137
146
  }
138
147
  /** Where an iOS device is in the registry: requested, approved, or registered with Apple. */
139
148
  type IosDeviceStatus = "pending" | "approved" | "registered";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/plugin-core",
3
- "version": "1.2.0-rc.30",
3
+ "version": "1.2.0-rc.31",
4
4
  "type": "module",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "sideEffects": false,
@@ -45,7 +45,7 @@
45
45
  "es-toolkit": "^1.32.0",
46
46
  "mime": "^4.0.4",
47
47
  "verkit": "0.4.0",
48
- "@hot-updater/protocol": "1.2.0-rc.30"
48
+ "@hot-updater/protocol": "1.2.0-rc.31"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@electric-sql/pglite": "0.4.1",