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

6540 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot 07c86fb5b4
[corenfc] Update for Xcode 11 beta 4 (#6609)
This fix a typo in a selector that we reported on the first beta

References
* https://github.com/xamarin/maccore/issues/1785
* https://feedbackassistant.apple.com/feedback/6192467
2019-07-18 15:23:07 -04:00
Sebastien Pouliot ce54a09d01
[generator] Allow the generation of smart enums `*Extensions` code even if no fields are present (#6613)
This is needed in a case like:

```csharp
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")]
[NoWatch, NoTV, Mac (10,15), iOS (13,0)]
enum ASAuthorizationProviderAuthorizationOperation {
	// no value yet - but we must handle `nil` as a default value
	[DefaultEnumValue]
	[Field (null)]
	None,
}
```

IOW we want to expose the smart enum for it's only `null` value
but the general conversion code is not available (for a `Weak`
version of the property)

The upcoming update for `authenticationservices.cs` depends on this fix.
2019-07-18 14:54:23 -04:00
Sebastien Pouliot 364870489e
[corelocation] Update for Xcode 11 beta 1 to 4 (#6600)
No change in beta 3 and 4
2019-07-18 14:16:07 -04:00
Alex Soto 1dc4d45251
[PencilKit] Update to Xcode 11 Beta 4 (#6612) 2019-07-18 13:40:37 -04:00
Sebastien Pouliot 5c30267c8a
[coreanimation] Update for Xcode 11 b4 (#6611) 2019-07-18 13:13:44 -04:00
Alex Soto 12408486ba
[ARKit] Update to Xcode 11 Beta 4 (#6608) 2019-07-18 12:23:51 -04:00
Sebastien Pouliot 02fe80ca8b
[replaykit] Update for Xcode 11 beta 4 (#6610) 2019-07-18 12:00:50 -04:00
Manuel de la Pena 1d0207e611
[Dependencies] Do not check for Xcode 9.4 on Catalina. (#6605) 2019-07-18 17:45:40 +02:00
Sebastien Pouliot 7fcd8d7974 Bump for Xcode 11 beta 4 (#6603)
* Bump for Xcode 11 beta 4

xtro tests will fail until we have an update for sharpie, however
the introspection tests should be fine (with the small changes in
arkit.cs and uikit.cs)

xtro failure:

```
System.NotImplementedException: AVAudioInteger
  at (wrapper managed-to-native) Clang.Ast.AstReader.LoadInternal(Clang.Ast.AstReader,string)
  at Clang.Ast.AstReader.Load (System.String astPath) [0x00014] in /Users/builder/vsts-agent/_work/5/s/Clang/Ast/AstReader.cs:33
  at Extrospection.Runner.Execute (System.String pchFile, System.Collections.Generic.IEnumerable`1[T] assemblyNames) [0x0019a] in /Users/poupou/git/xcode11/xamarin-macios/tests/xtro-sharpie/Runner.cs:54
  at Extrospection.MainClass.Main (System.String[] args) [0x00046] in /Users/poupou/git/xcode11/xamarin-macios/tests/xtro-sharpie/Program.cs:20
```

due to

```diff
-typedef CF_ENUM(NSInteger, AVAudioSessionErrorCode) {
+typedef CF_ENUM(AVAudioInteger, AVAudioSessionErrorCode) {
```
https://github.com/xamarin/xamarin-macios/wiki/CoreAudioTypes-iOS-xcode11-beta4

* [tests] CoreText stopped reporting error when font files are missing

* Fix xtro (EnumCheck.cs) and update its data files

* Fix xtro results (due to some local changes)
2019-07-18 05:44:34 -04:00
Whitney Schmidt 8d8401e8fb
[quicklookUI] xcode11 beta1 - beta3 updated bindings (#6588)
* quicklookUI updates for xcode11

* update param to completionHandler

* remove onlyOn64: true
2019-07-16 19:28:42 -04:00
Jonathan CONTE 9b7f6f9cdb [NotificationCenter] Bindings for iOS Xcode 11 beta 1 (#6579) 2019-07-16 15:58:34 -04:00
Rolf Bjarne Kvinge c1e6ac029f [src] Remove/obsolete 'onlyOn64: true' in attributes. (#6595)
* [src] Obsolete 'onlyOn64' parameter to the availability attributes.

* [src] Remove 'onlyOn64: true' from attributes.

* [src] Adjust availability attributes.
2019-07-16 12:13:11 -04:00
Sebastien Pouliot 799cf06a99
[coreaudiokit] Update for Xcode 11 beta 1 (#6582)
No change in beta 2 and beta 3
2019-07-15 14:44:36 -04:00
Rolf Bjarne Kvinge a495077533
[xcode11] Stop building/shipping 32-bit Xamarin.Mac bits. Partial fix for #6300. (#6393)
This includes:

* 32-bit version of Xamarin.Mac.dll and OpenTK.dll
* XamMac.dll and XamMac.CFNetwork.dll
* 32-bit versions of the runtime libraries (libxammac.a and friends).
* 32-bit version of the partial static library for Xamarin.Mac.
* Classic support in the generator.

We still ship a few Classic files so that Visual Studio for Mac continue to detect that Xamarin.Mac is installed (otherwise VSfM won't open Classic projects, which makes it impossible to use the migration wizard).

This makes our build slightly faster.

Partial fix for #6300.
2019-07-15 10:19:24 -07:00
Sebastien Pouliot 41096f2f44
[callkit] Update for xcode beta 1 (#6581)
No change in beta 2 and 3

Initial PR https://github.com/xamarin/xamarin-macios/pull/6470 missed the single new API (hint: check `xtro` files)
2019-07-15 13:09:18 -04:00
Sebastien Pouliot e6e428393d
[coretext] Update for Xcode 11 beta 1-3 (#6562)
includes unit tests
2019-07-15 13:06:56 -04:00
Sebastien Pouliot e97b4eacf3
[coretelephony] Update for Xcode 11 beta 1 (#6576)
No changes in beta 2 and 3
2019-07-15 08:13:34 -04:00
Sebastien Pouliot 5acc751928
[spritekit] Update xtro (no real change) (#6577)
Beside quite some (availability/macros) noise, there's only a single
new API according to the header files - however it's missing in the
binary.

Filed feedback https://feedbackassistant.apple.com/feedback/6644627
Tracked in https://github.com/xamarin/maccore/issues/1887
2019-07-15 08:03:09 -04:00
Alex Soto f8da20ad90
[Xcode11] Use the latest stable sharpie (#6572)
* [Xcode11] Use the latest stable sharpie

* We use visualstudio links now
2019-07-12 18:58:35 -04:00
Alex Soto 2d53b90723
[UIKit] Partial update to Xcode 11 Beta 1, 2 and 3 - Part 2 of ? (#6553)
* [UIKit] Partial update to Xcode 11 Beta 1, 2 and 3 - Part 2 of ?

Missing bindings for

* NSDiffableDataSourceSnapshot
* UICollectionViewDiffableDataSource
* UITableViewDiffableDataSource

due to a registrar issue git generics.

* Update src/UIKit/UIFont.cs

Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>

* Update src/uikit.cs

* More feedback

This also disables

* FloatRangeTest.Equals
* FloatRangeTest.ManagedVersusNative

due to https://github.com/xamarin/maccore/issues/1885

* [UIKIt] Start fixing `UITextWritingDirection` situation

But the complete fix is for another time https://github.com/xamarin/xamarin-macios/issues/6573
2019-07-12 13:44:24 -04:00
Rolf Bjarne Kvinge 18321c6069
[xammac_tests] Fix a few issues after the latest beta. Fixes xamarin/maccore#1886. (#6575)
* [monotouch-test] Adjust EventKitCalendarTest for the latest Xcode 11 beta (3). Partial fix for xamarin/maccore#1886.
 
Partial fix for https://github.com/xamarin/maccore/issues/1886.

* [xammac_tests] Add missing resources files. Partial fix for xamarin/maccore#1886.

Partial fix for https://github.com/xamarin/maccore/issues/1886.

Fixes https://github.com/xamarin/maccore/issues/1886.
2019-07-12 09:12:10 -07:00
Sebastien Pouliot 42648dd609
[localauthentication] Update for Xcode 11 beta 1-3 (#6574) 2019-07-12 08:58:06 -07:00
Rolf Bjarne Kvinge a27c33342b
[mmptest] Various cleanups. (#6569)
* Simplify Makefile
	* Remove logic to build using vstool since it's not needed anymore.
	* Remove logic to build 32-bit test apps.
* tests.sln: add existing projects, remove deleted projects.
* Delete MainMenu.xib, it's not needed since none of these tests show a UI.
* Modify the csprojs to be much more similar to eachother, which makes it
  easier to find the significant difference between them. Also add
  properties/nodes that VSfM insists on adding, so that future diffs should
  not contain gratuitous changes by VSfM.
2019-07-12 07:37:56 -07:00
Rolf Bjarne Kvinge 121f04ce3d
[tests] Improve handling of permission dialogs. Fixes xamarin/maccore#1856. (#6544)
* macOS 10.15 starts putting up permission dialogs we can't automatically
  dismiss anymore, so start honoring the 'IncludeSystemPermissionTests' option
  for macOS tests.
* Improve the 'IncludeSystemPermissionTests' option to have three states: if
  set (either true or false), that takes precedence, but if not set, we now
  don't run any tests that require permission dialogs on macOS or on device if
  we're running in CI. Tests executed locally will still put up dialogs, both
  on macOS and on device.
* This needed a few changes to the html report, since the
  'IncludeSystemPermissionTests' is exposed in the UI and the code didn't
  handle the three different states.
* Update a few tests to check for permission to the contacts.

Fixes https://github.com/xamarin/maccore/issues/1856.
2019-07-12 07:05:57 -07:00
Rolf Bjarne Kvinge 97bd041abc
[tests] Don't use unsupported characters in matrix names for yml scripts. Fixes xamarin/maccore#1831. (#6531)
* [tests] Don't use unsupported characters in matrix names for yml scripts. Fixes xamarin/maccore#1831.

Matrix names must be alphanumeric (+underscore), and recently Azure DevOps
stopped working correctly if that wasn't the case (unfortunately without a
good error message though, so it took a while to figure it out).

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

* [jenkins] Fix lookup of environment variables from matrix jobs.
2019-07-12 01:40:57 -07:00
Rolf Bjarne Kvinge e8254d4110
Merge pull request #6559 from rolfbjarne/maccore-issue-1880
[xcode11] Fix monotouch-test to not crash on device.
2019-07-11 23:03:08 -07:00
Rolf Bjarne Kvinge c91a1deac8
[mmptest] Port link-safe-1 to Unified. Partial fix for #4975. (#6556)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-11 22:46:44 -07:00
Rolf Bjarne Kvinge 7bc0954e96
[mmptest] Port the link-webclient-* tests to NUnit LinkAll+LinkSdk tests. Partial fix for #4975. (#6557)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-11 22:46:02 -07:00
Manuel de la Pena 7e96b317e8
[CoreMedia] Add support for CoreMedia on Xcode 11 beta 3. (#6513) 2019-07-11 20:14:58 +02:00
Rolf Bjarne Kvinge 612a74a0fd [monotouch-test] Don't try to set image captions on read-only files.
iOS will helpfully crash.
2019-07-11 19:04:14 +02:00
Rolf Bjarne Kvinge 8ab907a91e [monotouch-test] Don't check for the macOS system version when running on other platforms. 2019-07-11 19:04:14 +02:00
Rolf Bjarne Kvinge d457122ad2 [monotouch-test] Add permission description for CoreBluetooth. Fixes xamarin/maccore#1880.
Fixes https://github.com/xamarin/maccore/issues/1880.
2019-07-11 19:04:14 +02:00
Rolf Bjarne Kvinge accafe9eb4
[mmptest] Port link-httpclient-async to an NUnit LinkAll+LinkSdk test. Partial fix for #4975. (#6554)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-11 06:20:28 -07:00
Rolf Bjarne Kvinge 1a664d44bc
[mmptest] Port the link-xml-serialization test to an NUnit LinkAll test. Partial fix for #4975. (#6555)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-11 06:20:07 -07:00
Rolf Bjarne Kvinge 8eb23eed0f
[xcode11][tests] Provision dotnet for the sample tests. Fixes xamarin/maccore#1811. (#6473) (#6488)
* [sampletester] Use dotnet v2.2.1XX if available. (#6185)

Works around https://github.com/NuGet/Home/issues/7956.

* [tests] Provision dotnet for the sample tests. Fixes xamarin/maccore#1811. (#6473)

Also synchronize configuration file creation to not run into threading issues.

Fixes https://github.com/xamarin/maccore/issues/1811.
2019-07-11 01:49:42 -07:00
Rolf Bjarne Kvinge 891dfcb7d9
[mmptest] Port link-uithread-1/2 to an NUnit LinkAll test. Partial fix for #4975. (#6546)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-11 01:24:21 -07:00
Rolf Bjarne Kvinge e0f16ffc9c
[mmptest] Port link-remove-attributes-1 to Unified. Partial fix for #4975. (#6547)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-11 01:21:07 -07:00
Sebastien Pouliot f24e42c61c
[tests] Fix (no failure) introspection tests on device (iOS13) (#6449)
Note that the application crash *after* reporting (tests) success.
This is due to ReplayKit triggering an assertion inside UIKit (as it
try to access the status bar). This is filed with Apple
https://feedbackassistant.apple.com/feedback/6306808 https://github.com/xamarin/maccore/issues/1823

Avoiding to dispose the culprit (`RPSystemBroadcastPickerView`) sadly
does not workaround the issue :(
2019-07-10 15:26:14 -04:00
Sebastien Pouliot d02d379695
[foundation] Partial update for Xcode 11 beta 1 to 3 (#6538)
Some generic API require more work (manual bindings or generator
enhancements) before being included. xtro files are up to date.
2019-07-10 11:19:56 -04:00
Rolf Bjarne Kvinge f3cb969c2f
[mmptest] Port link-preserve-assembly to Unified. Partial fix for #4975. (#6541)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-10 05:27:00 -07:00
Rolf Bjarne Kvinge d81d30fc8b
[mmptest] Port link-frameworks-1 to Unified and improve it. Partial fix for #4975. (#6543)
Port link-frameworks-1 to Unified and modify the test to examine all framework
references and have a whitelist of expected entries, instead of checking a
fixed list of frameworks, which doesn't catch problems when new frameworks are
introduced.

Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-10 05:26:44 -07:00
Rolf Bjarne Kvinge 469287ed41
[mtouch] Work around regression in dyld. Fixes #6422. (#6545)
It seems dyld doesn't like an rpath without a trailing slash for '@executable_path'.

Fixes https://github.com/xamarin/xamarin-macios/issues/6422.
2019-07-10 05:06:27 -07:00
Rolf Bjarne Kvinge 87852389dd
[mmptest] Port link-callfilepath-45 to an NUnit LinkAll+LinkSdk test. Partial fix for #4975. (#6539)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-09 22:55:41 -07:00
Rolf Bjarne Kvinge 270d13538d
[mmptest] Port link-blocks-1 to an NUnit LinkAll+LinkSdk test. Partial fix for #4975. (#6536)
Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-09 07:09:17 -07:00
monojenkins a7f4c7011e [registar] Search the entire interface hierarchy for protocols. Fixes #6493. (#6524)
When we're searching for metadata for marshalling blocks, we must search the
entire interface hierarchy for protocols that implement optional members.

Fixes https://github.com/xamarin/xamarin-macios/issues/6493.
2019-07-09 06:50:55 -07:00
Rolf Bjarne Kvinge f80e6b4032
[sampletester] Provision Xcode when it's not already available. Fixes #6326. (#6498)
Add a separate provisioning script to install Xcode if it's not already installed on the bot.

For some unknown reason it needs to be a separate script, otherwise the provisionator will complain it doesn't know the required GitHub token to download Xcode.

Fixes https://github.com/xamarin/xamarin-macios/issues/6326.
2019-07-09 06:45:20 -07:00
Sebastien Pouliot 277db4616e
[package] Remove creation of files/symlinks under /Developer (#6529) 2019-07-09 09:19:56 -04:00
Rolf Bjarne Kvinge 1ed2d349c5
[mmptest] Port link-keep-resources-2 to Unified. Partial fix for #4975. (#6533)
This also means removing code that tests for shipped system icons, since the
Modern profile's BCL doesn't contain the system icons.

Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-09 06:18:55 -07:00
Rolf Bjarne Kvinge 87a6dc5fd4
[mmptest] Reuse the existing iOS version of the link-data-contract-1 test. Partial fix for #4975. (#6535)
We already have an iOS version of the link-data-contract-1 test (from which
the link-data-contract-1 test was originally ported), so reuse that version
now.

Fixes part of https://github.com/xamarin/xamarin-macios/issues/4975.
2019-07-09 06:18:29 -07:00
Rolf Bjarne Kvinge b60d7a287c
[ARKit] Uncomment bindings that only work on device. (#6517)
And adjust the introspection tests accordingly.
2019-07-09 04:51:34 -07:00