xamarin-macios/src
Rolf Bjarne Kvinge 307f97e529
[dotnet] Add a IsCoreCLR initialization flag. (#10900)
So that we can detect in managed code whether we're running with CoreCLR or
MonoVM.
2021-03-18 14:29:06 +01:00
..
ARKit [arkit] Add nullability for manual bindings (#10088) 2020-11-24 17:29:39 -05:00
AVFoundation [catalyst] Remove some framework that are not available on catalyst (#10658) 2021-02-21 10:04:09 -05:00
AVKit [avkit] Add nullability for manual bindings (#10150) 2020-11-25 20:40:04 -05:00
Accelerate [d16-7] [src] Remove Classic code from the Accelerate, Accounts, AddressBook[UI] and ARKit frameworks. (#8756) 2020-06-04 18:36:26 +02:00
Accounts [accounts] Add nullability for manual bindings (#10161) 2020-11-30 09:55:07 -05:00
AddressBook Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
AddressBookUI Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
AppKit Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
AssetsLibrary [src] Move enums into files that are processed by the generator (#10645) 2021-02-16 19:27:12 -05:00
AudioToolbox Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
AudioUnit Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
AuthenticationServices [AuthenticationServices] Fix ASAuthorization and ASAuthorizationRequest (#6619) 2019-07-19 16:24:04 -04:00
BackgroundTasks [BackgroundTasks] Add new Framework for Xcode 11 beta 1. (#6438) 2019-07-02 15:54:21 +02:00
BusinessChat [d16-7] [src] Remove Classic code from the CoreBluetooth, CoreAudioKit, CoreAnimation, ContactsUI, Contacts, CloudKit, ClassKit, CFNetwork, CarPlay, CallKit and BusinessChat frameworks. (#8784) 2020-06-05 13:08:51 -04:00
CFNetwork Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
CallKit [d16-7] [src] Remove Classic code from the CoreBluetooth, CoreAudioKit, CoreAnimation, ContactsUI, Contacts, CloudKit, ClassKit, CFNetwork, CarPlay, CallKit and BusinessChat frameworks. (#8784) 2020-06-05 13:08:51 -04:00
CarPlay [src] Move enums into files that are processed by the generator (#10645) 2021-02-16 19:27:12 -05:00
Carbon PMCS Removal (#3197) 2018-02-05 10:26:29 -05:00
ClassKit [d16-7] [src] Remove Classic code from the CoreBluetooth, CoreAudioKit, CoreAnimation, ContactsUI, Contacts, CloudKit, ClassKit, CFNetwork, CarPlay, CallKit and BusinessChat frameworks. (#8784) 2020-06-05 13:08:51 -04:00
ClockKit [xcode12.2][tests][xtro] Add enum member/values checks. Fix #7527 (#9691) (#9796) 2020-10-07 10:58:27 -04:00
CloudKit [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
Compression [src] Move enums into files that are processed by the generator (#10645) 2021-02-16 19:27:12 -05:00
Contacts [src] Move enums into files that are processed by the generator (#10645) 2021-02-16 19:27:12 -05:00
CoreAnimation Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
CoreBluetooth [corebluetooth] Add nullability to (generated and manual) bindings (#10241) 2020-12-09 09:10:55 -05:00
CoreData [coredata] Add nullability to (generated and manual) bindings (#10533) 2021-01-27 09:22:07 -05:00
CoreFoundation [CoreFoundation] Fix collected delegate in CFStream. (#10831) 2021-03-11 16:02:09 +01:00
CoreGraphics Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
CoreHaptics [xcode12.2][tests][xtro] Add enum member/values checks. Fix #7527 (#9691) (#9796) 2020-10-07 10:58:27 -04:00
CoreImage [coreimage] Add nullability to (generated and manual) bindings (#10612) 2021-02-11 09:28:50 -05:00
CoreLocation Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
CoreML [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
CoreMedia Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
CoreMidi [coremidi] Add missing API for macOS (10.15+) (#10878) 2021-03-16 08:35:14 -04:00
CoreMotion [d16-7] [src] Remove Classic code from the CoreMedia, CoreMidi, CoreML, CoreMotion, CoreNFC, CoreTelephony and CoreText frameworks. (#8792) 2020-06-10 09:28:19 +02:00
CoreServices Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
CoreSpotlight [src] Move enums into files that are processed by the generator (#10645) 2021-02-16 19:27:12 -05:00
CoreTelephony [generator] Do not inline duplicate attributes when processing protocols (#10683) 2021-03-01 08:39:52 -05:00
CoreText [CoreText] Clean up CTRunDelegate[Operations] implementation. (#10830) 2021-03-11 07:36:45 +01:00
CoreVideo Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
CoreWlan [xcode12.2][tests][xtro] Add enum member/values checks. Fix #7527 (#9691) (#9796) 2020-10-07 10:58:27 -04:00
Darwin Merge branch 'xcode9.3' into d15-7-merge-xcode9.3 2018-03-29 19:31:01 -04:00
EventKit [d16-7] [src] Remove Classic code from the FinderSync, FileProvider[UI], ExternalAccessory, EventKit[UI], DeviceCheck, CoreWlan and CoreVideo frameworks. (#8803) 2020-06-10 09:28:29 +02:00
EventKitUI [d16-7] [src] Remove Classic code from the FinderSync, FileProvider[UI], ExternalAccessory, EventKit[UI], DeviceCheck, CoreWlan and CoreVideo frameworks. (#8803) 2020-06-10 09:28:29 +02:00
ExternalAccessory Bump the minimum iOS version to 7.0. Fixes #6213. (#6878) 2019-08-30 01:07:30 -07:00
FileProvider [src] Exclude some obsolete/deprecated API from Mac Catalyst 2020-12-03 10:43:19 +01:00
FinderSync PMCS Removal (#3197) 2018-02-05 10:26:29 -05:00
Foundation [NSObject] Rework the SuperHandle property to not return a pointer into managed memory. (#10888) 2021-03-17 08:01:51 +01:00
GLKit [glkit] Add nullability to (generated and manual) bindings (#10765) 2021-03-03 09:33:09 -05:00
GameController Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
GameKit [catalyst] Remove "unknown" API inside existing frameworks (#10731) 2021-02-26 11:49:24 -05:00
GameplayKit [tests][intro] Split attributes typos from API typos tests (#9652) 2020-10-01 22:37:54 -04:00
HealthKit [xcode12.3] Bump to Xcode 12.3 RC (#10240) 2020-12-09 12:24:02 -05:00
HomeKit Merge remote-tracking branch 'xamarin/xcode12.2' into d16-8-xcode12.2-merge 2020-11-12 18:52:53 -05:00
IOSurface [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
ImageCaptureCore [ImageCaptureCore] Add ImageCaptureCore Bindings (#5074) 2018-11-07 09:52:39 -05:00
ImageIO Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
ImageKit [macos][imagekit] Update for Xcode 11 beta 1 (#6772) 2019-08-14 22:06:24 -04:00
InputMethodKit PMCS Removal (#3197) 2018-02-05 10:26:29 -05:00
Intents [tests][intro] Split attributes typos from API typos tests (#9652) 2020-10-01 22:37:54 -04:00
JavaScriptCore [d16-7] [src] Remove Classic code from the JavaScriptCore, MapKit, MediaLibrary, MediaToolbox, Metal, MetalKit, MetalPerformanceShaders, MobileCoreServices, ModelIO, MultipeerConnectivity, NetworkExtension and NotificationCenter frameworks. (#8806) 2020-06-10 09:29:53 +02:00
LocalAuthentication [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
MLCompute [mlcompute] New Xcode 12 framework. Up-to-date with beta 3 (#9208) 2020-07-28 20:55:28 -04:00
MapKit Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
MediaAccessibility Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
MediaLibrary [d16-7] [src] Remove Classic code from the JavaScriptCore, MapKit, MediaLibrary, MediaToolbox, Metal, MetalKit, MetalPerformanceShaders, MobileCoreServices, ModelIO, MultipeerConnectivity, NetworkExtension and NotificationCenter frameworks. (#8806) 2020-06-10 09:29:53 +02:00
MediaPlayer [mediaplayer] Add nullability to (generated and manual) bindings (#10790) 2021-03-05 08:26:29 -05:00
MediaToolbox [introspection] Stop hardcoding minimum OS versions. (#10582) 2021-02-08 07:34:02 +01:00
MessageUI PMCS Removal (#3197) 2018-02-05 10:26:29 -05:00
Metal [metal] Add nullability to (generated and manual) bindings (#10823) 2021-03-10 08:54:01 -05:00
MetalKit [d16-7] [src] Remove Classic code from the JavaScriptCore, MapKit, MediaLibrary, MediaToolbox, Metal, MetalKit, MetalPerformanceShaders, MobileCoreServices, ModelIO, MultipeerConnectivity, NetworkExtension and NotificationCenter frameworks. (#8806) 2020-06-10 09:29:53 +02:00
MetalPerformanceShaders Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
MetricKit [MetricKit] Don't use deprecated API to check system version. (#10180) 2020-11-30 16:14:35 +01:00
MobileCoreServices [d16-7] [src] Remove Classic code from the JavaScriptCore, MapKit, MediaLibrary, MediaToolbox, Metal, MetalKit, MetalPerformanceShaders, MobileCoreServices, ModelIO, MultipeerConnectivity, NetworkExtension and NotificationCenter frameworks. (#8806) 2020-06-10 09:29:53 +02:00
ModelIO [modelio] Add nullability to (generated and manual) bindings (#10750) 2021-03-02 09:06:32 -05:00
MultipeerConnectivity [d16-7] [src] Remove Classic code from the JavaScriptCore, MapKit, MediaLibrary, MediaToolbox, Metal, MetalKit, MetalPerformanceShaders, MobileCoreServices, ModelIO, MultipeerConnectivity, NetworkExtension and NotificationCenter frameworks. (#8806) 2020-06-10 09:29:53 +02:00
NativeTypes Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
NaturalLanguage Remove some LINQ usages (#9196) 2020-07-29 08:10:49 +02:00
NearbyInteraction [NearbyInteraction][Xcode12] Add manual binding for NINearbyObjectDirectionNotAvailable (#9346) 2020-08-12 15:43:00 -04:00
Network Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
NetworkExtension [xcode12.2][tests][xtro] Add enum member/values checks. Fix #7527 (#9691) (#9796) 2020-10-07 10:58:27 -04:00
NewsstandKit [Newsstandkit] Update for Xcode 11 beta 1 (#6992) 2019-09-13 15:23:21 -04:00
NotificationCenter [notificationcenter] Update for Xcode 12 beta 5 (#9416) 2020-08-20 13:09:50 -04:00
ObjCRuntime [dotnet] Add a IsCoreCLR initialization flag. (#10900) 2021-03-18 14:29:06 +01:00
OpenGL [d16-7] [src] Remove Classic code from the OpenGL, PassKit, PdfKit, Photos, QTKit, ReplayKit, SearchKit, Security, Social, SpriteKit, SystemConfiguration, Twitter, UserNotification, VideoToolbox, Vision, WebKit and WKWebKit frameworks. (#8816) 2020-06-10 15:38:58 +02:00
OpenGLES Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
PassKit [xcode12.2][tests][xtro] Add enum member/values checks. Fix #7527 (#9691) (#9796) 2020-10-07 10:58:27 -04:00
PdfKit [pdfkit] Add nullability to (generated and manual) bindings (#10577) 2021-02-04 20:39:41 -05:00
Photos 10.16 -> 11.0 (#9190) 2020-07-27 11:09:57 -04:00
PhotosUI [PhotosUI][Xcode12] Update for beta 4 (#9285) 2020-08-06 11:29:30 -04:00
PrintCore Bind 2 high visibility PrintCore APIs (#4933) 2018-10-11 09:14:48 -05:00
QTKit [generator] Do not inline duplicate attributes when processing protocols (#10683) 2021-03-01 08:39:52 -05:00
QuickLook [CoreFoundation] Fetch a few static values lazily. (#4924) 2018-10-09 15:51:17 +02:00
QuickLookUI PMCS Removal (#3197) 2018-02-05 10:26:29 -05:00
ReplayKit [xcode12.2][tests][xtro] Add enum member/values checks. Fix #7527 (#9691) (#9796) 2020-10-07 10:58:27 -04:00
SafariServices [monotouch-test] Make it work with Mac Catalyst. 2021-01-15 17:52:28 +01:00
SceneKit [src] Move enums into files that are processed by the generator (#10645) 2021-02-16 19:27:12 -05:00
ScriptingBridge [d16-8] [SBApplication][Bug] SBApplication.FromBundleIdentifier<T> should return null when bundle ID is unknown (#9668) 2020-09-18 18:19:23 -04:00
SearchKit Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
Security Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
SensorKit [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
Simd Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
Social [d16-7] [src] Remove Classic code from the OpenGL, PassKit, PdfKit, Photos, QTKit, ReplayKit, SearchKit, Security, Social, SpriteKit, SystemConfiguration, Twitter, UserNotification, VideoToolbox, Vision, WebKit and WKWebKit frameworks. (#8816) 2020-06-10 15:38:58 +02:00
SpriteKit [spritekit] Add nullability to (generated and manual) bindings (#10262) 2020-12-14 08:32:17 -05:00
StoreKit [generator] Do not inline duplicate attributes when processing protocols (#10683) 2021-03-01 08:39:52 -05:00
System.ComponentModel
System.Drawing Move System.Drawing types to Mono 2019-03-13 17:26:47 +01:00
System.Net.Http [d16-7] [src] Remove the remaining Classic code. (#8820) 2020-06-11 19:25:18 +02:00
SystemConfiguration Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
TVMLKit [TVMLKit] Work around Apple breaking API for enum values in TVElementUpdateType. (#5849) 2019-04-09 16:48:18 +02:00
TVServices [xcode12.2][tests][xtro] Check for deprecated p/invokes (C API) (#9773) 2020-10-05 08:12:45 -04:00
Twitter [d16-7] [src] Remove Classic code from the OpenGL, PassKit, PdfKit, Photos, QTKit, ReplayKit, SearchKit, Security, Social, SpriteKit, SystemConfiguration, Twitter, UserNotification, VideoToolbox, Vision, WebKit and WKWebKit frameworks. (#8816) 2020-06-10 15:38:58 +02:00
UIKit Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
UserNotifications [d16-7] [src] Remove Classic code from the OpenGL, PassKit, PdfKit, Photos, QTKit, ReplayKit, SearchKit, Security, Social, SpriteKit, SystemConfiguration, Twitter, UserNotification, VideoToolbox, Vision, WebKit and WKWebKit frameworks. (#8816) 2020-06-10 15:38:58 +02:00
VideoSubscriberAccount [src] API tweaks for Mac Catalyst 2020-12-03 10:43:20 +01:00
VideoToolbox Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
Vision Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
WKWebKit [wkwebkit] Add nullability to (generated and manual) bindings (#10561) 2021-02-02 21:42:23 -05:00
WatchConnectivity [watchconnectivity] Update for xcode 11 beta 1 (#6283) 2019-06-13 16:44:54 -04:00
WatchKit Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782) 2021-03-04 16:22:24 +01:00
WebKit [xcode12.2][tests][xtro] Add enum member/values checks. Fix #7527 (#9691) (#9796) 2020-10-07 10:58:27 -04:00
XKit [Submission] Fix all the selectors that apple warns about. (#9268) (#9408) 2020-08-21 16:30:51 -04:00
bgen [Xcode12.1] Bring Xcode12.1 support. 2020-10-20 17:27:14 -04:00
generate-frameworks-constants Replace manually maintained code about frameworks with generated code. (#10218) 2020-12-15 18:44:05 +01:00
generate-type-forwarders [generate-type-forwarders] Fix stubs generation (#10805) 2021-03-08 21:06:56 -05:00
iAd [iads] Update for Xcode 12 beta 2 (#9049) 2020-07-09 17:31:48 -04:00
iTunesLibrary [xcode11] [ItunesLibrary] macOS b1 bindings (#6602) 2019-07-22 09:51:53 -04:00
xlf [bgen] Remove trailing newlines from warning/error messages. (#10701) 2021-02-25 15:04:00 +01:00
.gitignore Add the minimum OS supported inside platform assemblies metadata (#10820) 2021-03-10 09:19:20 -05:00
AssemblyInfo.cs.in [mtouch] Fix [InternalsVisibleTo] attribute parsing. Fixes #4895 (#4921) 2018-10-04 09:43:38 -04:00
Constants.iOS.cs.in Replace manually maintained code about frameworks with generated code. (#10218) 2020-12-15 18:44:05 +01:00
Constants.mac.cs.in Replace manually maintained code about frameworks with generated code. (#10218) 2020-12-15 18:44:05 +01:00
Constants.maccatalyst.cs.in [src] Fix generating Constants.SdkVersion for Mac Catalyst. (#10564) 2021-02-03 07:40:45 +01:00
Constants.tvos.cs.in Replace manually maintained code about frameworks with generated code. (#10218) 2020-12-15 18:44:05 +01:00
Constants.watch.cs.in Replace manually maintained code about frameworks with generated code. (#10218) 2020-12-15 18:44:05 +01:00
Makefile Xamarin.Mac native Apple Silicon targetting support (#10115) 2021-03-17 21:48:02 -04:00
Makefile.generator Bump to .NET 6.0.100-alpha.1.21060.3. (#10388) 2021-01-14 14:07:28 +01:00
MinimumVersions.cs.in Add the minimum OS supported inside platform assemblies metadata (#10820) 2021-03-10 09:19:20 -05:00
MonoNativeFunctionWrapperAttribute.cs [d16-7] [src] Remove the remaining Classic code. (#8820) 2020-06-11 19:25:18 +02:00
MonoPInvokeCallbackAttribute.cs [d16-7] [src] Remove the remaining Classic code. (#8820) 2020-06-11 19:25:18 +02:00
MonoTouch.NUnitLite.maccatalyst.templ.csproj [src] Build Xamarin.MacCatalyst.dll 2020-12-03 10:43:19 +01:00
MonoTouch.NUnitLite.templ.csproj [master] Bump mono to pickup needed nunitlite changes. (#7812) 2020-02-07 09:56:41 -05:00
MonoTouch.NUnitLite.tvos.templ.csproj [master] Bump mono to pickup needed nunitlite changes. (#7812) 2020-02-07 09:56:41 -05:00
MonoTouch.NUnitLite.watchos.templ.csproj [master] Bump mono to pickup needed nunitlite changes. (#7812) 2020-02-07 09:56:41 -05:00
OpenTK.dll.sources Move System.Drawing types to Mono 2019-03-13 17:26:47 +01:00
README.md [xcode12] Rename master to main (#9631) 2020-09-15 07:09:29 -04:00
Resources.Designer.cs [bgen] Intercept IKVM's assembly resolution to find assemblies ourselves. 2020-03-09 18:43:42 +01:00
Resources.resx [bgen] Remove trailing newlines from warning/error messages. (#10701) 2021-02-25 15:04:00 +01:00
Version.in
accelerate.cs
accessibility.cs [Accessibility] Update bindings to Xcode 12 Beta 3 (#9227) 2020-07-30 09:30:03 -04:00
accounts.cs [xcode12][tests] Fix typos (#9640) 2020-09-15 13:09:18 -04:00
addressbook.cs
addressbookui.cs [d16-7] [src] Remove Classic code from the Accelerate, Accounts, AddressBook[UI] and ARKit frameworks. (#8756) 2020-06-04 18:36:26 +02:00
adservices.cs [adservices] New in Xcode 12.3 beta 1 (#10229) 2020-12-07 20:00:38 -05:00
adsupport.cs [AdSupport] Update bindings to Xcode 12 Beta 3 (#9229) 2020-07-30 09:30:56 -04:00
appclip.cs [xcode12][appclip] Update for beta 1 (#8964) 2020-06-26 17:13:30 -04:00
appkit.cs Merge branch 'xcode12.2' into main-xcode12.2 2020-11-17 11:09:15 -05:00
apptrackingtransparency.cs [AppTrackingTransparency] Add support for Xcode 12 beta 4 (#9385) 2020-08-19 15:54:04 +02:00
arkit.cs [ARKit] Update bindings to Xcode 12.3 Beta 1 (#10158) 2020-11-26 10:26:04 -05:00
assetslibrary.cs [d16-7] [src] Remove Classic code from the AudioUnit, AudioToolbox and AssetsLibrary frameworks. (#8775) 2020-06-05 16:06:48 +02:00
audiotoolbox.cs
audiounit.cs [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
authenticationservices.cs [generator] Do not inline duplicate attributes when processing protocols (#10683) 2021-03-01 08:39:52 -05:00
automaticassessmentconfiguration.cs [AutomaticAssessmentConfiguration] Update Binding to Xcode 12 beta 5 2020-08-21 09:36:56 -05:00
avfoundation.cs [generator] Do not inline duplicate attributes when processing protocols (#10683) 2021-03-01 08:39:52 -05:00
avkit.cs [xtro] Fix nullability checks on parameters (#10279) 2020-12-15 08:24:10 -05:00
backgroundtasks.cs [BGTasks] Do not make BGTask abstract. (#8532) 2020-05-15 09:53:18 -04:00
bmac.ikvm [xcode11] Stop building/shipping 32-bit Xamarin.Mac bits. Partial fix for #6300. (#6393) 2019-07-15 10:19:24 -07:00
btouch-native Use relative paths in scripts. (#7545) 2019-12-10 12:47:30 +01:00
btouch-native.in
btouch.cs [src] Build Xamarin.MacCatalyst.dll 2020-12-03 10:43:19 +01:00
btv Use relative paths in scripts. (#7545) 2019-12-10 12:47:30 +01:00
businesschat.cs [src] Remove/obsolete 'onlyOn64: true' in attributes. (#6595) 2019-07-16 12:13:11 -04:00
bwatch Use relative paths in scripts. (#7545) 2019-12-10 12:47:30 +01:00
bwatch.in
callkit.cs [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
carplay.cs Merge branch 'xcode12.2' into main-xcode12.2 2020-11-17 11:09:15 -05:00
cfnetwork.cs [Xcode12] Fix some availability attributes missed in the Beta 3/4 updates (#9333) 2020-08-07 22:18:13 -04:00
classkit.cs [xtro] Fix nullability checks on parameters (#10279) 2020-12-15 08:24:10 -05:00
clockkit.cs Merge xcode12 into d16-8. 2020-09-18 17:51:52 -04:00
cloudkit.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
compression.cs [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
contacts.cs [Contacts] Update bindings to Xcode 12.3 Beta 1 (#10163) 2020-12-01 09:19:38 -05:00
contactsui.cs [d16-7] [src] Remove Classic code from the CoreBluetooth, CoreAudioKit, CoreAnimation, ContactsUI, Contacts, CloudKit, ClassKit, CFNetwork, CarPlay, CallKit and BusinessChat frameworks. (#8784) 2020-06-05 13:08:51 -04:00
coreanimation.cs [coreanimation] Add nullability to (generated and manual) bindings (#10547) 2021-02-03 08:51:42 -05:00
coreaudiokit.cs [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
corebluetooth.cs [catalyst] Remove extraneous API detected by xtro (#10872) 2021-03-16 16:04:01 -04:00
coredata.cs [coredata] Add nullability to (generated and manual) bindings (#10533) 2021-01-27 09:22:07 -05:00
corefoundation.cs [src] Move enums into files that are processed by the generator (#10645) 2021-02-16 19:27:12 -05:00
coregraphics.cs [xcode12.2][coregraphics] Update availability wrt Xcode 12.1 GM (#9898) 2020-10-16 18:12:05 -04:00
corehaptics.cs [CoreHaptics] Update framework for Xcode 12 beta 3. (#9273) 2020-08-05 11:43:44 -04:00
coreimage.cs [main] Fix running introspection on iOS 11.4 simulators (#10626) 2021-02-11 22:40:55 -05:00
corelocation.cs [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
coremedia.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
coremidi.cs [coremidi] Add missing API for macOS (10.15+) (#10878) 2021-03-16 08:35:14 -04:00
coreml.cs [xtro] Fix nullability checks on parameters (#10279) 2020-12-15 08:24:10 -05:00
coremotion.cs [coremotion] Update for Xcode 12.3 beta 1 (#10234) 2020-12-08 10:42:22 -05:00
corenfc.cs [xcode12.2][tests][xtro] Add enum member/values checks. Fix #7527 (#9691) (#9796) 2020-10-07 10:58:27 -04:00
coreservices.cs
corespotlight.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
coretelephony.cs [Main] Bring Xcode12.1 support. 2020-10-20 17:55:31 -04:00
coretext.cs [d16-7] [src] Remove Classic code from the CoreMedia, CoreMidi, CoreML, CoreMotion, CoreNFC, CoreTelephony and CoreText frameworks. (#8792) 2020-06-10 09:28:19 +02:00
corevideo.cs [CoreVideo][Xcode12] Update through beta 3 (#9209) 2020-07-27 19:44:37 -04:00
corewlan.cs [xtro] Fix nullability checks on parameters (#10279) 2020-12-15 08:24:10 -05:00
custom-make.sh
devicecheck.cs [catalyst] Remove "unknown" API inside existing frameworks (#10731) 2021-02-26 11:49:24 -05:00
error.cs [Localization] Add generator error messages (#7531) 2020-01-08 16:07:46 -05:00
eventkit.cs [monotouch-test] Make it work with Mac Catalyst. 2021-01-15 17:52:28 +01:00
eventkitui.cs [d16-7] [xtro][bindings] Add xtro support for nullability and fix some bindings (#8341) 2020-04-10 12:37:16 -04:00
executionpolicy.cs [executionpolicy] Update for Xcode 11 beta 1 (#6774) 2019-08-14 22:07:55 -04:00
externalaccessory.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
fileprovider.cs [src] API tweaks for Mac Catalyst 2020-12-03 10:43:20 +01:00
fileproviderui.cs [d16-7] [src] Remove Classic code from the FinderSync, FileProvider[UI], ExternalAccessory, EventKit[UI], DeviceCheck, CoreWlan and CoreVideo frameworks. (#8803) 2020-06-10 09:28:29 +02:00
findersync.cs [d16-7] [src] Remove Classic code from the FinderSync, FileProvider[UI], ExternalAccessory, EventKit[UI], DeviceCheck, CoreWlan and CoreVideo frameworks. (#8803) 2020-06-10 09:28:29 +02:00
foundation.cs [generator] Do not inline duplicate attributes when processing protocols (#10683) 2021-03-01 08:39:52 -05:00
frameworks.sources Add the minimum OS supported inside platform assemblies metadata (#10820) 2021-03-10 09:19:20 -05:00
gamecontroller.cs [gamecontroller] Update for Xcode 12.3 beta 1 (#10228) 2020-12-07 17:23:13 -05:00
gamekit.cs [gamekit] Add nullability to (generated and manual) bindings (#10800) 2021-03-08 08:53:54 -05:00
gameplaykit.cs [d16-7] [src] Remove Classic code from the GameController, GameKit, GameplayKit, GLKit, HealthKit, iAd, IdentityLookup[UI], ImageIO, ImageKit, Intents[UI] and IOSurface frameworks. (#8805) 2020-06-10 09:29:40 +02:00
generate-defines.csharp [src] Generate a define for each framework for every platform. (#10171) 2020-12-01 11:14:32 +01:00
generate-errors.csharp [build] generate Errors.Designer.cs for runtime assemblies (#8921) 2020-06-23 09:01:05 +02:00
generate-frameworks.csharp [src] Generate generated-framework.g.cs for Mac Catalyst 2020-12-03 10:43:19 +01:00
generator-attribute-manager.cs [bgen] Avoid a NullReferenceException when reporting multiple attributes on a type. Fixes #10310. (#10311) 2020-12-17 15:12:32 +01:00
generator-attributes.cs [generator] Remove [RetainList] from generator-attributes and docs (#8746) 2020-06-03 20:15:43 -04:00
generator-diff.mk
generator-enums.cs [src] Move enums into files that are processed by the generator (#10645) 2021-02-16 19:27:12 -05:00
generator-filters.cs [generator] Do not inline duplicate attributes when processing protocols (#10683) 2021-03-01 08:39:52 -05:00
generator-typemanager.cs Turns out we need MarshalAs for characters as well. (#10785) 2021-03-05 07:22:14 +01:00
generator.cs Xamarin.Mac native Apple Silicon targetting support (#10115) 2021-03-17 21:48:02 -04:00
generator.csproj [src] Build Xamarin.MacCatalyst.dll 2020-12-03 10:43:19 +01:00
generator.sln [tests] Port the makefile-based generator tests to NUnit. (#3019) 2017-11-20 14:55:16 +01:00
glkit.cs [glkit] Add nullability to (generated and manual) bindings (#10765) 2021-03-03 09:33:09 -05:00
global.css
healthkit.cs [xcode12.3] Bump to Xcode 12.3 RC (#10240) 2020-12-09 12:24:02 -05:00
healthkitui.cs PMCS Removal (#3197) 2018-02-05 10:26:29 -05:00
homekit.cs [src] Sprinkle [NoMacCatalyst] around 2020-12-03 10:43:19 +01:00
iad.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
identitylookup.cs [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
identitylookupui.cs [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
imagecapturecore.cs [ImageCaptureCore] Remove redundant availability attribute. 2018-11-20 08:41:36 +01:00
imageio.cs [imageio] Update for Xcode 12.3 beta 1 (#10224) 2020-12-07 16:42:06 -05:00
imagekit.cs [d16-7] [src] Remove Classic code from the GameController, GameKit, GameplayKit, GLKit, HealthKit, iAd, IdentityLookup[UI], ImageIO, ImageKit, Intents[UI] and IOSurface frameworks. (#8805) 2020-06-10 09:29:40 +02:00
inputmethodkit.cs Remove 10.7 & 10.8 availability attributes, since they're redundant now. 2018-10-25 17:12:39 +02:00
intents.cs [main] Fix running introspection on iOS 11.4 simulators (#10626) 2021-02-11 22:40:55 -05:00
intentsui.cs [monotouch-test] Make it work with Mac Catalyst. 2021-01-15 17:52:28 +01:00
iosurface.cs [iOSurface] Remove warning from the generator. (#9357) 2020-08-12 22:00:11 -04:00
ituneslibrary.cs [xcode11] [ItunesLibrary] macOS b1 bindings (#6602) 2019-07-22 09:51:53 -04:00
javascriptcore.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
linkpresentation.cs [xcode12][linkpresentation] Update for beta 1 (add tvOS support) (#8965) 2020-06-26 20:00:54 -04:00
localauthentication.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
mapkit.cs [mapkit] Add nullability to (generated and manual) bindings (#10651) 2021-02-17 09:01:57 -05:00
mediaaccessibility.cs PMCS Removal (#3197) 2018-02-05 10:26:29 -05:00
medialibrary.cs [d16-7] [src] Remove Classic code from the JavaScriptCore, MapKit, MediaLibrary, MediaToolbox, Metal, MetalKit, MetalPerformanceShaders, MobileCoreServices, ModelIO, MultipeerConnectivity, NetworkExtension and NotificationCenter frameworks. (#8806) 2020-06-10 09:29:53 +02:00
mediaplayer.cs [mediaplayer] Add nullability to (generated and manual) bindings (#10790) 2021-03-05 08:26:29 -05:00
mediasetup.cs [mediasetup] Update for Xcode 12 beta 2 (#9087) 2020-07-16 20:34:19 -04:00
mediatoolbox.cs
messages.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
messageui.cs [xtro] Fix nullability checks on parameters (#10279) 2020-12-15 08:24:10 -05:00
metal.cs [metal] Add nullability to (generated and manual) bindings (#10823) 2021-03-10 08:54:01 -05:00
metalkit.cs [MetalKit] Update framework for Xcode 12 beta4. (#9393) 2020-08-17 23:52:22 -04:00
metalperformanceshaders.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
metrickit.cs [metrickit] Add missing `MXMetricManager.MakeLogHandle` API (#10017) 2020-10-30 18:28:58 -04:00
mlcompute.cs [mlcompute] Update for Xcode 12.2 beta 2 (#9806) 2020-10-07 20:25:17 -04:00
mobilecoreservices.cs [LaunchServices] Update framework to Xcode 12 beta 4. (#9392) 2020-08-17 21:26:49 -04:00
modelio.cs [glkit] Add nullability to (generated and manual) bindings (#10765) 2021-03-03 09:33:09 -05:00
multipeerconnectivity.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
naturallanguage.cs [naturallanguage] Update for Xcode 12 beta 3 (#9210) 2020-07-28 08:58:29 -04:00
nearbyinteraction.cs [NearbyInteraction][Xcode12] Add manual binding for NINearbyObjectDirectionNotAvailable (#9346) 2020-08-12 15:43:00 -04:00
network.cs [network] Update for Xcode 12.2 beta 2 (#10238) 2020-12-08 17:15:26 -05:00
networkextension.cs [xcode12.3] Bump to Xcode 12.3 RC (#10240) 2020-12-09 12:24:02 -05:00
newsstandkit.cs [d16-7] [xtro][bindings] Add xtro support for nullability and fix some bindings (#8341) 2020-04-10 12:37:16 -04:00
notificationcenter.cs [notificationcenter] Update for Xcode 12 beta 5 (#9416) 2020-08-20 13:09:50 -04:00
opengl.cs
opengles.cs Bump the minimum iOS version to 7.0. Fixes #6213. (#6878) 2019-08-30 01:07:30 -07:00
opentk.csproj Move System.Drawing types to Mono 2019-03-13 17:26:47 +01:00
oslog.cs [oslog] New framework in macOS 11 (#9820) 2020-10-08 16:33:03 -04:00
packages.config [Localization] Add generator error messages (#7531) 2020-01-08 16:07:46 -05:00
passkit.cs [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
pdfkit.cs [pdfkit] Add nullability to (generated and manual) bindings (#10577) 2021-02-04 20:39:41 -05:00
pencilkit.cs [xcode12] Introspection-based fixes for Big Sur (#9632) 2020-09-15 08:56:24 -04:00
photos.cs [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
photosui.cs [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
printcore.cs
pushkit.cs [src] Use PlatformName.MacCatalyst instead of PlatformName.UIKitForMac. (#10290) 2021-01-12 09:56:09 +01:00
qtkit.cs [xcode12.2][qtkit] Stub removed API. Fix #7704 (#9815) 2020-10-08 14:22:38 -04:00
quartzcomposer.cs [quartzcomposer] Update for Xcode 11 beta 1 (#6752) 2019-08-12 11:54:29 -04:00
quicklook.cs [d16-7] [xtro][bindings] Add xtro support for nullability and fix some bindings (#8341) 2020-04-10 12:37:16 -04:00
quicklookUI.cs [quicklookUI] xcode11 beta1 - beta3 updated bindings (#6588) 2019-07-16 19:28:42 -04:00
quicklookthumbnailing.cs [quicklookthumbnailing] Update for Xcode 12 beta 4 (#9388) 2020-08-17 13:43:00 -04:00
replaykit.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
rosetta.pl
safariservices.cs [safariservices] Update for Xcode 12 beta 2 (#9053) 2020-07-10 08:55:03 -04:00
scenekit.cs [catalyst] Remove extraneous API detected by xtro (#10872) 2021-03-16 16:04:01 -04:00
screentime.cs [ScreenTime] Update bindings to Xcode 12 Beta 5 (#9430) 2020-08-20 22:05:14 -04:00
scriptingbridge.cs [d16-8] [SBApplication][Bug] SBApplication.FromBundleIdentifier<T> should return null when bundle ID is unknown (#9668) 2020-09-18 18:19:23 -04:00
searchkit.cs PMCS Removal (#3197) 2018-02-05 10:26:29 -05:00
security.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
sensorkit.cs [sensorkit] Update for Xcode 12 beta 4 (#9378) 2020-08-17 08:23:06 -04:00
social.cs [d16-7] [src] Remove Classic code from the OpenGL, PassKit, PdfKit, Photos, QTKit, ReplayKit, SearchKit, Security, Social, SpriteKit, SystemConfiguration, Twitter, UserNotification, VideoToolbox, Vision, WebKit and WKWebKit frameworks. (#8816) 2020-06-10 15:38:58 +02:00
soundanalysis.cs [soundanalysis][watchos] Update to include last, missing API on watchOS now that AVFoundation is merged (#6939) 2019-09-09 14:16:04 -04:00
speech.cs [src] Remove/obsolete 'onlyOn64: true' in attributes. (#6595) 2019-07-16 12:13:11 -04:00
spritekit.cs [spritekit] Add nullability to (generated and manual) bindings (#10262) 2020-12-14 08:32:17 -05:00
storekit.cs [storekit] Update for Xcode 12.2 beta 3 (#9930) 2020-10-20 17:15:00 -04:00
systemconfiguration.cs [systemconfiguration][tvos] CaptiveNetwork API are now marked as prohibited in tvOS (#4357) 2018-06-29 09:35:05 -04:00
touch-unit.sources [master] Bump mono to pickup needed nunitlite changes. (#7812) 2020-02-07 09:56:41 -05:00
tvmlkit.cs [xcode12][tvmlkit] Update for beta 1 (#8966) 2020-06-26 17:14:35 -04:00
tvservices.cs [tvservices] Update for Xcode 12.3 beta 1 (#10184) 2020-11-30 17:16:44 -05:00
tvuikit.cs [d16-7] [xtro][bindings] Add xtro support for nullability and fix some bindings (#8341) 2020-04-10 12:37:16 -04:00
twitter.cs [d16-7] [src] Remove Classic code from the OpenGL, PassKit, PdfKit, Photos, QTKit, ReplayKit, SearchKit, Security, Social, SpriteKit, SystemConfiguration, Twitter, UserNotification, VideoToolbox, Vision, WebKit and WKWebKit frameworks. (#8816) 2020-06-10 15:38:58 +02:00
uikit.cs [catalyst] Remove extraneous API detected by xtro (#10872) 2021-03-16 16:04:01 -04:00
uniformtypeidentifiers.cs [uniformtypeidentifiers] Update for Xcode 12 beta 3 (#9181) 2020-07-24 13:38:44 -04:00
usernotifications.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
usernotificationsui.cs [usernotificationsui] Update for Xcode 12 beta 3 (#9184) 2020-07-24 15:45:54 -04:00
videosubscriberaccount.cs [Metal] Remove extraneous Mac Catalyst advice. 2020-12-04 10:54:27 +01:00
videotoolbox.cs [videotoolbox] Update attributes and add 12.2 specific key (#9905) 2020-10-16 18:08:40 -04:00
vision.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
visionkit.cs fix header name 2019-08-27 20:25:33 -04:00
watchconnectivity.cs [d16-7] [xtro][bindings] Add xtro support for nullability and fix some bindings (#8341) 2020-04-10 12:37:16 -04:00
watchkit.cs [tests][intro] Detect cases where [Unavailable] is mis-used (#9871) 2020-10-15 08:57:47 -04:00
webkit.cs [d16-7] [src] Remove Classic code from the OpenGL, PassKit, PdfKit, Photos, QTKit, ReplayKit, SearchKit, Security, Social, SpriteKit, SystemConfiguration, Twitter, UserNotification, VideoToolbox, Vision, WebKit and WKWebKit frameworks. (#8816) 2020-06-10 15:38:58 +02:00
wkwebkit.cs [wkwebkit] Add nullability to (generated and manual) bindings (#10561) 2021-02-02 21:42:23 -05:00
xamios.tmpl.csproj [d16-7] [src] Remove the remaining Classic code. (#8820) 2020-06-11 19:25:18 +02:00
xammac.pc.in
xammac.tmpl.csproj [d16-7] [src] Remove the remaining Classic code. (#8820) 2020-06-11 19:25:18 +02:00
xammaccatalyst.tmpl.csproj [src] Build Xamarin.MacCatalyst.dll 2020-12-03 10:43:19 +01:00
xamtvos.tmpl.csproj [d16-7] [src] Remove the remaining Classic code. (#8820) 2020-06-11 19:25:18 +02:00
xamwatch.tmpl.csproj [d16-7] [src] Remove the remaining Classic code. (#8820) 2020-06-11 19:25:18 +02:00
xkit.cs [generator] Do not inline duplicate attributes when processing protocols (#10683) 2021-03-01 08:39:52 -05:00

README.md

Platform assemblies

This directory contains the source code and build logic to build the platform assemblies.

Generator

The generator takes API definition files (most *.cs files in src/) as input, and generates the required binding code.

There is one generator executable, based on IKVM, that's used to generate the binding code for all platforms.

The generator relies heavily on binding attributes; all the binding attributes (that are not in the platform assembly) are compiled into a separate attribute assembly (Xamarin.[iOS|TVOS|WatchOS|Mac].BindingAttributes.dll).

Since the platform assemblies (and thus all the binding attributes assemblies as well) reference each platform's BCL, those assemblies can't be loaded directly into the generator at runtime. In order to not make the generator code too complicated, all the attributes are also compiled into the generator executable, and then instantiated as mock-objects of the real attributes.

The solution generator.sln can be used to debug the generator. There are multiple run configurations (ios, tvos, watchos, mac-unified, mac-full), each configured to execute the generator with the options for the corresponding profile.

Generator diff

Two special make targets can be used to compare the generated code (.g.cs files) changes between two branches.
This is required when making changes to the generator.

  1. Checkout the clean base branch (e.g main's HEAD) the feature (target) branch is based on.
  2. Do make generator-reference in xamarin-macios/src.
  3. Checkout the feature branch that requires the diff.
  4. Do make generator-diff.

Tip: do git diff | pbcopy in xamarin-ios/src/generator-reference and paste that anywhere (gist for instance).

Conditional compilation

These are the symbols defined for each platform assembly:

Assembly Symbols
Xamarin.iOS.dll IPHONE MONOTOUCH IOS
Xamarin.Mac.dll MONOMAC
Xamarin.WatchOS.dll IPHONE MONOTOUCH WATCH XAMCORE_3_0
Xamarin.TVOS.dll IPHONE MONOTOUCH TVOS XAMCORE_3_0

To build core for only one platform, use the platform unique variables IOS, MONOMAC, WATCH or TVOS.

Core Assemblies

Currently 2 variations of the core Xamarin.iOS assembly and 4 variations of the core Xamarin.Mac assembly are produced:

### Xamarin.iOS ###

  • A 32-bit Unified assembly (uses System.nint in place of NSInteger, etc.)
  • A 64-bit Unified assembly (same as 32-bit Unified)

### Xamarin.Mac ###

  • A 32-bit Unified assembly (uses System.nint in place of NSInteger, etc.)
  • A 64-bit Unified assembly (same as 32-bit Unified)
  • A 32-bit Full assembly (uses System.nint in place of NSInteger, and references the v4.5 BCL)
  • A 64-bit Full assembly (same as 32-bit Full)

Classic Assemblies

The 32-bit Classic assemblies for iOS and Mac are no longer built and are now copied from the macios-binaries module.

The Classic assembly are copied in, tested, and shipped in order to not break customer code. Customers can choose to continue using this assembly, but we will encourage customers to move to our Unified assemblies.

The Unified assemblies provides many improvements and support for 64-bit iOS and OS X APIs.

Native Types

Most native APIs use NSInteger (and related) typedefs. On 32-bit systems, these are 32-bit underlying types; on 64-bit systems, these are 64-bit underlying types.

Historically Xamarin.iOS and Xamarin.Mac have bound these explicitly as 32-bit (System.Int32, etc). With the move to 64-bit that has been ongoing in OS X for a few versions (10.6/Snow Leopard) and more recently with the anouncement of 64-bit support in iOS, we needed a solution to support both worlds.

We have introduced 6 new types to make this possible:

Native Type Legacy (32-bit) CIL Type New (32/64-bit) CIL Type
NSInteger System.Int32 System.nint
NSUInteger System.UInt32 System.nuint
CGFloat System.Single System.nfloat
CGSize System.Drawing.SizeF CoreGraphics.CGSize
CGPoint System.Drawing.PointF CoreGraphics.CGPoint
CGRect System.Drawing.RectangleF CoreGraphics.CGRect

In the Classic assembly, the System.Drawing types are backed by the 32-bit System.Single type. In the Unified assemblies, the CoreGraphics types are backed by 32/64-bit System.nfloat type.

Enums

Enums are handled specially. Most native enums are backed by NSInteger or NSUInteger. Unfortunately in C#, the backing type of an enum may only be one of the primitive integral C# types. Thus, an enum cannot be backed by System.nint or System.nuint.

The convention is to make all enums that are backed natively by NSInteger or NSUInteger backed by a 64-bit primitive integral C# type (long or ulong) and then annotated with the [Native] attribute. This ensures that API is identical between the 32/64-bit assemblies but also hints to the code generator that Objective-C runtime calls should first cast the enum to a System.nint or System.nuint.

Native Enum Definition

typedef NS_ENUM(NSUInteger, NSTableViewDropOperation) {
	NSTableViewDropOn,
	NSTableViewDropAbove
};

Managed Enum Definition

[Native]
public enum NSTableViewDropOperation : nuint {
	DropOn,
	DropAbove
}

When dealing with enums in P/Invokes, one must never pass such an enum directly. The P/Invoke signature should take a System.nint or System.nuint and a wrapper API must cast the enum manually (as mentioned above, this is handled automatically for Objective-C APIs by the generator).

Objective-C Binding

interface Fooable {
	[Export ("foo:")]
	void Foo (NSTableViewDropOperation dropOp);
}

C Binding

public partial class Fooable {
	[DllImport ("foo")]
	static extern void Foo (nuint dropOp);

	public static void Foo (NSTableViewDropOperation dropOp)
	{
		Foo ((nuint)(ulong)dropOp);
	}
}

#define

There are a few preprocessor variables that can be used within sources for conditional compilation:

Variable Description
MONOMAC defined for Xamarin.Mac builds; not defined for Xamarin.iOS
ARCH_32 defined when the target architecture is 32-bit; this will be defined for Classic and the Unified 32-bit assemblies
ARCH_64 defined when the target architecture is 64-bit; this will be defined only for the Unified 64-bit assembly
COREBUILD defined when building the intermediate core.dll assembly against which the code generator will produce bindings

For example, to build an API for all of iOS but only 64-bit OS X (Xamarin.Mac):

#if !MONOMAC || (MONOMAC && ARCH_64)
...
#endif