@geastack/apple 0.2.8

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.
Files changed (113) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +54 -0
  3. package/dist/index.d.ts +127 -0
  4. package/dist/index.js +3076 -0
  5. package/generated/AVFoundation.d.ts +112 -0
  6. package/generated/ActivityKit.d.ts +7 -0
  7. package/generated/AppKit.d.ts +268 -0
  8. package/generated/CoreGraphics.d.ts +18 -0
  9. package/generated/CoreLocation.d.ts +28 -0
  10. package/generated/CoreMedia.d.ts +8 -0
  11. package/generated/Dispatch.d.ts +2 -0
  12. package/generated/Foundation.d.ts +13 -0
  13. package/generated/MapKit.d.ts +28 -0
  14. package/generated/Metal.d.ts +91 -0
  15. package/generated/MetalKit.d.ts +22 -0
  16. package/generated/Photos.d.ts +5 -0
  17. package/generated/QuartzCore.d.ts +12 -0
  18. package/generated/SwiftData.d.ts +11 -0
  19. package/generated/UIKit.d.ts +187 -0
  20. package/package.json +123 -0
  21. package/runtime/AVFoundation.js +136 -0
  22. package/runtime/ActivityKit.js +18 -0
  23. package/runtime/AppKit.js +313 -0
  24. package/runtime/CoreGraphics.js +15 -0
  25. package/runtime/CoreLocation.js +30 -0
  26. package/runtime/CoreMedia.js +7 -0
  27. package/runtime/Dispatch.js +11 -0
  28. package/runtime/Foundation.js +21 -0
  29. package/runtime/MapKit.js +22 -0
  30. package/runtime/Metal.js +126 -0
  31. package/runtime/MetalKit.js +15 -0
  32. package/runtime/Photos.js +9 -0
  33. package/runtime/QuartzCore.js +9 -0
  34. package/runtime/SwiftData.js +29 -0
  35. package/runtime/UIKit.js +242 -0
  36. package/runtime/empty.js +1 -0
  37. package/targets/ios/Info.plist.in +25 -0
  38. package/targets/ios/README.md +46 -0
  39. package/targets/ios/build-ios.sh +395 -0
  40. package/targets/ios/detect-development-team.mjs +109 -0
  41. package/targets/ios/generate-resident-entry.mjs +67 -0
  42. package/targets/ios/generate-resident-registry.mjs +162 -0
  43. package/targets/ios/generate-xcode-project.mjs +520 -0
  44. package/targets/ios/main/canvas_view.h +7 -0
  45. package/targets/ios/main/canvas_view.mm +94 -0
  46. package/targets/ios/main/font_registry.h +17 -0
  47. package/targets/ios/main/font_registry.mm +129 -0
  48. package/targets/ios/main/image_bridge.h +13 -0
  49. package/targets/ios/main/image_bridge.mm +53 -0
  50. package/targets/ios/main/ios_apps.c +28 -0
  51. package/targets/ios/main/ios_camera.mm +446 -0
  52. package/targets/ios/main/ios_display.mm +344 -0
  53. package/targets/ios/main/ios_main.mm +811 -0
  54. package/targets/ios/main/ios_memory.cpp +55 -0
  55. package/targets/ios/main/ios_renderer.h +20 -0
  56. package/targets/ios/main/ios_renderer.mm +27 -0
  57. package/targets/ios/main/ios_root_background.cpp +20 -0
  58. package/targets/ios/main/ios_root_background.h +11 -0
  59. package/targets/ios/main/ios_sensors.mm +244 -0
  60. package/targets/ios/main/ios_timers.mm +53 -0
  61. package/targets/ios/main/renderer/ios_renderer_internal.h +65 -0
  62. package/targets/ios/main/renderer/ios_renderer_support.mm +111 -0
  63. package/targets/ios/main/renderer/native_button.mm +179 -0
  64. package/targets/ios/main/renderer/native_label.mm +161 -0
  65. package/targets/ios/main/renderer/native_scroll_container.mm +279 -0
  66. package/targets/ios/main/renderer/view_reconciler.mm +274 -0
  67. package/targets/macos/Info.plist.in +26 -0
  68. package/targets/macos/README.md +131 -0
  69. package/targets/macos/build-child-lifecycle.sh +119 -0
  70. package/targets/macos/build-macos.sh +2156 -0
  71. package/targets/macos/check-module-graph-freshness.mjs +82 -0
  72. package/targets/macos/compiler-input-fingerprint.mjs +32 -0
  73. package/targets/macos/finalize-apple-native-output.mjs +77 -0
  74. package/targets/macos/generate-resident-entry.mjs +80 -0
  75. package/targets/macos/generate-resident-registry.mjs +141 -0
  76. package/targets/macos/heavy-build-lock.sh +176 -0
  77. package/targets/macos/main/canvas_view.h +9 -0
  78. package/targets/macos/main/canvas_view.mm +176 -0
  79. package/targets/macos/main/color_convert.h +18 -0
  80. package/targets/macos/main/color_convert.mm +39 -0
  81. package/targets/macos/main/font_registry.h +35 -0
  82. package/targets/macos/main/font_registry.mm +350 -0
  83. package/targets/macos/main/image_bridge.h +16 -0
  84. package/targets/macos/main/image_bridge.mm +52 -0
  85. package/targets/macos/main/macos_app_platform.mm +95 -0
  86. package/targets/macos/main/macos_apps.c +31 -0
  87. package/targets/macos/main/macos_device_control.mm +56 -0
  88. package/targets/macos/main/macos_display.mm +484 -0
  89. package/targets/macos/main/macos_host_device_control.mm +95 -0
  90. package/targets/macos/main/macos_main.mm +839 -0
  91. package/targets/macos/main/macos_memory.cpp +31 -0
  92. package/targets/macos/main/macos_native_shell.h +31 -0
  93. package/targets/macos/main/macos_native_shell.mm +396 -0
  94. package/targets/macos/main/macos_network.mm +253 -0
  95. package/targets/macos/main/macos_renderer.h +39 -0
  96. package/targets/macos/main/macos_renderer.mm +1969 -0
  97. package/targets/macos/main/macos_sensors.cpp +148 -0
  98. package/targets/macos/main/macos_smoke_app.cpp +65 -0
  99. package/targets/macos/main/macos_timers.mm +52 -0
  100. package/targets/macos/main/press_bridge.h +21 -0
  101. package/targets/macos/main/press_bridge.mm +72 -0
  102. package/targets/macos/main/thermalright_hid_display.h +14 -0
  103. package/targets/macos/main/thermalright_hid_display.mm +995 -0
  104. package/targets/macos/native-artifact-provenance.mjs +421 -0
  105. package/targets/macos/order-compile-edges.mjs +64 -0
  106. package/targets/macos/preflight-hard-muted-artifact.mjs +93 -0
  107. package/targets/macos/prune-generated-modules.mjs +147 -0
  108. package/targets/macos/sync-resources.mjs +153 -0
  109. package/targets/shared/analyze-audio-capture.mjs +131 -0
  110. package/targets/shared/apple_audio.mm +1194 -0
  111. package/targets/shared/apple_audio_selftest.mm +602 -0
  112. package/targets/shared/apple_audio_testing.h +34 -0
  113. package/targets/shared/build-audio-selftest.sh +50 -0
