peachsim 0.1.1728 → 0.1.1738
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/cli/commands/control.ts +1 -0
- package/cli/commands/coverage-swift.ts +112 -4
- package/cli/commands/package.ts +11 -1
- package/cli/commands/shell-url.ts +4 -0
- package/cli/scene-video.ts +24 -7
- package/detox/index.ts +9 -1
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +5 -2
- package/dist-lib/auth/shared-session.cjs +5 -2
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +3592 -1918
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +13 -5
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1329 -1022
- package/dist-lib/expo-swift-metadata.cjs +2 -2
- package/dist-lib/expo-swift-metadata.mjs +2 -2
- package/dist-lib/home-paths.cjs +7 -2
- package/dist-lib/host/bridge-host.cjs +3773 -2149
- package/dist-lib/host/fetch-proxy-handler.cjs +16 -5
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +97 -68
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +209 -32
- package/dist-lib/menu.cjs +7 -1
- package/dist-lib/menu.mjs +7 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +93 -65
- package/dist-lib/native-app-identity-project.cjs +37 -31
- package/dist-lib/native-app-identity-project.mjs +37 -31
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +5 -2
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +23 -23
- package/dist-lib/public-origins-lib.json +79 -53
- package/dist-lib/react-native-host-modules.cjs +5 -2
- package/dist-lib/react-native-host-modules.mjs +5 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +4486 -2789
- package/dist-lib/swift-compile.cjs +53 -60
- package/dist-lib/swift-compile.mjs +52 -60
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +17 -17
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1056 -870
- package/dist-lib/vite.cjs +20 -8
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/text-paragraph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +13 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/kotlin/README.md +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +58 -3
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +636 -37
- package/sdk/ios/usr/include/os/signpost.h +414 -0
- package/sdk/ios/usr/include/os.modulemap +5 -0
- package/sdk/ios/wasm/include/errno.h +4 -20
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/setjmp.h +57 -0
- package/sdk/ios/wasm/include/sys/resource.h +2 -2
- package/sdk/native-hashes.json +3 -3
- package/skills/peach-debug/SKILL.md +0 -1
- package/skills/peach-perf/SKILL.md +0 -1
- package/skills/peach-setup/SKILL.md +0 -1
- package/skills/peach-test/SKILL.md +0 -1
- package/skills/peach-visual/SKILL.md +0 -1
- package/src/android-autolinking.ts +1 -0
- package/src/android-bridge-packages.ts +279 -0
- package/src/appPackageContract.ts +2 -0
- package/src/bundle-channel.mjs +20 -2
- package/src/cli-runtime.ts +9 -5
- package/src/expo-discovery-cache.ts +7 -3
- package/src/expo-kotlin-host.ts +97 -26
- package/src/expo-native-workspace.ts +135 -40
- package/src/expo-swift-host.ts +93 -20
- package/src/expo-swift-ready.ts +5 -1
- package/src/expoKotlinContract.ts +12 -2
- package/src/expoSwiftContract.ts +9 -2
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +6 -1
- package/src/host/bridge-host.ts +5 -0
- package/src/host/fetch-proxy-handler.ts +10 -0
- package/src/kotlin-host.ts +204 -30
- package/src/kotlinSdkContract.ts +2 -1
- package/src/menu.ts +7 -0
- package/src/native-prebuilt.ts +154 -0
- package/src/nitro-adapter.lock.json +251 -251
- package/src/nitro-adapter.ts +56 -50
- package/src/nitro-bundle.ts +84 -74
- package/src/nitro-compile.ts +10 -5
- package/src/nitro-dependencies.ts +43 -28
- package/src/nitro-source.ts +60 -26
- package/src/nitroAdapterContract.ts +146 -98
- package/src/nitroContract.ts +64 -21
- package/src/react-native-bridge-modules.ts +2 -0
- package/src/react-native-host-modules.ts +4 -1
- package/src/settingsContract.ts +11 -0
- package/src/storageSnapshotContract.ts +29 -81
- package/src/swift-compile.ts +49 -50
- package/src/swift-coverage/indexdump.ts +22 -6
- package/src/swift-coverage/indexing.ts +4 -4
- package/src/swift-coverage/sdk.ts +104 -20
- package/src/swift-coverage/types.ts +34 -0
- package/src/swift-coverage/xcode.ts +9 -1
- package/src/swift-distribution.lock.json +15 -12
- package/src/swift-host.ts +3 -0
- package/src/swift-standin-emit.ts +6 -1
- package/src/swift-standins.ts +172 -10
- package/src/swift-submit.ts +5 -1
- package/src/swift-toolchain.ts +16 -16
- package/src/turbo-bundle.ts +81 -0
- package/src/turbo-compile.ts +120 -0
- package/src/turbo-runtime.lock.json +69 -0
- package/src/turbo-source.ts +754 -0
- package/src/vite-plugin-one.ts +4 -3
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1738 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -42,7 +42,7 @@ var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
|
42
42
|
var runtime_companion_default;
|
|
43
43
|
var init_runtime_companion = __esm({
|
|
44
44
|
"runtime-companion.json"() {
|
|
45
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
45
|
+
runtime_companion_default = { abi: 1, sha256: "65f18da220835917c493afae338016e2e9c092419e67b12eb3fb00e389637557", file: "node/cli-65f18da220835917c493afae338016e2e9c092419e67b12eb3fb00e389637557.cjs" };
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -86,10 +86,13 @@ var init_src = __esm({
|
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
// src/home-paths.ts
|
|
89
|
+
function ambientHomeDir() {
|
|
90
|
+
return import_node_path.default.join((0, import_node_os.homedir)(), ".peach");
|
|
91
|
+
}
|
|
89
92
|
function rnxHomeDir() {
|
|
90
93
|
const override = process.env[PEACH_HOME_ENV];
|
|
91
94
|
if (override && override.length > 0) return import_node_path.default.resolve(override);
|
|
92
|
-
return
|
|
95
|
+
return ambientHomeDir();
|
|
93
96
|
}
|
|
94
97
|
function runtimesDir() {
|
|
95
98
|
return import_node_path.default.join(rnxHomeDir(), "runtimes");
|
|
@@ -396,7 +399,8 @@ function verifyCliCompanion(root) {
|
|
|
396
399
|
}
|
|
397
400
|
function getCliRuntime() {
|
|
398
401
|
if (loaded) return loaded.runtime;
|
|
399
|
-
const
|
|
402
|
+
const monorepoRoot = findMonorepoRoot();
|
|
403
|
+
const root = monorepoRoot ? (0, import_node_path2.join)(monorepoRoot, "public/sootsim") : resolveActiveRuntimeRoot();
|
|
400
404
|
if (!root) throw new Error("No Peach runtime installed; run `peach runtime install`");
|
|
401
405
|
verifyCliCompanion(root);
|
|
402
406
|
const require2 = (0, import_node_module.createRequire)(__sootsim_import_meta_url);
|
|
@@ -1117,7 +1121,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
1117
1121
|
"react-native-moengage",
|
|
1118
1122
|
"react-native-navigation-mode",
|
|
1119
1123
|
"react-native-network-info",
|
|
1120
|
-
"react-native-nitro-haptics",
|
|
1121
1124
|
"react-native-otp-verify",
|
|
1122
1125
|
"react-native-passkey",
|
|
1123
1126
|
"react-native-payments",
|
|
@@ -1138,6 +1141,7 @@ var LAZY_STUB_PATTERNS = [
|
|
|
1138
1141
|
"react-native-restart-newarch",
|
|
1139
1142
|
"react-native-screenguard",
|
|
1140
1143
|
"react-native-screens",
|
|
1144
|
+
"react-native-screens/components/Screen",
|
|
1141
1145
|
"react-native-screenshot-prevent",
|
|
1142
1146
|
"react-native-select-contact",
|
|
1143
1147
|
"react-native-send-intent",
|
|
@@ -2052,6 +2056,7 @@ var NATIVE_STUB_PACKAGE_NAMES = [
|
|
|
2052
2056
|
"@goliapkg/sentori-react-native",
|
|
2053
2057
|
"@google/react-native-make-payment",
|
|
2054
2058
|
"@googlemaps/react-native-navigation-sdk",
|
|
2059
|
+
"@gutenye/ocr-react-native",
|
|
2055
2060
|
"@haroldtran/react-native-pax",
|
|
2056
2061
|
"@hot-updater/react-native",
|
|
2057
2062
|
"@huymobile/react-native-sms-retriever-nitro-module",
|
|
@@ -5355,6 +5360,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
5355
5360
|
else proxyReq.end(nextBody);
|
|
5356
5361
|
});
|
|
5357
5362
|
const proxyRes = await send().finally(() => req.off("aborted", markAborted));
|
|
5363
|
+
upstreamAnswered = true;
|
|
5358
5364
|
const status = proxyRes.statusCode ?? 502;
|
|
5359
5365
|
const location = proxyRes.headers.location;
|
|
5360
5366
|
const hopCookies = [...setCookies, ...proxyRes.headers["set-cookie"] ?? []];
|
|
@@ -5400,6 +5406,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
5400
5406
|
}
|
|
5401
5407
|
await (0, import_promises3.pipeline)(proxyRes, res);
|
|
5402
5408
|
};
|
|
5409
|
+
let upstreamAnswered = false;
|
|
5403
5410
|
let body;
|
|
5404
5411
|
try {
|
|
5405
5412
|
if (req.method !== "GET" && req.method !== "HEAD") {
|
|
@@ -5414,6 +5421,8 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
5414
5421
|
await proxy(upstreamUrl, originalMethod, body, 0, []);
|
|
5415
5422
|
} catch (err) {
|
|
5416
5423
|
const norm = normalizeHostname(upstreamUrl.hostname);
|
|
5424
|
+
if (upstreamAnswered && !res.headersSent)
|
|
5425
|
+
console.error(`[peach] fetch proxy could not forward ${upstreamUrl.href}:`, err);
|
|
5417
5426
|
if (!res.headersSent && isLoopbackHost(norm) && err?.code === "ECONNREFUSED") {
|
|
5418
5427
|
const altHosts = norm === "::1" ? ["127.0.0.1"] : norm === "127.0.0.1" ? ["[::1]"] : ["[::1]", "127.0.0.1"];
|
|
5419
5428
|
for (const altHost of altHosts) {
|
|
@@ -5441,6 +5450,8 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
5441
5450
|
res.end();
|
|
5442
5451
|
return;
|
|
5443
5452
|
}
|
|
5453
|
+
if (!(err instanceof Error && "code" in err))
|
|
5454
|
+
console.error("[peach] fetch proxy failed:", err);
|
|
5444
5455
|
if (req instanceof import_node_http2.Http2ServerRequest)
|
|
5445
5456
|
req.stream.destroy(new Error("fetch proxy upstream failed", { cause: err }));
|
|
5446
5457
|
else req.socket.destroy();
|
|
@@ -6282,9 +6293,10 @@ function peachPlugin(options = {}) {
|
|
|
6282
6293
|
res.setHeader(key, value);
|
|
6283
6294
|
}
|
|
6284
6295
|
const forward = res.statusCode === 200 ? forwardRolldownBundleResponse(upstream, res) : (0, import_promises5.pipeline)(upstream, res);
|
|
6285
|
-
forward.catch(
|
|
6286
|
-
|
|
6287
|
-
|
|
6296
|
+
forward.catch((error) => {
|
|
6297
|
+
console.error("[peach] bundle forward failed", error);
|
|
6298
|
+
res.destroy(error instanceof Error ? error : new Error(String(error)));
|
|
6299
|
+
});
|
|
6288
6300
|
};
|
|
6289
6301
|
const upstreamReq = server.config.server.https ? import_node_https2.default.request(options2, respond) : import_node_http3.default.request(options2, respond);
|
|
6290
6302
|
upstreamReq.once("error", next);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1738 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -86,12 +86,15 @@ export interface SystemFontDesign {
|
|
|
86
86
|
tracking: ReadonlyArray<readonly [number, number]>;
|
|
87
87
|
}
|
|
88
88
|
export declare function registerSystemFontDesign(family: string, design: SystemFontDesign): void;
|
|
89
|
-
export declare function resolveFontWeightAxis(fontWeight: unknown,
|
|
90
|
-
export declare function resolveOpticalSizeAxis(fontSize: number,
|
|
89
|
+
export declare function resolveFontWeightAxis(fontWeight: unknown, requestedFamily?: string): number;
|
|
90
|
+
export declare function resolveOpticalSizeAxis(fontSize: number, requestedFamily?: string): number;
|
|
91
91
|
export declare function resolveFontVariations(fontFamily: string | undefined, fontSize: number, fontWeight: unknown, fontStyle?: unknown, fontVariationSettings?: SootSimStyle['fontVariationSettings']): {
|
|
92
92
|
axis: string;
|
|
93
93
|
value: number;
|
|
94
94
|
}[] | undefined;
|
|
95
|
+
export declare function isIosSystemDesignName(family: string): boolean;
|
|
96
|
+
export declare function systemDesignProviderFamilies(companionFamily: string): string[];
|
|
97
|
+
export declare function canonicalRegisteredFamily(family: string): string;
|
|
95
98
|
export declare function markSystemCompanionFontFamily(family: string): void;
|
|
96
99
|
export declare function getFontRegistrationGeneration(): number;
|
|
97
100
|
export declare function noteTextSymbolRegistered(): void;
|
|
@@ -119,8 +122,8 @@ export declare function needsSystemVariantFace(fontVariant: readonly string[] |
|
|
|
119
122
|
export declare function resolveFontFamilies(family?: string, fontWeight?: unknown, fontStyle?: unknown, fontVariant?: readonly string[], caseSensitiveForms?: true): string[];
|
|
120
123
|
export declare function resolveAndroidEmojiFontFamilies(): readonly string[];
|
|
121
124
|
export declare function isSystemFontFamily(requestedFamily: string | undefined): boolean;
|
|
122
|
-
export declare function resolveSystemLetterSpacing(letterSpacing: unknown, fontSize: number,
|
|
123
|
-
export declare function resolveSystemTighteningLimit(fontSize: number,
|
|
125
|
+
export declare function resolveSystemLetterSpacing(letterSpacing: unknown, fontSize: number, requestedFamily?: string, fontWeight?: unknown): number;
|
|
126
|
+
export declare function resolveSystemTighteningLimit(fontSize: number, requestedFamily?: string): number;
|
|
124
127
|
export declare function resolveSystemTextOffset(fontFamily: string | undefined, physicalPixel: number): {
|
|
125
128
|
x: number;
|
|
126
129
|
y: number;
|
|
@@ -350,6 +350,7 @@ export declare function engineDeployBase(): string;
|
|
|
350
350
|
export declare function resolveImageFetchUri(uri: string): string;
|
|
351
351
|
export declare function hasSootSimFile(uri: string): boolean;
|
|
352
352
|
export declare function readSootSimFileBytes(uri: string): Uint8Array | null;
|
|
353
|
+
export declare function sootSimFileSize(uri: string): number | null;
|
|
353
354
|
export declare function storeImageBytes(uri: string, buffer: ArrayBuffer, headers?: Record<string, string>): void;
|
|
354
355
|
export declare function registerRecordedImageBytes(uri: string, buffer: ArrayBuffer, headers?: Record<string, string>): void;
|
|
355
356
|
export declare function awaitImageBytes(uri: string, headers?: Record<string, string>, nativeUserAgent?: string | null): Promise<ArrayBuffer>;
|
|
@@ -365,7 +366,7 @@ export declare function hasImageLoadInFlight(): boolean;
|
|
|
365
366
|
export declare function loadImageForNode(node: SootSimNode, ctx?: RenderContext): void;
|
|
366
367
|
export declare function drawsLiveImage(node: SootSimNode): boolean;
|
|
367
368
|
export declare function touchPaintedImage(node: SootSimNode, ctx: RenderContext): void;
|
|
368
|
-
export declare function releaseDetachedSubtreeImages(root: SootSimNode): void;
|
|
369
|
+
export declare function releaseDetachedSubtreeImages(root: SootSimNode, releasePixels: boolean): void;
|
|
369
370
|
export declare function requeueAttachedSubtreeImages(root: SootSimNode): void;
|
|
370
371
|
export declare function clearImageRepeatShader(node: SootSimNode): void;
|
|
371
372
|
export declare function clearImageNodeRepeatShaders(node: SootSimNode): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type DamageRect } from './damage-rect.d.ts';
|
|
2
1
|
import { type GlassInteractionGlow, type GlassMotionScope, type GlassShapeArrow, type GlassShape, type GlassStyle } from './glass-material.d.ts';
|
|
3
2
|
import { resolveAnimatedLiquidGlassRect } from './liquid-glass-rect.d.ts';
|
|
4
3
|
import { type LiquidGlassType } from './liquid-glass-shaders.d.ts';
|
|
@@ -258,10 +257,6 @@ export declare function drawWithLensFold(opts: {
|
|
|
258
257
|
export declare function resetGlassFrameCache(frameTimeMs: number, surface?: Surface, damage?: FrameDamage | null, dpr?: number): void;
|
|
259
258
|
export declare function liquidGlassFrameEpoch(): number;
|
|
260
259
|
export declare function beginGlassJsFrame(frameTimeMs: number): void;
|
|
261
|
-
export declare function replayedLiquidGlassSamples(ck: CanvasKit): {
|
|
262
|
-
bounds: DamageRect | null;
|
|
263
|
-
moved: boolean;
|
|
264
|
-
};
|
|
265
260
|
export declare function initLiquidGlass(ck: CanvasKit): RuntimeEffect[];
|
|
266
261
|
export declare function disposeLiquidGlass(): void;
|
|
267
262
|
export declare function makeLiquidGlassAdaptiveForegroundShader(ck: CanvasKit, backdropCacheKey: number, foregroundOffset: [number, number]): Shader | null;
|
|
@@ -8,6 +8,14 @@ declare function readJsHeap(): {
|
|
|
8
8
|
usedJSHeapSize: number;
|
|
9
9
|
totalJSHeapSize: number;
|
|
10
10
|
jsHeapSizeLimit: number;
|
|
11
|
+
externalMemory: number;
|
|
12
|
+
mallocedMemory: number;
|
|
13
|
+
} | {
|
|
14
|
+
externalMemory?: undefined;
|
|
15
|
+
mallocedMemory?: undefined;
|
|
16
|
+
usedJSHeapSize: number;
|
|
17
|
+
totalJSHeapSize: number;
|
|
18
|
+
jsHeapSizeLimit: number;
|
|
11
19
|
} | null;
|
|
12
20
|
export interface EngineMemoryCounts {
|
|
13
21
|
nodesRegistered: number;
|
|
@@ -39,6 +39,8 @@ export declare function releaseDetachedSubtree(node: SootSimNode | SootSimTextNo
|
|
|
39
39
|
export declare function releaseOrphanedNodes(): number;
|
|
40
40
|
export declare function queueAllImageLoads(): void;
|
|
41
41
|
export declare function syncNodeScreenDetachState(node: SootSimNode, wasDetached: boolean): void;
|
|
42
|
+
export declare function readPanCapabilityVersion(): number;
|
|
43
|
+
export declare function propsCanStartPan(props: Record<string, unknown>): boolean;
|
|
42
44
|
export declare function readTreeVersion(): number;
|
|
43
45
|
export declare function readLayoutVersion(): number;
|
|
44
46
|
export declare function readScrollVersion(): number;
|
|
@@ -60,7 +62,7 @@ export declare const PAINT_NONE = 0;
|
|
|
60
62
|
export declare const PAINT_OWN = 1;
|
|
61
63
|
export declare const PAINT_TREE = 2;
|
|
62
64
|
export type PaintChange = typeof PAINT_NONE | typeof PAINT_OWN | typeof PAINT_TREE;
|
|
63
|
-
export declare function markWireNodeChanged(node?: SootSimNode | SootSimTextNode | null, paintChange?: PaintChange): void;
|
|
65
|
+
export declare function markWireNodeChanged(node?: SootSimNode | SootSimTextNode | null, paintChange?: PaintChange, shapeChanged?: boolean): void;
|
|
64
66
|
export declare function setStyleChangeListener(listener: (node: SootSimNode) => void): void;
|
|
65
67
|
export declare function hasUnownedLiveAnimatedStyle(node: SootSimNode): boolean;
|
|
66
68
|
export declare function refreshLiveAnimatedSceneGeometry(node: SootSimNode): void;
|
|
@@ -182,6 +184,7 @@ export declare class SootSimNode {
|
|
|
182
184
|
private _connectedAnimatedStyles;
|
|
183
185
|
_wireRevision: number;
|
|
184
186
|
_wireSubtreeRevision: number;
|
|
187
|
+
_wireShapeRevision: number;
|
|
185
188
|
_styleEpoch: number;
|
|
186
189
|
_nativeAnimationScanRevision: number;
|
|
187
190
|
_nativeAnimationScanKeysRevision: number;
|
|
@@ -22,7 +22,7 @@ interface DamageNative {
|
|
|
22
22
|
_peach_damage_glow_complete(id: number, failed: number): void;
|
|
23
23
|
_peach_damage_reset(id: number): void;
|
|
24
24
|
_peach_damage_begin(id: number, width: number, height: number, dpr: number, threshold: number, forced: number, root: number, floor: number): void;
|
|
25
|
-
_peach_damage_end(id: number
|
|
25
|
+
_peach_damage_end(id: number): void;
|
|
26
26
|
_peach_damage_read(id: number, which: number): void;
|
|
27
27
|
_peach_layout_damage_slots(count: number): number;
|
|
28
28
|
_peach_layout_damage(id: number, count: number, mode: number): number;
|
|
@@ -103,5 +103,5 @@ export interface DamageFrameEnd {
|
|
|
103
103
|
damage: DamageRect | null;
|
|
104
104
|
deferred: DamageRect | null;
|
|
105
105
|
}
|
|
106
|
-
export declare function endDamageFrame(damage: FrameDamage
|
|
106
|
+
export declare function endDamageFrame(damage: FrameDamage): DamageFrameEnd;
|
|
107
107
|
export {};
|
|
@@ -11,6 +11,11 @@ export interface ParagraphBaselineInputs {
|
|
|
11
11
|
textFontScale: number | null;
|
|
12
12
|
contentHeight: number;
|
|
13
13
|
deviceScale: number;
|
|
14
|
+
fieldLine?: {
|
|
15
|
+
lineTop: number;
|
|
16
|
+
hostContentTop: number;
|
|
17
|
+
hostContentHeight: number;
|
|
18
|
+
};
|
|
14
19
|
}
|
|
15
20
|
export declare function compressedTextKitBaseline(style: SootSimStyle, fontSize: number, paragraphLineHeight: number | null): number | null;
|
|
16
21
|
export declare function iosParagraphBaselineOffset(input: ParagraphBaselineInputs): number | null;
|
|
@@ -4,6 +4,7 @@ import type { Canvas, Paragraph as NativeParagraph } from 'canvaskit-wasm';
|
|
|
4
4
|
export type Paragraph = NativeParagraph | AttributedParagraph;
|
|
5
5
|
type AttributedRuntime = typeof import('./attributed-paragraph.d.ts');
|
|
6
6
|
export declare function hasAttributedParagraphStyle(node: SootSimNode): boolean;
|
|
7
|
+
export declare function admitAttributedParagraphRuntime(): Promise<void>;
|
|
7
8
|
export declare function pendingAttributedParagraphForTree(root: SootSimNode): Promise<void> | null;
|
|
8
9
|
export declare function getAttributedParagraphRuntime(): AttributedRuntime;
|
|
9
10
|
export declare function isAttributedParagraph(paragraph: Paragraph | null | undefined): paragraph is AttributedParagraph;
|
|
@@ -4,12 +4,14 @@ export type NativePreviewProjectBinding = {
|
|
|
4
4
|
projectId: string;
|
|
5
5
|
routeKey: string;
|
|
6
6
|
previewSessionId: string;
|
|
7
|
+
storageScope: string;
|
|
7
8
|
};
|
|
8
9
|
export type NativePreviewNetworkBinding = {
|
|
9
10
|
useProjectServer: false;
|
|
10
11
|
projectId?: never;
|
|
11
12
|
routeKey?: never;
|
|
12
13
|
previewSessionId?: never;
|
|
14
|
+
storageScope?: never;
|
|
13
15
|
};
|
|
14
16
|
export type NativePreviewBundleShared = {
|
|
15
17
|
appFonts?: string | null;
|
|
@@ -117,7 +117,7 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
117
117
|
} | {
|
|
118
118
|
type: 'init';
|
|
119
119
|
nativeWidget?: import('./native-widgetContract.d.ts').NativeWidgetMount;
|
|
120
|
-
compositorBackend
|
|
120
|
+
compositorBackend?: CompositorBackend;
|
|
121
121
|
shellPort: MessagePort;
|
|
122
122
|
hostTimeOrigin: number;
|
|
123
123
|
animationClock: AnimationClockSnapshot;
|
|
@@ -132,7 +132,7 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
132
132
|
bodyPose: InterfacePose;
|
|
133
133
|
reactNativeConfiguration: ReactNativeConfigurationSnapshot;
|
|
134
134
|
nativeResourcesPort: MessagePort;
|
|
135
|
-
canvasKitWasmModule
|
|
135
|
+
canvasKitWasmModule?: WebAssembly.Module;
|
|
136
136
|
engineBase: string;
|
|
137
137
|
fontUrls: string[];
|
|
138
138
|
fontBuffers?: Record<string, ArrayBuffer>;
|
|
@@ -465,6 +465,11 @@ export type HostToWorker = import('./engine-resource-relay.d.ts').EngineResource
|
|
|
465
465
|
type: 'bundleStripCapture';
|
|
466
466
|
requestId: number;
|
|
467
467
|
};
|
|
468
|
+
export type LocalTenantInit = Extract<HostToWorker, {
|
|
469
|
+
type: 'init';
|
|
470
|
+
}> & Required<Pick<Extract<HostToWorker, {
|
|
471
|
+
type: 'init';
|
|
472
|
+
}>, 'canvasKitWasmModule' | 'compositorBackend'>>;
|
|
468
473
|
export interface SerializedRecordedEntry {
|
|
469
474
|
url: string;
|
|
470
475
|
urlhash: string;
|
|
@@ -62,6 +62,10 @@ export type ValueSpec = {
|
|
|
62
62
|
kind: 'hostValue';
|
|
63
63
|
codec: string;
|
|
64
64
|
data: unknown;
|
|
65
|
+
} | {
|
|
66
|
+
kind: 'custom';
|
|
67
|
+
unpack: WorkletFunctionSpec;
|
|
68
|
+
packed: ValueSpec;
|
|
65
69
|
} | {
|
|
66
70
|
kind: 'fn';
|
|
67
71
|
reanimated2?: true;
|
|
@@ -230,10 +234,11 @@ export declare function markWorkletBuiltin<T extends object>(name: string, value
|
|
|
230
234
|
export declare function markWorkletHostFunction<T extends (...args: never[]) => void>(fn: T): T;
|
|
231
235
|
export declare function isWorkletHostFunction(value: unknown): value is (...args: unknown[]) => void;
|
|
232
236
|
export interface WorkletHostValueCodec<T extends object, D> {
|
|
233
|
-
pack(value: T): D;
|
|
237
|
+
pack(value: T, carrier?: WorkletRuntime): D;
|
|
234
238
|
unpack(data: D): T;
|
|
235
239
|
receive?(data: D, decode: (value: ValueSpec) => unknown): void;
|
|
236
240
|
disposeRuntime?(runtime: WorkletRuntime): void;
|
|
241
|
+
retirePeer?(runtime: WorkletRuntime): void;
|
|
237
242
|
}
|
|
238
243
|
export interface WorkletHostValueUpdate {
|
|
239
244
|
codec: string;
|
|
@@ -241,6 +246,13 @@ export interface WorkletHostValueUpdate {
|
|
|
241
246
|
}
|
|
242
247
|
export declare function registerWorkletHostValueCodec<T extends object, D>(name: string, codec: WorkletHostValueCodec<T, D>): void;
|
|
243
248
|
export declare function markWorkletHostValue<T extends object>(target: T, codec: string): T;
|
|
249
|
+
export interface CustomSerializableRegistration {
|
|
250
|
+
name: string;
|
|
251
|
+
determine: (value: object) => boolean;
|
|
252
|
+
pack: (value: object) => unknown;
|
|
253
|
+
unpack: WorkletFn;
|
|
254
|
+
}
|
|
255
|
+
export declare function getCustomSerializationRegistry(): CustomSerializableRegistration[];
|
|
244
256
|
export interface WorkletDispatchOptions {
|
|
245
257
|
awaitReply?: boolean;
|
|
246
258
|
callerThread?: WorkletThreadIdentity;
|
package/kotlin/README.md
CHANGED
|
@@ -31,6 +31,9 @@ traffic in `scripts/debug/peach-swift-lazy-network.sh`.
|
|
|
31
31
|
- `ExpoSources/`: the expo-modules-core Kotlin DSL port and `PeachExpoRuntime`
|
|
32
32
|
that local Expo Android modules compile against. Owner spec:
|
|
33
33
|
[`specs/peach-kotlin-expo-modules.md`](../../../specs/peach-kotlin-expo-modules.md).
|
|
34
|
+
- `BridgeSources/`: React Native's legacy bridge classes, `PeachBridgeRuntime` and the Android,
|
|
35
|
+
androidx and Play services types an app's own `ReactPackage` Kotlin imports. Owner spec:
|
|
36
|
+
[`specs/peach-kotlin/bridge-modules.md`](../../../specs/peach-kotlin/bridge-modules.md).
|
|
34
37
|
- `CompilerSources/`: the native member compiler plugin and JVM service
|
|
35
38
|
registration. Release producers compile it to `plugin.jar`; clients load that
|
|
36
39
|
jar without compiling or receiving plugin source. `ToolSources/` builds
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"65f18da220835917c493afae338016e2e9c092419e67b12eb3fb00e389637557","file":"node/cli-65f18da220835917c493afae338016e2e9c092419e67b12eb3fb00e389637557.cjs"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ACAccount.h
|
|
3
|
+
// Accounts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2011-2012 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Accounts/AccountsDefines.h>
|
|
10
|
+
|
|
11
|
+
@class ACAccountType, ACAccountCredential;
|
|
12
|
+
|
|
13
|
+
// The ACAccount class represents an account stored on the system.
|
|
14
|
+
// Accounts are created not bound to any store. Once an account is saved it belongs
|
|
15
|
+
// to the store it was saved into.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
API_DEPRECATED("Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead", ios(6.0, 15.0), macos(10.8, 12.0))
|
|
19
|
+
|
|
20
|
+
@interface ACAccount : NSObject
|
|
21
|
+
|
|
22
|
+
// Creates a new account object with a specified account type.
|
|
23
|
+
- (instancetype)initWithAccountType:(ACAccountType *)type NS_DESIGNATED_INITIALIZER;
|
|
24
|
+
|
|
25
|
+
// This identifier can be used to look up the account using [ACAccountStore accountWithIdentifier:].
|
|
26
|
+
@property (readonly, weak, NS_NONATOMIC_IOSONLY) NSString *identifier;
|
|
27
|
+
|
|
28
|
+
// Accounts are stored with a particular account type. All available accounts of a particular type
|
|
29
|
+
// can be looked up using [ACAccountStore accountsWithAccountType:]. When creating new accounts
|
|
30
|
+
// this property is required.
|
|
31
|
+
@property (strong, NS_NONATOMIC_IOSONLY) ACAccountType *accountType;
|
|
32
|
+
|
|
33
|
+
// A human readable description of the account.
|
|
34
|
+
// This property is only available to applications that have been granted access to the account by the user.
|
|
35
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *accountDescription;
|
|
36
|
+
|
|
37
|
+
// The username for the account. This property can be set and saved during account creation. The username is
|
|
38
|
+
// only available to applications that have been granted access to the account by the user.
|
|
39
|
+
@property (copy, NS_NONATOMIC_IOSONLY) NSString *username;
|
|
40
|
+
|
|
41
|
+
// For accounts that support it (currently only Facebook accounts), you can get the user's full name for display
|
|
42
|
+
// purposes without having to talk to the network.
|
|
43
|
+
@property (readonly, NS_NONATOMIC_IOSONLY) NSString *userFullName API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(macos);
|
|
44
|
+
|
|
45
|
+
// The credential for the account. This property can be set and saved during account creation. It is
|
|
46
|
+
// inaccessible once the account has been saved.
|
|
47
|
+
//
|
|
48
|
+
// Unless an error occurs in loading, calling account.credential will always return a non-nil ACAccountCredential object,
|
|
49
|
+
// which will have 0 to n credential items set on it. Setting this property to nil will not unset any credential items saved
|
|
50
|
+
// to this account's credential. See ACAccountCredential.h for details on setting, getting, and clearing credential items.
|
|
51
|
+
//
|
|
52
|
+
// WARNING: Backed by a synchronous xpc call to accountsd, not appropriate to call on a UI Application's main thread
|
|
53
|
+
@property (strong, NS_NONATOMIC_IOSONLY) ACAccountCredential *credential;
|
|
54
|
+
|
|
55
|
+
@end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ACAccountCredential.h
|
|
3
|
+
// Accounts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2011-2012 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Accounts/AccountsDefines.h>
|
|
10
|
+
|
|
11
|
+
// An existing credential may be provided when creating an account.
|
|
12
|
+
// For example, to create a system Twitter account using an existing OAuth token/secret pair:
|
|
13
|
+
//
|
|
14
|
+
// 1. Create the new account instance.
|
|
15
|
+
// 2. Set the account type.
|
|
16
|
+
// 3. Create an ACAccountCredential using your existing OAuth token/secret and set the account's credential property.
|
|
17
|
+
// 4. Save the account.
|
|
18
|
+
//
|
|
19
|
+
// The account will be validated and saved as a system account.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
API_DEPRECATED("Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead", ios(6.0, 15.0), macos(10.8, 12.0))
|
|
23
|
+
|
|
24
|
+
@interface ACAccountCredential : NSObject
|
|
25
|
+
|
|
26
|
+
- (instancetype)initWithOAuthToken:(NSString *)token tokenSecret:(NSString *)secret;
|
|
27
|
+
|
|
28
|
+
- (instancetype)initWithOAuth2Token:(NSString *)token
|
|
29
|
+
refreshToken:(NSString *)refreshToken
|
|
30
|
+
expiryDate:(NSDate *)expiryDate;
|
|
31
|
+
|
|
32
|
+
// This property is only valid for OAuth2 credentials
|
|
33
|
+
@property (copy, nonatomic) NSString *oauthToken;
|
|
34
|
+
|
|
35
|
+
@end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ACAccountStore.h
|
|
3
|
+
// Accounts
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2011-2012 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Accounts/AccountsDefines.h>
|
|
10
|
+
|
|
11
|
+
typedef NS_ENUM(NSInteger, ACAccountCredentialRenewResult) {
|
|
12
|
+
ACAccountCredentialRenewResultRenewed, // A new credential was obtained and is now associated with the account.
|
|
13
|
+
ACAccountCredentialRenewResultRejected, // Renewal failed because of a user-initiated action.
|
|
14
|
+
ACAccountCredentialRenewResultFailed, // A non-user-initiated cancel of the prompt.
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
typedef void(^ACAccountStoreSaveCompletionHandler)(BOOL success, NSError *error);
|
|
18
|
+
typedef void(^ACAccountStoreRemoveCompletionHandler)(BOOL success, NSError *error);
|
|
19
|
+
typedef void(^ACAccountStoreRequestAccessCompletionHandler)(BOOL granted, NSError *error);
|
|
20
|
+
typedef void(^ACAccountStoreCredentialRenewalHandler)(ACAccountCredentialRenewResult renewResult, NSError *error);
|
|
21
|
+
|
|
22
|
+
@class ACAccount, ACAccountType;
|
|
23
|
+
|
|
24
|
+
// The ACAccountStore class provides an interface for accessing and manipulating
|
|
25
|
+
// accounts. You must create an ACAccountStore object to retrieve, add and delete
|
|
26
|
+
// accounts from the Accounts database.
|
|
27
|
+
//
|
|
28
|
+
// IMPORTANT NOTE: You MUST keep the account store around for as long as you have
|
|
29
|
+
// any objects fetched from that store if you expect other 'sub-fetches' to work,
|
|
30
|
+
// most notably being fetching credentials. If you really just want to open the
|
|
31
|
+
// store to grab credentials, just be sure to grab the credential object and then
|
|
32
|
+
// you can release the owning account and store, e.g.
|
|
33
|
+
//
|
|
34
|
+
// WARNING: All synchronous methods on ACAccountStore invoke xpc methods
|
|
35
|
+
// on accountsd. They are not appropriate to call on a UI Application's main thread.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
API_DEPRECATED("Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead", ios(6.0, 15.0), macos(10.8, 12.0))
|
|
39
|
+
|
|
40
|
+
@interface ACAccountStore : NSObject
|
|
41
|
+
|
|
42
|
+
// An array of all the accounts in an account database
|
|
43
|
+
// WARNING: Synchronous, not appropriate to call on a UI Application's main thread
|
|
44
|
+
@property (readonly, weak, NS_NONATOMIC_IOSONLY) NSArray *accounts;
|
|
45
|
+
|
|
46
|
+
// Returns the account matching the given account identifier
|
|
47
|
+
// WARNING: Synchronous, not appropriate to call on a UI Application's main thread
|
|
48
|
+
- (ACAccount *)accountWithIdentifier:(NSString *)identifier;
|
|
49
|
+
|
|
50
|
+
// Returns the account type object matching the account type identifier. See
|
|
51
|
+
// ACAccountType.h for well known account type identifiers
|
|
52
|
+
// WARNING: Synchronous, not appropriate to call on a UI Application's main thread
|
|
53
|
+
- (ACAccountType *)accountTypeWithAccountTypeIdentifier:(NSString *)typeIdentifier;
|
|
54
|
+
|
|
55
|
+
// Returns the accounts matching a given account type.
|
|
56
|
+
// WARNING: Synchronous, not appropriate to call on a UI Application's main thread
|
|
57
|
+
- (NSArray *)accountsWithAccountType:(ACAccountType *)accountType;
|
|
58
|
+
|
|
59
|
+
// Saves the account to the account database. If the account is unauthenticated and the associated account
|
|
60
|
+
// type supports authentication, the system will attempt to authenticate with the credentials provided.
|
|
61
|
+
// Assuming a successful authentication, the account will be saved to the account store. The completion handler
|
|
62
|
+
// for this method is called on an arbitrary queue.
|
|
63
|
+
- (void)saveAccount:(ACAccount *)account withCompletionHandler:(ACAccountStoreSaveCompletionHandler)completionHandler;
|
|
64
|
+
|
|
65
|
+
// DEPRECATED: Please use requestAccessToAccountsWithType:options:completion: instead.
|
|
66
|
+
- (void)requestAccessToAccountsWithType:(ACAccountType *)accountType withCompletionHandler:(ACAccountStoreRequestAccessCompletionHandler)handler API_DEPRECATED_WITH_REPLACEMENT("-requestAccessToAccountsWithType:options:completion:", ios(5.0, 6.0)) API_UNAVAILABLE(macos);
|
|
67
|
+
|
|
68
|
+
// Obtains permission, if necessary, from the user to access protected properties, and utilize accounts
|
|
69
|
+
// of a particular type in protected operations, for example OAuth signing. The completion handler for
|
|
70
|
+
// this method is called on an arbitrary queue.
|
|
71
|
+
// Certain account types (such as Facebook) require an options dictionary. A list of the required keys
|
|
72
|
+
// appears in ACAccountType.h. This method will throw an NSInvalidArgumentException if the options
|
|
73
|
+
// dictionary is not provided for such account types. Conversely, if the account type does not require
|
|
74
|
+
// an options dictionary, the options parameter must be nil.
|
|
75
|
+
- (void)requestAccessToAccountsWithType:(ACAccountType *)accountType options:(NSDictionary *)options completion:(ACAccountStoreRequestAccessCompletionHandler)completion;
|
|
76
|
+
|
|
77
|
+
// Call this if you discover that an ACAccount's credential is no longer valid.
|
|
78
|
+
// For Twitter and Sina Weibo accounts, this method will prompt the user to go to Settings to re-enter their password.
|
|
79
|
+
// For Facebook accounts, if your access token became invalid due to regular expiration, this method will obtain a new one.
|
|
80
|
+
// However, if the user has deauthorized your app, this renewal request will return ACAccountCredentialRenewResultRejected.
|
|
81
|
+
- (void)renewCredentialsForAccount:(ACAccount *)account completion:(ACAccountStoreCredentialRenewalHandler)completionHandler;
|
|
82
|
+
|
|
83
|
+
// Removes an account from the account store. The completion handler for this method is called on an arbitrary queue.
|
|
84
|
+
// This call will fail if you don't have sufficient rights to remove the account in question.
|
|
85
|
+
- (void)removeAccount:(ACAccount *)account withCompletionHandler:(ACAccountStoreRemoveCompletionHandler)completionHandler;
|
|
86
|
+
|
|
87
|
+
@end
|
|
88
|
+
|
|
89
|
+
// Notification name sent out when the database is changed by an external process, another account store
|
|
90
|
+
// in the same process or by calling saveAccount: or removeAccount: on a store you are managing.
|
|
91
|
+
// You may need to deal with accounts being removed by an external process while you are using them.
|
|
92
|
+
// Note: ensure when you add an observer for this notification, you do so specifying this object specifically.
|
|
93
|
+
// Otherwise, you will receive n notifications, one per active ACAccountStore instance in your process.
|
|
94
|
+
ACCOUNTS_EXTERN NSString * const ACAccountStoreDidChangeNotification API_DEPRECATED("Public notification deprecated. Internal clients, see private header for replacement", ios(5.0, 14.0), macos(10.8, 11.0), tvos(5.0, 14.0), watchos(1.0, 6.0));
|