peachsim 0.1.2411 → 0.1.2421
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/README.md +1 -1
- package/cli/catalog/content.ts +6 -3
- package/cli/catalog/meta.ts +63 -17
- package/cli/catalog/routes.ts +4 -0
- package/cli/cloud-box-artifact.ts +45 -24
- package/cli/cloud-client.ts +6 -2
- package/cli/command-registry.ts +3 -1
- package/cli/commands/control.ts +74 -55
- package/cli/commands/desktop.ts +3 -3
- package/cli/commands/electron.ts +7 -5
- package/cli/commands/kotlin.ts +8 -1
- package/cli/commands/platform.ts +5 -7
- package/cli/commands/profile.ts +2 -2
- package/cli/commands/settings.ts +90 -0
- package/cli/commands/shell-url.ts +18 -10
- package/cli/commands/swift.ts +3 -1
- package/cli/main.ts +6 -0
- package/cli/outbound-endpoints.ts +17 -15
- package/cli/settings-flags.ts +115 -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 +3706 -1818
- 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 +3 -7
- package/dist-lib/config.mjs +3 -7
- package/dist-lib/detox/index.cjs +4 -4
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +17144 -15295
- 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 +63288 -62269
- package/dist-lib/host/fetch-proxy-handler.cjs +1598 -211
- 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 +3007 -1512
- 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 +972 -246
- 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 +1742 -247
- package/dist-lib/native-app-identity-project.cjs +40 -204
- package/dist-lib/native-app-identity-project.mjs +40 -204
- 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/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 +26 -24
- package/dist-lib/public-origins-lib.json +198 -117
- 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 +2 -2
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +21765 -20511
- package/dist-lib/swift-compile.cjs +48 -228
- package/dist-lib/swift-compile.mjs +48 -228
- 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 +1 -199
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +227 -251
- package/dist-lib/vite.cjs +5240 -3788
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/config.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +5 -0
- package/kotlin/README.md +4 -3
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +3 -6
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1 -43
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayerContents.h +55 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +3 -3
- package/sdk/ios/usr/include/ObjectiveC.apinotes +0 -24
- package/sdk/ios/usr/include/grp.h +93 -0
- package/sdk/ios/usr/include/netinet/tcp.h +299 -0
- package/sdk/ios/wasm/include/netinet/tcp.h +6 -0
- package/sdk/ios/wasm/include/stdlib.h +1 -0
- package/sdk/ios/wasm/include/unistd.h +2 -0
- package/skills/contrast/SKILL.md +1 -0
- package/skills/peach-setup/SKILL.md +11 -1
- package/src/android-bridge-dependencies.ts +1 -1
- package/src/app-config.ts +7 -0
- package/src/binaryen.lock.json +21 -0
- package/src/cocoapods-trunk.ts +52 -0
- package/src/config.ts +21 -31
- package/src/expo-native-workspace.ts +4 -0
- package/src/kotlin-host.ts +1 -1
- package/src/kotlin-sdk.ts +7 -7
- package/src/kotlin-toolchain.ts +28 -24
- package/src/kotlinSdkContract.ts +2 -2
- package/src/native-bundles.ts +5 -2
- package/src/native-static-libraries.ts +38 -5
- package/src/podfile-cocoapods.ts +1473 -0
- package/src/podspec-cocoapods.ts +331 -106
- package/src/podspec-ruby-stdlib.ts +134 -19
- package/src/podspec-ruby.ts +199 -46
- package/src/settingsContract.ts +74 -0
- package/src/swift-compile.ts +1 -1
- package/src/swift-compiler-digest.ts +1 -0
- package/src/swift-host.ts +107 -15
- package/src/swift-objc-compile.ts +5 -0
- package/src/swift-packages.ts +75 -0
- package/src/swift-shared-sdk.ts +19 -0
- package/src/swift-toolchain.ts +2 -201
- package/src/turbo-source.ts +7 -37
- package/src/wasm-optimize.ts +4 -27
- package/src/xcode-project.ts +22 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2421 | (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;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import type { PeachConfig as PublicPeachConfig } from '../../../../src/config.ts';
|
|
2
|
-
import type { SettingsValues } from '../../../../src/settingsContract.ts';
|
|
3
1
|
export { PEACH_CONFIG_QUERY_PARAM, PEACH_WORKSPACE_MODULE_MARKER, applyPeachConfigToUrl, collectConfiguredFileModules, defineConfig, hasPeachConfig, matchConfigModule, mergePeachConfig, readPeachConfigFromSearchParams, } from '../../../../src/config.ts';
|
|
4
|
-
export type { ModuleResolution, NativeModuleResolution, NativeViewResolution, } from '../../../../src/config.ts';
|
|
5
|
-
export type PeachConfig = PublicPeachConfig<SettingsValues>;
|
|
2
|
+
export type { PeachConfig, ModuleResolution, NativeModuleResolution, NativeViewResolution, } from '../../../../src/config.ts';
|
|
@@ -242,6 +242,7 @@ export declare function queryImageCache(uris: readonly string[]): Record<string,
|
|
|
242
242
|
export declare function abortImagePrefetch(requestId: number): boolean;
|
|
243
243
|
export declare function notifyFileStorageChanged(): boolean;
|
|
244
244
|
export declare function releaseSnapshotImage(appId: string): void;
|
|
245
|
+
export declare function forgetSnapshotImage(appId: string): void;
|
|
245
246
|
export declare function trimSnapshotImages(keepFraction: number): string[];
|
|
246
247
|
export declare function storeSnapshotBitmap(appId: string, bitmap: ImageBitmap): void;
|
|
247
248
|
export declare function getStoredSnapshotImage(appId: string, ctx?: RenderContext): SkImage | null;
|
|
@@ -97,6 +97,7 @@ export interface CompositorGpuFrame {
|
|
|
97
97
|
readonly appId: string;
|
|
98
98
|
readonly width: number;
|
|
99
99
|
readonly height: number;
|
|
100
|
+
readonly isCurrent: () => boolean;
|
|
100
101
|
}, done: (committed: boolean) => void): void;
|
|
101
102
|
sampleThumbnail(display: CompositorGpuDisplay, size: {
|
|
102
103
|
readonly width: number;
|
|
@@ -1319,9 +1319,13 @@ export type CompositorHostToWorker = {
|
|
|
1319
1319
|
type: 'nativeWidgetVisibility';
|
|
1320
1320
|
identity: NativeWidgetIdentity;
|
|
1321
1321
|
visible: boolean;
|
|
1322
|
+
interactive: boolean;
|
|
1322
1323
|
} | {
|
|
1323
1324
|
type: 'retireNativeWidget';
|
|
1324
1325
|
identity: NativeWidgetIdentity;
|
|
1326
|
+
} | {
|
|
1327
|
+
type: 'releaseNativeWidgetFrame';
|
|
1328
|
+
frameId: string;
|
|
1325
1329
|
} | {
|
|
1326
1330
|
type: 'resizeNativeWidget';
|
|
1327
1331
|
identity: NativeWidgetIdentity;
|
|
@@ -3,6 +3,7 @@ import type { SwiftEntryOptions } from '../../../../../src/swiftContract.ts';
|
|
|
3
3
|
import type { ExpoWidgetEntry } from './expo-widgetContract.d.ts';
|
|
4
4
|
export interface NativeWidgetView {
|
|
5
5
|
visible: boolean;
|
|
6
|
+
interactive: boolean;
|
|
6
7
|
dpr: number;
|
|
7
8
|
width: number;
|
|
8
9
|
height: number;
|
|
@@ -13,6 +14,7 @@ export interface NativeWidgetIdentity {
|
|
|
13
14
|
readonly instanceId: string;
|
|
14
15
|
readonly generation: number;
|
|
15
16
|
readonly surfaceId: NativeWidgetSurfaceId;
|
|
17
|
+
readonly retainedFrameId?: string;
|
|
16
18
|
}
|
|
17
19
|
export type NativeActivityPresentation = 'lockScreen' | 'compactLeading' | 'compactTrailing' | 'minimal' | 'expandedLeading' | 'expandedTrailing' | 'expandedCenter' | 'expandedBottom';
|
|
18
20
|
export type NativeWidgetContent = {
|
|
@@ -77,6 +79,9 @@ export type NativeWidgetHomeCommand = {
|
|
|
77
79
|
} | {
|
|
78
80
|
type: 'nativeWidgetHomeRetire';
|
|
79
81
|
requestId: number;
|
|
82
|
+
} | {
|
|
83
|
+
type: 'nativeWidgetHomeReleaseFrame';
|
|
84
|
+
frameId: string;
|
|
80
85
|
} | {
|
|
81
86
|
type: 'nativeWidgetHomeLinkResult';
|
|
82
87
|
requestId: number;
|
package/kotlin/README.md
CHANGED
|
@@ -8,9 +8,10 @@ hosts and plugins, runtime, libraries and mounts stay behind lazy entry points.
|
|
|
8
8
|
Verify emitted chunks and static imports, plus the native-free twin's network
|
|
9
9
|
traffic in `scripts/debug/peach-swift-lazy-network.sh`.
|
|
10
10
|
|
|
11
|
-
- `toolchain.json
|
|
12
|
-
AndroidX runtime and Compose Multiplatform UI Kotlin/Wasm klibs
|
|
13
|
-
|
|
11
|
+
- `toolchain.json` pins the patched Kotlin compiler distribution, kotlinx-coroutines,
|
|
12
|
+
and the AndroidX runtime and Compose Multiplatform UI Kotlin/Wasm klibs.
|
|
13
|
+
`fork/compiler.ts` packages the patched jar with the upstream compiler's companion
|
|
14
|
+
files in one verified archive. Skiko's browser resources and
|
|
14
15
|
kotlinx-datetime's declared JS module are verified and served beside the wasm.
|
|
15
16
|
Compose libraries and the compiler's bundled Compose plugin are selected only
|
|
16
17
|
for sources referencing `androidx.compose`. `peachsim/kotlin-host` fetches libraries once
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/kotlin/toolchain.json
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compiler": {
|
|
3
3
|
"version": "2.4.20",
|
|
4
|
-
"url": "https://
|
|
5
|
-
"sha256": "
|
|
6
|
-
"
|
|
7
|
-
"url": "https://r2.rnxsim.com/peach-kotlin-fork/2328ddf16943f8a656f87bc3339983583887df352083b98445fa72327f9bad7d/kotlin-compiler.jar",
|
|
8
|
-
"sha256": "2328ddf16943f8a656f87bc3339983583887df352083b98445fa72327f9bad7d"
|
|
9
|
-
}
|
|
4
|
+
"url": "https://r2.rnxsim.com/peach-kotlin-fork/442ef3cc1c5d3bec68d5a2bfbd95e0cde4c3ffe8ac8d74e86e6fb4632a0e6133/kotlin-compiler.tar.gz",
|
|
5
|
+
"sha256": "442ef3cc1c5d3bec68d5a2bfbd95e0cde4c3ffe8ac8d74e86e6fb4632a0e6133",
|
|
6
|
+
"upstreamSha256": "59e9ca74c7904ef2c122b12114937673ccce68de820a663f0ed66ccf8799e0b7"
|
|
10
7
|
},
|
|
11
8
|
"libraries": [
|
|
12
9
|
{
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a","file":"node/cli-9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a.cjs"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#ifdef __OBJC__
|
|
7
7
|
|
|
8
|
+
#import <QuartzCore/CALayerContents.h>
|
|
8
9
|
#import <QuartzCore/CAMediaTiming.h>
|
|
9
10
|
#import <QuartzCore/CATransform3D.h>
|
|
10
11
|
#import <Foundation/Foundation.h>
|
|
@@ -18,9 +19,7 @@
|
|
|
18
19
|
|
|
19
20
|
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
20
21
|
|
|
21
|
-
typedef NSString * CALayerContentsGravity NS_TYPED_ENUM API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
22
22
|
typedef NSString * CALayerContentsFormat NS_TYPED_ENUM API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos);
|
|
23
|
-
typedef NSString * CALayerContentsFilter NS_TYPED_ENUM API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
24
23
|
typedef NSString * CALayerCornerCurve NS_TYPED_ENUM API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
|
|
25
24
|
|
|
26
25
|
/* Bit definitions for `autoresizingMask' property. */
|
|
@@ -1002,33 +1001,6 @@ PEACH_SWIFT_CLASS(UIKitCore) @protocol CALayerDelegate <NSObject>
|
|
|
1002
1001
|
|
|
1003
1002
|
@end
|
|
1004
1003
|
|
|
1005
|
-
/** Layer `contentsGravity' values. **/
|
|
1006
|
-
|
|
1007
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityCenter __attribute__((swift_name("CALayerContentsGravity.center")))
|
|
1008
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1009
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityTop __attribute__((swift_name("CALayerContentsGravity.top")))
|
|
1010
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1011
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityBottom __attribute__((swift_name("CALayerContentsGravity.bottom")))
|
|
1012
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1013
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityLeft __attribute__((swift_name("CALayerContentsGravity.left")))
|
|
1014
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1015
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityRight __attribute__((swift_name("CALayerContentsGravity.right")))
|
|
1016
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1017
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityTopLeft __attribute__((swift_name("CALayerContentsGravity.topLeft")))
|
|
1018
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1019
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityTopRight __attribute__((swift_name("CALayerContentsGravity.topRight")))
|
|
1020
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1021
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityBottomLeft __attribute__((swift_name("CALayerContentsGravity.bottomLeft")))
|
|
1022
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1023
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityBottomRight __attribute__((swift_name("CALayerContentsGravity.bottomRight")))
|
|
1024
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1025
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityResize __attribute__((swift_name("CALayerContentsGravity.resize")))
|
|
1026
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1027
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityResizeAspect __attribute__((swift_name("CALayerContentsGravity.resizeAspect")))
|
|
1028
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1029
|
-
CA_EXTERN CALayerContentsGravity const kCAGravityResizeAspectFill __attribute__((swift_name("CALayerContentsGravity.resizeAspectFill")))
|
|
1030
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1031
|
-
|
|
1032
1004
|
/** Layer `contentsFormat` values. **/
|
|
1033
1005
|
|
|
1034
1006
|
CA_EXTERN CALayerContentsFormat const kCAContentsFormatRGBA8Uint __attribute__((swift_name("CALayerContentsFormat.RGBA8Uint"))) /* RGBA UInt8 per component */
|
|
@@ -1040,20 +1012,6 @@ CA_EXTERN CALayerContentsFormat const kCAContentsFormatGray8Uint __attribute__((
|
|
|
1040
1012
|
CA_EXTERN CALayerContentsFormat const kCAContentsFormatAutomatic NS_SWIFT_NAME (automatic) /* Automatically choose optimal format for CG drawing commands */
|
|
1041
1013
|
API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0)) API_UNAVAILABLE(watchos);
|
|
1042
1014
|
|
|
1043
|
-
/** Contents filter names. **/
|
|
1044
|
-
|
|
1045
|
-
CA_EXTERN CALayerContentsFilter const kCAFilterNearest __attribute__((swift_name("CALayerContentsFilter.nearest")))
|
|
1046
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1047
|
-
CA_EXTERN CALayerContentsFilter const kCAFilterLinear __attribute__((swift_name("CALayerContentsFilter.linear")))
|
|
1048
|
-
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1049
|
-
|
|
1050
|
-
/* Trilinear minification filter. Enables mipmap generation. Some
|
|
1051
|
-
* renderers may ignore this, or impose additional restrictions, such
|
|
1052
|
-
* as source images requiring power-of-two dimensions. */
|
|
1053
|
-
|
|
1054
|
-
CA_EXTERN CALayerContentsFilter const kCAFilterTrilinear __attribute__((swift_name("CALayerContentsFilter.trilinear")))
|
|
1055
|
-
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
1056
|
-
|
|
1057
1015
|
/** Corner curve names. **/
|
|
1058
1016
|
|
|
1059
1017
|
CA_EXTERN CALayerCornerCurve const kCACornerCurveCircular
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#ifdef __OBJC__
|
|
3
|
+
|
|
4
|
+
#import <Foundation/Foundation.h>
|
|
5
|
+
#import <QuartzCore/CABase.h>
|
|
6
|
+
|
|
7
|
+
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
8
|
+
|
|
9
|
+
typedef NSString * CALayerContentsGravity NS_TYPED_ENUM API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
10
|
+
typedef NSString * CALayerContentsFilter NS_TYPED_ENUM API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
11
|
+
|
|
12
|
+
/** Layer `contentsGravity' values. **/
|
|
13
|
+
|
|
14
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityCenter __attribute__((swift_name("CALayerContentsGravity.center")))
|
|
15
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
16
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityTop __attribute__((swift_name("CALayerContentsGravity.top")))
|
|
17
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
18
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityBottom __attribute__((swift_name("CALayerContentsGravity.bottom")))
|
|
19
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
20
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityLeft __attribute__((swift_name("CALayerContentsGravity.left")))
|
|
21
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
22
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityRight __attribute__((swift_name("CALayerContentsGravity.right")))
|
|
23
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
24
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityTopLeft __attribute__((swift_name("CALayerContentsGravity.topLeft")))
|
|
25
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
26
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityTopRight __attribute__((swift_name("CALayerContentsGravity.topRight")))
|
|
27
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
28
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityBottomLeft __attribute__((swift_name("CALayerContentsGravity.bottomLeft")))
|
|
29
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
30
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityBottomRight __attribute__((swift_name("CALayerContentsGravity.bottomRight")))
|
|
31
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
32
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityResize __attribute__((swift_name("CALayerContentsGravity.resize")))
|
|
33
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
34
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityResizeAspect __attribute__((swift_name("CALayerContentsGravity.resizeAspect")))
|
|
35
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
36
|
+
CA_EXTERN CALayerContentsGravity const kCAGravityResizeAspectFill __attribute__((swift_name("CALayerContentsGravity.resizeAspectFill")))
|
|
37
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
38
|
+
|
|
39
|
+
/** Contents filter names. **/
|
|
40
|
+
|
|
41
|
+
CA_EXTERN CALayerContentsFilter const kCAFilterNearest __attribute__((swift_name("CALayerContentsFilter.nearest")))
|
|
42
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
43
|
+
CA_EXTERN CALayerContentsFilter const kCAFilterLinear __attribute__((swift_name("CALayerContentsFilter.linear")))
|
|
44
|
+
API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
45
|
+
|
|
46
|
+
/* Trilinear minification filter. Enables mipmap generation. Some
|
|
47
|
+
* renderers may ignore this, or impose additional restrictions, such
|
|
48
|
+
* as source images requiring power-of-two dimensions. */
|
|
49
|
+
|
|
50
|
+
CA_EXTERN CALayerContentsFilter const kCAFilterTrilinear __attribute__((swift_name("CALayerContentsFilter.trilinear")))
|
|
51
|
+
API_AVAILABLE(macos(10.6), ios(3.0), tvos(9.0)) API_UNAVAILABLE(watchos);
|
|
52
|
+
|
|
53
|
+
NS_HEADER_AUDIT_END(nullability, sendability)
|
|
54
|
+
|
|
55
|
+
#endif
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
framework module QuartzCore [system] {
|
|
2
2
|
umbrella header "QuartzCore.h"
|
|
3
|
-
// textual imports let UIKitEnums use
|
|
4
|
-
//
|
|
5
|
-
|
|
3
|
+
// textual imports let UIKitEnums use shared declarations without importing
|
|
4
|
+
// all of QuartzCore, whose Swift overlay sits above UIKitCore.
|
|
5
|
+
exclude header "CALayerContents.h"
|
|
6
6
|
exclude header "CADisplayLink.h"
|
|
7
7
|
exclude header "CAMediaTiming.h"
|
|
8
8
|
exclude header "CAFrameRateRange.h"
|
|
@@ -271,10 +271,6 @@ Functions:
|
|
|
271
271
|
ResultType: "Method _Nonnull * _Nullable"
|
|
272
272
|
- Name: class_conformsToProtocol
|
|
273
273
|
Nullability: [ O, O ]
|
|
274
|
-
- Name: class_copyProtocolList
|
|
275
|
-
Nullability: [ O, O ]
|
|
276
|
-
NullabilityOfRet: O
|
|
277
|
-
ResultType: "Protocol * _Nonnull * _Nullable"
|
|
278
274
|
- Name: class_getProperty
|
|
279
275
|
Nullability: [ O, N ]
|
|
280
276
|
NullabilityOfRet: O
|
|
@@ -379,10 +375,6 @@ Functions:
|
|
|
379
375
|
- Name: objc_getProtocol
|
|
380
376
|
Nullability: [ N ]
|
|
381
377
|
NullabilityOfRet: O
|
|
382
|
-
- Name: objc_copyProtocolList
|
|
383
|
-
Nullability: [ O ]
|
|
384
|
-
NullabilityOfRet: O
|
|
385
|
-
ResultType: "Protocol * _Nonnull * _Nullable"
|
|
386
378
|
- Name: protocol_conformsToProtocol
|
|
387
379
|
Nullability: [ O, O ]
|
|
388
380
|
- Name: protocol_isEqual
|
|
@@ -406,10 +398,6 @@ Functions:
|
|
|
406
398
|
Nullability: [ N, O, S, S ]
|
|
407
399
|
NullabilityOfRet: O
|
|
408
400
|
ResultType: "objc_property_t _Nonnull * _Nullable"
|
|
409
|
-
- Name: protocol_copyProtocolList
|
|
410
|
-
Nullability: [ N, O ]
|
|
411
|
-
NullabilityOfRet: O
|
|
412
|
-
ResultType: "Protocol * _Nonnull * _Nullable"
|
|
413
401
|
- Name: objc_allocateProtocol
|
|
414
402
|
Nullability: [ N ]
|
|
415
403
|
NullabilityOfRet: O
|
|
@@ -639,10 +627,6 @@ SwiftVersions:
|
|
|
639
627
|
ResultType: "Method _Nullable * _Null_unspecified"
|
|
640
628
|
- Name: class_conformsToProtocol
|
|
641
629
|
Nullability: [U, U]
|
|
642
|
-
- Name: class_copyProtocolList
|
|
643
|
-
# fixme ResultType:
|
|
644
|
-
NullabilityOfRet: U
|
|
645
|
-
Nullability: [U, U]
|
|
646
630
|
- Name: class_getProperty
|
|
647
631
|
NullabilityOfRet: U
|
|
648
632
|
Nullability: [U, U]
|
|
@@ -737,10 +721,6 @@ SwiftVersions:
|
|
|
737
721
|
- Name: objc_getProtocol
|
|
738
722
|
NullabilityOfRet: U
|
|
739
723
|
Nullability: [U]
|
|
740
|
-
- Name: objc_copyProtocolList
|
|
741
|
-
# fixme ResultType:
|
|
742
|
-
NullabilityOfRet: U
|
|
743
|
-
Nullability: [U]
|
|
744
724
|
- Name: protocol_conformsToProtocol
|
|
745
725
|
Nullability: [U, U]
|
|
746
726
|
- Name: protocol_isEqual
|
|
@@ -762,10 +742,6 @@ SwiftVersions:
|
|
|
762
742
|
- Name: protocol_copyPropertyList2
|
|
763
743
|
ResultType: "objc_property_t _Nullable * _Null_unspecified"
|
|
764
744
|
Nullability: [U, U, U, U]
|
|
765
|
-
- Name: protocol_copyProtocolList
|
|
766
|
-
# fixme ResultType:
|
|
767
|
-
NullabilityOfRet: U
|
|
768
|
-
Nullability: [U, U]
|
|
769
745
|
- Name: objc_allocateProtocol
|
|
770
746
|
NullabilityOfRet: U
|
|
771
747
|
Nullability: [U]
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*-
|
|
2
|
+
* Copyright (c) 1989, 1993
|
|
3
|
+
* The Regents of the University of California. All rights reserved.
|
|
4
|
+
* (c) UNIX System Laboratories, Inc.
|
|
5
|
+
* All or some portions of this file are derived from material licensed
|
|
6
|
+
* to the University of California by American Telephone and Telegraph
|
|
7
|
+
* Co. or Unix System Laboratories, Inc. and are reproduced herein with
|
|
8
|
+
* the permission of UNIX System Laboratories, Inc.
|
|
9
|
+
*
|
|
10
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11
|
+
* modification, are permitted provided that the following conditions
|
|
12
|
+
* are met:
|
|
13
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
14
|
+
* notice, this list of conditions and the following disclaimer.
|
|
15
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
16
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
17
|
+
* documentation and/or other materials provided with the distribution.
|
|
18
|
+
* 3. All advertising materials mentioning features or use of this software
|
|
19
|
+
* must display the following acknowledgement:
|
|
20
|
+
* This product includes software developed by the University of
|
|
21
|
+
* California, Berkeley and its contributors.
|
|
22
|
+
* 4. Neither the name of the University nor the names of its contributors
|
|
23
|
+
* may be used to endorse or promote products derived from this software
|
|
24
|
+
* without specific prior written permission.
|
|
25
|
+
*
|
|
26
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
27
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
28
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
29
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
30
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
31
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
32
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
33
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
34
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
35
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
36
|
+
* SUCH DAMAGE.
|
|
37
|
+
*
|
|
38
|
+
* @(#)grp.h 8.2 (Berkeley) 1/21/94
|
|
39
|
+
*/
|
|
40
|
+
/* Portions copyright (c) 2000-2018 Apple Inc. All rights reserved. */
|
|
41
|
+
|
|
42
|
+
#ifndef _GRP_H_
|
|
43
|
+
#define _GRP_H_
|
|
44
|
+
|
|
45
|
+
#include <_types.h>
|
|
46
|
+
#include <sys/_types/_gid_t.h> /* [XBD] */
|
|
47
|
+
#include <sys/_types/_size_t.h> /* SUSv4 */
|
|
48
|
+
|
|
49
|
+
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
|
|
50
|
+
#define _PATH_GROUP "/etc/group"
|
|
51
|
+
#endif
|
|
52
|
+
|
|
53
|
+
struct group {
|
|
54
|
+
char *gr_name; /* [XBD] group name */
|
|
55
|
+
char *gr_passwd; /* [???] group password */
|
|
56
|
+
gid_t gr_gid; /* [XBD] group id */
|
|
57
|
+
char **gr_mem; /* [XBD] group members */
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
#include <sys/cdefs.h>
|
|
61
|
+
|
|
62
|
+
__BEGIN_DECLS
|
|
63
|
+
/* [XBD] */
|
|
64
|
+
struct group *getgrgid(gid_t);
|
|
65
|
+
struct group *getgrnam(const char *);
|
|
66
|
+
/* [TSF] */
|
|
67
|
+
int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
|
|
68
|
+
int getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
|
|
69
|
+
/* [XSI] */
|
|
70
|
+
struct group *getgrent(void);
|
|
71
|
+
void setgrent(void);
|
|
72
|
+
void endgrent(void);
|
|
73
|
+
__END_DECLS
|
|
74
|
+
|
|
75
|
+
#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || defined(_DARWIN_C_SOURCE)
|
|
76
|
+
#include <uuid/uuid.h>
|
|
77
|
+
__BEGIN_DECLS
|
|
78
|
+
char *group_from_gid(gid_t, int);
|
|
79
|
+
struct group *getgruuid(uuid_t);
|
|
80
|
+
int getgruuid_r(uuid_t, struct group *, char *, size_t, struct group **);
|
|
81
|
+
__END_DECLS
|
|
82
|
+
#endif
|
|
83
|
+
|
|
84
|
+
#if !defined(_XOPEN_SOURCE) || defined(_DARWIN_C_SOURCE)
|
|
85
|
+
__BEGIN_DECLS
|
|
86
|
+
#if (!defined(LIBINFO_INSTALL_API) || !LIBINFO_INSTALL_API)
|
|
87
|
+
void setgrfile(const char *);
|
|
88
|
+
#endif
|
|
89
|
+
int setgroupent(int);
|
|
90
|
+
__END_DECLS
|
|
91
|
+
#endif
|
|
92
|
+
|
|
93
|
+
#endif /* !_GRP_H_ */
|