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

1313 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 4c5325f03b [PhotosUI] PHContentEditingController as a model is useless. (#774) 2016-09-06 16:57:51 -04:00
Rolf Bjarne Kvinge 853a690d02 [PhotosUI] PHContentEditingController as a model is useless. (#774) 2016-09-06 16:56:48 -04:00
Sebastien Pouliot 00fb925b7f [avfoundation] Audit related fixes (#776)
* Fix AVMetadataISOUserDataKeyDate constant name -> `Iso`

* Remove unneeded comments (from sharpie)

* Remove duplicated (same as type) availability attributes added on
  the previous commit (missing API)
2016-09-06 16:55:43 -04:00
Rolf Bjarne Kvinge cfb84f6e17 [runtime] Use printf on watchOS, NSLog doesn't shown up (by default) (#772)
* [runtime] Use printf on watchOS, NSLog doesn't shown up (by default).

* [runtime] Use a wrapper function for logging.

So that we can chose between printf and NSLog at runtime,
depending on where we're running.
2016-09-06 16:55:23 -04:00
Sebastien Pouliot 09386206d6 Revert "Bump F# to 4.0.1.5" (#777)
Wrench can't build it - might be related to different mono version being used on different bots (wrench/felix use mono 4.4 stable)
2016-09-06 15:53:24 -04:00
Alex Soto 494ef376a0 Merge pull request #773 from rolfbjarne/xcode8-usernotifications-review
[UserNotifications] Improve a method name a bit by removing a 'With*' suffix
2016-09-06 14:50:22 -05:00
Rolf Bjarne Kvinge d0d30a378f [VideoSubscriberAccount] Simplify method name to a name that matches the Swift name. (#771) 2016-09-06 15:34:02 -04:00
Sebastien Pouliot 645acd8f57 Bump F# to 4.0.1.5 (#419) 2016-09-06 14:57:28 -04:00
Vincent Dondain 562b9564f1 [msbuild] Show proper build error when monotouch.dll doesn't exist (#750)
Due to the deprecation of classic we needed to provide a better and single error message
rather than the countless msbuild errors you'd have because you'd be missing monotouch.dll

* Migrate MySingleView & MyLibrary to Unified
2016-09-06 14:50:54 -04:00
Alex Soto 861bfe4f9e Merge pull request #770 from spouliot/macos-intro-fix
[macos] Fix introspection tests (typo + NSUrlSession* test sharing)
2016-09-06 13:28:40 -05:00
Sebastien Pouliot 596dd0a3f3 [macos] Fix introspection tests (typo + NSUrlSession* test sharing) 2016-09-06 13:32:51 -04:00
Manuel de la Pena 546a2fd907 [mtouch] Fix case of the final target directory. 2016-09-06 18:19:27 +02:00
Manuel de la Pena 0fb03df1b9 [AVFoundation] Get AVPlayerViewController back to TV 9 2016-09-06 18:06:43 +02:00
Rolf Bjarne Kvinge 7826524c87 Bump mono to get fixes for #41961 and #41956. (#767)
* Bump mono to get fixes for #41961 and #41956.

https://bugzilla.xamarin.com/show_bug.cgi?id=41961
https://bugzilla.xamarin.com/show_bug.cgi?id=41956

* Bump mono to get fix for failing LinkSdk test.
2016-09-06 11:17:00 -04:00
Alex Soto 35adef2796 Merge pull request #769 from spouliot/photos-todo-update
[photos] Update TODOs wrt lack of PHLivePhotoShouldRenderAtPlaybackTime in the SDK
2016-09-06 09:55:09 -05:00
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