@hot-updater/apple-helper 1.2.0-rc.40 → 1.2.0-rc.41

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
@@ -3531,7 +3531,8 @@ const addSandboxPermissions = async (plist) => {
3531
3531
  ]);
3532
3532
  };
3533
3533
  /**
3534
- * The app's dedicated URL scheme, default channel, and the sandbox's key. The
3534
+ * The app's dedicated URL scheme and the sandbox's key: its channel stays the
3535
+ * project's, as any build's does. The
3535
3536
  * URL scheme, unless the scheme sets one, and App Store Connect's app come
3536
3537
  * from the scheme's `bundleIdentifier`, while Xcode's build settings decide
3537
3538
  * the app's ID, so an app of another ID stops here, before anything is signed
@@ -3547,7 +3548,6 @@ const patchAppInfoPlist = async (plist, scheme) => {
3547
3548
  if (appUrlTypes.some(isSandboxUrlType)) throw refusal(`The app has a URL type named ${_hot_updater_protocol_native_artifact.SANDBOX_URL_TYPE_NAME}, the name a sandbox build registers its URL scheme under.\nRename the app's URL type.`);
3548
3549
  if (patchedBefore) await refuseForeignSandboxUrlTypes(plist, urlTypes ?? [], scheme);
3549
3550
  if (registersUrlScheme(appUrlTypes, urlScheme)) throw refusal(`The sandbox scheme ${scheme.hotUpdaterSchemeName} registers URL scheme ${urlScheme}, which the app registers itself.\nSet sandbox.urlScheme to a scheme the app doesn't register.`);
3550
- await setString(plist, "HOT_UPDATER_CHANNEL", (0, _hot_updater_protocol_native_artifact.sandboxChannelOf)(scheme.hotUpdaterSchemeName));
3551
3551
  await plutil([
3552
3552
  "-replace",
3553
3553
  _hot_updater_protocol_native_artifact.SANDBOX_INFO_PLIST_KEY,
@@ -3621,8 +3621,7 @@ const extensionInfoPlists = (appPath) => ["PlugIns", "Extensions"].flatMap((dire
3621
3621
  });
3622
3622
  /**
3623
3623
  * Makes the archived app a sandbox app before `-exportArchive`, which signs
3624
- * what it finds, so no project file changes: its URL scheme, default channel
3625
- * and key, and from App Store Connect, the version a closed train needs and
3624
+ * what it finds, so no project file changes: its URL scheme and key, and from App Store Connect, the version a closed train needs and
3626
3625
  * the next build number, in its extensions too, which must match it.
3627
3626
  */
