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

2385 Коммитов

Автор SHA1 Сообщение Дата
Alex Soto 1db4202fc6 [ModelIO] Update to Xcode 8.3 Beta 4 (#1856) 2017-03-28 10:12:24 -05:00
Alex Soto e3f81f3c9d [UIKit] Update to Xcode8.3 beta 4 (#1855) 2017-03-28 10:12:17 -05:00
Alex Soto c94b822f3a [WatchConnectivity] Update to Xcode 8.3 Beta 5 (#1854) 2017-03-28 10:12:09 -05:00
Alex Soto 3dd153f351 [intents] Updated to Xcode8.3 Beta 5 (#1853)
Apple added API_UNAVAILABLE(watchos) to

+ (INSiriAuthorizationStatus)siriAuthorizationStatus
+ (void)requestSiriAuthorization:(void (^)(INSiriAuthorizationStatus status))handler

So we got the availability right :D
2017-03-28 10:11:51 -05:00
Vincent Dondain d819d25bff [modelio] Add missing MDLMesh constructors and fix xtro (#1826)
Fixes bug #52575: Missing ModelIO API
(https://bugzilla.xamarin.com/show_bug.cgi?id=52575)

We turn the MDLMesh constructors into static ones because we don't want to lose the shape name.
Also, the signatures of these constructors differ so it would not be possible to use an enum to differentiate the shapes.
2017-03-28 10:08:12 -05:00
Alex Soto efceb473f6 [msbuild] Allow extensions bundle other extensions (#1810)
watchOS 3.2 introduced SiriKit extension that must be bundled
inside the Watch App Extension (yep a extension inside another extension).

So the _ResolveAppExtensionReferences and _CopyAppExtensionsToBundle should
now be run on extension projects too.
2017-03-28 10:08:02 -05:00
Sebastien Pouliot 9686e6464b [tests][xtro] Some fixes, mostly data, so [ios|tvos|watchos].unclassified are empty (#1766)
Also reduce a bit the size of common.unclassified
2017-03-28 10:07:54 -05:00
Sebastien Pouliot 566a7a4dad [mmp] Map macOS 10.12.4 SDK with Xcode 8.3 (#1759)
This should stop errors like below to happen on wrench

```
Xamarin.Bundler.MonoMacException: The type 'AVFoundation.IAVContentKeyRecipient' (used as a parameter in AVFoundation.AVContentKeySession.Add) is not available in macOS 10.12.2 (it was introduced in macOS 10.12.4). Please build with a newer macOS SDK (usually done by using the most recent version of Xcode).
```
2017-03-28 10:06:22 -05:00
Sebastien Pouliot 130b269cce [avfoundation] Disable incorrect AVAudioSessionInterruptionEventArgs.WasSuspended (#1761)
The return type is wrong

> Value is a boolean NSNumber,

and cannot be bound as a `bool` but as a `NSNumber`, which makes it
closer to a `bool?` since it could be absent.

We'll re-enable it when merging `xcode8.3` on `master` so we can benefit
from Alex `[BindAs]` support, giving us a `bool?` on the visible API
2017-03-28 10:06:11 -05:00
Sebastien Pouliot 43413344ff [intents] Fix INPerson.SiriMatches as not available on macOS (#1760)
Mac introspection does not like it on wrench, which seems to
have a Sierra beta (or it would be ignored)

> [FAIL] Selector not found for Intents.INPerson : siriMatches

and xtro / headers can't see it being available on macOS either
2017-03-28 10:06:03 -05:00
Manuel de la Pena 8c94c974df [AVFoundation] Fix some minor issues with the Xcode 8.3 bindings. (#1757) 2017-03-28 10:01:04 -05:00
Manuel de la Pena e6130b9735 [AVFoundation] Update bindings for Xcode 8.3 (#1713)
* has some remaining issues that will be fixed in a different PR
2017-03-28 09:56:48 -05:00
Alex Soto c8e4135faa [Intents] Update to Xcode 8.3 Beta 3 (#1741) 2017-03-28 09:53:32 -05:00
Vincent Dondain a6ce05c530 [homekit] Update for xcode8.3 beta 3 (breaking change) (#1739)
Apple swapped None and Detected in HMCharacteristicValueContactState.
The Apple dev forums and stackoverflow are silent about this change.
This enum isn't used by any other HomeKit method and it's questionable how many people
are using HomeKit at all.

Given that, we decided to exceptionally do a breaking change for this enum.
The symbols remain the same only the values change.
Only the people using HomeKit and this particular enum should be affected.
2017-03-28 09:51:01 -05:00
Alex Soto f833bbc6ff Add Intents and VideoToolbox to registrar and fix version check (#1733)
A fix (thanks Rolf!) in how we do SDK version checks is needed
because for some reason `new Version (3, 2, 0)` isn't the same to
`new Version (3, 2)` and we end up with a MT4134 when building the
watchOS static registrar.
2017-03-28 09:50:08 -05:00
Sebastien Pouliot 74fe26f901 [tests][xtro] Add optional generation of bindings for API in xtro's Makefile (#1732) 2017-03-28 09:46:11 -05:00
Sebastien Pouliot 674a3b37df [imageio] Re-enable fixed kCGImagePropertyExifSubsecTimeOriginal (#1728)
There was a typo in the original field - but it was not fixed properly
the first time.

Note: this is "fixed" in the beta 3 headers (have not heard from the rdar
itself) but, according to the availability macros it's been fixed for a
while (so it's fine to PR it even if the bots don't run beta 3 yet)

reference:
* Apple radar 22311329
* https://trello.com/c/PRpCfP6e/1-22311329-half-fixed-typo-in-kcgimagepropertyexifsubsectimeor-i-ginal
2017-03-28 09:46:01 -05:00
Sebastien Pouliot c61a0fa658 [coretext] Use [MarshalAs (UnmanagedType.I1)] on `bool` parameters used with native code. Fixes #52162
iOS 10.3 simulator (i386 only) will crash executing CTLineTests.
EnumerateCaretOffsets test case. This was not a problem with older SDK
so the code likely changed (but the issue was in our code)
2017-03-28 09:45:46 -05:00
Sebastien Pouliot cb576d53a9 Revert "[tests] Adjust monotouch-test not to crash on an Apple bug. Fixes #52162 (#1699)"
This reverts commit b502bd71a1.
2017-03-28 09:45:24 -05:00
Vincent Dondain dd54bc4509 [spritekit] Update for Xcode 8.3 beta 1 - part 3 (#1705)
- Fixes bug #52568: Missing SpriteKit API
(https://bugzilla.xamarin.com/show_bug.cgi?id=52568)

xtro revealed that some selectors were still missing after the "part 2" fix.

* [spritekit] Add missing selectors and clean up common.pending

Fixes bug #34946: [spritekit] Missing selectors
(https://bugzilla.xamarin.com/show_bug.cgi?id=34946)

Also as per https://github.com/xamarin/xamarin-macios/pull/1705#pullrequestreview-22328496
we find that there's more value in exposing those static methods (SKUniform::uniformWithName:*) than hiding them.

https://bugzilla.xamarin.com/show_bug.cgi?id=37727 was already fixed but we didn't remove
the added selectors from common.pending

The following selectors were already bound:
!missing-selector! +SKActions::falloffTo:duration: not bound
!missing-selector! +SKVideoNode::videoNodeWithFileNamed: not bound
!missing-selector! +SKVideoNode::videoNodeWithURL: not bound
2017-03-28 09:43:54 -05:00
Vincent Dondain 13972a104b [opengles] Add version check to EAGLContext.PresentRenderBufferTest (#1706)
Fix bug #52456: [iOS]EAGLContextTest.PresentRenderBufferTest failed on lower versions of iOS
(https://bugzilla.xamarin.com/show_bug.cgi?id=52456)
2017-03-28 09:42:24 -05:00
Sebastien Pouliot 9bdd163292 [macos][modelio] MDLAsset::initWithBufferAllocator: was added to macOS (10.12) (#1704)
reference (xtro):
osx.unclassified:!missing-selector! MDLAsset::initWithBufferAllocator: not bound
2017-03-28 09:42:12 -05:00
Sebastien Pouliot 2bc0262063 Revert "[modelio] All properties for MDLVertexAttributeData were turned read-only in iOS10 (#222)" (#1703)
This reverts commit 0b6ac445ce.

Apple reverted this change later (beta?)

references (xtro):
common.unclassified:!missing-selector! MDLVertexAttributeData::setDataStart: not bound
common.unclassified:!missing-selector! MDLVertexAttributeData::setFormat: not bound
common.unclassified:!missing-selector! MDLVertexAttributeData::setMap: not bound
common.unclassified:!missing-selector! MDLVertexAttributeData::setStride: not bound
2017-03-28 09:41:39 -05:00
Sebastien Pouliot b3673641f6 [macos][storekit] SKDownload::transaction was added to macOS (10.11) (#1702)
reference (xtro):
osx.unclassified:!missing-selector! SKDownload::transaction not bound
2017-03-28 09:38:54 -05:00
Sebastien Pouliot f261d901b1 [tests] Adjust monotouch-test not to crash on an Apple bug. Fixes #52162 (#1699)
iOS 10.3 simulator (i386 only) will crash executing CTLineTests.
EnumerateCaretOffsets test case.

This does not happen on 64 bits (simulator) or on device builds,
including 32 bits builds. Running iOS 10.1 simulator (with Xcode 8.3)
also runs without problems.

reference:
https://bugzilla.xamarin.com/show_bug.cgi?id=52162
2017-03-28 09:38:18 -05:00
Sebastien Pouliot bcf27ce090 [security] Add more SecCertificate* API from beta1. Fixes #52505 (#1695)
They were thought to be macOS only but xtro corrected me, they are
new in iOS 10.3 even if some existed previously.

references (xtro):
!missing-pinvoke! SecCertificateCopyCommonName is not bound
!missing-pinvoke! SecCertificateCopyEmailAddresses is not bound
!missing-pinvoke! SecCertificateCopyNormalizedIssuerSequence is not bound
!missing-pinvoke! SecCertificateCopyNormalizedSubjectSequence is not bound
!missing-pinvoke! SecCertificateCopyPublicKey is not bound
!missing-pinvoke! SecCertificateCopySerialNumber is not bound

reference:
https://bugzilla.xamarin.com/show_bug.cgi?id=52505
2017-03-28 09:34:52 -05:00
Vincent Dondain dd650f4a34 [mediaplayer] macOS update for Xcode 8.3 (#1693)
Headers say 10.12.3 and not 10.12.4, ran introspection-mac and the selector is indeed available on 10.12.3.
2017-03-28 09:32:25 -05:00
Vincent Dondain 6d7efb1405 [modelio] Fix common.unclassified for recent Xcode8.3 changes (#1692) 2017-03-28 09:31:10 -05:00
Sebastien Pouliot 375fd87f85 [tests][xtro] Run xtro comparison against the locally built assemblies, not the one installed on the system (#1691) 2017-03-28 09:30:55 -05:00
Alex Soto 11b338af8e [LocalAuthentication] Update to Xcode8.3 beta2 Mac (#1688) 2017-03-28 09:30:41 -05:00
Vincent Dondain cd8cf18aa5 [homekit] Update watchOS API availability for Xcode 8.3 (#1644)
- Fixes xtro tests.
- APIs where introduced in watchOS 3.2 but are actually available starting with 3.1.1
   - introspection-watchos device tests: https://gist.github.com/VincentDondain/f615571ddedd6c3aa770ccb85e0f265f

_Note: Failures are not related to the newly available APIs._
2017-03-28 09:30:29 -05:00
Timothy Risi 7d8faf9c0a Add a nullable attribute in Intents from Xcode 8.3 (#1671) 2017-03-28 09:30:20 -05:00
Sebastien Pouliot 25481f5af5 [security] Add new API for beta 1 (#1682)
There's a lot of noise from the header diff, e.g. tabs changed to spaces,
but very few actual changes.

Note that there's more macOS specific code to review but this PR
handles iOS, tvOS and watchOS changes.
2017-03-28 09:30:12 -05:00
Vincent Dondain 99e5bd70d1 [homekit] Fix enum breaking change (#1673)
Adding new enum values without numbering them in the middle of others will
change the numbering of the subsequent enum values.
2017-03-28 09:30:05 -05:00
Sebastien Pouliot 58ed0b1866 [audiotoolbox] Remove null check on sourceAudioUnit (#1675)
PR#1667 changed some code to allow null SourceAudioUnit - but it forgot
to remove the null check that throws an ArgumentNullException. Thanks
to Tim for spotting this.
2017-03-28 09:29:56 -05:00
Sebastien Pouliot d99d1b1dc0 [watchos][cloudkit] Update for beta 1 (#1659)
The CloudKit headers for watchOS were updated to match the ones from
iOS and tvOS (from previous Xcode) so this mostly remove some watch
specific code.

Apple also made some previously broken `init` to be
NS_DESIGNATED_INITIALIZER so those are now enabled for watchOS.
2017-03-28 09:29:49 -05:00
Alex Soto 3a1276a992 [VideoToolbox] Updated to Xcode 8.3 Beta 1
* Updated API to reflect Xcode 8.3 beta 1 changes
* This commit also fixes availability metadata to avoid duplicating it
  by moving member availability metadata into its container class where
  possible.
* Enables VideoToolbox tests for tvOS.
2017-03-28 09:29:36 -05:00
Alex Soto b1f9ac84bc [generator] Add availability info to StrongDictionary
We did not honor/reflect the availability information on the generated
code from StrongDictionary members/classes nor we would honor unavailability
attributes like NoiOS, NoTV and NoMac applied to members. This commit fixes
both scenarios
2017-03-28 09:29:26 -05:00
Sebastien Pouliot 97db1edcab [tvos][uikit] Fix two UITableViewDataSource that are not prohibited anymore (#1668)
Spotted by xtro

!missing-protocol-member! UITableViewDataSource::sectionIndexTitlesForTableView: not found
!missing-protocol-member! UITableViewDataSource::tableView:sectionForSectionIndexTitle:atIndex: not found

and it was in the header diff too

--- (nullable NSArray<NSString *> *)sectionIndexTitlesForTableView:(UITableView *)tableView __TVOS_PROHIBITED;                                                    // return list of section titles to display in section index view (e.g. "ABCD...Z#")
--- (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index __TVOS_PROHIBITED;  // tell table which section corresponds to section title/index (e.g. "B",1))
-+- (nullable NSArray<NSString *> *)sectionIndexTitlesForTableView:(UITableView *)tableView;                               // return list of section titles to display in section index view (e.g. "ABCD...Z#")
-+- (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index;  // tell table which section corresponds to section title/index (e.g. "B",1))
2017-03-28 09:29:17 -05:00
Sebastien Pouliot 3cd590deb6 [audiotoolbox] Allow SourceAudioUnit to be set to null (beta 2) (#1667)
Latest header files marks this file as nullable so we should let
our managed API accept null values.

> AudioUnit __nullable	sourceAudioUnit;
2017-03-28 09:29:03 -05:00
Sebastien Pouliot 63c98bcbde [metal] Add new MTL* API from Xcode 8.3 beta1 (#1666)
Covers iOS, tvOS and macOS (no Metal on watch yet)

Most new members are _marked_ as @required (but are not really) by
Apple. We cannot make them `abstract` as it would be a breaking change.
2017-03-28 09:28:53 -05:00
Sebastien Pouliot b05b55a8ed [tvos][mediaplayer] Update xtro definitions (#1654)
The new field and both selectors are not really part of tvOS.

The field is not used anywhere (from available API).

The selectors are on a category on a type that is not part of tvOS.
Sadly they do not get annotated directly and require external data.
2017-03-28 09:28:40 -05:00
Sebastien Pouliot 53645cc336 [tvos][storekit] Adjust StoreKit beta 1 bindings for tvOS (#1646) 2017-03-28 09:26:23 -05:00
Vincent Dondain b15d2e256b [mediaplayer] Update for iOS 10.3 beta 1 (#1627)
* introspection-ios

MPMusicPlayerControllerMutableQueue and MPMusicPlayerControllerQueue's headers show no trace of NSCoding, NSSecureCoding or NSMutableCopying therefore we're skipping them.
2017-03-28 09:24:06 -05:00
Vincent Dondain b7dd01c770 [modelio] Update for iOS 10.3 beta 1 (#1601) 2017-03-28 09:22:27 -05:00
Timothy Risi bf3a3fb991 Bind new mac-only APIs from xcode 8.3 (#1602) 2017-03-28 09:22:20 -05:00
Sebastien Pouliot f4fccb09d7 [tvos][videotoolbox] Enable VideoToolbox.framework on tvOS (#1626)
This is just a build enablement to see xtro results. API adjustments,
including availability attributes, remains to be done.
2017-03-28 09:22:10 -05:00
Alex Soto ce0d121062 [UIKit] Update for iOS 10.3 beta 1 (#1629) 2017-03-28 09:21:57 -05:00
Vincent Dondain 19e7a0f8b8 [spritekit] Update for iOS 10.3 beta 1 (#1628) 2017-03-28 09:21:42 -05:00
Rolf Bjarne Kvinge 2ad0a418d1 Bump min macOS version, since Xcode 8.3 requires macOS 10.12. (#1635) 2017-03-28 09:19:32 -05:00