peachsim 0.1.2018 → 0.1.2021
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/inspect/settling.ts +11 -6
- package/cli/commands/screenshots-capture.ts +9 -2
- package/cli/outbound-endpoints.ts +1 -1
- package/cli/telemetry.ts +19 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- 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 +383 -102
- 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 +6 -4
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +377 -96
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +382 -101
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +83 -18
- 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 +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -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 +78 -15
- package/dist-lib/native-app-identity-project.cjs +76 -13
- package/dist-lib/native-app-identity-project.mjs +76 -12
- package/dist-lib/native-app-identity.cjs +5 -2
- package/dist-lib/native-app-identity.mjs +5 -2
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +6 -4
- package/dist-lib/sdk.mjs +6 -4
- package/dist-lib/skills.cjs +389 -106
- package/dist-lib/swift-compile.cjs +101 -66
- package/dist-lib/swift-compile.mjs +100 -65
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +26 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +376 -95
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/components/native-ui/context-menu-types.d.ts +84 -0
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/rn-spring.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-menu-gesture.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -0
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSEntityDescription.h +10 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h +16 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSSortDescriptor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h +1 -1
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h +17 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +1 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +1 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +6 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSession.h +1 -1
- package/sdk/ios/usr/include/objc/NSObject.h +1 -1
- package/sdk/ios/wasm/include/stdlib.h +1 -0
- package/src/nitro-adapter.lock.json +274 -274
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-compile.ts +70 -81
- package/src/swift-distribution.lock.json +14 -12
- package/src/swift-guest-image-ledger.ts +15 -10
- package/src/swift-guest-source-inputs.ts +6 -3
- package/src/swift-guest-source-plan.ts +5 -1
- package/src/swift-objc-compile.ts +2 -2
- package/src/swift-objc-standin.ts +197 -5
- package/src/swift-packages.ts +13 -12
- package/src/swift-shared-sdk.ts +2 -1
- package/src/swift-standin-emit.ts +43 -5
- package/src/swift-standins.ts +41 -2
- package/src/swift-toolchain.ts +24 -0
- package/src/turbo-runtime.lock.json +23 -23
- package/src/xcode-project.ts +59 -1
- package/src/xcode-target-members.ts +4 -0
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2021 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2021 | (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;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { DynamicColor } from '../../engine/types.d.ts';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export type MenuOrder = 'automatic' | 'fixed' | 'priority';
|
|
4
|
+
export interface MenuItemConfig {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
accessibilityLabel?: string;
|
|
8
|
+
height?: number;
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
systemImageName?: string;
|
|
12
|
+
androidDrawableName?: string;
|
|
13
|
+
titleColor?: string | DynamicColor;
|
|
14
|
+
imageColor?: string | DynamicColor;
|
|
15
|
+
destructive?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
state?: 'on' | 'off' | 'mixed';
|
|
18
|
+
keepOpen?: boolean;
|
|
19
|
+
onPress?: () => void;
|
|
20
|
+
items?: MenuItemConfig[];
|
|
21
|
+
displayInline?: boolean;
|
|
22
|
+
displayAsPalette?: boolean;
|
|
23
|
+
preferredElementSize?: 'small';
|
|
24
|
+
menuOrder?: MenuOrder;
|
|
25
|
+
}
|
|
26
|
+
export interface MenuGroupConfig {
|
|
27
|
+
displayAsPalette?: boolean;
|
|
28
|
+
preferredElementSize?: 'small';
|
|
29
|
+
title?: string;
|
|
30
|
+
items: MenuItemConfig[];
|
|
31
|
+
}
|
|
32
|
+
export type MenuRect = {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
};
|
|
38
|
+
export type MenuSourceKind = 'bar' | 'app' | 'item';
|
|
39
|
+
export type MenuSourceGlass = {
|
|
40
|
+
capsule: MenuRect;
|
|
41
|
+
alignment?: 'left' | 'right' | 'center';
|
|
42
|
+
itemCenterX: number;
|
|
43
|
+
swell: number;
|
|
44
|
+
kind: MenuSourceKind;
|
|
45
|
+
contentTag?: number;
|
|
46
|
+
bud?: MenuRect;
|
|
47
|
+
radius?: number;
|
|
48
|
+
};
|
|
49
|
+
export type MenuHeldTouch = {
|
|
50
|
+
identifier: number;
|
|
51
|
+
pageX: number;
|
|
52
|
+
pageY: number;
|
|
53
|
+
};
|
|
54
|
+
export interface ContextMenuProps {
|
|
55
|
+
heldTouch?: MenuHeldTouch;
|
|
56
|
+
visible: boolean;
|
|
57
|
+
onClose: () => void;
|
|
58
|
+
onCancel?: () => void;
|
|
59
|
+
onHidden?: () => void;
|
|
60
|
+
anchorX: number;
|
|
61
|
+
anchorY: number;
|
|
62
|
+
triggerY?: number;
|
|
63
|
+
triggerRect?: MenuRect;
|
|
64
|
+
backdropSource?: 'tenant';
|
|
65
|
+
items?: MenuItemConfig[];
|
|
66
|
+
groups?: MenuGroupConfig[];
|
|
67
|
+
title?: string;
|
|
68
|
+
subtitle?: string;
|
|
69
|
+
alignment?: 'left' | 'right' | 'center';
|
|
70
|
+
presentation?: 'menu' | 'contextMenu';
|
|
71
|
+
swiftUIMenu?: boolean;
|
|
72
|
+
menuOrder?: MenuOrder;
|
|
73
|
+
rowPickerCard?: boolean;
|
|
74
|
+
hasPrimaryAction?: boolean;
|
|
75
|
+
sourceGlass?: MenuSourceGlass;
|
|
76
|
+
preview?: ReactNode;
|
|
77
|
+
customPreview?: boolean;
|
|
78
|
+
previewPreferredContentSize?: {
|
|
79
|
+
width: number;
|
|
80
|
+
height: number;
|
|
81
|
+
};
|
|
82
|
+
onPreviewPress?: () => void;
|
|
83
|
+
children?: ReactNode;
|
|
84
|
+
}
|
|
@@ -157,7 +157,7 @@ export interface SpringConfig {
|
|
|
157
157
|
restSpeedThreshold?: number;
|
|
158
158
|
restDisplacementThreshold?: number;
|
|
159
159
|
uikitRestEpsilon?: number;
|
|
160
|
-
|
|
160
|
+
animationKitScalarEpsilon?: number;
|
|
161
161
|
fixedDurationMs?: number;
|
|
162
162
|
useNativeDriver?: boolean;
|
|
163
163
|
clock?: 'display';
|
|
@@ -81,6 +81,9 @@ export type FontDataOperation = {
|
|
|
81
81
|
} | {
|
|
82
82
|
type: 'openData';
|
|
83
83
|
data: string;
|
|
84
|
+
} | {
|
|
85
|
+
type: 'register';
|
|
86
|
+
id: number;
|
|
84
87
|
} | {
|
|
85
88
|
type: 'copy';
|
|
86
89
|
id: number;
|
|
@@ -116,6 +119,7 @@ export type FontDataOperation = {
|
|
|
116
119
|
};
|
|
117
120
|
export declare function isFontDataOperation(value: unknown): value is FontDataOperation;
|
|
118
121
|
export interface FontDataFace {
|
|
122
|
+
readonly data: ArrayBuffer;
|
|
119
123
|
descriptor: FontDataDescriptor;
|
|
120
124
|
copy(variations: Record<string, FontVariationCoordinate>): FontDataFace;
|
|
121
125
|
glyph(id: number): FontGlyphData;
|
|
@@ -21,7 +21,7 @@ export interface SpringInput {
|
|
|
21
21
|
restSpeedThreshold?: number;
|
|
22
22
|
restVelocityThreshold?: number;
|
|
23
23
|
uikitRestEpsilon?: number;
|
|
24
|
-
|
|
24
|
+
animationKitScalarEpsilon?: number;
|
|
25
25
|
}
|
|
26
26
|
export interface ResolvedSpring {
|
|
27
27
|
stiffness: number;
|
|
@@ -32,7 +32,7 @@ export interface ResolvedSpring {
|
|
|
32
32
|
restDisplacementThreshold: number;
|
|
33
33
|
restSpeedThreshold: number;
|
|
34
34
|
uikitRestEpsilon?: number;
|
|
35
|
-
|
|
35
|
+
animationKitScalarEpsilon?: number;
|
|
36
36
|
}
|
|
37
37
|
export declare function resolveSpringConfig(config: SpringInput): ResolvedSpring;
|
|
38
38
|
export declare function springAtRest(resolved: ResolvedSpring, toValue: number, position: number, velocity: number): boolean;
|
|
@@ -156,6 +156,7 @@ export interface SceneNativeBinding {
|
|
|
156
156
|
_peach_host_drop(slot: number, release: number): void;
|
|
157
157
|
_peach_scene_subtree_raster(slot: number): number;
|
|
158
158
|
_peach_scene_set_text(slot: number, paragraph: number, dpr: number, fontGeneration: number, padLeft: number, padTop: number, clipOffset: number, offsetX: number, offsetY: number, clip: number, maxWidth: number, contentHeight: number, overlay: number, embeds: number): number;
|
|
159
|
+
_peach_scene_draw_text(slot: number, canvas: number, x: number, y: number, pendingScale: number, dpr: number): void;
|
|
159
160
|
_peach_numeric_text_create(fromPicture: number, toPicture: number, glyphs: number): number;
|
|
160
161
|
_peach_numeric_text_parameters(handle: number): number;
|
|
161
162
|
_peach_numeric_text_draw(canvas: number, handle: number, x: number, y: number, elapsed: number): void;
|
|
@@ -406,7 +407,6 @@ export interface SceneLaneProgram {
|
|
|
406
407
|
readonly glassRectIndexes: Readonly<Record<string, number>>;
|
|
407
408
|
readonly glassOpacityIndex: number;
|
|
408
409
|
readonly sdfDisplacementIndexes: Readonly<Record<string, number>>;
|
|
409
|
-
readonly liquidGlassSdfIndexes: Readonly<Record<string, number>>;
|
|
410
410
|
}
|
|
411
411
|
export declare function compileSceneLaneProgram(template: Record<string, unknown>, slotIds: readonly number[], foldedGlassKeys?: readonly string[]): SceneLaneProgram | string;
|
|
412
412
|
export declare const sceneTable: SceneTable;
|
|
@@ -257,9 +257,10 @@ type SootSimAnimatedRimLighting = Omit<LiquidGlassRimLighting, 'ambient' | 'key'
|
|
|
257
257
|
kick: SootSimAnimatedNumber;
|
|
258
258
|
lobe?: SootSimAnimatedNumber;
|
|
259
259
|
};
|
|
260
|
-
type SootSimLiquidGlassStyle = Omit<LiquidGlassConfig, 'cornerRadius' | 'bodyOpacity' | 'blurSigma' | 'vibrancy' | 'merge' | 'interactionIntensity' | 'thickness' | 'lightIntensity' | 'ambientStrength' | 'edgeAmbient' | 'chromaticAberration' | 'tintColor' | 'contour' | 'rimLighting' | 'shadow' | 'rimFold' | 'bodyLift' | 'interactionGlow' | 'adaptiveForeground'> & {
|
|
260
|
+
type SootSimLiquidGlassStyle = Omit<LiquidGlassConfig, 'cornerRadius' | 'bodyOpacity' | 'materialization' | 'blurSigma' | 'vibrancy' | 'merge' | 'interactionIntensity' | 'thickness' | 'lightIntensity' | 'ambientStrength' | 'edgeAmbient' | 'chromaticAberration' | 'tintColor' | 'contour' | 'rimLighting' | 'shadow' | 'rimFold' | 'bodyLift' | 'interactionGlow' | 'adaptiveForeground'> & {
|
|
261
261
|
cornerRadius?: SootSimAnimatedNumber;
|
|
262
262
|
bodyOpacity?: SootSimAnimatedNumber;
|
|
263
|
+
materialization?: SootSimAnimatedNumber;
|
|
263
264
|
blurSigma?: SootSimAnimatedNumber;
|
|
264
265
|
vibrancy?: SootSimAnimatedNumber;
|
|
265
266
|
interactionIntensity?: SootSimAnimatedNumber;
|
|
@@ -14,7 +14,10 @@ export interface GraphPresentation {
|
|
|
14
14
|
export declare function interpolationAnimationGraph(graph: NativeAnimationGraph, value: AnimatedInterpolation): NativeAnimationGraph | null;
|
|
15
15
|
export declare function interpolationAnimationGraph(graph: DriveAnimationGraph, value: AnimatedInterpolation): DriveAnimationGraph | null;
|
|
16
16
|
export declare function interpolationAnimationGraph(graph: NativeAnimationGraph | DriveAnimationGraph, value: AnimatedInterpolation): NativeAnimationGraph | DriveAnimationGraph | null;
|
|
17
|
-
export declare function interpolationPartGraphs(graph: NativeAnimationGraph, value: AnimatedInterpolation, presented: string):
|
|
17
|
+
export declare function interpolationPartGraphs(graph: NativeAnimationGraph, value: AnimatedInterpolation, presented: string): {
|
|
18
|
+
parts: NativeAnimationGraph[];
|
|
19
|
+
presented: string;
|
|
20
|
+
} | null;
|
|
18
21
|
export declare class GraphLinkedValue {
|
|
19
22
|
readonly graph: NativeAnimationGraph;
|
|
20
23
|
readonly value: number | string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { MenuHeldTouch } from '../components/native-ui/context-menu-types.d.ts';
|
|
2
|
+
export declare const MENU_HOLD_OPEN_DELAY_MS = 150;
|
|
1
3
|
export type NativeMenuGestureEvent = {
|
|
2
4
|
pointerId?: number;
|
|
3
5
|
pageX?: number;
|
|
@@ -6,4 +8,8 @@ export type NativeMenuGestureEvent = {
|
|
|
6
8
|
type NativeMenuGestureHandler = (event?: NativeMenuGestureEvent) => boolean;
|
|
7
9
|
export declare function registerNativeMenuGestureHandler(nextHandler: NativeMenuGestureHandler): () => void;
|
|
8
10
|
export declare function publishNativeMenuGesture(event?: NativeMenuGestureEvent): boolean;
|
|
11
|
+
export declare function registerNativeMenuGestureEndHandler(handler: (pointerId: number) => void): () => void;
|
|
12
|
+
export declare function publishNativeMenuGestureEnd(pointerId: number): void;
|
|
13
|
+
export declare function registerNativeMenuGestureMoveHandler(handler: (touch: MenuHeldTouch) => void): () => void;
|
|
14
|
+
export declare function publishNativeMenuGestureMove(touch: MenuHeldTouch): void;
|
|
9
15
|
export {};
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ typedef void (^ASWebAuthenticationSessionCompletionHandler)(NSURL *_Nullable cal
|
|
|
59
59
|
is showing the web service's login page.
|
|
60
60
|
*/
|
|
61
61
|
AS_EXTERN API_AVAILABLE(ios(12.0), macCatalyst(13.0), macos(10.15), watchos(6.2), tvos(16.0))
|
|
62
|
-
@interface ASWebAuthenticationSession : NSObject
|
|
62
|
+
PEACH_SWIFT_CLASS(SwiftUI) @interface ASWebAuthenticationSession : NSObject
|
|
63
63
|
|
|
64
64
|
/*! @abstract Returns an ASWebAuthenticationSession object.
|
|
65
65
|
@param URL the initial URL pointing to the authentication webpage. Only supports URLs with http:// or https:// schemes.
|
|
@@ -2,4 +2,6 @@
|
|
|
2
2
|
#import <CoreData/NSManagedObjectModel.h>
|
|
3
3
|
#import <CoreData/NSPersistentStoreCoordinator.h>
|
|
4
4
|
#import <CoreData/NSManagedObjectContext.h>
|
|
5
|
+
#import <CoreData/NSEntityDescription.h>
|
|
6
|
+
#import <CoreData/NSFetchRequest.h>
|
|
5
7
|
#import <CoreData/NSFetchedResultsController.h>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
@class NSManagedObject;
|
|
4
|
+
@class NSManagedObjectContext;
|
|
5
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
6
|
+
__attribute__((availability(ios,introduced=3.0)))
|
|
7
|
+
PEACH_SWIFT_CLASS(CoreData) @interface NSEntityDescription : NSObject <NSCoding, NSCopying, NSFastEnumeration>
|
|
8
|
+
+ (__kindof NSManagedObject *)insertNewObjectForEntityForName:(NSString *)entityName inManagedObjectContext:(NSManagedObjectContext *)context;
|
|
9
|
+
@end
|
|
10
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -3,7 +3,14 @@
|
|
|
3
3
|
#import <CoreData/NSPersistentStoreRequest.h>
|
|
4
4
|
#import <CoreData/NSManagedObject.h>
|
|
5
5
|
#import <CoreData/NSManagedObjectID.h>
|
|
6
|
+
@class NSEntityDescription;
|
|
6
7
|
NS_ASSUME_NONNULL_BEGIN
|
|
8
|
+
typedef NS_OPTIONS(NSUInteger, NSFetchRequestResultType) {
|
|
9
|
+
NSManagedObjectResultType = 0,
|
|
10
|
+
NSManagedObjectIDResultType = 1,
|
|
11
|
+
NSDictionaryResultType = 2,
|
|
12
|
+
NSCountResultType = 4
|
|
13
|
+
};
|
|
7
14
|
@protocol NSFetchRequestResult <NSObject>
|
|
8
15
|
@end
|
|
9
16
|
@interface NSNumber (NSFetchedResultSupport) <NSFetchRequestResult>
|
|
@@ -16,6 +23,27 @@ PEACH_SWIFT_CLASS(CoreData) @interface NSManagedObjectID (NSFetchedResultSupport
|
|
|
16
23
|
@end
|
|
17
24
|
__attribute__((availability(ios,introduced=3.0)))
|
|
18
25
|
@interface NSFetchRequest<__covariant ResultType:id<NSFetchRequestResult>> : NSPersistentStoreRequest <NSCoding, NSCopying>
|
|
26
|
+
+ (instancetype)fetchRequestWithEntityName:(NSString *)entityName __attribute__((availability(ios,introduced=4.0)));
|
|
27
|
+
- (instancetype)init NS_DESIGNATED_INITIALIZER;
|
|
28
|
+
- (instancetype)initWithEntityName:(NSString *)entityName __attribute__((availability(ios,introduced=4.0)));
|
|
29
|
+
- (nullable NSArray<ResultType> *)execute:(NSError **)error __attribute__((availability(ios,introduced=10.0)));
|
|
30
|
+
@property (nullable, nonatomic, strong) NSEntityDescription *entity;
|
|
19
31
|
@property (nullable, nonatomic, readonly, strong) NSString *entityName __attribute__((availability(ios,introduced=4.0)));
|
|
32
|
+
@property (nullable, nonatomic, strong) NSPredicate *predicate;
|
|
33
|
+
@property (nullable, nonatomic, strong) NSArray<NSSortDescriptor *> *sortDescriptors;
|
|
34
|
+
@property (nonatomic) NSUInteger fetchLimit;
|
|
35
|
+
@property (nonatomic) NSFetchRequestResultType resultType;
|
|
36
|
+
@property (nonatomic) BOOL includesSubentities;
|
|
37
|
+
@property (nonatomic) BOOL includesPropertyValues;
|
|
38
|
+
@property (nonatomic) BOOL returnsObjectsAsFaults;
|
|
39
|
+
@property (nullable, nonatomic, strong) NSArray<NSString *> *relationshipKeyPathsForPrefetching;
|
|
40
|
+
@property (nonatomic) BOOL includesPendingChanges;
|
|
41
|
+
@property (nonatomic) BOOL returnsDistinctResults;
|
|
42
|
+
@property (nullable, nonatomic, strong) NSArray *propertiesToFetch;
|
|
43
|
+
@property (nonatomic) NSUInteger fetchOffset;
|
|
44
|
+
@property (nonatomic) NSUInteger fetchBatchSize;
|
|
45
|
+
@property (nonatomic) BOOL shouldRefreshRefetchedObjects;
|
|
46
|
+
@property (nullable, nonatomic, strong) NSArray *propertiesToGroupBy;
|
|
47
|
+
@property (nullable, nonatomic, strong) NSPredicate *havingPredicate;
|
|
20
48
|
@end
|
|
21
49
|
NS_ASSUME_NONNULL_END
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#import <CoreData/NSManagedObjectID.h>
|
|
4
4
|
NS_ASSUME_NONNULL_BEGIN
|
|
5
5
|
__attribute__((availability(ios,introduced=3.0))) NS_SWIFT_NONISOLATED NS_SWIFT_NONSENDABLE __attribute__((objc_requires_property_definitions))
|
|
6
|
-
@interface NSManagedObject : NSObject
|
|
6
|
+
PEACH_SWIFT_CLASS(CoreData) @interface NSManagedObject : NSObject
|
|
7
7
|
@property (nonatomic, readonly, strong) NSManagedObjectID *objectID;
|
|
8
8
|
@property (nonatomic, getter=isFault, readonly) BOOL fault;
|
|
9
9
|
@end
|
package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
#import <Foundation/Foundation.h>
|
|
3
3
|
#import <CoreData/NSManagedObject.h>
|
|
4
|
+
@class NSFetchRequest;
|
|
5
|
+
@class NSPersistentStoreCoordinator;
|
|
4
6
|
NS_ASSUME_NONNULL_BEGIN
|
|
7
|
+
typedef NS_ENUM(NSUInteger, NSManagedObjectContextConcurrencyType) {
|
|
8
|
+
NSConfinementConcurrencyType __attribute__((availability(ios,introduced=3.0,deprecated=9.0))) = 0x00,
|
|
9
|
+
NSPrivateQueueConcurrencyType = 0x01,
|
|
10
|
+
NSMainQueueConcurrencyType = 0x02
|
|
11
|
+
} __attribute__((availability(ios,introduced=5.0)));
|
|
5
12
|
__attribute__((availability(ios,introduced=3.0))) NS_SWIFT_NONISOLATED NS_SWIFT_SENDABLE
|
|
6
|
-
@interface NSManagedObjectContext : NSObject <NSCoding, NSLocking>
|
|
13
|
+
PEACH_SWIFT_CLASS(CoreData) @interface NSManagedObjectContext : NSObject <NSCoding, NSLocking>
|
|
14
|
+
- (instancetype)initWithConcurrencyType:(NSManagedObjectContextConcurrencyType)ct NS_DESIGNATED_INITIALIZER __attribute__((availability(ios,introduced=5.0)));
|
|
15
|
+
- (void)performBlockAndWait:(void (NS_NOESCAPE NS_SWIFT_SENDABLE^)(void))block __attribute__((availability(ios,introduced=5.0)));
|
|
16
|
+
@property (nullable, strong) NSPersistentStoreCoordinator *persistentStoreCoordinator;
|
|
17
|
+
@property (nonatomic, readonly) BOOL hasChanges;
|
|
18
|
+
- (nullable NSArray *)executeFetchRequest:(NSFetchRequest *)request error:(NSError **)error NS_REFINED_FOR_SWIFT;
|
|
19
|
+
- (NSUInteger)countForFetchRequest:(NSFetchRequest *)request error:(NSError **)error __attribute__((availability(ios,introduced=3.0))) __attribute__((swift_error(nonnull_error)));
|
|
20
|
+
- (void)deleteObject:(NSManagedObject *)object;
|
|
21
|
+
- (BOOL)save:(NSError **)error;
|
|
7
22
|
- (nullable __kindof NSManagedObject *)existingObjectWithID:(NSManagedObjectID *)objectID error:(NSError **)error __attribute__((availability(ios,introduced=3.0)));
|
|
8
23
|
@end
|
|
9
24
|
NS_ASSUME_NONNULL_END
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
#import <Foundation/Foundation.h>
|
|
3
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
3
4
|
__attribute__((availability(ios,introduced=3.0)))
|
|
4
5
|
PEACH_SWIFT_CLASS(CoreData) @interface NSManagedObjectModel : NSObject <NSCoding, NSCopying, NSFastEnumeration>
|
|
6
|
+
- (nullable instancetype)initWithContentsOfURL:(NSURL *)url;
|
|
5
7
|
@end
|
|
8
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
#import <Foundation/Foundation.h>
|
|
3
|
+
@class NSManagedObjectModel;
|
|
4
|
+
@class NSPersistentStore;
|
|
5
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
6
|
+
extern NSString * const NSSQLiteStoreType __attribute__((availability(ios,introduced=3.0)));
|
|
3
7
|
__attribute__((availability(ios,introduced=3.0))) NS_SWIFT_SENDABLE
|
|
4
8
|
PEACH_SWIFT_CLASS(CoreData) @interface NSPersistentStoreCoordinator : NSObject <NSLocking>
|
|
9
|
+
- (instancetype)initWithManagedObjectModel:(NSManagedObjectModel *)model NS_DESIGNATED_INITIALIZER;
|
|
10
|
+
- (nullable __kindof NSPersistentStore *)addPersistentStoreWithType:(NSString *)storeType configuration:(nullable NSString *)configuration URL:(nullable NSURL *)storeURL options:(nullable NSDictionary *)options error:(NSError **)error;
|
|
5
11
|
@end
|
|
12
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
#import <Foundation/Foundation.h>
|
|
3
|
+
@class NSPersistentStore;
|
|
3
4
|
__attribute__((availability(ios,introduced=5.0)))
|
|
4
5
|
PEACH_SWIFT_CLASS(CoreData) @interface NSPersistentStoreRequest : NSObject <NSCopying>
|
|
6
|
+
@property (nullable, nonatomic, strong) NSArray<NSPersistentStore *> *affectedStores;
|
|
7
|
+
@property (nonatomic, readonly) NSUInteger requestType;
|
|
5
8
|
@end
|
|
@@ -29,7 +29,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
|
29
29
|
///
|
|
30
30
|
/// You can also create predicates that include variables using the ``evaluate(with:substitutionVariables:)`` method so that you can predefine the predicate before substituting concrete values at runtime.
|
|
31
31
|
API_AVAILABLE(macos(10.4), ios(3.0), watchos(2.0), tvos(9.0))
|
|
32
|
-
@interface NSPredicate : NSObject <NSSecureCoding, NSCopying> {
|
|
32
|
+
PEACH_SWIFT_CLASS(Foundation) @interface NSPredicate : NSObject <NSSecureCoding, NSCopying> {
|
|
33
33
|
struct _predicateFlags {
|
|
34
34
|
unsigned int _evaluationBlocked:1;
|
|
35
35
|
unsigned int _reservedPredicateFlags:31;
|
|
@@ -19,7 +19,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
|
19
19
|
/// - Sorting an array (an instance of ``NSArray`` or ``NSMutableArray`` — see ``NSArray/sortedArray(using:)-82wi1`` and ``NSMutableArray/sort(using:)-4eh07``)
|
|
20
20
|
/// - Comparing two objects directly (see ``compare(_:to:)``)
|
|
21
21
|
/// - Specifying the order of objects that return from a Core Data fetch request (see <doc://com.apple.documentation/documentation/coredata/nsfetchrequest/sortdescriptors>)
|
|
22
|
-
@interface NSSortDescriptor : NSObject <NSSecureCoding, NSCopying> {
|
|
22
|
+
PEACH_SWIFT_CLASS(Foundation) @interface NSSortDescriptor : NSObject <NSSecureCoding, NSCopying> {
|
|
23
23
|
@private
|
|
24
24
|
NSUInteger _sortDescriptorFlags;
|
|
25
25
|
NSString *_key;
|
|
@@ -60,7 +60,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
|
60
60
|
/// > Note:
|
|
61
61
|
/// > Some methods in these protocols were previously part of other formal protocols or were previously part of an informal protocol on `NSObject`.
|
|
62
62
|
API_AVAILABLE(macos(10.2), ios(2.0), watchos(2.0), tvos(9.0))
|
|
63
|
-
@interface NSURLConnection : NSObject
|
|
63
|
+
PEACH_SWIFT_CLASS(FoundationNetworking) @interface NSURLConnection : NSObject
|
|
64
64
|
{
|
|
65
65
|
@private
|
|
66
66
|
NSURLConnectionInternal *_internal;
|
|
@@ -112,7 +112,7 @@ extern const NSTimeInterval LATouchIDAuthenticationMaximumAllowableReuseDuration
|
|
|
112
112
|
///
|
|
113
113
|
/// @see LAPolicy
|
|
114
114
|
API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0)) API_UNAVAILABLE(tvos)
|
|
115
|
-
@interface LAContext : NSObject
|
|
115
|
+
PEACH_SWIFT_CLASS(LocalAuthentication) @interface LAContext : NSObject
|
|
116
116
|
|
|
117
117
|
/// Determines if a particular policy can be evaluated.
|
|
118
118
|
///
|
package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
4
|
+
|
|
5
|
+
typedef void (^SFAuthenticationCompletionHandler)(NSURL *_Nullable callbackURL, NSError *_Nullable error) NS_SWIFT_NAME(SFAuthenticationSession.CompletionHandler);
|
|
6
|
+
|
|
7
|
+
__attribute__((availability(ios, introduced=11.0, deprecated=12.0, replacement="ASWebAuthenticationSession")))
|
|
8
|
+
PEACH_SWIFT_CLASS(SafariServices) @interface SFAuthenticationSession : NSObject
|
|
9
|
+
|
|
10
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
11
|
+
- (instancetype)initWithURL:(NSURL *)URL callbackURLScheme:(nullable NSString *)callbackURLScheme completionHandler:(SFAuthenticationCompletionHandler)completionHandler;
|
|
12
|
+
- (BOOL)start;
|
|
13
|
+
- (void)cancel;
|
|
14
|
+
|
|
15
|
+
@end
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -40,7 +40,7 @@ API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
|
40
40
|
@end
|
|
41
41
|
|
|
42
42
|
UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
43
|
-
@interface UIInputViewController : UIViewController <UITextInputDelegate>
|
|
43
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UIInputViewController : UIViewController <UITextInputDelegate>
|
|
44
44
|
|
|
45
45
|
@property (nullable, nonatomic, strong) UIInputView *inputView;
|
|
46
46
|
|
|
@@ -48,7 +48,7 @@ UIKIT_EXTERN UIPageViewControllerOptionsKey const UIPageViewControllerOptionInte
|
|
|
48
48
|
@protocol UIPageViewControllerDelegate, UIPageViewControllerDataSource;
|
|
49
49
|
|
|
50
50
|
UIKIT_EXTERN API_AVAILABLE(ios(5.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
51
|
-
@interface UIPageViewController : UIViewController {
|
|
51
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UIPageViewController : UIViewController {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
- (instancetype)initWithTransitionStyle:(UIPageViewControllerTransitionStyle)style navigationOrientation:(UIPageViewControllerNavigationOrientation)navigationOrientation options:(nullable NSDictionary<UIPageViewControllerOptionsKey, id> *)options NS_DESIGNATED_INITIALIZER;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
#import <CoreGraphics/CGGeometry.h>
|
|
13
13
|
#import <UIKit/UIHoverStyle.h>
|
|
14
14
|
#import <UIKit/UIHoverEffect.h>
|
|
15
|
+
#import <UIKitTypes/UIKitTypes.h>
|
|
15
16
|
|
|
16
17
|
@class UITargetedPreview, UIBezierPath, UIPointerEffect, UIPointerShape, UIPointerAccessory;
|
|
17
18
|
|
|
@@ -86,12 +87,6 @@ UIKIT_EXTERN API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(watchos, tvos) NS_REFINED_
|
|
|
86
87
|
PEACH_SWIFT_CLASS(UIKitCore) @interface UIPointerLiftEffect : UIPointerEffect
|
|
87
88
|
@end
|
|
88
89
|
|
|
89
|
-
typedef NS_ENUM(NSInteger, UIPointerEffectTintMode) {
|
|
90
|
-
UIPointerEffectTintModeNone = 0, // Indicates that no tint should be applied to the view.
|
|
91
|
-
UIPointerEffectTintModeOverlay, // Indicates that a tint overlay should be placed above the view.
|
|
92
|
-
UIPointerEffectTintModeUnderlay, // Indicates that a tint underlay should be placed below the view.
|
|
93
|
-
} API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(watchos, tvos) NS_REFINED_FOR_SWIFT;
|
|
94
|
-
|
|
95
90
|
|
|
96
91
|
/// Pointer retains the system shape while over the given view. Visual changes applied to the view are dictated by the effect's properties.
|
|
97
92
|
UIKIT_EXTERN API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(watchos, tvos) NS_REFINED_FOR_SWIFT NS_SWIFT_UI_ACTOR
|
|
@@ -3,6 +3,7 @@ framework module UIKit [system] {
|
|
|
3
3
|
umbrella header "UIKit.h"
|
|
4
4
|
// textual imports let UIKitEnums use the native pasteboard without importing all of UIKit.
|
|
5
5
|
exclude header "UIPasteboard.h"
|
|
6
|
+
exclude header "UINibLoading.h"
|
|
6
7
|
exclude header "UIKitDefines.h"
|
|
7
8
|
module UIGestureRecognizerSubclass {
|
|
8
9
|
header "UIGestureRecognizerSubclass.h"
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
#import <UIKitAnimationOptions/UIViewAnimationOptions.h>
|
|
6
6
|
#import <UIKitTypes/UIWindowLevel.h>
|
|
7
7
|
|
|
8
|
+
typedef NS_ENUM(NSInteger, UIPointerEffectTintMode) {
|
|
9
|
+
UIPointerEffectTintModeNone = 0,
|
|
10
|
+
UIPointerEffectTintModeOverlay,
|
|
11
|
+
UIPointerEffectTintModeUnderlay,
|
|
12
|
+
} API_AVAILABLE(ios(13.4)) API_UNAVAILABLE(watchos, tvos) NS_REFINED_FOR_SWIFT;
|
|
13
|
+
|
|
8
14
|
typedef NS_ENUM(NSInteger, UIPrinterCutterBehavior) {
|
|
9
15
|
UIPrinterCutterBehaviorNoCut,
|
|
10
16
|
UIPrinterCutterBehaviorPrinterDefault,
|
|
@@ -28,7 +28,7 @@ typedef NS_ENUM(NSInteger, WCSessionActivationState) {
|
|
|
28
28
|
* deliver any outstanding background transfers.
|
|
29
29
|
*/
|
|
30
30
|
API_AVAILABLE(ios(9.0), macCatalyst(13.0), watchos(2.0)) API_UNAVAILABLE(macos, tvos)
|
|
31
|
-
@interface WCSession : NSObject
|
|
31
|
+
PEACH_SWIFT_CLASS(WatchConnectivity) @interface WCSession : NSObject
|
|
32
32
|
|
|
33
33
|
/** Check if session is supported on this iOS device. Session is always available on WatchOS */
|
|
34
34
|
+ (BOOL)isSupported;
|
|
@@ -39,7 +39,7 @@ __attribute__((objc_root_class))
|
|
|
39
39
|
+ (void)load;
|
|
40
40
|
+ (void)initialize;
|
|
41
41
|
- (void)dealloc __attribute__((availability(swift, unavailable, message="use 'deinit' to define a de-initializer")));
|
|
42
|
-
- (
|
|
42
|
+
- (instancetype)init __attribute__((objc_designated_initializer));
|
|
43
43
|
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
|
44
44
|
+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
|
45
45
|
+ (instancetype)alloc __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
|
@@ -23,6 +23,7 @@ __BEGIN_DECLS
|
|
|
23
23
|
void *reallocf(void *__ptr, size_t __size);
|
|
24
24
|
void srandomdev(void);
|
|
25
25
|
#endif
|
|
26
|
+
void arc4random_stir(void);
|
|
26
27
|
#ifndef _ANSI_SOURCE
|
|
27
28
|
char *realpath(const char *__restrict, char *__restrict) __asm__("__peach_darwin_realpath");
|
|
28
29
|
char *setstate(const char *);
|