3628
3627
  const patchSandboxArchive = async ({ archivePath, appPath, schemeConfig, plan }) => {
@@ -4112,6 +4111,7 @@ exports.assertTestFlightExportOptions = assertTestFlightExportOptions;
4112
4111
  exports.buildIos = buildIos;
4113
4112
  exports.distributeTestFlightBuild = distributeTestFlightBuild;
4114
4113
  exports.enrichNativeBuildIosScheme = enrichNativeBuildIosScheme;
4114
+ exports.exportsForAppStoreConnect = exportsForAppStoreConnect;
4115
4115
  exports.exportsForRegisteredDevices = exportsForRegisteredDevices;
4116
4116
  exports.extractAppBundle = extractAppBundle;
4117
4117
  exports.extractBuiltInBundle = extractBuiltInBundle;
package/dist/index.d.cts CHANGED
@@ -531,6 +531,14 @@ declare const assertSandboxExportOptions: (schemeName: string, exportOptionsPlis
531
531
  * signs it, as it does an App Store Connect export.
532
532
  */
533
533
  declare const exportsForRegisteredDevices: ({ exportOptionsPlist }: EnrichedNativeBuildIosScheme) => Promise<boolean>;
534
+ /**
535
+ * Whether a device build exports for App Store Connect: with its
536
+ * `exportOptionsPlist`'s method, or, without one, as a scheme signing with
537
+ * an App Store Connect API key does. Such an `.ipa` is signed with Apple's
538
+ * cloud-managed distribution certificate, never with a development
539
+ * certificate the archive was signed with.
540
+ */
541
+ declare const exportsForAppStoreConnect: (schemeConfig: EnrichedNativeBuildIosScheme) => Promise<boolean>;
534
542
  //#endregion
535
543
  //#region src/utils/extractBuiltInBundle.d.ts
536
544
  /**
@@ -559,4 +567,4 @@ declare const archiveAppBundle: ({ appPath, outputPath }: {
559
567
  outputPath: string;
560
568
  }) => Promise<void>;
561
569
  //#endregion
562
- export { ASC_INTEGRATIONS_URL, type AppleDeviceType, type AscApiKeyRole, type AscDevice, type AscDeviceOutcome, type AscTeam, type EnrichedNativeBuildIosScheme, type InternalBetaGroup, type IssueAscApiKey, type IssueAscApiKeyRequest, type IssuedAscApiKey, type SandboxArchivePlan, type SavedAdHocProfileRemoval, type Simulator, TestFlightBuildExistsError, type TestFlightBuildState, type TestFlightBuildStatus, type TestFlightGroupOutcome, type UploadToTestFlightResult, addAscDevices, applyTestFlightGroup, archiveAppBundle, assertBuildIsInternalOnly, assertIpaIsInternalOnly, assertSandboxExportOptions, assertTestFlightExportOptions, buildIos, distributeTestFlightBuild, enrichNativeBuildIosScheme, exportsForRegisteredDevices, extractAppBundle, extractBuiltInBundle, extractSimulatorApp, findAscDevice, findInternalBetaGroup, findTestFlightBuild, installOnSimulator, installPodsIfNeeded, isVersionTrainClosed, issueAscApiKey, listAscDevices, listSimulators, prepareSandboxArchive, provisioningProfileDirs, readIpaHasExportComplianceKey, readTestFlightBuildStatus, removeSavedAdHocProfiles, resolveTestFlightUploadKey, selectSimulator, updateAscDevice, uploadToTestFlight };
570
+ export { ASC_INTEGRATIONS_URL, type AppleDeviceType, type AscApiKeyRole, type AscDevice, type AscDeviceOutcome, type AscTeam, type EnrichedNativeBuildIosScheme, type InternalBetaGroup, type IssueAscApiKey, type IssueAscApiKeyRequest, type IssuedAscApiKey, type SandboxArchivePlan, type SavedAdHocProfileRemoval, type Simulator, TestFlightBuildExistsError, type TestFlightBuildState, type TestFlightBuildStatus, type TestFlightGroupOutcome, type UploadToTestFlightResult, addAscDevices, applyTestFlightGroup, archiveAppBundle, assertBuildIsInternalOnly, assertIpaIsInternalOnly, assertSandboxExportOptions, assertTestFlightExportOptions, buildIos, distributeTestFlightBuild, enrichNativeBuildIosScheme, exportsForAppStoreConnect, exportsForRegisteredDevices, extractAppBundle, extractBuiltInBundle, extractSimulatorApp, findAscDevice, findInternalBetaGroup, findTestFlightBuild, installOnSimulator, installPodsIfNeeded, isVersionTrainClosed, issueAscApiKey, listAscDevices, listSimulators, prepareSandboxArchive, provisioningProfileDirs, readIpaHasExportComplianceKey, readTestFlightBuildStatus, removeSavedAdHocProfiles, resolveTestFlightUploadKey, selectSimulator, updateAscDevice, uploadToTestFlight };
package/dist/index.d.mts CHANGED
@@ -532,6 +532,14 @@ declare const assertSandboxExportOptions: (schemeName: string, exportOptionsPlis
532
532
  * signs it, as it does an App Store Connect export.
533
533
  */
534
534
  declare const exportsForRegisteredDevices: ({ exportOptionsPlist }: EnrichedNativeBuildIosScheme) => Promise<boolean>;
535
+ /**
536
+ * Whether a device build exports for App Store Connect: with its
537
+ * `exportOptionsPlist`'s method, or, without one, as a scheme signing with
538
+ * an App Store Connect API key does. Such an `.ipa` is signed with Apple's
539
+ * cloud-managed distribution certificate, never with a development
540
+ * certificate the archive was signed with.
541
+ */
542
+ declare const exportsForAppStoreConnect: (schemeConfig: EnrichedNativeBuildIosScheme) => Promise<boolean>;
535
543
  //#endregion
536
544
  //#region src/utils/extractBuiltInBundle.d.ts
537
545
  /**
@@ -560,4 +568,4 @@ declare const archiveAppBundle: ({ appPath, outputPath }: {
560
568
  outputPath: string;
561
569
  }) => Promise<void>;
562
570
  //#endregion
563
- export { ASC_INTEGRATIONS_URL, type AppleDeviceType, type AscApiKeyRole, type AscDevice, type AscDeviceOutcome, type AscTeam, type EnrichedNativeBuildIosScheme, type InternalBetaGroup, type IssueAscApiKey, type IssueAscApiKeyRequest, type IssuedAscApiKey, type SandboxArchivePlan, type SavedAdHocProfileRemoval, type Simulator, TestFlightBuildExistsError, type TestFlightBuildState, type TestFlightBuildStatus, type TestFlightGroupOutcome, type UploadToTestFlightResult, addAscDevices, applyTestFlightGroup, archiveAppBundle, assertBuildIsInternalOnly, assertIpaIsInternalOnly, assertSandboxExportOptions, assertTestFlightExportOptions, buildIos, distributeTestFlightBuild, enrichNativeBuildIosScheme, exportsForRegisteredDevices, extractAppBundle, extractBuiltInBundle, extractSimulatorApp, findAscDevice, findInternalBetaGroup, findTestFlightBuild, installOnSimulator, installPodsIfNeeded, isVersionTrainClosed, issueAscApiKey, listAscDevices, listSimulators, prepareSandboxArchive, provisioningProfileDirs, readIpaHasExportComplianceKey, readTestFlightBuildStatus, removeSavedAdHocProfiles, resolveTestFlightUploadKey, selectSimulator, updateAscDevice, uploadToTestFlight };
571
+ export { ASC_INTEGRATIONS_URL, type AppleDeviceType, type AscApiKeyRole, type AscDevice, type AscDeviceOutcome, type AscTeam, type EnrichedNativeBuildIosScheme, type InternalBetaGroup, type IssueAscApiKey, type IssueAscApiKeyRequest, type IssuedAscApiKey, type SandboxArchivePlan, type SavedAdHocProfileRemoval, type Simulator, TestFlightBuildExistsError, type TestFlightBuildState, type TestFlightBuildStatus, type TestFlightGroupOutcome, type UploadToTestFlightResult, addAscDevices, applyTestFlightGroup, archiveAppBundle, assertBuildIsInternalOnly, assertIpaIsInternalOnly, assertSandboxExportOptions, assertTestFlightExportOptions, buildIos, distributeTestFlightBuild, enrichNativeBuildIosScheme, exportsForAppStoreConnect, exportsForRegisteredDevices, extractAppBundle, extractBuiltInBundle, extractSimulatorApp, findAscDevice, findInternalBetaGroup, findTestFlightBuild, installOnSimulator, installPodsIfNeeded, isVersionTrainClosed, issueAscApiKey, listAscDevices, listSimulators, prepareSandboxArchive, provisioningProfileDirs, readIpaHasExportComplianceKey, readTestFlightBuildStatus, removeSavedAdHocProfiles, resolveTestFlightUploadKey, selectSimulator, updateAscDevice, uploadToTestFlight };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import crypto from "node:crypto";
2
2
  import { setTimeout as setTimeout$1 } from "node:timers/promises";
3
3
  import { BuildFailedError, BuildLogger, colors, createCredentialResolver, createMinBundleId, getCwd, getReactNativeMetadatas, isCI, p, parseSecretReference, registerSecretValue } from "@hot-updater/cli-tools";
4
- import { SANDBOX_INFO_PLIST_KEY, SANDBOX_URL_SCHEME_INFO_PLIST_KEY, SANDBOX_URL_TYPE_NAME, blobSource, isRecordedUrlSchemeSyntax, isSandboxUrlScheme, normalizeIosUdid, readIpaInstallInfo, readProvisioningProfile, recordedSandboxUrlScheme, sandboxChannelOf, sandboxUrlSchemeOf } from "@hot-updater/protocol/native-artifact";
4
+ import { SANDBOX_INFO_PLIST_KEY, SANDBOX_URL_SCHEME_INFO_PLIST_KEY, SANDBOX_URL_TYPE_NAME, blobSource, isRecordedUrlSchemeSyntax, isSandboxUrlScheme, normalizeIosUdid, readIpaInstallInfo, readProvisioningProfile, recordedSandboxUrlScheme, sandboxUrlSchemeOf } from "@hot-updater/protocol/native-artifact";
5
5
  import crypto$1 from "crypto";
6
6
  import fs from "fs";
7
7
  import path from "path";
@@ -3503,7 +3503,8 @@ const addSandboxPermissions = async (plist) => {
3503
3503
  ]);
3504
3504
  };
3505
3505
  /**
3506
- * The app's dedicated URL scheme, default channel, and the sandbox's key. The
3506
+ * The app's dedicated URL scheme and the sandbox's key: its channel stays the
3507
+ * project's, as any build's does. The
3507
3508
  * URL scheme, unless the scheme sets one, and App Store Connect's app come
3508
3509
  * from the scheme's `bundleIdentifier`, while Xcode's build settings decide
3509
3510
  * the app's ID, so an app of another ID stops here, before anything is signed
@@ -3519,7 +3520,6 @@ const patchAppInfoPlist = async (plist, scheme) => {
3519
3520
  if (appUrlTypes.some(isSandboxUrlType)) throw refusal(`The app has a URL type named ${SANDBOX_URL_TYPE_NAME}, the name a sandbox build registers its URL scheme under.\nRename the app's URL type.`);
3520
3521
  if (patchedBefore) await refuseForeignSandboxUrlTypes(plist, urlTypes ?? [], scheme);
3521
3522
  if (registersUrlScheme(appUrlTypes, urlScheme)) throw refusal(`The sandbox scheme ${scheme.hotUpdaterSchemeName} registers URL scheme ${urlScheme}, which the app registers itself.\nSet sandbox.urlScheme to a scheme the app doesn't register.`);
3522
- await setString(plist, "HOT_UPDATER_CHANNEL", sandboxChannelOf(scheme.hotUpdaterSchemeName));
3523
3523
  await plutil([
3524
3524
  "-replace",
3525
3525
  SANDBOX_INFO_PLIST_KEY,
@@ -3593,8 +3593,7 @@ const extensionInfoPlists = (appPath) => ["PlugIns", "Extensions"].flatMap((dire
3593
3593
  });
3594
3594
  /**
3595
3595
  * Makes the archived app a sandbox app before `-exportArchive`, which signs
3596
- * what it finds, so no project file changes: its URL scheme, default channel
3597
- * and key, and from App Store Connect, the version a closed train needs and
3596
+ * what it finds, so no project file changes: its URL scheme and key, and from App Store Connect, the version a closed train needs and
3598
3597
  * the next build number, in its extensions too, which must match it.
3599
3598
  */
3600
3599
  const patchSandboxArchive = async ({ archivePath, appPath, schemeConfig, plan }) => {
@@ -4072,4 +4071,4 @@ const enrichNativeBuildIosScheme = async ({ scheme, hotUpdaterSchemeName }) => {
4072
4071
  };
4073
4072
  };
4074
4073
  //#endregion
4075
- export { ASC_INTEGRATIONS_URL, TestFlightBuildExistsError, addAscDevices, applyTestFlightGroup, archiveAppBundle, assertBuildIsInternalOnly, assertIpaIsInternalOnly, assertSandboxExportOptions, assertTestFlightExportOptions, buildIos, distributeTestFlightBuild, enrichNativeBuildIosScheme, exportsForRegisteredDevices, extractAppBundle, extractBuiltInBundle, extractSimulatorApp, findAscDevice, findInternalBetaGroup, findTestFlightBuild, installOnSimulator, installPodsIfNeeded, isVersionTrainClosed, issueAscApiKey, listAscDevices, listSimulators, prepareSandboxArchive, provisioningProfileDirs, readIpaHasExportComplianceKey, readTestFlightBuildStatus, removeSavedAdHocProfiles, resolveTestFlightUploadKey, selectSimulator, updateAscDevice, uploadToTestFlight };
4074
+ export { ASC_INTEGRATIONS_URL, TestFlightBuildExistsError, addAscDevices, applyTestFlightGroup, archiveAppBundle, assertBuildIsInternalOnly, assertIpaIsInternalOnly, assertSandboxExportOptions, assertTestFlightExportOptions, buildIos, distributeTestFlightBuild, enrichNativeBuildIosScheme, exportsForAppStoreConnect, exportsForRegisteredDevices, extractAppBundle, extractBuiltInBundle, extractSimulatorApp, findAscDevice, findInternalBetaGroup, findTestFlightBuild, installOnSimulator, installPodsIfNeeded, isVersionTrainClosed, issueAscApiKey, listAscDevices, listSimulators, prepareSandboxArchive, provisioningProfileDirs, readIpaHasExportComplianceKey, readTestFlightBuildStatus, removeSavedAdHocProfiles, resolveTestFlightUploadKey, selectSimulator, updateAscDevice, uploadToTestFlight };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/apple-helper",
3
- "version": "1.2.0-rc.40",
3
+ "version": "1.2.0-rc.41",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -29,9 +29,9 @@
29
29
  "dependencies": {
30
30
  "execa": "9.5.2",
31
31
  "fast-xml-parser": "5.8.0",
32
- "@hot-updater/cli-tools": "1.2.0-rc.40",
33
- "@hot-updater/plugin-core": "1.2.0-rc.40",
34
- "@hot-updater/protocol": "1.2.0-rc.40"
32
+ "@hot-updater/cli-tools": "1.2.0-rc.41",
33
+ "@hot-updater/plugin-core": "1.2.0-rc.41",
34
+ "@hot-updater/protocol": "1.2.0-rc.41"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^20"