| # Generate bindings for the ObjC headers. |
| # Regenerate bindings with `dart run tool/generate_code.dart`. |
| name: ObjectiveCBindings |
| language: objc |
| output: 'lib/src/objective_c_bindings_generated.dart' |
| headers: |
| entry-points: |
| - 'src/foundation.h' |
| - 'src/proxy.h' |
| ffi-native: |
| exclude-all-by-default: true |
| generate-for-package-objective-c: 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: |
| - DartProxy |
| - DartProxyBuilder |
| - NSArray |
| - NSCharacterSet |
| - NSCoder |
| - NSData |
| - NSDate |
| - NSDictionary |
| - NSEnumerator |
| - NSError |
| - NSIndexSet |
| - NSInvocation |
| - NSItemProvider |
| - NSLocale |
| - NSMethodSignature |
| - NSMutableArray |
| - NSMutableData |
| - NSMutableDictionary |
| - NSMutableIndexSet |
| - NSMutableOrderedSet |
| - NSMutableSet |
| - NSMutableString |
| - NSNotification |
| - NSNumber |
| - NSObject |
| - NSOrderedSet |
| - NSProxy |
| - NSSet |
| - NSString |
| - NSURL |
| - NSURLHandle |
| - NSValue |
| - Protocol |
| 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 |
| - NSStringCompareOptions |
| - NSStringEncodingConversionOptions |
| - NSStringEnumerationOptions |
| - NSURLBookmarkCreationOptions |
| - NSURLBookmarkResolutionOptions |
| - NSURLHandleStatus |
| 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 |
| // coverage:ignore-file |
| |
| import 'package:ffi/ffi.dart' as pkg_ffi; |