xamarin-macios/src
Alex Soto c2d903273c [CoreLocation] Update to Xcode 9 Beta 1 (#2224)
* [CoreLocation] Update to Xcode 9 Beta 1

* [CoreLocation] Inline CLGeocoder_ContactsAdditions so we get Async versions
2017-06-19 12:23:03 -05:00
..
AVFoundation Remove duplication code from merge 2017-03-28 13:14:38 -05:00
AVKit merge xcode8.2 into master 2016-12-12 21:26:23 -05:00
Accelerate Build the platform assemblies. 2016-04-24 14:47:26 -04:00
Accounts Build the platform assemblies. 2016-04-24 14:47:26 -04:00
AddressBook Build the platform assemblies. 2016-04-24 14:47:26 -04:00
AddressBookUI Build the platform assemblies. 2016-04-24 14:47:26 -04:00
AppKit [AppKit] We require Application.Init always. 2017-05-09 08:12:39 +02:00
AssetsLibrary Build the platform assemblies. 2016-04-24 14:47:26 -04:00
AudioToolbox Add comments for reviewed usage of pinned GCHandles. (#1290) 2016-12-02 14:13:59 +01:00
AudioUnit [audiotoolbox] Remove null check on sourceAudioUnit (#1675) 2017-03-28 09:29:56 -05:00
CFNetwork Fix a few culture-aware string comparisons to be culture-unaware. (#1753) 2017-02-23 09:56:14 -05:00
CallKit [Callkit] Update CallKit bindings to Xcode 8 Beta 3 (#422) 2016-07-19 08:04:15 -04:00
Carbon Build the platform assemblies. 2016-04-24 14:47:26 -04:00
ClockKit [clockkit][watchos] Update for beta 1-3 (#459) 2016-07-22 17:13:49 -04:00
CloudKit [watchos][cloudkit] Update for beta 1 (#1659) 2017-03-28 09:29:49 -05:00
Contacts [Contacts] Update to Xcode 9 Beta 1 (#2209) 2017-06-12 14:49:14 -05:00
CoreAnimation [coreanimation] Add CAScroll smart enum (to replace NSString constants) (#1487) 2017-01-13 10:41:01 -05:00
CoreBluetooth [Mac] CoreBluetooth low hanging fruit bindings (#947) 2016-10-05 11:10:32 -05:00
CoreData [CoreData] Update the api for Xcode 8 and add some small fixes in general. (#505) 2016-08-01 15:50:01 -04:00
CoreFoundation [cfnetwork] Update for iOS 10.3 beta 1 (#1561) 2017-03-28 09:09:01 -05:00
CoreGraphics [coregraphics] Add missing [Flags] on CGGradientDrawingOptions. Fixes #33997 (#1800) 2017-03-01 07:15:32 +01:00
CoreImage [tests] Fix intro failures reported from iOS 6.1 and 7.1 devices (#629) 2016-08-18 23:02:42 -04:00
CoreLocation [watchos] Remove several [Obsolete] API when alternatives exists (#742) 2016-09-02 10:02:29 -04:00
CoreMedia Add comments for reviewed usage of pinned GCHandles. (#1290) 2016-12-02 14:13:59 +01:00
CoreMidi [CoreMidi] Make FindByUniqueId public (#1218) 2016-11-21 10:30:56 +01:00
CoreMotion Build the platform assemblies. 2016-04-24 14:47:26 -04:00
CoreServices [XM] Remove TODO from LaunchServices.cs because LSOpenFromURLSpec is deprecated (#930) 2016-09-30 17:13:33 -04:00
CoreSpotlight [corespotlight] Update for iOS 10 beta 1 (#344) 2016-07-04 19:18:46 -04:00
CoreTelephony [coretelephony] Add deprecations, in favour of CallKit, for iOS 10 beta 1 (#279) 2016-06-27 19:55:12 -04:00
CoreText [CoreText] CTParagraphStyle uses the incorrect float return type. Fixes bug 54148. (#1975) 2017-04-10 08:24:25 +02:00
CoreVideo [CoreVideo] Update to iOS 10.3 beta 1 2017-03-28 09:13:31 -05:00
CoreWlan [corewlan] Added CWWiFiClient class. (#853) 2016-09-22 09:39:57 -04:00
Darwin [Darwin] Fix kqueue/kevent bindings to actually work. (#1871) 2017-03-15 07:50:05 +01:00
EventKit [EventKit] Fix a few issues found with iOS 11 (#2198) 2017-06-10 00:50:01 -07:00
EventKitUI Build the platform assemblies. 2016-04-24 14:47:26 -04:00
ExternalAccessory [tvos][externalaccessory] Enable framework on platform (#470) 2016-07-24 10:44:19 -04:00
FinderSync [Mac] Add support for os x extensions (#83) 2016-05-25 17:20:33 -04:00
Foundation [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
GLKit [glkit] Small update for iOS 10 beta 1 (#351) 2016-07-06 11:19:21 -04:00
GameController [tests] Fix introspection tests running on an iOS 9.3 device (#380) 2016-07-12 09:46:41 -04:00
GameKit [Mac] Activate gamekit bindings shared with iOS (#924) 2016-09-30 09:13:17 -05:00
GameplayKit [GameplayKit] Avoid generic GKObstacleGraph leak into monotouch.dll (#734) 2016-09-01 14:29:49 -04:00
HealthKit [healthkit] Update for iOS 10 GM (#800) 2016-09-07 18:19:19 -04:00
HomeKit [homekit] Update for xcode8.3 beta 3 (breaking change) (#1739) 2017-03-28 09:51:01 -05:00
ImageIO [imageio] Update for beta 2 (#379) 2016-07-12 16:21:30 -04:00
ImageKit Build the platform assemblies. 2016-04-24 14:47:26 -04:00
InputMethodKit Build the platform assemblies. 2016-04-24 14:47:26 -04:00
Intents [Intents] Updated to Xcode 8.3 Beta1 and Beta2 (#1686) 2017-03-28 14:40:10 -05:00
JavaScriptCore Build the platform assemblies. 2016-04-24 14:47:26 -04:00
LocalAuthentication [LocalAuthentication] Update to Xcode8.3 beta2 Mac (#1688) 2017-03-28 09:30:41 -05:00
MapKit [mapkit] Small update for iOS 10 beta 1 (#311) 2016-06-28 23:19:15 -07:00
MediaAccessibility Build the platform assemblies. 2016-04-24 14:47:26 -04:00
MediaLibrary Build the platform assemblies. 2016-04-24 14:47:26 -04:00
MediaPlayer [mediaplayer] Update for iOS 10.3 beta 1 (#1627) 2017-03-28 09:24:06 -05:00
MediaToolbox Fix FetchString change from PR335, other (wrong) cases and reduce code duplication (#389) 2016-07-19 08:44:59 -04:00
MessageUI [messageui] Update for iOS 10 beta 1 & 3 (#431) 2016-07-20 08:12:46 -04:00
Metal [generator] Remove internal *Wrapper.ctor(IntPtr) constructors (#1446) 2017-01-09 08:09:19 -05:00
MetalKit [metalkit] Add new API from both beta 1 and beta 2 (#383) 2016-07-12 23:10:55 -04:00
MetalPerformanceShaders [MetalPerformanceShaders] Fix MPSImageHistogramInfo layout. 2016-10-13 17:35:49 +02:00
MobileCoreServices Fix inverted null check in MobileCoreServices (#1455) 2017-01-09 12:55:57 -06:00
ModelIO [modelio] Re-add original MDLMesh.CreateBox signature (#1935) 2017-03-29 15:00:33 -04:00
MultipeerConnectivity [tvos][multipeerconnectivity] Decorate API with [TV (10,0)] (#473) 2016-07-25 08:15:41 -04:00
NativeTypes Use Visual Studio instead of Xamarin Studio. (#1972) 2017-04-11 08:13:34 +02:00
NetworkExtension [generator] Remove [Async] members from [Model] classes, fixes bug 53076. 2017-03-25 00:35:36 -06:00
NewsstandKit Build the platform assemblies. 2016-04-24 14:47:26 -04:00
NotificationCenter [notificationcenter] Update for iOS 10 beta 1 (#323) 2016-07-04 19:17:28 -04:00
ObjCRuntime [registrar] Detect more invalid characters in selectors so that we can report better errors. Fixes #55568. (#2154) 2017-06-02 16:37:26 +02:00
OpenGL [macos] Allow passing null to CGLContext.CurrentContext. Fixes #53273 2017-03-16 11:34:53 -08:00
OpenGLES [OpenTK] Rework makefiles to avoid zero-length pdbs. (#2136) 2017-05-29 14:02:57 +02:00
PassKit merge xcode8.2 into master 2016-12-12 21:26:23 -05:00
PdfKit Build the platform assemblies. 2016-04-24 14:47:26 -04:00
Photos [Photos] Update to iOS 10.3 beta 1 2017-03-28 09:08:24 -05:00
PhotosUI [tvos][photosui] Enable on tvOS (new in beta 4) (#576) 2016-08-09 08:17:47 -04:00
PrintCore Add missing PrintCore API PMGetAdjustedPaperRect (#1163) 2016-11-10 14:07:59 -06:00
QTKit Build the platform assemblies. 2016-04-24 14:47:26 -04:00
QuickLook Build the platform assemblies. 2016-04-24 14:47:26 -04:00
QuickLookUI Build the platform assemblies. 2016-04-24 14:47:26 -04:00
ReplayKit [ReplayKit] Fix RPBroadcastConfiguration.VideoCompressionProperties to have the right type and provide a strongly typed version as well. (#806) 2016-09-09 11:31:57 -04:00
SafariServices [XM] More xtro-sharpie fixes (#682) 2016-08-26 12:32:45 -05:00
SceneKit [generator] Remove [Async] members from [Model] classes, fixes bug 53076. 2017-03-25 00:35:36 -06:00
ScriptingBridge Build the platform assemblies. 2016-04-24 14:47:26 -04:00
SearchKit Fix FetchString change from PR335, other (wrong) cases and reduce code duplication (#389) 2016-07-19 08:44:59 -04:00
Security [Security] Add new ciphers from iOS 11. (#2199) 2017-06-09 23:26:05 -07:00
Social [XM] Fix xtro-sharpie issues (#620) 2016-08-17 20:11:05 -04:00
SpriteKit Replace pinned GCHandles with unsafe code. (#1286) 2016-12-02 09:37:04 +01:00
StoreKit [StoreKit] Update to iOS 10.3 beta 1 2017-03-28 09:12:33 -05:00
System.ComponentModel Build the platform assemblies. 2016-04-24 14:47:26 -04:00
SystemConfiguration [systemconfiguration] Small update for iOS 10 beta 1 (#312) 2016-06-28 23:18:44 -07:00
TVMLKit Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
TVServices Build the platform assemblies. 2016-04-24 14:47:26 -04:00
Twitter Build the platform assemblies. 2016-04-24 14:47:26 -04:00
UIKit [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
UserNotifications [UserNotifications] Fix xtro test results and bug in UNNotificationResponse (#455) 2016-07-22 08:11:28 -04:00
VideoSubscriberAccount merge xcode8.2 into master 2016-12-12 21:26:23 -05:00
VideoToolbox [VideoToolbox] Updated to Xcode 8.3 Beta 1 2017-03-28 09:29:36 -05:00
WKWebKit [XM] Fix xtro-sharpie issues (#620) 2016-08-17 20:11:05 -04:00
WatchConnectivity Build the platform assemblies. 2016-04-24 14:47:26 -04:00
WatchKit Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
WebKit Bind new mac-only APIs from xcode 8.3 (#1602) 2017-03-28 09:22:20 -05:00
iAd [iAd] Update to iOS 10.3 beta 1 2017-03-28 09:12:58 -05:00
.gitignore [generator] Add a project file for the IKVM-based generator. 2017-03-09 12:47:57 +01:00
AssemblyInfo.cs.in [ObjCRuntime] Only use a 'BundleFinder' class when we don't have another internal type we can use. Fixes #56255. (#2099) 2017-05-16 20:50:10 +02:00
Compat.iOS.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
Compat.mac.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
Constants.iOS.cs.in [IntentsUI] Add IntentsUI framework from Xcode 8 b2 (#400) 2016-07-14 20:42:48 -04:00
Constants.mac.cs.in merge xcode8.2 into master 2016-12-12 21:26:23 -05:00
Constants.tvos.cs.in [tvos][videotoolbox] Enable VideoToolbox.framework on tvOS (#1626) 2017-03-28 09:22:10 -05:00
Constants.watch.cs.in [Intents] Updated to Xcode 8.3 Beta1 and Beta2 (#1686) 2017-03-28 14:40:10 -05:00
Makefile [Do not merge yet] Update to mono 2017-04 branch (#1960) 2017-05-29 18:39:29 +02:00
Makefile.generator [generator] Keep [NotImplemented] info so it is usable in 3rd party bindings. Fixes bug 52664 (#2131) 2017-05-25 14:42:25 -05:00
MonoNativeFunctionWrapperAttribute.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
MonoPInvokeCallbackAttribute.cs [tests][intro] Add validation for methods decorated with [MonoPInvokeCallback] (#1751) 2017-03-04 19:40:35 -05:00
MonoTouch.Dialog-1.templ.csproj [src] Make project templates MSBuild-compatible. 2017-01-05 13:09:29 +01:00
MonoTouch.Dialog-1.tvos.templ.csproj [src] Make project templates MSBuild-compatible. 2017-01-05 13:09:29 +01:00
MonoTouch.NUnitLite.templ.csproj [src] Make project templates MSBuild-compatible. 2017-01-05 13:09:29 +01:00
MonoTouch.NUnitLite.tvos.templ.csproj [src] Make project templates MSBuild-compatible. 2017-01-05 13:09:29 +01:00
MonoTouch.NUnitLite.watchos.templ.csproj [src] Make project templates MSBuild-compatible. 2017-01-05 13:09:29 +01:00
Obsoletes.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
OpenTK.dll.sources Build the platform assemblies. 2016-04-24 14:47:26 -04:00
README.md Add a section about the generator to the README, and document some code. 2017-03-09 12:47:57 +01:00
Version.in Build the platform assemblies. 2016-04-24 14:47:26 -04:00
accelerate.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
accounts.cs [Accounts] Update to Xcode 9 Beta 1 (#2205) 2017-06-13 18:03:36 -05:00
addressbook.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
addressbookui.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
adsupport.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
appkit.cs [macos][appkit] Provide a better API for NSWindow.EndSheet (and obsolete the existing one) (#2100) 2017-05-17 09:31:12 +02:00
assetslibrary.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
audiotoolbox.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
audiounit.cs Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
avfoundation.cs [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
avkit.cs [AVKit] Update to Xcode 9 beta 1 (#2206) 2017-06-13 18:02:57 -05:00
bmac [generator] Use target framework to determine the platform. (#1690) 2017-02-17 14:53:58 -05:00
bmac.csproj Build the platform assemblies. 2016-04-24 14:47:26 -04:00
bmac.ikvm [generator] Build an IKVM-based generator (bgen.exe). 2017-03-09 12:47:57 +01:00
btouch-native.in [generator] Use target framework to determine the platform. (#1690) 2017-02-17 14:53:58 -05:00
btouch.cs [generator] Simplify code a little bit. (#2165) 2017-06-02 16:30:52 +02:00
btouch.csproj Build the platform assemblies. 2016-04-24 14:47:26 -04:00
btouch.in [generator] Use target framework to determine the platform. (#1690) 2017-02-17 14:53:58 -05:00
bwatch.in Build the platform assemblies. 2016-04-24 14:47:26 -04:00
callkit.cs [CallKit] Update to Xcode 9 Beta 1 (#2207) 2017-06-13 18:01:58 -05:00
cfnetwork.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
clockkit.cs [ClockKit] Update to Xcode 9 Beta 1 (#2208) 2017-06-13 17:59:31 -05:00
cloudkit.cs [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
contacts.cs [Contacts] Update to Xcode 9 Beta 1 (#2209) 2017-06-12 14:49:14 -05:00
contactsui.cs [ContactsUI] Unify ContactsUI.Mac into ContactsUI. (#1409) 2017-01-02 09:01:13 +01:00
coreanimation.cs [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
coreaudiokit.cs [CoreAudioKit] Update to Xcode 9 Beta 1 (#2212) 2017-06-12 14:48:37 -05:00
corebluetooth.cs [Mac] CoreBluetooth low hanging fruit bindings (#947) 2016-10-05 11:10:32 -05:00
coredata.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
corefoundation.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
coregraphics.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
coreimage.cs [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
corelocation.cs [CoreLocation] Update to Xcode 9 Beta 1 (#2224) 2017-06-19 12:23:03 -05:00
coremedia.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
coremidi.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
coremotion.cs [CoreMotion] Update to Xcode 9 Beta 1 (#2225) 2017-06-16 20:50:11 -05:00
coreservices.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
corespotlight.cs Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
coretelephony.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
coretext.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
corevideo.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
corewlan.cs [corewlan] Added CWWiFiClient class. (#853) 2016-09-22 09:39:57 -04:00
custom-make.sh Build the platform assemblies. 2016-04-24 14:47:26 -04:00
error.cs [generator] Fix bug 52573 - Add nowarn and warnaserror to btouch/bmac (#1882) 2017-03-22 07:52:24 -05:00
eventkit.cs [EventKit] Fix a few issues found with iOS 11 (#2198) 2017-06-10 00:50:01 -07:00
eventkitui.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
externalaccessory.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
findersync.cs Bind FIFinderSync correctly (has both class and protocol with same name) (#145) 2016-06-08 14:03:53 +02:00
foundation.cs [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
frameworks.sources [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
gamecontroller.cs Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
gamekit.cs [test][introspection] Remove check for void return type on AsyncCandidates test (#1909) 2017-03-24 11:02:07 -06:00
gameplaykit.cs [GameplayKit] Update from Xcode8 Beta 1 to Beta 6 (#689) 2016-08-30 15:32:46 -04:00
generate-frameworks.csharp [generator] Generate the list of frameworks in each platform based on the information in the makefiles. (#1687) 2017-02-13 18:01:16 +01:00
generator-attribute-manager.cs [generator] Improve error reporting for api definition that uses the deprecated availability attributes. Fixes #57070. (#2166) 2017-06-02 18:31:10 +02:00
generator-attributes.cs [generator] Keep [NotImplemented] info so it is usable in 3rd party bindings. Fixes bug 52664 (#2131) 2017-05-25 14:42:25 -05:00
generator-diff.mk [src] Don't compare code generated/processed by pmcs. (#1717) 2017-02-20 16:03:30 +01:00
generator-enums.cs [generator] Add IKVM usings pointing to IKVM types instead of reflection types. 2017-03-09 12:47:57 +01:00
generator-filters.cs [generator] Add IKVM usings pointing to IKVM types instead of reflection types. 2017-03-09 12:47:57 +01:00
generator-ikvm.csproj.in [generator] Improve error reporting for api definition that uses the deprecated availability attributes. Fixes #57070. (#2166) 2017-06-02 18:31:10 +02:00
generator-ikvm.sln [generator] Add a project file for the IKVM-based generator. 2017-03-09 12:47:57 +01:00
generator-typemanager.cs [generator] Simplify code a little bit. (#2165) 2017-06-02 16:30:52 +02:00
generator.cs [generator] Improve error reporting for api definition that uses the deprecated availability attributes. Fixes #57070. (#2166) 2017-06-02 18:31:10 +02:00
generator.csproj [generator] Have WrapAttribute generate virtual members (#1707) 2017-02-16 17:24:40 -06:00
generator.sln Build the platform assemblies. 2016-04-24 14:47:26 -04:00
glkit.cs [tvos] Add missing attributes to get introspection to works on tvOS 9.0, 9.1, 9.2 and 10.0 (#798) 2016-09-07 15:18:20 -04:00
global.css Build the platform assemblies. 2016-04-24 14:47:26 -04:00
healthkit.cs Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
healthkitui.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
homekit.cs [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
iad.cs [generator] Fixes bug 52570 - [generator] warn when [Static] is used in a [Category] (#1862) 2017-03-14 13:03:13 -06:00
imageio.cs [imageio] Re-enable fixed kCGImagePropertyExifSubsecTimeOriginal (#1728) 2017-03-28 09:46:01 -05:00
imagekit.cs [XM] Fix XM bindings to include Notifications and update test (#1307) 2016-12-06 12:29:50 -06:00
inputmethodkit.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
intents.cs [Intents] Remove breaking change in INPreferences get back DefaultCtor (#1932) 2017-03-29 08:06:57 -05:00
intentsui.cs [intentsui] Simplify bindings for INImage_IntentsUI (#700) 2016-08-29 16:48:13 -04:00
javascriptcore.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
localauthentication.cs [LocalAuthentication] Update to iOS 10.3 beta 1 2017-03-28 09:14:10 -05:00
mapkit.cs Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
mediaaccessibility.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
medialibrary.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
mediaplayer.cs Fix more merge issues 2017-03-28 15:10:38 -05:00
mediatoolbox.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
messages.cs merge xcode8.2 into master 2016-12-12 21:26:23 -05:00
messageui.cs [messageui] Update for iOS 10 beta 1 & 3 (#431) 2016-07-20 08:12:46 -04:00
metal.cs [metal] Add new MTL* API from Xcode 8.3 beta1 (#1666) 2017-03-28 09:28:53 -05:00
metalkit.cs Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
metalperformanceshaders.cs [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
mobilecoreservices.cs [tvos] Add missing attributes to get introspection to works on tvOS 9.0, 9.1, 9.2 and 10.0 (#798) 2016-09-07 15:18:20 -04:00
modelio.cs [ModelIO] Fix API warning about exposing models. 2017-03-28 18:07:08 -05:00
monotouch-dialog.sources Build the platform assemblies. 2016-04-24 14:47:26 -04:00
multipeerconnectivity.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
networkextension.cs Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
newsstandkit.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
notificationcenter.cs [generator] Fixes bug 52570 - [generator] warn when [Static] is used in a [Category] (#1862) 2017-03-14 13:03:13 -06:00
opengl.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
opengles.cs [opengles] Update to iOS 10.3 beta 1 (#1576) 2017-03-28 09:12:08 -05:00
opentk.csproj Build the platform assemblies. 2016-04-24 14:47:26 -04:00
passkit.cs [passkit] Adjust beta 2 typo fix for PassKit's PKPaymentNetwork[i|I]D[Credit]. 2017-03-28 18:14:21 -05:00
pdfkit.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
photos.cs Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
photosui.cs Merge branch 'cycle8' into xcode8 2016-09-06 18:46:23 -04:00
pmcs.in Build the platform assemblies. 2016-04-24 14:47:26 -04:00
printcore.cs [PrintCore] Add first pass of bindings (#1067) 2016-11-02 13:52:47 -05:00
pushkit.cs [pushkit] Small update for iOS 10 beta 1 (#347) 2016-07-04 22:54:38 -04:00
qtkit.cs [XM] Fix XM bindings to include Notifications and update test (#1307) 2016-12-06 12:29:50 -06:00
quartzcomposer.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
quicklook.cs [quicklook] Add new bindings for iOS 10 beta 1 (#272) 2016-06-26 10:04:20 -04:00
quicklookUI.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
replaykit.cs merge xcode8.2 into master 2016-12-12 21:26:23 -05:00
rosetta.pl Build the platform assemblies. 2016-04-24 14:47:26 -04:00
safariservices.cs Bind new mac-only APIs from xcode 8.3 (#1602) 2017-03-28 09:22:20 -05:00
scenekit.cs Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
scriptingbridge.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
searchkit.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
security.cs [security] Add new API for beta 1 (#1682) 2017-03-28 09:30:12 -05:00
social.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
speech.cs [audit] Add comments on two correct, but uncommon, binding patterns (#761) 2016-09-04 12:40:45 -04:00
spritekit.cs [spritekit] Update for Xcode 8.3 beta 1 - part 3 (#1705) 2017-03-28 09:43:54 -05:00
storekit.cs [macos][storekit] SKDownload::transaction was added to macOS (10.11) (#1702) 2017-03-28 09:38:54 -05:00
system-drawing.sources Build the platform assemblies. 2016-04-24 14:47:26 -04:00
systemconfiguration.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
touch-unit.sources [src] Bump Touch.Unit dependency to get HttpTextWriter addition. (#88) 2016-05-26 15:34:47 +02:00
tvmlkit.cs Add some missing *Async version for existing API (#1527) 2017-03-07 13:55:37 -05:00
tvservices.cs Build the platform assemblies. 2016-04-24 14:47:26 -04:00
twitter.cs Remove unnecessary public from binding definition files 2016-09-20 09:20:06 -05:00
uikit.cs [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191) 2017-06-10 00:07:11 -07:00
usernotifications.cs [UserNotifications] Rename method to have a verb. (#784) 2016-09-07 08:22:51 -04:00
usernotificationsui.cs [UserNotifications] Fix xtro test results and bug in UNNotificationResponse (#455) 2016-07-22 08:11:28 -04:00
videosubscriberaccount.cs merge xcode8.2 into master 2016-12-12 21:26:23 -05:00
videotoolbox.cs [VideoToolbox] Updated to Xcode 8.3 Beta 1 2017-03-28 09:29:36 -05:00
watchconnectivity.cs [WatchConnectivity] Update to Xcode 8.3 Beta 5 (#1854) 2017-03-28 10:12:09 -05:00
watchkit.cs [WatchKit] Update to iOS 10.3 beta 1 2017-03-28 09:14:21 -05:00
webkit.cs [registrar] Add support for specifying that a protocol changed informal status in a certain SDK. Fixes #43780 and #48311. (#2130) 2017-05-29 16:15:54 +02:00
wkwebkit.cs [WebKit] Update to iOS 10.3 beta 1 2017-03-28 09:14:32 -05:00
xamios.tmpl.csproj [src] Make project templates MSBuild-compatible. 2017-01-05 13:09:29 +01:00
xammac.pc.in Build the platform assemblies. 2016-04-24 14:47:26 -04:00
xammac.tmpl.csproj Fixes missing Mono.Security dependency 2017-03-14 11:47:06 +01:00
xamtvos.tmpl.csproj [src] Make project templates MSBuild-compatible. 2017-01-05 13:09:29 +01:00
xamwatch.tmpl.csproj [src] Make project templates MSBuild-compatible. 2017-01-05 13:09:29 +01: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-ikvm.sln can be used to debug the generator. There are multiple run configurations (ios-classic, ios-unified, tvos, watchos, mac-classic, mac-unified, mac-full), each configured to execute the generator with the options for the corresponding profile.

Conditional compilation

These are the symbols defined for each platform assembly:

Assembly Symbols
monotouch.dll IPHONE MONOTOUCH IOS
Xamarin.iOS.dll IPHONE MONOTOUCH IOS XAMCORE_2_0
XamMac.dll MONOMAC XAMARIN_MAC
Xamarin.Mac.dll MONOMAC XAMARIN_MAC XAMCORE_2_0
Xamarin.WatchOS.dll IPHONE MONOTOUCH WATCH XAMCORE_2_0 XAMCORE_3_0
Xamarin.TVOS.dll IPHONE MONOTOUCH TVOS XAMCORE_2_0 XAMCORE_3_0

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

Core Assemblies

Currently 3 variations of the core Xamarin.iOS assembly and 5 variations of the core Xamarin.Mac assembly are produced:

### Xamarin.iOS ###

  • A 32-bit Classic assembly (uses System.Int32 in place of NSInteger, etc.)
  • 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 Classic assembly (uses System.Int32 in place of NSInteger, etc.)
  • 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)

The Classic assembly will exist 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.

When binding APIs, it is important to use the new types (nint, CGRect, etc), even though they do not exist in the Classic assembly.

Before compilation, all source code is preprocessed by pmcs, an internal tool for performing C#-aware preprocessing.

For the Classic assembly, instances of the new types are translated to the legacy types. For the Unified assemblies, these types are not translated, and the native types are included in the build.

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.

However, this also presents a problem of keeping the enum 32-bit on the Classic assemblies. Therefore, enums should actually be backed in source code nuint_compat_int. This will be preprocessed to int on the Classic assembly and ulong on the 32/64-bit assemblies.

Native Enum Definition

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

Managed Enum Definition

[Native]
public enum NSTableViewDropOperation : nuint_compat_int {
	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);
	}
}

pmcs

pmcs is a wrapper around a regular mcs invocation. In addition to any regular arguments passed to mcs, pmcs accepts instructions on how to translate some tokens from one value to another. This is used to translate instances of native types in source code to legacy types for the 32-bit Classic assembly.

pmcs lives in the xamarin-macios repository and is used for both Xamarin.Mac and Xamarin.iOS. Explore pmcs documentation.

#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
XAMCORE_2_0 defined for the Unified assemblies; this should be used for most conditions dealing with API differences between Unified and Classic assemblies
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