Граф коммитов

977 Коммитов

Автор SHA1 Сообщение Дата
Alex Soto 3dbde10fac Merge pull request #752 from rolfbjarne/xcode8-videosubscriberaccount-review
[VideoSubscriberAccount] Remove 'virtual' from methods that shouldn't be overridden
2016-09-02 14:30:55 -05:00
Alex Soto 5b47c357a2 Merge pull request #751 from rolfbjarne/xcode8-externalaccessory-review
[Suggestion][ExternalAccessory] Remove EAWiFiUnconfiguredAccessoryBrowser from tvOS.
2016-09-02 13:53:54 -05:00
Rolf Bjarne Kvinge 5b0fb31baa [VideoSubscriberAccount] Remove 'virtual' from methods that shouldn't be overridden.
Methods that override a virtual method that doesn't have an `[Export]`
attribute will not be called by Objective-C, so make those methods non-virtual
to prevent confusion.
2016-09-02 20:31:35 +02:00
Rolf Bjarne Kvinge c2284c80ea [ExternalAccessory] Remove EAWiFiUnconfiguredAccessoryBrowser from tvOS.
Remove EAWiFiUnconfiguredAccessoryBrowser from the tvOS API,
because it's unusable (no way to create instances, no static methods,
not even any usable instance methods).
2016-09-02 18:11:25 +02:00
Sebastien Pouliot 9838930b51 [coreanimation] Provide better API for CATransform3D.Invert. Fixes #43058 (#748)
Obsolete the version requiring a non used argument and add one accepting
no argument.

