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

6460 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena 1416e4a945
[AudioToolBox] [AudioUnit] Add support for Xcode 11 beta 1 & beta 2. (#6434)
Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>
2019-07-02 15:55:24 +02:00
Manuel de la Pena 7745802abd
[CloudKit] Update CloudKit for Xcode 11 beta 2. (#6472) 2019-07-02 15:54:44 +02:00
Manuel de la Pena fa78fb38d0
[BackgroundTasks] Add new Framework for Xcode 11 beta 1. (#6438) 2019-07-02 15:54:21 +02:00
monojenkins a3f27ccbc1 [xharness] Propagate the BUILD_REVISION variable to test apps to specify if we're in CI or not. Fixes xamarin/maccore#649. (#6469)
We have tests whose behavior changes when executed on CI, and those tests use
the BUILD_REVISION variable to detect where they're being executed. For this
to work we need to propagate the BUILD_REVISION variable to the test
executable.

Hopefully fixes https://github.com/xamarin/maccore/issues/649 now.
2019-07-02 09:53:09 +02:00
TJ Lambert 065ad880d3 [Speech] Add Xcode 11 Beta 1 & Beta 2 bindings (#6440)
* adding Speech

* Style changes and fixed copyright

* fixing requested changes

* adding spacing to make less red in diff

* adding [DisableDefaultCtor] to SFSpeechRecognitionResult and SFTranscription

* Update src/speech.cs

Co-Authored-By: Alex Soto <alex@alexsoto.me>

* Update src/speech.cs

Co-Authored-By: Alex Soto <alex@alexsoto.me>

* Update src/speech.cs

Co-Authored-By: Alex Soto <alex@alexsoto.me>
2019-07-01 19:42:49 -04:00
Manuel de la Pena ffb050e4b1
[CallKit] Update for Xcode 11 beta 1 & beta 2. (#6470) 2019-07-01 22:11:41 +02:00
monojenkins f2e4657f84 [xharness] Don't try to find simulators for ignored tests. (#6468)
Trying to find a simulator will mark the test as a failure if the simulator
couldn't be found, and we don't want that to happen to ignored tests.

This should fix an issue where xharness seems to try to run the 32-bit
simulator tests when asked to run only device tests.
2019-07-01 19:28:08 +02:00
Whitney Schmidt 995333dfbc
[carplay] Update for Xcode 11 beta 1 (#6442)
* [carplay] Update for Xcode 11 beta 1

* add maccore issue #, fix nits

* update w/ full issue link, update copyright
2019-06-28 14:47:21 -04:00
Sebastien Pouliot e28a0810aa
[mediaaccessibility] Update for Xcode 11 beta 1 (#6457)
No change in beta 2

Unit tests added - but new API behaviour is not quite what I expected.
Maybe future docs will make this clearer...
2019-06-28 13:31:53 -04:00
Rolf Bjarne Kvinge 8e7bc16947
Merge pull request #6431 from xamarin/issue-6222-xcode11
[xcode11] Fix several test and API issues that made apitest, introspection and xammac tests fail on macOS 10.15.
2019-06-28 18:33:23 +02:00
Rolf Bjarne Kvinge da0793775e Merge remote-tracking branch 'origin/xcode11' into issue-6222-xcode11 2019-06-28 07:50:14 +02:00
Rolf Bjarne Kvinge d40c5e61e7 Fix xtro.
Previous xtro fix removed too much.
2019-06-28 07:49:16 +02:00
Rolf Bjarne Kvinge 920e2b7c13
[mmptest] Modify the Unified_HelloWorld_ShouldHaveNoWarnings test to not fail if the branch name contains 'warning'. Fixes xamarin/maccore#1404. (#6445)
Asserting that the entire build output never contains 'warning' fails if git's
branch name contains 'warning', because Jenkins adds environment variables
with the git branch name (and environment variables are printed during the
build).

So instead parse the build output, and assert that we don't get any mmp
warnings.

Fixes https://github.com/xamarin/maccore/issues/1404.
2019-06-28 07:32:25 +02:00
Rolf Bjarne Kvinge cc96963371
[xcode11] Merge d16-2. (#6446)
* [tests] Handle Xcodes without proper versions by ignoring them. Fixes xamarin/maccore#1768. (#6386)

This can happen if an Xcode hasn't been completely/successfully installed or
removed.

Fixes https://github.com/xamarin/maccore/issues/1768.

* [CoreGraphics] Fix lifetime of delegates passed to CGPatternCreate. (#6368)

We may get callbacks after the managed CGPattern instance has been
disposed/garbage collected, so make sure our delegates survives that long.

Since the delegates don't need any instance state, just make them static.
2019-06-28 07:31:46 +02:00
Sebastien Pouliot 2c81a82a79
[videosubscriberaccount] Update for Xcode 11 beta 1 (#6450)
No change in beta 2
2019-06-27 21:52:16 -04:00
Sebastien Pouliot cfc82b54f8
[passkit] Update for Xcode 11 beta 1 (#6447)
No change in beta 2

watchOS is missing an header file in it's umbrella, filed as
https://feedbackassistant.apple.com/feedback/6301809 https://github.com/xamarin/maccore/issues/1819
2019-06-27 14:30:32 -04:00
Rolf Bjarne Kvinge 6e5ec5b5a4
[tests] Ignore all compiler warnings in apitest, introspection, monotouch-test and xammac tests. (#6430)
Nobody cares about them anyway, and they keep filling my terminal with useless
text.
2019-06-27 15:34:36 +02:00
TJ Lambert 903c3eec31 [PencilKit] Add Xcode 11 Beta 1 & Beta 2 bindings (#6415)
* Adding PencilKit to the src

* forgot the mac constants

* adding PencilKit and fixed whitespace

* removing whitespace

* removed mac capabilities and added ignore for PencilKit.todo

* removed newline

* added the iOS-PencilKit.ignore file

* removed pencilkit.todo

* adding DesignatedDefaultCtor
2019-06-27 09:18:58 -04:00
Sebastien Pouliot 644cf70370
[pushkit] Update for Xcode 11 beta 1 (#6432)
No change in beta 2

This enable PushKit on watchOS and macOS.

Availability macros suggest this is available on tvOS 13 but the
headers are not in the tvOS SDK (at least in beta 2)
2019-06-27 05:19:42 -07:00
Rolf Bjarne Kvinge f934cd7bee [monotouch-test] Adjust a few more tests for macOS 10.15. 2019-06-27 13:49:37 +02:00
Rolf Bjarne Kvinge 6dc70a833f [tests] Update xtro. 2019-06-27 12:46:33 +02:00
Rolf Bjarne Kvinge d10b1d338e [introspection] Fix version check. 2019-06-27 12:45:37 +02:00
Sebastien Pouliot dbe0d21282
[coremotion] Update for Xcode 11 beta 1 (#6419)
No change in beta 2

This enable some API in macOS. Headers are now present and some types are
marked as unavailable on macOS - but, sadly, nothing got marked as new
for 10.15 :|
2019-06-26 18:44:33 -07:00
Sebastien Pouliot f44003a6d7
[javascriptcore] Update for Xcode 11 beta 1 (#6433)
No change in beta 2
2019-06-26 12:35:06 -07:00
Sebastien Pouliot 53c6b6d74e
[authenticationservices] Update for Xcode 11 beta 1 and 2 (#6408)
Also enable the framework for macOS, watchOS and tvOS
2019-06-26 05:27:29 -07:00
Rolf Bjarne Kvinge 5dab3372ab [apitest] Don't instantiate an AVCaptureView.
It may cause macOS to try to show a permission dialog, which fails because the
app is executed from a non-interactive session, and the end is terminated due
to a privacy violation (even if the app has all the required plist entries).
2019-06-26 14:17:14 +02:00
Rolf Bjarne Kvinge 0a3555fd36 [monotouch-test] Workaround a Catalina crash. Fixes #6425.
Fixes https://github.com/xamarin/xamarin-macios/issues/6425.
2019-06-26 14:17:14 +02:00
Rolf Bjarne Kvinge 58fcbe0189 [monotouch-test] Don't test API that crashes. 2019-06-26 14:17:14 +02:00
Rolf Bjarne Kvinge 1254cc145e [introspection] Adjust according to behavior on macOS 10.15. Fixes #6426.
Fixes https://github.com/xamarin/xamarin-macios/issues/6426.
2019-06-26 14:16:57 +02:00
Rolf Bjarne Kvinge 5208d1d11e Fix NS[Secure]Coding and NSCopying interfaces. 2019-06-26 14:15:32 +02:00
Rolf Bjarne Kvinge dc507c35fe [apitest] Skip QTKit tests on macOS 10.15. 2019-06-26 14:15:32 +02:00
Rolf Bjarne Kvinge e83d9b68b3 [apitest] Unmark mark text when done with it. Fixes #6424.
Fixes https://github.com/xamarin/xamarin-macios/issues/6424.
2019-06-26 14:14:23 +02:00
Rolf Bjarne Kvinge 62d2c2028f [tests] Fix stale data in tests-mac.sln after recent changes. 2019-06-26 14:06:30 +02:00
Rolf Bjarne Kvinge 73c1cb6a3d [apitest] Add usage descriptions, and sign the test app.
This makes TCC not terminate the app.
2019-06-26 10:15:46 +02:00
Rolf Bjarne Kvinge 46f098349e [tests] Version check fixes. 2019-06-26 10:15:46 +02:00
Sebastien Pouliot c9fc959b56
Fix some availability attributes wrt macOS 10.14.6 (#6420)
Xcode 11 headers mention 10.14.6 but, at least the current beta, does not
have them...
2019-06-25 16:55:37 -04:00
Sebastien Pouliot 17cda968d5
[clockkit] Update for Xcode 11 beta 1 and 2 (#6405) 2019-06-25 10:33:16 -04:00
Sebastien Pouliot 7ee941739e
[coreanimation] Update for Xcode 11 beta 1 and 2 (#6397)
There's no change in watchOS SDK headers... but they are marked as
available (to watchOS) inside iOS, tvOS and macOS. Not a new situation
and IIRC we reported it before (will check and report again if needed)
2019-06-25 08:16:35 -04:00
TJ Lambert 6ad81d8e63 [IncomingCallNotifications] Add Xcode 11 Beta 1 & Beta 2 bindings (#6374)
* adding IncomingCallNotifications

* adding IncomingCallNotifications

* added comments about INSCopying:copy issue

* INSCopying -> NSCopying

* passing intro and extro and added IgnoreAsync and skip iOSApiCtorInitTest

* removed newlines

* additional newline

* making recommended changes after breaking branch

* removed todo files
2019-06-24 14:42:45 -04:00
Rolf Bjarne Kvinge a8014fcdc2
[system-dependencies] Use 'xip' to decompress xip files. (#6413)
Archive Utility compresses into a directory specified by one of its
preferences, so we can't really say for sure where it will put the extracted
xip.

This is of course all sorts of fun, except none of the good ones.

So use the command-line xip utility to extract the xip instead, which is
documented to extract into the current directory.

The reason we didn't use the 'xip' tool from the beginning is that when Apple first started shipping Xcode as xips, the --expand option wasn't documented.
2019-06-24 16:10:12 +02:00
Rolf Bjarne Kvinge f9b4639631
[xharness] Fix Makefile-mac.inc generation after recent disruptive changes. (#6401)
This boils down to the makefile-generation code having the information it
needs (and that information being correct).

This fixes running of tests on other macOS bots (older/newer), because now we
can build the test package again.
2019-06-24 16:08:13 +02:00
Rolf Bjarne Kvinge 84db931287
[xharness] Serialize access to nuget. Fixes xamarin/maccore#1779. (#6402)
Nuget might freak out if multiple nuget processes run at the same time, so
make sure that doesn't happen.

Fixes https://github.com/xamarin/maccore/issues/1779.
2019-06-24 08:37:36 +02:00
Rolf Bjarne Kvinge 2e0a3f34ec
[xharness] Fix compiler warning about override having different parameter names than the base implementation. (#6400) 2019-06-24 08:35:50 +02:00
Alex Soto a8b90e68f0
[UIKit] Partial update to Xcode 11 Beta 1 and 2 - Part 1 of ? (#6392)
* [UIKit] Partial update to Xcode 11 Beta 1 and 2 - Part 1 of ?

Adds new classes included in Xcode 11 Beta 1 and 2, all stuff
included in this PR is up to date with Beta 2.

* Fix whitespace.

* Add tvOS availability attributes.

* UNNotificationResponse is public, it just need a using.

* Update xtro.

* [tests/.gitignore] Update ignored files

Avoid new generated csprojs

```
	tests/apitest/apitest-unified-32.csproj
	tests/apitest/apitest-unified.csproj
	tests/apitest/apitest-unifiedXM45-32.csproj
	tests/apitest/apitest-unifiedXM45.csproj
	tests/introspection/Mac/introspection-mac-unified-32.csproj
	tests/introspection/Mac/introspection-mac-unified.csproj
	tests/linker/mac/dont link/dont link-mac-unified-32.csproj
	tests/linker/mac/dont link/dont link-mac-unified.csproj
	tests/linker/mac/dont link/dont link-mac-unifiedXM45-32.csproj
	tests/linker/mac/dont link/dont link-mac-unifiedXM45.csproj
```

* Implement feedback

* More feedback

* [Tests] Fix Apple's lies in headers for tvOS

Whatch is fine
2019-06-21 18:25:04 -04:00
Sebastien Pouliot e138a50647
[medialibrary] Update for Xcode 11 beta 2 (#6404) 2019-06-21 16:53:15 -04:00
Sebastien Pouliot fe8104b5ca
[tvmlkit] Update for Xcode 11 beta 1 (#6396)
No change in beta 2
2019-06-21 15:00:10 -04:00
Sebastien Pouliot cc57c04c91
[corenfc] Fix some names and typos (#6399)
Input feedback https://github.com/xamarin/xamarin-macios/pull/6370#pullrequestreview-252101174
Output feedback https://github.com/xamarin/maccore/issues/1785
2019-06-21 13:26:00 -04:00
tj-devel709 2781658938 [SoundAnalysis] Add Xcode 11 Beta 1 & Beta 2 bindings (#6351)
* adding Sound Analysis

* set up error domain and added CMTimeRange for all platforms except watch

* removed whitespaces

* removed more whitespaces

* edited framework files and constants. Changed header names and added todo files

* Apply feedback

* fixing head and skipping functions with class issues

* fixing spacing-tab issues
2019-06-21 10:05:27 -04:00
Rolf Bjarne Kvinge 85ec17a506
[Network] Improve bindings for NWProtocolMetadata. (#6389)
* [Network] Improve bindings for NWProtocolMetadata.

It turns out the NWProtocolMetadata can contain metadata for different
protocols (Ip/Tls/Tcp). This is important; if someone tries to get a value for
one protocol and the metadata is for another protocol, then they invoke the
wrath of superior beings who will smite that poor someone with uninitialized
memory.

At that point there's not much left but to pray.

I don't like to depend on divine intervention, so I've modified the API here
to check if the metadata's protocol is the required type for the native API
we're calling, and if the check fails, we throw a nice and dependable managed
exception.

This is a functional breaking change; but if there are any lost souls who
likes to pray, they can always re-implement the P/Invokes themselves and skip
the sanity checks.

In addition I've renamed a few properties whose name didn't clearly specify
which protocol type they operate on.

Ref: Apple feedback FB6155967.
Ref: https://trello.com/c/1TW0BSKJ/145-fb6155967-nwipcreatemetadata-returns-uninitialized-metadata-in-ios-13

* Fix casing in exception message.

* [tests] Adjust the SecProtocolMetadataTest according to new knowledge about the Network API.

* Fix alternative property name in obsolete attribute.
2019-06-21 15:00:19 +02:00
Rolf Bjarne Kvinge 57d44d120a
[mmptest] Split a few tests into test cases / several tests. Fixes #6257. (#6388)
Re-running the same UnifiedTestConfig instance with just some of the
configuration changed doesn't work as expected, because in subsequent builds
there are files already in the build directory, and things break in unexpected
ways.

So create a new UnifiedTestConfig instance for every test variation.
2019-06-21 08:23:36 +02:00