@@ -0,0 +1,313 @@
1
+ function geaAppleAppKitNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/AppKit ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export const NSViewNotSizable = 0
6
+ export const NSViewWidthSizable = 2
7
+ export const NSViewHeightSizable = 16
8
+ export const NSViewMinXMargin = 1
9
+ export const NSViewMaxXMargin = 4
10
+ export const NSViewMinYMargin = 8
11
+ export const NSViewMaxYMargin = 32
12
+ export const NSVisualEffectMaterialSidebar = 7
13
+ export const NSVisualEffectMaterialHeaderView = 10
14
+ export const NSVisualEffectMaterialContentBackground = 18
15
+ export const NSVisualEffectMaterialUnderWindowBackground = 21
16
+ export const NSVisualEffectBlendingModeBehindWindow = 0
17
+ export const NSVisualEffectBlendingModeWithinWindow = 1
18
+ export const NSVisualEffectStateFollowsWindowActiveState = 0
19
+ export const NSVisualEffectStateActive = 1
20
+ export const NSVisualEffectStateInactive = 2
21
+ export const NSSplitViewDividerStyleThick = 1
22
+ export const NSSplitViewDividerStyleThin = 2
23
+ export const NSSplitViewDividerStylePaneSplitter = 3
24
+ export const NSTextAlignmentLeft = 0
25
+ export const NSTextAlignmentRight = 1
26
+ export const NSTextAlignmentCenter = 2
27
+ export const NSLineBreakByWordWrapping = 0
28
+ export const NSLineBreakByTruncatingTail = 4
29
+ export const NSUserInterfaceLayoutOrientationHorizontal = 0
30
+ export const NSUserInterfaceLayoutOrientationVertical = 1
31
+ export const NSStackViewDistributionFill = 0
32
+ export const NSStackViewDistributionFillEqually = 1
33
+ export const NSStackViewDistributionFillProportionally = 2
34
+ export const NSStackViewDistributionEqualSpacing = 3
35
+ export const NSStackViewDistributionEqualCentering = 4
36
+ export const NSStackViewDistributionGravityAreas = -1
37
+ export const NSLayoutAttributeLeft = 1
38
+ export const NSLayoutAttributeRight = 2
39
+ export const NSLayoutAttributeTop = 3
40
+ export const NSLayoutAttributeBottom = 4
41
+ export const NSLayoutAttributeLeading = 5
42
+ export const NSLayoutAttributeTrailing = 6
43
+ export const NSLayoutAttributeWidth = 7
44
+ export const NSLayoutAttributeHeight = 8
45
+ export const NSLayoutAttributeCenterX = 9
46
+ export const NSLayoutAttributeCenterY = 10
47
+ export const NSLayoutConstraintOrientationHorizontal = 0
48
+ export const NSLayoutConstraintOrientationVertical = 1
49
+ export const NSLayoutPriorityRequired = 1000
50
+ export const NSLayoutPriorityDefaultHigh = 750
51
+ export const NSLayoutPriorityDefaultLow = 250
52
+ export const NSBoxCustom = 4
53
+ export const ObjCTargetAction = "invoke:"
54
+
55
+ export function installRootView() {
56
+ return geaAppleAppKitNativeOnly("installRootView")
57
+ }
58
+
59
+ export function installRootViewController() {
60
+ return geaAppleAppKitNativeOnly("installRootViewController")
61
+ }
62
+
63
+ export function installToolbar() {
64
+ return geaAppleAppKitNativeOnly("installToolbar")
65
+ }
66
+
67
+ export function setScrollDocumentTopAligned() {
68
+ return geaAppleAppKitNativeOnly("setScrollDocumentTopAligned")
69
+ }
70
+
71
+ export function runDeviceCommand() {
72
+ return geaAppleAppKitNativeOnly("runDeviceCommand")
73
+ }
74
+
75
+ export class NSColor {
76
+ static whiteColor() {
77
+ return geaAppleAppKitNativeOnly("NSColor.whiteColor")
78
+ }
79
+ static blackColor() {
80
+ return geaAppleAppKitNativeOnly("NSColor.blackColor")
81
+ }
82
+ static clearColor() {
83
+ return geaAppleAppKitNativeOnly("NSColor.clearColor")
84
+ }
85
+ static labelColor() {
86
+ return geaAppleAppKitNativeOnly("NSColor.labelColor")
87
+ }
88
+ static secondaryLabelColor() {
89
+ return geaAppleAppKitNativeOnly("NSColor.secondaryLabelColor")
90
+ }
91
+ static tertiaryLabelColor() {
92
+ return geaAppleAppKitNativeOnly("NSColor.tertiaryLabelColor")
93
+ }
94
+ static textColor() {
95
+ return geaAppleAppKitNativeOnly("NSColor.textColor")
96
+ }
97
+ static controlBackgroundColor() {
98
+ return geaAppleAppKitNativeOnly("NSColor.controlBackgroundColor")
99
+ }
100
+ static windowBackgroundColor() {
101
+ return geaAppleAppKitNativeOnly("NSColor.windowBackgroundColor")
102
+ }
103
+ static separatorColor() {
104
+ return geaAppleAppKitNativeOnly("NSColor.separatorColor")
105
+ }
106
+ static controlAccentColor() {
107
+ return geaAppleAppKitNativeOnly("NSColor.controlAccentColor")
108
+ }
109
+ static systemBlueColor() {
110
+ return geaAppleAppKitNativeOnly("NSColor.systemBlueColor")
111
+ }
112
+ static systemYellowColor() {
113
+ return geaAppleAppKitNativeOnly("NSColor.systemYellowColor")
114
+ }
115
+ static colorWithSRGBRedGreenBlueAlpha() {
116
+ return geaAppleAppKitNativeOnly("NSColor.colorWithSRGBRedGreenBlueAlpha")
117
+ }
118
+ static colorWithWhiteAlpha() {
119
+ return geaAppleAppKitNativeOnly("NSColor.colorWithWhiteAlpha")
120
+ }
121
+ }
122
+
123
+ export class NSLayoutConstraint {
124
+ }
125
+
126
+ export class NSLayoutXAxisAnchor {
127
+ constraintEqualToAnchor() {
128
+ return geaAppleAppKitNativeOnly("NSLayoutXAxisAnchor.constraintEqualToAnchor")
129
+ }
130
+ constraintEqualToAnchorConstant() {
131
+ return geaAppleAppKitNativeOnly("NSLayoutXAxisAnchor.constraintEqualToAnchorConstant")
132
+ }
133
+ }
134
+
135
+ export class NSLayoutYAxisAnchor {
136
+ constraintEqualToAnchor() {
137
+ return geaAppleAppKitNativeOnly("NSLayoutYAxisAnchor.constraintEqualToAnchor")
138
+ }
139
+ constraintEqualToAnchorConstant() {
140
+ return geaAppleAppKitNativeOnly("NSLayoutYAxisAnchor.constraintEqualToAnchorConstant")
141
+ }
142
+ }
143
+
144
+ export class NSLayoutDimension {
145
+ constraintEqualToAnchor() {
146
+ return geaAppleAppKitNativeOnly("NSLayoutDimension.constraintEqualToAnchor")
147
+ }
148
+ constraintEqualToConstant() {
149
+ return geaAppleAppKitNativeOnly("NSLayoutDimension.constraintEqualToConstant")
150
+ }
151
+ constraintEqualToAnchorMultiplier() {
152
+ return geaAppleAppKitNativeOnly("NSLayoutDimension.constraintEqualToAnchorMultiplier")
153
+ }
154
+ }
155
+
156
+ export class NSLayoutGuide {
157
+ }
158
+
159
+ export class ObjCTarget {
160
+ static create() {
161
+ return geaAppleAppKitNativeOnly("ObjCTarget.create")
162
+ }
163
+ }
164
+
165
+ export class NSClickGestureRecognizer {
166
+ constructor(target, action) {
167
+ geaAppleAppKitNativeOnly("new NSClickGestureRecognizer")
168
+ }
169
+ }
170
+
171
+ export class NSView {
172
+ constructor() {
173
+ geaAppleAppKitNativeOnly("new NSView")
174
+ }
175
+ addSubview() {
176
+ return geaAppleAppKitNativeOnly("NSView.addSubview")
177
+ }
178
+ addGestureRecognizer() {
179
+ return geaAppleAppKitNativeOnly("NSView.addGestureRecognizer")
180
+ }
181
+ setContentHuggingPriorityForOrientation() {
182
+ return geaAppleAppKitNativeOnly("NSView.setContentHuggingPriorityForOrientation")
183
+ }
184
+ setContentCompressionResistancePriorityForOrientation() {
185
+ return geaAppleAppKitNativeOnly("NSView.setContentCompressionResistancePriorityForOrientation")
186
+ }
187
+ }
188
+
189
+ export class NSControl {
190
+ }
191
+
192
+ export class NSBox {
193
+ constructor() {
194
+ geaAppleAppKitNativeOnly("new NSBox")
195
+ }
196
+ }
197
+
198
+ export class NSStackView {
199
+ constructor() {
200
+ geaAppleAppKitNativeOnly("new NSStackView")
201
+ }
202
+ addArrangedSubview() {
203
+ return geaAppleAppKitNativeOnly("NSStackView.addArrangedSubview")
204
+ }
205
+ insertArrangedSubviewAtIndex() {
206
+ return geaAppleAppKitNativeOnly("NSStackView.insertArrangedSubviewAtIndex")
207
+ }
208
+ setHuggingPriorityForOrientation() {
209
+ return geaAppleAppKitNativeOnly("NSStackView.setHuggingPriorityForOrientation")
210
+ }
211
+ }
212
+
213
+ export class NSTextField {
214
+ constructor() {
215
+ geaAppleAppKitNativeOnly("new NSTextField")
216
+ }
217
+ attachTextDelegate() {
218
+ return geaAppleAppKitNativeOnly("NSTextField.attachTextDelegate")
219
+ }
220
+ }
221
+
222
+ export class NSFont {
223
+ static systemFontOfSize() {
224
+ return geaAppleAppKitNativeOnly("NSFont.systemFontOfSize")
225
+ }
226
+ static boldSystemFontOfSize() {
227
+ return geaAppleAppKitNativeOnly("NSFont.boldSystemFontOfSize")
228
+ }
229
+ static systemFontOfSizeWeight() {
230
+ return geaAppleAppKitNativeOnly("NSFont.systemFontOfSizeWeight")
231
+ }
232
+ }
233
+
234
+ export class NSVisualEffectView {
235
+ constructor() {
236
+ geaAppleAppKitNativeOnly("new NSVisualEffectView")
237
+ }
238
+ }
239
+
240
+ export class NSScrollView {
241
+ constructor() {
242
+ geaAppleAppKitNativeOnly("new NSScrollView")
243
+ }
244
+ }
245
+
246
+ export class NSSplitView {
247
+ constructor() {
248
+ geaAppleAppKitNativeOnly("new NSSplitView")
249
+ }
250
+ addArrangedSubview() {
251
+ return geaAppleAppKitNativeOnly("NSSplitView.addArrangedSubview")
252
+ }
253
+ adjustSubviews() {
254
+ return geaAppleAppKitNativeOnly("NSSplitView.adjustSubviews")
255
+ }
256
+ setPositionOfDividerAtIndex() {
257
+ return geaAppleAppKitNativeOnly("NSSplitView.setPositionOfDividerAtIndex")
258
+ }
259
+ }
260
+
261
+ export class NSTextView {
262
+ constructor() {
263
+ geaAppleAppKitNativeOnly("new NSTextView")
264
+ }
265
+ attachTextDelegate() {
266
+ return geaAppleAppKitNativeOnly("NSTextView.attachTextDelegate")
267
+ }
268
+ }
269
+
270
+ export class NSImage {
271
+ static imageWithSystemSymbolNameAccessibilityDescription() {
272
+ return geaAppleAppKitNativeOnly("NSImage.imageWithSystemSymbolNameAccessibilityDescription")
273
+ }
274
+ }
275
+
276
+ export class NSImageView {
277
+ constructor() {
278
+ geaAppleAppKitNativeOnly("new NSImageView")
279
+ }
280
+ }
281
+
282
+ export class NSButton {
283
+ constructor() {
284
+ geaAppleAppKitNativeOnly("new NSButton")
285
+ }
286
+ }
287
+
288
+ export class NSViewController {
289
+ constructor() {
290
+ geaAppleAppKitNativeOnly("new NSViewController")
291
+ }
292
+ }
293
+
294
+ export class NSSplitViewController {
295
+ constructor() {
296
+ geaAppleAppKitNativeOnly("new NSSplitViewController")
297
+ }
298
+ addSplitViewItem() {
299
+ return geaAppleAppKitNativeOnly("NSSplitViewController.addSplitViewItem")
300
+ }
301
+ }
302
+
303
+ export class NSSplitViewItem {
304
+ static sidebarWithViewController() {
305
+ return geaAppleAppKitNativeOnly("NSSplitViewItem.sidebarWithViewController")
306
+ }
307
+ static contentListWithViewController() {
308
+ return geaAppleAppKitNativeOnly("NSSplitViewItem.contentListWithViewController")
309
+ }
310
+ static splitViewItemWithViewController() {
311
+ return geaAppleAppKitNativeOnly("NSSplitViewItem.splitViewItemWithViewController")
312
+ }
313
+ }
@@ -0,0 +1,15 @@
1
+ function geaAppleCoreGraphicsNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/CoreGraphics ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export function CGRectMake() {
6
+ return geaAppleCoreGraphicsNativeOnly("CGRectMake")
7
+ }
8
+
9
+ export function CGPointMake() {
10
+ return geaAppleCoreGraphicsNativeOnly("CGPointMake")
11
+ }
12
+
13
+ export function CGSizeMake() {
14
+ return geaAppleCoreGraphicsNativeOnly("CGSizeMake")
15
+ }
@@ -0,0 +1,30 @@
1
+ function geaAppleCoreLocationNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/CoreLocation ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export const kCLLocationAccuracyBest = -1
6
+ export const CLDistanceFilterNone = -1
7
+ export const CLAuthorizationStatusNotDetermined = 0
8
+ export const CLAuthorizationStatusAuthorizedWhenInUse = 4
9
+
10
+ export function CLLocationCoordinate2DMake() {
11
+ return geaAppleCoreLocationNativeOnly("CLLocationCoordinate2DMake")
12
+ }
13
+
14
+ export class CLLocation {
15
+ }
16
+
17
+ export class CLLocationManager {
18
+ constructor() {
19
+ geaAppleCoreLocationNativeOnly("new CLLocationManager")
20
+ }
21
+ requestWhenInUseAuthorization() {
22
+ return geaAppleCoreLocationNativeOnly("CLLocationManager.requestWhenInUseAuthorization")
23
+ }
24
+ startUpdatingLocation() {
25
+ return geaAppleCoreLocationNativeOnly("CLLocationManager.startUpdatingLocation")
26
+ }
27
+ stopUpdatingLocation() {
28
+ return geaAppleCoreLocationNativeOnly("CLLocationManager.stopUpdatingLocation")
29
+ }
30
+ }
@@ -0,0 +1,7 @@
1
+ function geaAppleCoreMediaNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/CoreMedia ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export function CMTimeMakeWithSeconds() {
6
+ return geaAppleCoreMediaNativeOnly("CMTimeMakeWithSeconds")
7
+ }
@@ -0,0 +1,11 @@
1
+ function geaAppleDispatchNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/Dispatch ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export function dispatchAsyncGlobal() {
6
+ return geaAppleDispatchNativeOnly("dispatchAsyncGlobal")
7
+ }
8
+
9
+ export function dispatchAsyncMain() {
10
+ return geaAppleDispatchNativeOnly("dispatchAsyncMain")
11
+ }
@@ -0,0 +1,21 @@
1
+ function geaAppleFoundationNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/Foundation ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export class NSObject {
6
+ }
7
+
8
+ export class NSData {
9
+ }
10
+
11
+ export class NSDictionary {
12
+ static dictionary() {
13
+ return geaAppleFoundationNativeOnly("NSDictionary.dictionary")
14
+ }
15
+ }
16
+
17
+ export class NSURL {
18
+ static URLWithString() {
19
+ return geaAppleFoundationNativeOnly("NSURL.URLWithString")
20
+ }
21
+ }
@@ -0,0 +1,22 @@
1
+ function geaAppleMapKitNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/MapKit ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export const MKMapTypeStandard = 0
6
+ export const MKMapTypeMutedStandard = 1
7
+ export const MKMapTypeSatellite = 2
8
+ export const MKUserTrackingModeNone = 0
9
+ export const MKUserTrackingModeFollow = 1
10
+
11
+ export function MKCoordinateRegionMakeWithDistance() {
12
+ return geaAppleMapKitNativeOnly("MKCoordinateRegionMakeWithDistance")
13
+ }
14
+
15
+ export class MKMapView {
16
+ constructor() {
17
+ geaAppleMapKitNativeOnly("new MKMapView")
18
+ }
19
+ setRegionAnimated() {
20
+ return geaAppleMapKitNativeOnly("MKMapView.setRegionAnimated")
21
+ }
22
+ }
@@ -0,0 +1,126 @@
1
+ function geaAppleMetalNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/Metal ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export const MTLPixelFormatInvalid = 0
6
+ export const MTLPixelFormatBGRA8Unorm_sRGB = 80
7
+ export const MTLPixelFormatDepth32Float = 252
8
+ export const MTLPrimitiveTypeTriangle = 3
9
+ export const MTLResourceStorageModeShared = 0
10
+ export const MTLCompareFunctionLess = 2
11
+
12
+ export function MTLCreateSystemDefaultDevice() {
13
+ return geaAppleMetalNativeOnly("MTLCreateSystemDefaultDevice")
14
+ }
15
+
16
+ export function MTLClearColorMake() {
17
+ return geaAppleMetalNativeOnly("MTLClearColorMake")
18
+ }
19
+
20
+ export class MTLCompileOptions {
21
+ constructor() {
22
+ geaAppleMetalNativeOnly("new MTLCompileOptions")
23
+ }
24
+ }
25
+
26
+ export class MTLDevice {
27
+ newCommandQueue() {
28
+ return geaAppleMetalNativeOnly("MTLDevice.newCommandQueue")
29
+ }
30
+ newLibraryWithSourceOptionsError() {
31
+ return geaAppleMetalNativeOnly("MTLDevice.newLibraryWithSourceOptionsError")
32
+ }
33
+ newBufferWithBytesLengthOptions() {
34
+ return geaAppleMetalNativeOnly("MTLDevice.newBufferWithBytesLengthOptions")
35
+ }
36
+ newRenderPipelineStateWithDescriptorError() {
37
+ return geaAppleMetalNativeOnly("MTLDevice.newRenderPipelineStateWithDescriptorError")
38
+ }
39
+ newDepthStencilStateWithDescriptor() {
40
+ return geaAppleMetalNativeOnly("MTLDevice.newDepthStencilStateWithDescriptor")
41
+ }
42
+ }
43
+
44
+ export class MTLCommandQueue {
45
+ commandBuffer() {
46
+ return geaAppleMetalNativeOnly("MTLCommandQueue.commandBuffer")
47
+ }
48
+ }
49
+
50
+ export class MTLCommandBuffer {
51
+ renderCommandEncoderWithDescriptor() {
52
+ return geaAppleMetalNativeOnly("MTLCommandBuffer.renderCommandEncoderWithDescriptor")
53
+ }
54
+ presentDrawable() {
55
+ return geaAppleMetalNativeOnly("MTLCommandBuffer.presentDrawable")
56
+ }
57
+ commit() {
58
+ return geaAppleMetalNativeOnly("MTLCommandBuffer.commit")
59
+ }
60
+ }
61
+
62
+ export class MTLLibrary {
63
+ newFunctionWithName() {
64
+ return geaAppleMetalNativeOnly("MTLLibrary.newFunctionWithName")
65
+ }
66
+ }
67
+
68
+ export class MTLFunction {
69
+ }
70
+
71
+ export class MTLRenderPipelineDescriptor {
72
+ constructor() {
73
+ geaAppleMetalNativeOnly("new MTLRenderPipelineDescriptor")
74
+ }
75
+ }
76
+
77
+ export class MTLRenderPipelineColorAttachmentDescriptorArray {
78
+ objectAtIndexedSubscript() {
79
+ return geaAppleMetalNativeOnly("MTLRenderPipelineColorAttachmentDescriptorArray.objectAtIndexedSubscript")
80
+ }
81
+ }
82
+
83
+ export class MTLRenderPipelineColorAttachmentDescriptor {
84
+ }
85
+
86
+ export class MTLRenderPipelineState {
87
+ }
88
+
89
+ export class MTLBuffer {
90
+ }
91
+
92
+ export class MTLDepthStencilDescriptor {
93
+ constructor() {
94
+ geaAppleMetalNativeOnly("new MTLDepthStencilDescriptor")
95
+ }
96
+ }
97
+
98
+ export class MTLDepthStencilState {
99
+ }
100
+
101
+ export class MTLRenderCommandEncoder {
102
+ setRenderPipelineState() {
103
+ return geaAppleMetalNativeOnly("MTLRenderCommandEncoder.setRenderPipelineState")
104
+ }
105
+ setDepthStencilState() {
106
+ return geaAppleMetalNativeOnly("MTLRenderCommandEncoder.setDepthStencilState")
107
+ }
108
+ setVertexBufferOffsetAtIndex() {
109
+ return geaAppleMetalNativeOnly("MTLRenderCommandEncoder.setVertexBufferOffsetAtIndex")
110
+ }
111
+ setVertexBytesLengthAtIndex() {
112
+ return geaAppleMetalNativeOnly("MTLRenderCommandEncoder.setVertexBytesLengthAtIndex")
113
+ }
114
+ drawPrimitivesVertexStartVertexCount() {
115
+ return geaAppleMetalNativeOnly("MTLRenderCommandEncoder.drawPrimitivesVertexStartVertexCount")
116
+ }
117
+ endEncoding() {
118
+ return geaAppleMetalNativeOnly("MTLRenderCommandEncoder.endEncoding")
119
+ }
120
+ }
121
+
122
+ export class MTLRenderPassDescriptor {
123
+ }
124
+
125
+ export class MTLDrawable {
126
+ }
@@ -0,0 +1,15 @@
1
+ function geaAppleMetalKitNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/MetalKit ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export class MTKView {
6
+ constructor() {
7
+ geaAppleMetalKitNativeOnly("new MTKView")
8
+ }
9
+ }
10
+
11
+ export class MTKViewDelegate {
12
+ static create() {
13
+ return geaAppleMetalKitNativeOnly("MTKViewDelegate.create")
14
+ }
15
+ }
@@ -0,0 +1,9 @@
1
+ function geaApplePhotosNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/Photos ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export class PHPhotoLibrary {
6
+ static saveImageData() {
7
+ return geaApplePhotosNativeOnly("PHPhotoLibrary.saveImageData")
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ function geaAppleQuartzCoreNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/QuartzCore ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export class CALayer {
6
+ addSublayer() {
7
+ return geaAppleQuartzCoreNativeOnly("CALayer.addSublayer")
8
+ }
9
+ }
@@ -0,0 +1,29 @@
1
+ function geaAppleSwiftDataNativeOnly(name) {
2
+ throw new Error(`@geajs/apple/SwiftData ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
3
+ }
4
+
5
+ export function openModelContainer() {
6
+ return geaAppleSwiftDataNativeOnly("openModelContainer")
7
+ }
8
+
9
+ export function mainModelContext() {
10
+ return geaAppleSwiftDataNativeOnly("mainModelContext")
11
+ }
12
+
13
+ export function insertModelJSON() {
14
+ return geaAppleSwiftDataNativeOnly("insertModelJSON")
15
+ }
16
+
17
+ export function saveModelContext() {
18
+ return geaAppleSwiftDataNativeOnly("saveModelContext")
19
+ }
20
+
21
+ export function fetchModelsJSON() {
22
+ return geaAppleSwiftDataNativeOnly("fetchModelsJSON")
23
+ }
24
+
25
+ export class ModelContainer {
26
+ }
27
+
28
+ export class ModelContext {
29
+ }