-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathffigen_objc.yaml
128 lines (126 loc) · 3.26 KB
/
ffigen_objc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Generate bindings for the ObjC headers.
# Regenerate bindings with `dart run tool/generate_code.dart`.
name: ObjectiveCBindings
language: objc
output:
bindings: 'lib/src/objective_c_bindings_generated.dart'
objc-bindings: 'src/objective_c_bindings_generated.m'
headers:
entry-points:
- 'src/foundation.h'
- 'src/input_stream_adapter.h'
- 'src/proxy.h'
ffi-native:
exclude-all-by-default: true
include-transitive-objc-categories: false
generate-for-package-objective-c: true
sort: true
external-versions:
# See https://docs.flutter.dev/reference/supported-platforms.
ios:
min: 12.0.0
macos:
min: 10.14.0
objc-interfaces:
# Keep in sync with ffigen's ObjCBuiltInFunctions.builtInInterfaces.
include:
- DOBJCDartInputStreamAdapter
- DOBJCDartProxy
- DOBJCDartProxyBuilder
- NSArray
- NSCharacterSet
- NSCoder
- NSData
- NSDate
- NSDictionary
- NSEnumerator
- NSError
- NSIndexSet
- NSInputStream
- NSInvocation
- NSItemProvider
- NSLocale
- NSMethodSignature
- NSMutableArray
- NSMutableData
- NSMutableDictionary
- NSMutableIndexSet
- NSMutableOrderedSet
- NSMutableSet
- NSMutableString
- NSNotification
- NSNumber
- NSObject
- NSOutputStream
- NSOrderedCollectionDifference
- NSOrderedSet
- NSProxy
- NSRunLoop
- NSSet
- NSStream
- NSString
- NSURL
- NSURLHandle
- NSValue
- Protocol
rename:
'DOBJCDartInputStreamAdapter': 'DartInputStreamAdapter'
'DOBJCDartProxy': 'DartProxy'
'DOBJCDartProxyBuilder': 'DartProxyBuilder'
objc-protocols:
include:
- NSStreamDelegate
objc-categories:
include:
- NSDataCreation
- NSExtendedMutableData
- NSNumberCreation
- NSStringExtensionMethods
structs:
include:
- _NSRange
- NSFastEnumerationState
rename:
_NSRange: NSRange
enums:
include:
- NSBinarySearchingOptions
- NSComparisonResult
- NSDataBase64DecodingOptions
- NSDataBase64EncodingOptions
- NSDataCompressionAlgorithm
- NSDataReadingOptions
- NSDataSearchOptions
- NSDataWritingOptions
- NSEnumerationOptions
- NSItemProviderFileOptions
- NSItemProviderRepresentationVisibility
- NSKeyValueChange
- NSKeyValueObservingOptions
- NSKeyValueSetMutationKind
- NSOrderedCollectionDifferenceCalculationOptions
- NSSortOptions
- NSStreamEvent
- NSStreamStatus
- NSStringCompareOptions
- NSStringEncodingConversionOptions
- NSStringEnumerationOptions
- NSURLBookmarkCreationOptions
- NSURLBookmarkResolutionOptions
- NSURLHandleStatus
globals:
include:
- NSLocalizedDescriptionKey
preamble: |
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Bindings for `src/foundation.h`.
// Regenerate bindings with `dart run tool/generate_code.dart`.
// ignore_for_file: always_specify_types
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// ignore_for_file: unnecessary_non_null_assertion
// ignore_for_file: unused_element
// ignore_for_file: unused_field
// coverage:ignore-file