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

1248 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot 3054daf39b [photos] Update TODOs wrt lack of PHLivePhotoShouldRenderAtPlaybackTime in the SDK 2016-09-06 09:58:36 -04:00
Manuel de la Pena ddae0a4fce [AVFoundation] Add missing AVCapturePhotoOutput settings methods on iOS 10. (#766) 2016-09-06 08:02:44 -04:00
Rolf Bjarne Kvinge 4298ebfdfb Merge pull request #764 from rolfbjarne/cycle8-watchos-debugging-on-device
Add support for debugging over http. Fixes #41554.
2016-09-05 17:28:29 +02:00
Manuel de la Pena 50b81e2f21 [AVFoundation] Add TV OS missing apis. (#760)
* [AVFundation] Add TV OS missing apis.

* As per review, added missing constructor and renamed method.

* As per review, add 'Get' verb to method.

* As per review bump tv os attr to 10.0
2016-09-05 16:06:27 +02:00
Manuel de la Pena 6b79e79d78 [AVFoundation] Add missing ios api. (#763)
* [AVFoundation] Add missing ios api.

* As per review, rename constant name.
2016-09-05 11:56:52 +02:00
Rolf Bjarne Kvinge 3859240031 Add support for debugging over http. Fixes #41554.
The watchOS device has limited networking support; in particular
it does not allow inbound/output network connections using 'bind'
(kernel-level sandbox restrictions).

This means that we can't use BSD sockets to connect to the debugger
in the IDE on the desktop. Instead we create an http tunnel that
knows how to convert socket send/recv data into http requests on
both sides.

https://bugzilla.xamarin.com/show_bug.cgi?id=41554
2016-09-05 10:05:00 +02:00
Rolf Bjarne Kvinge a9294ab9c8 [runtime] Check if debug mode is specified in environment variables. 2016-09-05 10:05:00 +02:00
Rolf Bjarne Kvinge 18a5b4eccb [runtime] Make the debugger mode an enum instead of bool to allow more than two debugger modes. 2016-09-05 10:05:00 +02:00
Rolf Bjarne Kvinge d11b3f2761 [runtime] Only enable debugging on watchOS devices if a native debugger is also attached.
Launching a watchOS extension on device with the managed debugger
attached is slow, which means that the launch watchdog will kick in
and kill the app before it has launched.

So we attach the native debugger as well, which prevents the launch
watchdog from killing the app. Incidentally it also makes watchOS
not background the app.

We're using private API to determine whether a native debugger is
attached, but it's only in debug code, and as such would not be
included in release builds for customer apps. Also the code is
currently limited to watchOS since it's not needed on other
platforms for now.
2016-09-05 10:05:00 +02:00
Sebastien Pouliot 6cf2cf6c16 [audit] Add comments on two correct, but uncommon, binding patterns (#761) 2016-09-04 12:40:45 -04:00
Alex Soto 71b11daa3f Merge pull request #759 from spouliot/healthkit-audit-fixes
[healthkit] Audit-based fixes
2016-09-03 13:04:39 -05:00
Sebastien Pouliot de772baaf2 [healthkit] Audit-based fixes
* Made some types abstract based on the documentation. Most (all but the
new HKDocumentSample) are under XAMCORE_4_0 as this would be a breaking
change.

	> The HKObject class is an abstract class
	> The HKDocumentSample class is an abstract class
	> The HKQuery class is an abstract class.
	https://developer.apple.com/reference/healthkit

	> The HKObjectType class is an abstract class.
	https://developer.apple.com/reference/healthkit/hkobjecttype

	> The HKSample class is an abstract class.
	https://developer.apple.com/reference/healthkit/hksample

* Removing default .ctor

	> Do not instantiate HKCDADocument objects directly
	https://developer.apple.com/reference/healthkit/hkcdadocument

* Change WeatherCondition from NSNumber to HKWeatherCondition (enum) on
  HKMetadata (strong dictionary)
2016-09-03 11:46:16 -04:00
Sebastien Pouliot f5052c105c [healthkit] Change binding for HKDetailedCdaErrors (#757)
* [healthkit] Change binding for HKDetailedCdaErrors

* Hide [Fields]
* Easier access to the information from NSError
* Unit test (mostly to make sure of the returned type)

* [healthkit] Remove HKDetailedCDAValidationErrorKey from watchOS profile

It's used from an NSError returned from an API that is not available in
watchOS.
2016-09-03 11:36:05 -04:00
Alex Soto db4c0a03dc [generator] Fix some CWL warnings that generator emits (#758)
When using WrapAttribute on methods generator still tries to create
signatures to interop with ObjC which is incorrect since the pruppose
of Wrap attribute is to create nicer signatures on top of an "ugly"
API so user gets a delightful coding experience.

When generator tries to create a signature for a decorated method with
WrapAttribute to interop with objc and the signature contains a NET Type
(i.e System.Type) it throws a BindingException but it was swallowed
by a try/catch that only printed a not so useful description of the
the problem. Now it throws the actual BindingException when it really
does not know how to create a signature to interop with ObjC on a
*not* decorated method with WrapAttribute.
2016-09-03 10:21:10 -04:00
Alex Soto 2d64329af4 Merge pull request #756 from spouliot/cloudkit-classic-fix-2
[cloudkit] Fix some API removal from monotouch.dll (classic)
2016-09-03 01:59:00 -05:00
Alex Soto 19975b4370 Merge pull request #754 from spouliot/xtro-fixes-3
[tests][xtro] Update data files
2016-09-03 01:58:29 -05:00
Alex Soto 212ea80d2d Merge pull request #753 from spouliot/vsa-hide-fields
[videosubscriberaccount] Hide [Field]s by providing better alternative if possible
2016-09-03 01:57:00 -05:00
Sebastien Pouliot d3e0433f59 [cloudkit] Fix some API removal from monotouch.dll (classic)
Unit tests failed to compile for monotouch-test/classic. Those are still
compiled by mtouch-test on wrench (even if the profile is now dead)
2016-09-02 20:58:24 -04:00
Sebastien Pouliot 838ccc4cf4 [tests][xtro] Update data files 2016-09-02 20:37:08 -04:00
Sebastien Pouliot 391aed7a70 [videosubscriberaccount] Hide [Field]s by providing better alternative if possible
Internalize VSErrorInfoKeys by adding a [StrongDictionary] on it

	NSError err = ...;
	var new VSErrorInfo (err.UserInfo);
	Console.WriteLine (SamlResponse);

Internalize VSCheckAccessOptionKeys as it already has a [StrongDictionary]
2016-09-02 18:34:56 -04:00
Manuel de la Pena 46e6f06919 [mtouch] MVID for symblication ought to be lower case and with no `-` (#749) 2016-09-02 16:25:12 -04:00
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 a048b9bd2c [UserNotifications] Improve a method name a bit by removing a 'With*' suffix. 2016-09-02 20:51:55 +02: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
Rolf Bjarne Kvinge f2c4c191c6 [msbuild] Set NSAllowArbitraryLoads when debugging watchOS apps. (#746)
* [msbuild] Move detection of network configuration to a separate task.

* [msbuild] Set NSAllowArbitraryLoads when debugging watchOS apps.

The only way to have reliable http connections from the watchOS 2 device
to the mac is to set NSAllowArbitraryLoads.

See also: https://forums.developer.apple.com/thread/6205
2016-09-02 08:30:15 -04:00
Sebastien Pouliot 9a648075c2 [watchos][audiotoolbox] Remove two unrequired types: AudioBuffer and CABarBeatTime (#743) 2016-09-02 08:29:38 -04:00
Rolf Bjarne Kvinge b7570c09d4 [msbuild] Remove debug spew. (#747) 2016-09-02 08:25:52 -04:00
Alexander Köplinger 5eba5f78ce Remove wrong System.Private.* facades from Sdk check (#745)
They are no longer shipped since c8c09310f9 and c75dcf579f.
2016-09-02 12:01:55 +02: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
Sebastien Pouliot 55f4918adb Merge pull request #733 from rolfbjarne/cecil-update
Bump [watch-]mono to master.
2016-09-01 14:48:56 -04: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
Rolf Bjarne Kvinge 2a4fc5d23b [introspection] Fix build with mono 4.6 by referencing System.Core explicitly. (#735) 2016-09-01 14:29:57 -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
Rolf Bjarne Kvinge 082318f81c Bump [watch-]mono to get cecil fix. 2016-09-01 18:28:35 +02:00
Rolf Bjarne Kvinge dfc3f7f523 Remove cecil submodule, we only use the one in mono now. 2016-09-01 18:28:35 +02:00
Rolf Bjarne Kvinge 2eb6ba12c7 [mtouch/mmp] Fix build after breaking cecil update in mono.
Also use mono's cecil instead of our own cecil submodule for mtouch.
2016-09-01 18:28:35 +02:00