@absolutejs/absolute 0.20.0-beta.150 → 0.20.0-beta.151
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/CHANGELOG.md +7 -0
- package/changelog.json +14 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +17 -15
- package/dist/build.js.map +3 -3
- package/dist/cli/{compile-351tb63a.js → compile-0e7bd2db.js} +1 -1
- package/dist/cli/{dev-b9d4vnk0.js → dev-ngcawkgx.js} +3 -3
- package/dist/cli/{index-8s6w45zc.js → index-50n5vfd1.js} +1 -1
- package/dist/cli/{index-b1vyj26r.js → index-ahbjh1eg.js} +4 -5
- package/dist/cli/{index-ezz88cdw.js → index-f6mqr467.js} +23 -48
- package/dist/cli/{index-cvkfb73g.js → index-gjkd58v4.js} +37 -11
- package/dist/cli/{index-7whcck3r.js → index-gy58r3jj.js} +1 -1
- package/dist/cli/index.js +5 -5
- package/dist/cli/{iosNativeWatcher-7n2a7nh5.js → iosNativeWatcher-4zqje67k.js} +2 -2
- package/dist/cli/{iosSimulatorController-6qfhmbq0.js → iosSimulatorController-zmhzfdqx.js} +2 -2
- package/dist/cli/{mobile-dvahvjeh.js → mobile-8r10trsk.js} +10 -11
- package/dist/cli/{remoteMacProtocol-2vffjhdd.js → remoteMacProtocol-xk8jppkj.js} +2 -2
- package/dist/cli/{start-09prwq60.js → start-d1200qc3.js} +2 -2
- package/dist/index.js +17 -15
- package/dist/index.js.map +3 -3
- package/dist/mobile/index.js +66 -67
- package/dist/mobile/index.js.map +10 -10
- package/dist/mobile/remoteMacAgentEntry.js +212 -212
- package/dist/src/mobile/iosRelease.d.ts +2 -1
- package/package.json +1 -1
package/dist/mobile/index.js
CHANGED
|
@@ -8224,6 +8224,15 @@ var pathExists4 = async (path) => {
|
|
|
8224
8224
|
return false;
|
|
8225
8225
|
}
|
|
8226
8226
|
};
|
|
8227
|
+
var resolveAbsoluteIosXcodeTarget = async (nativeDirectory) => {
|
|
8228
|
+
const workspacePath = join8(nativeDirectory, "App", "App.xcworkspace");
|
|
8229
|
+
if (await pathExists4(workspacePath))
|
|
8230
|
+
return ["-workspace", workspacePath];
|
|
8231
|
+
const projectPath = join8(nativeDirectory, "App", "App.xcodeproj");
|
|
8232
|
+
if (await pathExists4(projectPath))
|
|
8233
|
+
return ["-project", projectPath];
|
|
8234
|
+
throw new TypeError(`Neither App.xcworkspace nor App.xcodeproj exists under ${join8(nativeDirectory, "App")}. Generate the native project with "absolute mobile sync ios".`);
|
|
8235
|
+
};
|
|
8227
8236
|
var defaultRun2 = async (command, options = {}) => {
|
|
8228
8237
|
const process2 = Bun.spawn(command, {
|
|
8229
8238
|
cwd: options.cwd,
|
|
@@ -8260,7 +8269,9 @@ var ignoredFingerprintDirectories = new Set([
|
|
|
8260
8269
|
"Pods",
|
|
8261
8270
|
"DerivedData",
|
|
8262
8271
|
"build",
|
|
8263
|
-
"xcuserdata"
|
|
8272
|
+
"xcuserdata",
|
|
8273
|
+
".swiftpm",
|
|
8274
|
+
"swiftpm"
|
|
8264
8275
|
]);
|
|
8265
8276
|
var fingerprintFiles = async (root, current = root, options = {}) => {
|
|
8266
8277
|
const entries = await readdir3(current, { withFileTypes: true });
|
|
@@ -8355,13 +8366,27 @@ var resolveAbsoluteIosXcodeProject = async (nativeDirectory, options = {}) => {
|
|
|
8355
8366
|
const workspaces = requestedWorkspace ? [requestedWorkspace] : await findAllByExtension(nativeDirectory, ".xcworkspace", {
|
|
8356
8367
|
excludedDirectories: new Set(["Pods", "DerivedData", "build"])
|
|
8357
8368
|
});
|
|
8358
|
-
if (workspaces.length
|
|
8359
|
-
throw new TypeError(
|
|
8369
|
+
if (workspaces.length > 1)
|
|
8370
|
+
throw new TypeError(`iOS release found multiple Xcode workspaces: ${workspaces.map((path) => relative6(nativeDirectory, path)).join(", ")}. Pass an explicit workspacePath.`);
|
|
8360
8371
|
const [workspacePath] = workspaces;
|
|
8361
|
-
|
|
8362
|
-
|
|
8372
|
+
let target;
|
|
8373
|
+
if (workspacePath && await pathExists4(workspacePath)) {
|
|
8374
|
+
target = ["-workspace", workspacePath];
|
|
8375
|
+
} else if (requestedWorkspace) {
|
|
8376
|
+
throw new TypeError("iOS release could not find the requested Xcode workspace.");
|
|
8377
|
+
} else {
|
|
8378
|
+
const projects = await findAllByExtension(nativeDirectory, ".xcodeproj", {
|
|
8379
|
+
excludedDirectories: new Set(["Pods", "DerivedData", "build"])
|
|
8380
|
+
});
|
|
8381
|
+
if (projects.length > 1)
|
|
8382
|
+
throw new TypeError(`iOS release found multiple Xcode projects: ${projects.map((path) => relative6(nativeDirectory, path)).join(", ")}.`);
|
|
8383
|
+
const [projectPath] = projects;
|
|
8384
|
+
if (!projectPath || !await pathExists4(projectPath))
|
|
8385
|
+
throw new TypeError("iOS release could not find an Xcode workspace or project.");
|
|
8386
|
+
target = ["-project", projectPath];
|
|
8387
|
+
}
|
|
8363
8388
|
if (options.scheme)
|
|
8364
|
-
return { scheme: options.scheme,
|
|
8389
|
+
return { scheme: options.scheme, target };
|
|
8365
8390
|
const schemeFiles = await findAllByExtension(nativeDirectory, ".xcscheme", {
|
|
8366
8391
|
excludedDirectories: new Set(["Pods", "DerivedData", "build"])
|
|
8367
8392
|
});
|
|
@@ -8370,7 +8395,7 @@ var resolveAbsoluteIosXcodeProject = async (nativeDirectory, options = {}) => {
|
|
|
8370
8395
|
];
|
|
8371
8396
|
if (schemes.length !== 1 || !schemes[0])
|
|
8372
8397
|
throw new TypeError(schemes.length > 1 ? `iOS release found multiple shared Xcode schemes: ${schemes.join(", ")}. Pass an explicit scheme.` : "iOS release could not find a shared Xcode scheme.");
|
|
8373
|
-
return { scheme: schemes[0],
|
|
8398
|
+
return { scheme: schemes[0], target };
|
|
8374
8399
|
};
|
|
8375
8400
|
var exportOptions = (method) => `<?xml version="1.0" encoding="UTF-8"?>
|
|
8376
8401
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
@@ -8544,8 +8569,7 @@ var buildAbsoluteIosRelease = async (options) => {
|
|
|
8544
8569
|
];
|
|
8545
8570
|
const archiveExit = await run([
|
|
8546
8571
|
"xcodebuild",
|
|
8547
|
-
|
|
8548
|
-
xcode.workspacePath,
|
|
8572
|
+
...xcode.target,
|
|
8549
8573
|
"-scheme",
|
|
8550
8574
|
xcode.scheme,
|
|
8551
8575
|
"-configuration",
|
|
@@ -8554,6 +8578,7 @@ var buildAbsoluteIosRelease = async (options) => {
|
|
|
8554
8578
|
"generic/platform=iOS",
|
|
8555
8579
|
"-archivePath",
|
|
8556
8580
|
archivePath,
|
|
8581
|
+
"-allowProvisioningUpdates",
|
|
8557
8582
|
...versionArguments,
|
|
8558
8583
|
"archive"
|
|
8559
8584
|
], { cwd: nativeDirectory, env: options.env });
|
|
@@ -8578,7 +8603,8 @@ var buildAbsoluteIosRelease = async (options) => {
|
|
|
8578
8603
|
"-exportPath",
|
|
8579
8604
|
exportPath,
|
|
8580
8605
|
"-exportOptionsPlist",
|
|
8581
|
-
exportPlist
|
|
8606
|
+
exportPlist,
|
|
8607
|
+
"-allowProvisioningUpdates"
|
|
8582
8608
|
], { cwd: nativeDirectory, env: options.env });
|
|
8583
8609
|
if (exportExit !== 0)
|
|
8584
8610
|
throw new TypeError("Xcode failed to export the App Store IPA.");
|
|
@@ -8887,8 +8913,7 @@ var runAbsoluteIosSimulatorReleaseAcceptance = async (options) => {
|
|
|
8887
8913
|
await mkdir8(options.artifactDirectory, { recursive: true });
|
|
8888
8914
|
await requireSuccess3(run, [
|
|
8889
8915
|
xcodebuild,
|
|
8890
|
-
|
|
8891
|
-
xcode.workspacePath,
|
|
8916
|
+
...xcode.target,
|
|
8892
8917
|
"-scheme",
|
|
8893
8918
|
xcode.scheme,
|
|
8894
8919
|
"-configuration",
|
|
@@ -9690,8 +9715,7 @@ var buildIosDebugApp = async (project, udid, fingerprint, run, signal) => {
|
|
|
9690
9715
|
await mkdir9(derivedDataPath, { recursive: true });
|
|
9691
9716
|
await requireSuccess4([
|
|
9692
9717
|
project.xcodebuild,
|
|
9693
|
-
|
|
9694
|
-
join10(project.nativeDirectory, "App", "App.xcworkspace"),
|
|
9718
|
+
...await resolveAbsoluteIosXcodeTarget(project.nativeDirectory),
|
|
9695
9719
|
"-scheme",
|
|
9696
9720
|
"App",
|
|
9697
9721
|
"-configuration",
|
|
@@ -9712,8 +9736,7 @@ var buildPhysicalIosDebugApp = async (project, identifier, run, signal) => {
|
|
|
9712
9736
|
await mkdir9(derivedDataPath, { recursive: true });
|
|
9713
9737
|
await requireSuccess4([
|
|
9714
9738
|
project.xcodebuild,
|
|
9715
|
-
|
|
9716
|
-
join10(project.nativeDirectory, "App", "App.xcworkspace"),
|
|
9739
|
+
...await resolveAbsoluteIosXcodeTarget(project.nativeDirectory),
|
|
9717
9740
|
"-scheme",
|
|
9718
9741
|
"App",
|
|
9719
9742
|
"-configuration",
|
|
@@ -11772,8 +11795,9 @@ var buildAbsoluteMobileCompatibilityRelease = async (options) => {
|
|
|
11772
11795
|
if (priorAppIds.size > 1 || priorAppIds.size === 1 && !priorAppIds.has(options.appId)) {
|
|
11773
11796
|
throw new TypeError("Previous mobile compatibility artifacts belong to another app.");
|
|
11774
11797
|
}
|
|
11798
|
+
const newestGeneration = Math.max(0, ...(options.previousArtifacts ?? []).map((artifact) => artifact.generation));
|
|
11775
11799
|
const unchanged = options.previousArtifacts?.find((artifact) => artifact.appBuild === appBuild && artifact.runtime === options.runtime);
|
|
11776
|
-
const generation = unchanged
|
|
11800
|
+
const generation = unchanged && unchanged.generation === newestGeneration ? unchanged.generation : newestGeneration + 1;
|
|
11777
11801
|
const artifact = createAbsoluteMobileCompatibilityArtifact({
|
|
11778
11802
|
appBuild,
|
|
11779
11803
|
appId: options.appId,
|
|
@@ -12044,54 +12068,23 @@ var CAPACITOR_CLIENT_FRAMEWORKS = new Set([
|
|
|
12044
12068
|
]);
|
|
12045
12069
|
var CLIENT_ASSET_DIRECTORIES = ["assets", "html", "htmx", "indexes"];
|
|
12046
12070
|
var errorHasCode2 = (error, code) => typeof error === "object" && error !== null && Reflect.get(error, "code") === code;
|
|
12047
|
-
var
|
|
12048
|
-
const candidate = ["js", "ts"].
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
};
|
|
12053
|
-
var shellAuthModule = () => {
|
|
12054
|
-
const candidate = ["js", "ts"].map((extension) => join13(import.meta.dir, `shellAuth.${extension}`)).find(existsSync2);
|
|
12071
|
+
var resolveShellModule = (name, missingMessage) => {
|
|
12072
|
+
const candidate = ["js", "ts"].flatMap((extension) => [
|
|
12073
|
+
join13(import.meta.dir, `${name}.${extension}`),
|
|
12074
|
+
join13(import.meta.dir, "..", "mobile", `${name}.${extension}`)
|
|
12075
|
+
]).find(existsSync2);
|
|
12055
12076
|
if (candidate)
|
|
12056
12077
|
return candidate;
|
|
12057
|
-
throw new TypeError(
|
|
12058
|
-
};
|
|
12059
|
-
var
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
var
|
|
12066
|
-
|
|
12067
|
-
if (candidate)
|
|
12068
|
-
return candidate;
|
|
12069
|
-
throw new TypeError("AbsoluteJS mobile Sync shell module is missing.");
|
|
12070
|
-
};
|
|
12071
|
-
var shellExpoSyncModule = () => {
|
|
12072
|
-
const candidate = ["js", "ts"].map((extension) => join13(import.meta.dir, `shellExpoSync.${extension}`)).find(existsSync2);
|
|
12073
|
-
if (candidate)
|
|
12074
|
-
return candidate;
|
|
12075
|
-
throw new TypeError("AbsoluteJS Expo Sync bridge module is missing.");
|
|
12076
|
-
};
|
|
12077
|
-
var shellPushModule = () => {
|
|
12078
|
-
const candidate = ["js", "ts"].map((extension) => join13(import.meta.dir, `shellPush.${extension}`)).find(existsSync2);
|
|
12079
|
-
if (candidate)
|
|
12080
|
-
return candidate;
|
|
12081
|
-
throw new TypeError("AbsoluteJS mobile push shell module is missing.");
|
|
12082
|
-
};
|
|
12083
|
-
var shellExpoDevicesModule = () => {
|
|
12084
|
-
const candidate = ["js", "ts"].map((extension) => join13(import.meta.dir, `shellExpoDevices.${extension}`)).find(existsSync2);
|
|
12085
|
-
if (candidate)
|
|
12086
|
-
return candidate;
|
|
12087
|
-
throw new TypeError("AbsoluteJS Expo device bridge module is missing.");
|
|
12088
|
-
};
|
|
12089
|
-
var shellUpdateModule = () => {
|
|
12090
|
-
const candidate = ["js", "ts"].map((extension) => join13(import.meta.dir, `shellUpdate.${extension}`)).find(existsSync2);
|
|
12091
|
-
if (candidate)
|
|
12092
|
-
return candidate;
|
|
12093
|
-
throw new TypeError("AbsoluteJS mobile update shell module is missing.");
|
|
12094
|
-
};
|
|
12078
|
+
throw new TypeError(missingMessage);
|
|
12079
|
+
};
|
|
12080
|
+
var shellBootstrapModule = () => resolveShellModule("shellBootstrap", "AbsoluteJS mobile shell bootstrap module is missing.");
|
|
12081
|
+
var shellAuthModule = () => resolveShellModule("shellAuth", "AbsoluteJS mobile auth shell module is missing.");
|
|
12082
|
+
var shellExpoAuthModule = () => resolveShellModule("shellExpoAuth", "AbsoluteJS Expo auth bridge module is missing.");
|
|
12083
|
+
var shellSyncModule = () => resolveShellModule("shellSync", "AbsoluteJS mobile Sync shell module is missing.");
|
|
12084
|
+
var shellExpoSyncModule = () => resolveShellModule("shellExpoSync", "AbsoluteJS Expo Sync bridge module is missing.");
|
|
12085
|
+
var shellPushModule = () => resolveShellModule("shellPush", "AbsoluteJS mobile push shell module is missing.");
|
|
12086
|
+
var shellExpoDevicesModule = () => resolveShellModule("shellExpoDevices", "AbsoluteJS Expo device bridge module is missing.");
|
|
12087
|
+
var shellUpdateModule = () => resolveShellModule("shellUpdate", "AbsoluteJS mobile update shell module is missing.");
|
|
12095
12088
|
var shellReleaseReadinessModule = () => {
|
|
12096
12089
|
const candidate = ["js", "ts"].map((extension) => join13(import.meta.dir, `shellReleaseReadiness.${extension}`)).find(existsSync2);
|
|
12097
12090
|
if (candidate)
|
|
@@ -15572,7 +15565,12 @@ var finalizeAbsoluteMobileCompatibilityBuild = async (options) => {
|
|
|
15572
15565
|
const candidates = compatibilityStore ? await carryForwardAbsoluteMobileCompatibilityReleases({
|
|
15573
15566
|
current,
|
|
15574
15567
|
store: compatibilityStore
|
|
15575
|
-
}) : [
|
|
15568
|
+
}) : [
|
|
15569
|
+
...new Map([...previous, current].map((release) => [
|
|
15570
|
+
release.artifact.appBuild,
|
|
15571
|
+
release
|
|
15572
|
+
])).values()
|
|
15573
|
+
];
|
|
15576
15574
|
const releasesById = new Map(candidates.map((release) => [release.artifact.releaseId, release]));
|
|
15577
15575
|
const retained = retainAbsoluteMobileCompatibilityArtifacts([...releasesById.values()].map(({ artifact }) => artifact));
|
|
15578
15576
|
await materializeAbsoluteMobileCompatibilityBundle({
|
|
@@ -18477,7 +18475,7 @@ ${domains}
|
|
|
18477
18475
|
`;
|
|
18478
18476
|
};
|
|
18479
18477
|
var configureIosEntitlements = async (config) => {
|
|
18480
|
-
const path = join30(config.nativeProjectDirectory, "ios/App/AbsoluteJS.entitlements");
|
|
18478
|
+
const path = join30(config.nativeProjectDirectory, "ios/App/App/AbsoluteJS.entitlements");
|
|
18481
18479
|
let current = "";
|
|
18482
18480
|
try {
|
|
18483
18481
|
current = await readFile26(path, "utf8");
|
|
@@ -18771,7 +18769,7 @@ ${content}
|
|
|
18771
18769
|
return infoChanged || privacyChanged || projectChanged || pushChanged;
|
|
18772
18770
|
};
|
|
18773
18771
|
var configureIosPushNotifications = async (config, enabled) => {
|
|
18774
|
-
const entitlementsPath = join31(config.nativeProjectDirectory, "ios/App/AbsoluteJS.entitlements");
|
|
18772
|
+
const entitlementsPath = join31(config.nativeProjectDirectory, "ios/App/App/AbsoluteJS.entitlements");
|
|
18775
18773
|
const entitlements = await optionalSource(entitlementsPath);
|
|
18776
18774
|
if (entitlements === null && !enabled)
|
|
18777
18775
|
return false;
|
|
@@ -27571,6 +27569,7 @@ export {
|
|
|
27571
27569
|
requireAbsoluteIosReleaseMetadata,
|
|
27572
27570
|
resolveAbsoluteDeviceCapabilityPlan,
|
|
27573
27571
|
resolveAbsoluteIosXcodeProject,
|
|
27572
|
+
resolveAbsoluteIosXcodeTarget,
|
|
27574
27573
|
resolveAbsoluteMobileAuthManifest,
|
|
27575
27574
|
resolveAbsoluteMobileCertificationRequirement,
|
|
27576
27575
|
resolveAbsoluteMobileCompatibilityRelease,
|
|
@@ -27618,5 +27617,5 @@ export {
|
|
|
27618
27617
|
writeAbsoluteMobileUpdateRegistry
|
|
27619
27618
|
};
|
|
27620
27619
|
|
|
27621
|
-
//# debugId=
|
|
27620
|
+
//# debugId=1D3C1CDCB4517A5C64756E2164756E21
|
|
27622
27621
|
//# sourceMappingURL=index.js.map
|