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

8410 Коммитов

Автор SHA1 Сообщение Дата
monojenkins 6149761dcd
Fixed issue with code signing when using multiple AdditionalAppExtensions (#9943)
Co-authored-by: Wojciech Kulik <wkulik91@gmail.com>
2020-10-21 15:26:33 -04:00
Sebastien Pouliot 8cac63bb6f
Bump API diff to be produced against xcode12.1 (#9940) 2020-10-21 13:14:45 -04:00
Sebastien Pouliot f8c1900c87
[videotoolbox] Add missing VTVideoEncoderList mappings. Fix 9904 (#9931)
Also fix the `ArgumentNullException` inside `xammac` tests that
happens when accessing a constant that is not supported by the
current OS, see PR#9930

references:
* https://github.com/xamarin/xamarin-macios/issues/9904
* https://github.com/xamarin/xamarin-macios/pull/9930

Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com>
2020-10-20 21:48:55 -04:00
Sebastien Pouliot 67a8e812c6
[storekit] Update for Xcode 12.2 beta 3 (#9930) 2020-10-20 17:15:00 -04:00
monojenkins f6f0c76eeb
[Tests][ARKit] Add check for xcode12 (#9923)
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
2020-10-20 09:36:29 -04:00
Sebastien Pouliot c6aeb3fbf9
[coreimage] Update macOS availability for new filter attributes added in 12.1 GM (#9919) 2020-10-19 18:25:25 -04:00
monojenkins 7d448f1f9e
[xcode12.2] [Tests][Network] Do not really check the value, just make sure that we are called. (#9920)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
2020-10-19 18:08:38 -04:00
Sebastien Pouliot 9672dc11a9
[fileprovider] Update for Xcode 12.2 beta 3 (#9918)
note: this is not a breaking change (even if it looks like one, even in
API diff) since there is a `[NoMac]` in `d16-8-xm` that was removed (and
never released for XM) in `xcode12`.
2020-10-19 15:50:20 -04:00
Sebastien Pouliot 262872ad5d
[avkit] Update for Xcode 12.2 beta 3 (#9917) 2020-10-19 14:40:49 -04:00
Sebastien Pouliot bd13ea10cb
[xcode12.2][avfoundation] Update for Xcode 12.1 GM (#9913)
same as #9887 with added availability to new platforms and more xtro platform todo resolved
2020-10-19 13:44:21 -04:00
Sebastien Pouliot af3695bcfc
[uikit] Update for Xcode 12.2 beta 3 (#9914) 2020-10-19 11:39:03 -04:00
Sebastien Pouliot 3c3229deb3
[xcode12.2][imageio] Update availability and new API from Xcode 12.1 GM (#9907) 2020-10-19 08:03:12 -04:00
Sebastien Pouliot 30c4d90ffa
[xcode12.2][coreimage] Update availability and new API from Xcode 12.1 GM (#9906) 2020-10-19 07:56:29 -04:00
Sebastien Pouliot b7254af791
[xcode12.2][coregraphics] Update availability wrt Xcode 12.1 GM (#9898) 2020-10-16 18:12:05 -04:00
Sebastien Pouliot 90f5d6af7e
[videotoolbox] Update attributes and add 12.2 specific key (#9905) 2020-10-16 18:08:40 -04:00
Sebastien Pouliot 4f8ffb06a1
[xcode12.2][metalperformanceshaders] Update availability wrt Xcode 12.1 GM (#9903) 2020-10-16 17:02:13 -04:00
Sebastien Pouliot d89cba1d9d
[corebluetooth] Update for Xcode 12.2 beta 3 (#9900) 2020-10-16 15:54:51 -04:00
monojenkins 9d76eb877e
[coretelephony] Update for Xcode 12.1 GM (#9899) 2020-10-16 13:30:28 -04:00
Alex Soto dff6934850
[xcode12.2] Initial commit for Xcode 12.2 Beta 3 (#9877)
* [xcode12.2] Initial commit for Xcode 12.2 Beta 3

* Update iOSApiCtorInitTest.cs

* Fix watchOS check on intro for AVSpeechSynthesisVoice

* Update iOSApiCtorInitTest.cs

* Update iOSApiCtorInitTest.cs
2020-10-15 12:08:27 -04:00
monojenkins a72ad286d7
[Tests] Fix a test that crashes on devices due to possible bonjour services present. (#9868)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-10-14 15:12:13 -04:00
Sebastien Pouliot c379544def
[xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856)
This can easily happen when existing type(s) or framework are added to a platform. E.g.

```csharp
[Watch (6,0)][iOS (9,0)]
interface AVFoo {
   [Watch (6,0)][iOS (13,0)]
   void NewMember ();
}
```

Here we have duplicate attributes and, while not confusing, it does mean extra (and non required) metadata into the platform assemblies.

```csharp
[Watch (6,0)][iOS (9,0)]
interface AVFoo {
   [Watch (5,0)][iOS (13,0)]
   void NewMember ();
}
```

Here we declare a member as available when the type is not. I'm not sure how the IDE will react - but this should be audited since one of them is wrong (whatever the IDE behaviour is).

Fix https://github.com/xamarin/xamarin-macios/issues/6856

Backport of https://github.com/xamarin/xamarin-macios/pull/9825

Includes additional fixes for XM (disabled in `main`)
2020-10-14 13:57:14 -04:00
Manuel de la Pena ebc81460c9
[monotouch-test] Don't assert any specific value for the ReusedConnection value in UrlSessionTaskTransactionMetricsTest. Fixes #xamarin/maccore@2281. (#9660) (#9854)
Fixes https://github.com/xamarin/maccore/issues/2281.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-10-13 15:11:56 -04:00
Alex Soto 2a6320ba55
[tests] Fix macOS 11 intro/apitest (#9844)
* 'GKGameCenterViewController' init throws on macOS 11 and makes sense
  to remove the DefaultCtor since it has other init methods that
  should be used instead. Added XAMCORE_4_0 removal.

* 'ModelIO' seems to be broken in macOS 11.0, if you touch several
  types you end up getting some C++ errors

* 'CoreSpotlight.CSLocalizedString' crashes in Xcode 12.0 GM and now
  in Xcode 12.2 Beta 2 on macOS.

Added issues to check for future betas/GM here #9744
2020-10-12 13:37:22 -04:00
Alex Soto cb524b13a8
[introspection] Do not let intro check on QTKit now that is just stubs (#9843)
* [introspection] Do not let intro check on QTKit now that is just stubs

* Update ApiCtorInitTest.cs

* [QTKit] Fix more QT Tests

* Remove some more QT leftovers
2020-10-11 14:43:41 -04:00
monojenkins 3924a30c4b
[AppKit] Allow NSGraphicsContext.CurrentContext to be null (#9842)
- Fixes https://github.com/xamarin/xamarin-macios/issues/9827

Co-authored-by: Chris Hamons <chris.hamons@xamarin.com>
2020-10-09 15:33:37 -05:00
Alex Soto 1efee685f9
[CoreGraphics] Update bindings to Xcode 12.2 Beta 2 (#9828) 2020-10-09 06:34:00 -04:00
Alex Soto ef7515d190
[Foundation] Update up to Xcode 12.2 Beta 2 (#9826)
* [Foundation] Update up to Xcode 12.2 Beta 2

* Update src/foundation.cs
2020-10-09 06:32:52 -04:00
Sebastien Pouliot c5a43ac2b7
[oslog] New framework in macOS 11 (#9820)
Fix https://github.com/xamarin/xamarin-macios/issues/9480
2020-10-08 16:33:03 -04:00
Alex Soto 340ab9f8cb
[HealthKit] Update bindings up to Xcode 12.2 Beta 2 (#9822) 2020-10-08 15:54:48 -04:00
Sebastien Pouliot 030e1476cd
[xcode12.2][qtkit] Stub removed API. Fix #7704 (#9815)
Xamarin.Mac only supports 64 bits - since the supported macOS and
Xcode have dropped 32bits last year.

QTKit headers were removed but we still had bindings code generated
and kept to avoid braking changes.

This is now replaced by stubs, which are a smaller (no code and less
metadata).

```
Current Xamarin.Mac.dll 23,990,784 bytes
QTKit-stubbed XM.dll    23,843,840 bytes
Difference                 146,944 bytes
```

reference: https://github.com/xamarin/xamarin-macios/issues/7704
2020-10-08 14:22:38 -04:00
Sebastien Pouliot 8c174308c2
[photos] Update for Xcode 12.2 beta 2 (#9813) 2020-10-08 08:04:42 -04:00
Alex Soto d3d278e367
[CoreFoundation] Update bindings up to Xcode 12.2 Beta 2 (#9720)
* [CoreFoundation] Update bindings to Xcode 12.2

* Fix NRE

* Add tests for manual API

* Oops, fix spacing
2020-10-08 06:38:38 -04:00
Alex Soto f85083b9ac
[xcode12.2] [maccore] Bump maccore to get CredScan fixes (#9810)
New commits in xamarin/maccore:

* xamarin/maccore@5e97cc52a4 [xcode12][CredScan] Avoid scanning src/cfnetwork.cs due to false positives (#2325)

Diff: ba332d4d07..5e97cc52a4
2020-10-07 22:22:32 -04:00
Sebastien Pouliot 97b25bb56f
[security] Update for Xcode 12.2 beta 2 (#9812) 2020-10-07 21:45:10 -04:00
Sebastien Pouliot 95c929e487
[mlcompute] Update for Xcode 12.2 beta 2 (#9806) 2020-10-07 20:25:17 -04:00
Alex Soto 3067564d05
[UIKit] Update bindings up to Xcode 12.2 Beta 2 (#9795) 2020-10-07 19:06:09 -04:00
monojenkins fc158cb67d
correct the nullability attributes for the Photos framework (#9805)
Co-authored-by: Ryan Pendleton <me@ryanp.me>
2020-10-07 16:51:55 -04:00
Alex Soto afa9f62ce0
[VideoSubscriberAccount] Update bindings up to Xcode 12.2 Beta 2 (#9794) 2020-10-07 11:53:56 -04:00
Sebastien Pouliot 9f78daee75
[xcode12.2][tests][xtro] Add enum member/values checks. Fix #7527 (#9691) (#9796)
Figure out if
* we're missing enum values (easy to workaround, but annoying for developers)
* we expose enum values that are not defined natively (potential bugs)

reference: https://github.com/xamarin/xamarin-macios/issues/7527

backport of #9691 with additional macOS and xcode12.2 fixes
2020-10-07 10:58:27 -04:00
Alex Soto 01540ae5e0
[ImageIO] Update bindings up to Xcode 12.2 Beta 2 (#9793)
* [ImageIO] Update bindings up to Xcode 12.2 Beta 2

* Remove not needed case
2020-10-06 14:45:52 -04:00
Alex Soto 0ccb75f0d3
[FileProvide] Update bindings up to Xcode 12.2 Beta 2 (#9791) 2020-10-06 12:38:47 -04:00
Alex Soto 73778ebe60
[CoreImage] Update bindings up to Xcode 12.2 Beta 2 (#9790) 2020-10-06 09:52:19 -04:00
Alex Soto 60ea664788
[AppKit] Update bindings up to Xcode 12.2 Beta 2 (#9789) 2020-10-06 09:24:13 -04:00
Alex Soto 82215f8d94
[CarPlay] Update bindings to Xcode 12.2 Beta 2 (#9788) 2020-10-06 08:21:51 -04:00
Alex Soto 4511fd1757
Add ikvm-fork as a submodule instead of using the sources embedded in the mono archive. (#9776) (#9783)
There are two reasons for this:

* It grants us more independence from the mono archive for .NET 6.
* We need a bugfix in ikvm, but we can't necessarily bump mono.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-10-06 09:05:28 +02:00
monojenkins 89a36cf511
[xcode12.2] [tests][xtro] Check for missing/extra [Appearance]. Fix #7136 (#9785)
based on the header's `UI_APPEARANCE_SELECTOR` decorations

Fix https://github.com/xamarin/xamarin-macios/issues/7136
2020-10-05 21:58:59 -04:00
monojenkins 6018db4d39
[xcode12.2] [tests][xtro] Consider class (static) methods when checking for deprecation. Fix #9026 (#9781)
ref: https://github.com/xamarin/xamarin-macios/issues/9026
2020-10-05 16:00:51 -04:00
monojenkins 3b36acecba
[tests][cecil] Check that error-based enum values don't have availability attributes (#9780)
and fixes the ones that have some.

From https://github.com/xamarin/xamarin-macios/issues/9724

We do not _normally_ add availability attributes on enums **members** that represent error codes. In part because it's a lot of metadata and, foremost, because it's not really helpful to write code. E.g.

```csharp
var err = Call.Api (1);
switch (err) {
case NSError.Bad:
case NSError.Wrong:
   Console.WriteLine ($"API failed: {err});
   break;
case NSError.Ok:
   break;
default:
   Console.WriteLine ($"Unknown error code {err}");
   break;
}
```

Adding version checks inside this would be complicated (source wise) and not really helpful since
* API can return undefined error code (and the error logic should work);
* Availability information is not 100% accurate;

As such we default to not add them - but we some time forgot about it. An intro rule could easily ensure we don't add them needlessly.
2020-10-05 10:37:54 -04:00
Sebastien Pouliot 9e192d1eff
[xcode12.2][tests][xtro] Check for deprecated p/invokes (C API) (#9773)
We already had support for ObjC API but nothing reported missing
availability attributes for p/invokes, used in manual bindings

Backport of #9700 which adds fixes for missing [Deprecated] inside Xamarin.Mac.dll
2020-10-05 08:12:45 -04:00
Alex Soto 5deee9ea95
[xcode12.2] Initial bump to Xcode 12.2 Beta 2 (#9730)
* [xcode12.2] Initial bump to Xcode 12.2 Beta 2

* Add tvOS specific checks for exact Xcode check
2020-10-02 18:33:38 -04:00