-
Notifications
You must be signed in to change notification settings - Fork 362
/
ffigen.yaml
66 lines (65 loc) · 3.81 KB
/
ffigen.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
# Run with `flutter packages pub run ffigen --config ffigen.yaml`.
name: NativeCupertinoHttp
description: |
Bindings for the Foundation URL Loading System and supporting libraries.
Regenerate bindings with `flutter packages pub run ffigen --config ffigen.yaml`.
language: 'objc'
output:
bindings: 'lib/src/native_cupertino_bindings.dart'
objc-bindings: 'darwin/cupertino_http/Sources/cupertino_http/native_cupertino_bindings.m'
headers:
entry-points:
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURLCache.h'
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURLRequest.h'
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURLSession.h'
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURL.h'
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSLock.h'
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSProgress.h'
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSURLResponse.h'
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSHTTPCookieStorage.h'
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSOperation.h'
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSError.h'
- '/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSDictionary.h'
- 'darwin/cupertino_http/Sources/cupertino_http/utils.h'
preamble: |
// ignore_for_file: always_specify_types
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// ignore_for_file: unused_element
// ignore_for_file: unused_field
// ignore_for_file: return_of_invalid_type
objc-interfaces:
include:
- 'NSCondition'
- 'NSHTTPURLResponse'
- 'NSMutableURLRequest'
- 'NSOperationQueue'
- 'NSURLCache'
- 'NSURLRequest'
- 'NSURLResponse'
- 'NSURLSession'
- 'NSURLSessionConfiguration'
- 'NSURLSessionDownloadTask'
- 'NSURLSessionTask'
- 'NSURLSessionWebSocketMessage'
- 'NSURLSessionWebSocketTask'
objc-protocols:
include:
- 'NSURLSessionDataDelegate'
- 'NSURLSessionDownloadDelegate'
- 'NSURLSessionWebSocketDelegate'
comments:
style: any
length: full
enums:
include:
- 'NSHTTPCookieAcceptPolicy'
- 'NSURLRequestCachePolicy'
- 'NSURLRequestNetworkServiceType'
- 'NSURLSessionMultipathServiceType'
- 'NSURLSessionResponseDisposition'
- 'NSURLSessionTaskState'
- 'NSURLSessionWebSocketMessageType'
as-int:
include:
- 'NSURLSessionWebSocketCloseCode'