@absolutejs/absolute 0.20.0-beta.32 → 0.20.0-beta.33
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/cli/index.js +313 -90
- package/dist/index.js +41 -27
- package/dist/index.js.map +4 -4
- package/dist/mobile/index.js +23 -1
- package/dist/mobile/index.js.map +5 -5
- package/dist/mobile/remoteMacAgentEntry.js +8 -8
- package/dist/src/cli/scripts/dev.d.ts +1 -0
- package/dist/src/dev/devCert.d.ts +6 -4
- package/dist/src/mobile/androidEmulatorController.d.ts +8 -1
- package/dist/src/mobile/iosSimulatorController.d.ts +2 -0
- package/dist/src/mobile/remoteMacProtocol.d.ts +1 -0
- package/package.json +1 -1
package/dist/mobile/index.js
CHANGED
|
@@ -2700,6 +2700,22 @@ var requireSuccess2 = async (command, label, run, options) => {
|
|
|
2700
2700
|
if (exitCode !== 0)
|
|
2701
2701
|
throw new Error(`${label} failed with status ${exitCode}.`);
|
|
2702
2702
|
};
|
|
2703
|
+
var trustIosSimulatorDevelopmentCa = async (options, udid, run, log) => {
|
|
2704
|
+
if (!options.https)
|
|
2705
|
+
return;
|
|
2706
|
+
if (!options.certificateAuthorityPath) {
|
|
2707
|
+
throw new Error("iOS Simulator HTTPS requires the AbsoluteJS development CA certificate.");
|
|
2708
|
+
}
|
|
2709
|
+
await requireSuccess2([
|
|
2710
|
+
options.project.xcrun,
|
|
2711
|
+
"simctl",
|
|
2712
|
+
"keychain",
|
|
2713
|
+
udid,
|
|
2714
|
+
"add-root-cert",
|
|
2715
|
+
options.certificateAuthorityPath
|
|
2716
|
+
], "iOS Simulator development CA trust", run, { signal: options.signal });
|
|
2717
|
+
log("Installed the AbsoluteJS development CA into this iOS Simulator trust store.");
|
|
2718
|
+
};
|
|
2703
2719
|
var requireCapturedSuccess = (result, label) => {
|
|
2704
2720
|
if (result.exitCode !== 0) {
|
|
2705
2721
|
throw new Error(`${label} failed: ${result.stderr.trim() || result.stdout.trim() || `status ${result.exitCode}`}`);
|
|
@@ -3223,6 +3239,7 @@ var startAbsoluteIosDevSession = async (options) => {
|
|
|
3223
3239
|
transition("connecting");
|
|
3224
3240
|
await waitForBootedSimulator(project, device.udid, capture, sleep, options.signal);
|
|
3225
3241
|
await requireSuccess2([project.xcrun, "simctl", "bootstatus", device.udid, "-b"], "iOS simulator boot readiness", run, { signal: options.signal });
|
|
3242
|
+
await trustIosSimulatorDevelopmentCa(options, device.udid, run, log);
|
|
3226
3243
|
const fingerprint = await fingerprintPromise;
|
|
3227
3244
|
transition("checking-native");
|
|
3228
3245
|
const nativeCacheHit = await ensureIosDebugApp({
|
|
@@ -3818,6 +3835,7 @@ var startAbsoluteRemoteIosDevSession = async (options) => {
|
|
|
3818
3835
|
await syncProject(options.project);
|
|
3819
3836
|
const syncDuration = performance.now() - syncStartedAt;
|
|
3820
3837
|
const encodedConfig = Buffer.from(JSON.stringify(portableMobileConfig(options.project))).toString("base64url");
|
|
3838
|
+
const encodedCertificateAuthority = options.certificateAuthorityPath ? (await readFile8(options.certificateAuthorityPath)).toString("base64url") : undefined;
|
|
3821
3839
|
const remoteCommand = [
|
|
3822
3840
|
`cd ${shellQuote(options.project.remoteProjectRoot)}`,
|
|
3823
3841
|
"&&",
|
|
@@ -3828,6 +3846,10 @@ var startAbsoluteRemoteIosDevSession = async (options) => {
|
|
|
3828
3846
|
String(options.port),
|
|
3829
3847
|
"--mobile-config",
|
|
3830
3848
|
shellQuote(encodedConfig),
|
|
3849
|
+
...encodedCertificateAuthority ? [
|
|
3850
|
+
"--certificate-authority",
|
|
3851
|
+
shellQuote(encodedCertificateAuthority)
|
|
3852
|
+
] : [],
|
|
3831
3853
|
...options.https ? ["--https"] : []
|
|
3832
3854
|
].join(" ");
|
|
3833
3855
|
const command = [
|
|
@@ -7408,5 +7430,5 @@ export {
|
|
|
7408
7430
|
ABSOLUTE_ANDROID_RELEASE_FORMAT
|
|
7409
7431
|
};
|
|
7410
7432
|
|
|
7411
|
-
//# debugId=
|
|
7433
|
+
//# debugId=558FB72C0F151C5864756E2164756E21
|
|
7412
7434
|
//# sourceMappingURL=index.js.map
|