https://bugzilla.xamarin.com/show_bug.cgi?id=43058
2016-09-02 10:42:54 -04:00
Alex Soto 4c0cd93746 Merge pull request #744 from spouliot/intents-nullable-bool
[intents] Use nicer `bool?` instead of NSNumber in the API
2016-09-02 09:27:39 -05:00
Sebastien Pouliot 4c09e91f91 [watchos] Remove several [Obsolete] API when alternatives exists (#742) 2016-09-02 10:02:29 -04:00
Sebastien Pouliot 9a648075c2 [watchos][audiotoolbox] Remove two unrequired types: AudioBuffer and CABarBeatTime (#743) 2016-09-02 08:29:38 -04:00
Sebastien Pouliot 4c810f4e4b [intents] Use nicer `bool?` instead of NSNumber in the API
Note: using [Wrap] on the constructors generated incorrect (and non
compilable) code. Ideally this will be moved into the generator in
a future release and we could make the `bool?` properties virtual
then (it's not a breaking change to do so)
2016-09-01 21:27:37 -04:00
Sebastien Pouliot edc600dd1d [photos] Add an async version of PHPhotoLibrary.RequestAuthorization (#741)
reference:
https://trello.com/c/ZLOvAFWp/232-avcam-rawexpose-phphotolibrary-requestauthorizationasync
2016-09-01 17:42:00 -04:00
Sebastien Pouliot 93c3124a4b [usernotifications] Provide helpers UNNotificationResponse to ease comparison, avoid a [Advice] and allow internalizing some fields (#740) 2016-09-01 16:55:29 -04:00
Alex Soto 71922b12a0 Merge pull request #739 from dalexsoto/callkit
[CallKit] Removing CXCallDirectoryProvider.BeginRequest no need for it
2016-09-01 14:59:27 -05:00
Sebastien Pouliot e17f176607 Merge pull request #738 from spouliot/generator-wrap-valuetype
[generator] Let us use [Wrap] on properties returning value types (e.g. bool)
2016-09-01 15:22:11 -04:00
Alex Soto 4ddf259335 Merge pull request #737 from spouliot/foundation-securecoding-fix
[foundation] Fix typo where INSSecureCoding and not NSSecureCoding was used on NSUnitElectricCharge
2016-09-01 14:16:33 -05:00
Alex Soto 3fb7a0871e [CallKit] Removing CXCallDirectoryProvider.BeginRequest no need for it
Per apple docs[1] BeginRequestWithExtensionContext is meant to be a hook
and not to be called so exposing a non virtual version of it is useless

[1]: https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSExtensionRequestHandling_Protocol/
2016-09-01 13:48:13 -05:00
Sebastien Pouliot 4220714485 Merge branch 'cycle8' into xcode8 2016-09-01 14:38:23 -04:00
Sebastien Pouliot 1a064bcc8d Bump [watch-]mono for Mono.Data.Sqlite fix on old iOS versions. Fixes #41723 (#736)
reference:
https://bugzilla.xamarin.com/show_bug.cgi?id=41723
2016-09-01 14:31:28 -04:00
Alex Soto 6697fd0db9 [GameplayKit] Avoid generic GKObstacleGraph leak into monotouch.dll (#734)
This fixes test-mtouch test failure
2016-09-01 14:29:49 -04:00
Sebastien Pouliot 7f5df5fbaf [generator] Let us use [Wrap] on properties returning value types (e.g. bool)
The current code would not generate code that compiles. e.g.

	[Wrap ("ActionIdentifier == UNNotificationActionIdentifier.Default")]
	bool IsDefaultAction { get; }
2016-09-01 14:23:38 -04:00
Sebastien Pouliot 7baf3a2442 [foundation] Fix typo where INSSecureCoding and not NSSecureCoding was used on NSUnitElectricCharge 2016-09-01 14:17:52 -04:00
Jeffrey Stedfast ee8eac1237 [msbuild] Only include *.dylibs from the app bundle for codesigning (i.e. not from child PlugIns) (#725)
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=43890
2016-09-01 11:43:26 -04:00
Alex Rønne Petersen 7698a0ba72 Bump Mono to 7a0dc52051d31d409e69f88d23a970766433e085. 2016-09-01 13:04:52 +02:00
Sebastien Pouliot 3428fdc400 [tests] Update monotouch-test to add version checks when executing on older iOS versions. Fixes #43920 (#729)
Tested with iOS 9.3, 8.4 and 6.1.

https://bugzilla.xamarin.com/show_bug.cgi?id=43920
2016-08-31 23:08:54 -04:00
Sebastien Pouliot dee28db07f [watchos] Remove AudioUnit from profile (#728)
The types were, finally, not needed once the final AVFoundation (and
AudioToolkit / CoreAudio) API was completed.
2016-08-31 21:40:09 -04:00
Alex Soto ba6b415fb2 Merge pull request #727 from spouliot/intro-fix-ios84
[tests][intro] Fix availability attributes to match reality (not headers) down to iOS 8.4
2016-08-31 17:54:45 -05:00
Sebastien Pouliot d9c309b85d [modelio] Fix several incorrect (headers) availability on new API (only in iOS10, not 9) (#726) 2016-08-31 17:59:53 -04:00
Sebastien Pouliot 60e650ae6d [tests][intro] Fix availability attributes to match reality (not headers) down to iOS 8.4 2016-08-31 17:34:02 -04:00
Alex Soto 197b6ca0f1 Merge pull request #722 from spouliot/un-api-fixes
[usernotifications] Fix some API (mostly abstract / default .ctor) after auditing
2016-08-31 14:12:09 -05:00
Sebastien Pouliot 1c1a764a53 Bump maccore to get the latest revision of mono-extensions/mono-4.6.0-branch (#724) 2016-08-31 13:24:46 -04:00
Alexander Köplinger 4eca55b2d6 Bump mono to the latest 4.6 revision (#723) 2016-08-31 11:05:31 -04:00
Rolf Bjarne Kvinge 2d122802ab Update gitignore. (#721)
Newer versions of Xamarin Studio are producing *.user files now,
so ignore those.
2016-08-31 10:13:51 -04:00
Sebastien Pouliot 720da547ca [usernotifications] Fix some API (mostly abstract / default .ctor) after auditing
* Added comments why [DisableDefaultCtor] was applied (confirmed with
  Apple docs);

* Hide UNNotificationAttachmentOptionsKeys used for StrongDictionary
  as they don't seems required anywhere else right now (and can be
  exposed later if needed);

* Disable default .ctor on UNNotificationContent as per docs:

	> Do not create instances of this class directly.
	https://developer.apple.com/reference/usernotifications/unnotificationcontent?language=objc

* Disable default .ctor on UNTextInputNotificationResponse as per docs:

	> You do not create instances of this class yourself.
	https://developer.apple.com/reference/usernotifications/untextinputnotificationresponse?language=objc

* Disable default .ctor on UNNotificationSettings as per docs:

	> You do not create instances of this class directly.
	https://developer.apple.com/reference/usernotifications/unnotificationsettings?language=objc

* Renamed UNNotificationSound.DefaultSound to UNNotificationSound.Default.
  That's shorter and also match the swift property name.

	> Added UNNotificationSound.default() [class]
	https://developer.apple.com/library/prerelease/content/releasenotes/General/iOS10APIDiffs/Swift/UserNotifications.html

* Made UNNotificationTrigger abstract as per Apple docs:

	> The UNNotificationTrigger class is an abstract class for...
	https://developer.apple.com/reference/usernotifications/unnotificationtrigger?language=objc

* Renamed UNUserNotificationCenter.CurrentNotificationCenter to Current.
  That's shorter and also match the swift property name.

	> Added UNUserNotificationCenter.current() -> UNUserNotificationCenter [class]
	https://developer.apple.com/library/prerelease/content/releasenotes/General/iOS10APIDiffs/Swift/UserNotifications.html
2016-08-31 10:11:26 -04:00
Alex Soto b8a2ced04b [Midi] Fix bug 43582 - MidiEndpoint throws, bad dispose of GCHandle
https://bugzilla.xamarin.com/show_bug.cgi?id=43582

- Thanks to @olegoid for the actual investigation and fix
- Added test that verifies the fix
2016-08-31 08:48:11 -04:00
Alex Soto a8ba2f8b17 [AudioUnit] Fix bug 43829 - AudioUnit._AUImplementorStringFromValueCallback removed from XamMac.dll and Xamarin.Mac.dll (#716)
https://bugzilla.xamarin.com/show_bug.cgi?id=43829

commit 1f207bd3f3df363cb5a74e59b93acd8eb6e1fec2 in xamarin/maccore
introduced some breaking changes, those were fixed in a later commit
but this was forgotten for Xamarin.Mac
2016-08-31 08:20:34 -04:00
Rolf Bjarne Kvinge 7de44f3253 [tests] Fix a couple of registrar tests to work on device. (#719)
Fixes the following test failures:

    [FAIL] BlockSignatureTest.WithoutUserDelegateTypeAttribute : System.ExecutionEngineException : Attempting to JIT compile method '(wrapper native-to-managed) MonoTouchFixtures.ObjCRuntime.BlockSignatureTest:<WithoutUserDelegateTypeAttribute>m__0 (intptr,intptr)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.
    	  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:GetFunctionPointerForDelegateInternal (System.Delegate)
    	  at System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate (System.Delegate d) [0x00011] in /work/maccore/xcode8/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs:1714
    	  at ObjCRuntime.BlockLiteral.SetupBlock (System.Delegate trampoline, System.Delegate userDelegate) [0x0000b] in /work/maccore/xcode8/xamarin-macios/src/ObjCRuntime/Blocks.cs:92
    	  at MonoTouchFixtures.ObjCRuntime.BlockSignatureTest.WithoutUserDelegateTypeAttribute () [0x00049] in /work/maccore/xcode8/xamarin-macios/tests/monotouch-test/ObjCRuntime/RegistrarTest.cs:2585
    	  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    	  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /work/maccore/xcode8/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:309

    [FAIL] BlockSignatureTest.WithUserDelegateTypeAttribute : System.ExecutionEngineException : Attempting to JIT compile method '(wrapper native-to-managed) MonoTouchFixtures.ObjCRuntime.BlockSignatureTest:<WithUserDelegateTypeAttribute>m__2 (intptr,intptr)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.
    	  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:GetFunctionPointerForDelegateInternal (System.Delegate)
    	  at System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate (System.Delegate d) [0x00011] in /work/maccore/xcode8/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs:1714
    	  at ObjCRuntime.BlockLiteral.SetupBlock (System.Delegate trampoline, System.Delegate userDelegate) [0x0000b] in /work/maccore/xcode8/xamarin-macios/src/ObjCRuntime/Blocks.cs:92
    	  at MonoTouchFixtures.ObjCRuntime.BlockSignatureTest.WithUserDelegateTypeAttribute () [0x00049] in /work/maccore/xcode8/xamarin-macios/tests/monotouch-test/ObjCRuntime/RegistrarTest.cs:2596
    	  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    	  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /work/maccore/xcode8/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:309
2016-08-31 13:54:47 +02:00
Alex Soto 04bca5ab1a Merge pull request #715 from spouliot/speech-fixes
[speech] Some audit-related fixes to bindings
2016-08-30 20:50:44 -05:00
Alex Soto 7dab51130f Merge pull request #714 from spouliot/messages-abstract-fix
[messages] MSMessageLayout should be an abstract type
2016-08-30 20:11:25 -05:00
Sebastien Pouliot a61380369c [speech] Some audit-related fixes to bindings
* Made SFSpeechRecognitionRequest abstract. We do not have docs from
  Apple but there's no way (init*) to create instances unlike it's two
  subclasses (and it won't be a breaking change if I'm wrong);

* Renamed TaskWasCancelled -> WasCancelled. All other members of the
  protocol starts with a verb (and Task is the suffix of the type name);

* Use the same (as ObjC) parameter name for GetRecognitionTask, just
  escape it with `@` so the C# compiler accept it (keyword otherwise)
2016-08-30 20:50:25 -04:00
Sebastien Pouliot 7e1529eed0 [messages] MSMessageLayout should be an abstract type
> The MSMessageLayout class is an abstract base class that defines

reference:
https://developer.apple.com/reference/messages/msmessagelayout?language=objc
2016-08-30 20:13:57 -04:00
Alex Soto 301ac17465 [Intents] Fix bug 43889 - INIntent and INIntentResponse should be abstract (#713)
https://bugzilla.xamarin.com/show_bug.cgi?id=43889
2016-08-30 19:17:20 -04:00
Alex Soto 1a16d1c923 [UserNotification] Fix bug 43787 localizedUserNotificationStringForKey:arguments: not bound properly (#712)
https://bugzilla.xamarin.com/show_bug.cgi?id=43787
2016-08-30 19:16:32 -04:00
Sebastien Pouliot a2899b842c [cloudkit] Fix some missing .ctor (breaking changes) (#711)
Enabling CloudKit on watchOS required to remove some default .ctor that
watchOS does not _support_.

This commit fix this by either

* replacing the default .ctor with something that works across all
  platforms (best); or

* removing the default .ctor only on watchOS;

The commit also mark as abstract three existing types for watchOS (and
for XAMCORE_4_0) that were found reviewing the bindings.
2016-08-30 19:14:48 -04:00
Sebastien Pouliot 974ea0b792 Merge branch 'cycle8' into xcode8 2016-08-30 15:40:58 -04:00
Alex Soto 209f4f3709 [GameplayKit] Update from Xcode8 Beta 1 to Beta 6 (#689)
Runtime
- Added support for Vector2d, Vector3d and Vector4d SIMD types
- Added support for GKBox, GKQuad and GKTriangle SIMD types

GameplayKit
- Apple introduced GKQuadTreeNode and GKQuadTree in Xcode 7.1 and
  removed those types in a later Xcode (7.2?) but we kept them around.
  Now apple introduced again both types but renamed them to GKQuadtreeNode
  and GKQuadtree (lowercase t), this is a breaking change and since we do
  care about binary compat we are just changing the registration name and
  keeping the same managed name deprecating old methods and introducing
  the new ones.
- Added tests for new SIMD types
2016-08-30 15:32:46 -04:00
Sebastien Pouliot f74a7a7911 [messageui] Review (and add test) the enum breaking change from Apple. Fixes #42682 (#710)
Xcode8 SDK changed untyped enums (always 32 bits) into NSInteger. In this
case we can continue with the existing API (and ignore them in xtro)

reference:
https://bugzilla.xamarin.com/show_bug.cgi?id=42682
2016-08-30 14:26:49 -04:00
Rolf Bjarne Kvinge cbfd83be92 [xharness] Make sure a project reference's Name matches the file name of the reference. Fixes #43181. (#709)
Apparently XS can't find referenced project (to build them) otherwise.

It works fine when building using xbuild though.

https://bugzilla.xamarin.com/show_bug.cgi?id=43181
2016-08-30 13:32:32 -04:00
Sebastien Pouliot eef1c7a7e0 Bump mono to the latest 4.6 revision (#708) 2016-08-30 11:27:52 -04:00
Chris Hamons a43115a85e [XM] Fix native dependency processing by mmp when linker is disabled (#613)
* [XM] Fix native dependency processing by mmp when linker is disabled

- https://bugzilla.xamarin.com/show_bug.cgi?id=43364
- Fixed via a hack for now. Fixed https://bugzilla.xamarin.com/show_bug.cgi?id=43419 to clean up later
- Added null check in ProcessDLLImports due to facades
2016-08-30 08:45:03 -04:00
Sebastien Pouliot 1d5bbedc61 Bump maccore to remove classic (monotouch.dll and friends) support from XI (#704)
Also stop processing the API diff for classic assemblies
2016-08-30 08:14:29 -04:00
Sebastien Pouliot 3c28e427ce [tests][xtro] Update data files (#705) 2016-08-29 22:06:14 -04:00