@hot-updater/expo 1.2.0-rc.19 → 1.2.0-rc.20

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/index.cjs CHANGED
@@ -6373,17 +6373,21 @@ const getHotUpdaterExpoPluginProps = (plugins) => {
6373
6373
  /**
6374
6374
  * What `expo prebuild` would write into a platform's native project, from
6375
6375
  * the Expo config and with the project's own config plugins, without
6376
- * writing it: the version Expo's version plugin writes, and the channel the
6377
- * `@hot-updater/expo` config plugin writes when the config lists it.
6376
+ * writing it: the version Expo's version plugin writes, and the channel and
6377
+ * the trust-anchor file the `@hot-updater/expo` config plugin writes when the
6378
+ * config lists it.
6378
6379
  */
6379
6380
  const getExpoNativeProjectValues = async (cwd, platform) => {
6380
6381
  const { exp } = await getConfig(cwd, { skipSDKVersionRequirement: true });
6381
6382
  const { AndroidConfig, IOSConfig } = getConfigPlugins(cwd);
6382
6383
  const appVersion = platform === "ios" ? IOSConfig.Version.getVersion(exp) : AndroidConfig.Version.getVersionName(exp);
6383
6384
  const listsPlugin = (exp.plugins ?? []).some((plugin) => isHotUpdaterExpoPlugin(Array.isArray(plugin) ? plugin[0] : plugin));
6385
+ const props = getHotUpdaterExpoPluginProps(exp.plugins);
6386
+ const publicKeyPath = props?.publicKeyPath;
6384
6387
  return {
6385
6388
  ...appVersion ? { appVersion } : {},
6386
- ...listsPlugin ? { channel: getHotUpdaterExpoPluginProps(exp.plugins)?.channel || "production" } : {}
6389
+ ...listsPlugin ? { channel: props?.channel || "production" } : {},
6390
+ ...typeof publicKeyPath === "string" && publicKeyPath.trim() ? { publicKeyPath } : {}
6387
6391
  };
6388
6392
  };
6389
6393
  const getExpoFingerprintExtraSources = async (cwd) => {
package/dist/index.d.cts CHANGED
@@ -3,12 +3,14 @@ import { BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, NativeFingerprintOp
3
3
  /**
4
4
  * What `expo prebuild` would write into a platform's native project, from
5
5
  * the Expo config and with the project's own config plugins, without
6
- * writing it: the version Expo's version plugin writes, and the channel the
7
- * `@hot-updater/expo` config plugin writes when the config lists it.
6
+ * writing it: the version Expo's version plugin writes, and the channel and
7
+ * the trust-anchor file the `@hot-updater/expo` config plugin writes when the
8
+ * config lists it.
8
9
  */
9
10
  declare const getExpoNativeProjectValues: (cwd: string, platform: Platform) => Promise<{
10
11
  appVersion?: string;
11
12
  channel?: string;
13
+ publicKeyPath?: string;
12
14
  }>;
13
15
  declare const getExpoFingerprintExtraSources: (cwd: string) => Promise<string[]>;
14
16
  declare const getExpoBundleSigningPublicKey: (cwd: string) => Promise<{
package/dist/index.d.mts CHANGED
@@ -3,12 +3,14 @@ import { BuildAdapter, BuildAdapterArgs, BuildAdapterConfig, NativeFingerprintOp
3
3
  /**
4
4
  * What `expo prebuild` would write into a platform's native project, from
5
5
  * the Expo config and with the project's own config plugins, without
6
- * writing it: the version Expo's version plugin writes, and the channel the
7
- * `@hot-updater/expo` config plugin writes when the config lists it.
6
+ * writing it: the version Expo's version plugin writes, and the channel and
7
+ * the trust-anchor file the `@hot-updater/expo` config plugin writes when the
8
+ * config lists it.
8
9
  */
9
10
  declare const getExpoNativeProjectValues: (cwd: string, platform: Platform) => Promise<{
10
11
  appVersion?: string;
11
12
  channel?: string;
13
+ publicKeyPath?: string;
12
14
  }>;
13
15
  declare const getExpoFingerprintExtraSources: (cwd: string) => Promise<string[]>;
14
16
  declare const getExpoBundleSigningPublicKey: (cwd: string) => Promise<{
package/dist/index.mjs CHANGED
@@ -6369,17 +6369,21 @@ const getHotUpdaterExpoPluginProps = (plugins) => {
6369
6369
  /**
6370
6370
  * What `expo prebuild` would write into a platform's native project, from
6371
6371
  * the Expo config and with the project's own config plugins, without
6372
- * writing it: the version Expo's version plugin writes, and the channel the
6373
- * `@hot-updater/expo` config plugin writes when the config lists it.
6372
+ * writing it: the version Expo's version plugin writes, and the channel and
6373
+ * the trust-anchor file the `@hot-updater/expo` config plugin writes when the
6374
+ * config lists it.
6374
6375
  */
6375
6376
  const getExpoNativeProjectValues = async (cwd, platform) => {
6376
6377
  const { exp } = await getConfig(cwd, { skipSDKVersionRequirement: true });
6377
6378
  const { AndroidConfig, IOSConfig } = getConfigPlugins(cwd);
6378
6379
  const appVersion = platform === "ios" ? IOSConfig.Version.getVersion(exp) : AndroidConfig.Version.getVersionName(exp);
6379
6380
  const listsPlugin = (exp.plugins ?? []).some((plugin) => isHotUpdaterExpoPlugin(Array.isArray(plugin) ? plugin[0] : plugin));
6381
+ const props = getHotUpdaterExpoPluginProps(exp.plugins);
6382
+ const publicKeyPath = props?.publicKeyPath;
6380
6383
  return {
6381
6384
  ...appVersion ? { appVersion } : {},
6382
- ...listsPlugin ? { channel: getHotUpdaterExpoPluginProps(exp.plugins)?.channel || "production" } : {}
6385
+ ...listsPlugin ? { channel: props?.channel || "production" } : {},
6386
+ ...typeof publicKeyPath === "string" && publicKeyPath.trim() ? { publicKeyPath } : {}
6383
6387
  };
6384
6388
  };
6385
6389
  const getExpoFingerprintExtraSources = async (cwd) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/expo",
3
- "version": "1.2.0-rc.19",
3
+ "version": "1.2.0-rc.20",
4
4
  "description": "Hot Updater build and config plugin for Expo",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -28,16 +28,16 @@
28
28
  "@babel/core": "7.26.0",
29
29
  "@babel/types": "7.26.0",
30
30
  "uuidv7": "^1.0.2",
31
- "@hot-updater/bare": "1.2.0-rc.19",
32
- "@hot-updater/cli-tools": "1.2.0-rc.19",
33
- "@hot-updater/plugin-core": "1.2.0-rc.19"
31
+ "@hot-updater/bare": "1.2.0-rc.20",
32
+ "@hot-updater/cli-tools": "1.2.0-rc.20",
33
+ "@hot-updater/plugin-core": "1.2.0-rc.20"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^20",
37
37
  "expo": "^55.0.0",
38
38
  "execa": "9.5.2",
39
39
  "vitest": "4.1.4",
40
- "hot-updater": "1.2.0-rc.19"
40
+ "hot-updater": "1.2.0-rc.20"
41
41
  },
42
42
  "exports": {
43
43
  ".": {