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

11270 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 1e496ba458 [msbuild] Move the logic to create .pkg files from Mac-specific target files to shared target files.
Because we need it for Mac Catalyst as well.
2021-07-27 13:52:46 +02:00
dotnet-maestro[bot] edc088ad7b
[main] Update dependencies from dotnet/installer (#12195)
* Update dependencies from https://github.com/dotnet/installer build 20210722.14

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rc.1.21372.2 -> To Version 6.0.100-rc.1.21372.14

* Update dependencies from https://github.com/dotnet/installer build 20210723.26

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rc.1.21372.2 -> To Version 6.0.100-rc.1.21373.26

* Update dependencies from https://github.com/dotnet/installer build 20210724.6

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rc.1.21372.2 -> To Version 6.0.100-rc.1.21374.6

* Update dependencies from https://github.com/dotnet/installer build 20210726.3

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rc.1.21372.2 -> To Version 6.0.100-rc.1.21376.3

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-07-27 07:53:27 +02:00
Rolf Bjarne Kvinge 1f8c7130f4
[xtro] Improve the auto-sanitizer. (#12226)
Now with support for auto-sanitizing todo files.
2021-07-27 07:46:04 +02:00
Rolf Bjarne Kvinge abcd04d049
[Foundation] Add EnumDesktop.cs to the API sources to handle it with the generator. (#12223)
This also meant merging the definitions for NSDocumentType.
2021-07-27 07:44:52 +02:00
Rolf Bjarne Kvinge 0549af9736
[dotnet] Add support for the interpreter + AOT when needed. Fixes #11421 and #11724. (#12211)
* Add support for the interpreter everywhere.
* Add support for the AOT compiler everywhere we didn't support it before,
  because the interpreter needs it (at least System.Private.CoreLib.dll must
  be AOT-compiled when using the interpreter).
* Do FullAOT compilation on Mac Catalyst/ARM64 if we're not using the
  interpreter, since we can't use the JIT.
* Fix monotouch-test to be green on Mac Catalyst/ARM64.

Fixes https://github.com/xamarin/xamarin-macios/issues/11724.
Fixes https://github.com/xamarin/xamarin-macios/issues/11421.
2021-07-27 07:39:43 +02:00
Rolf Bjarne Kvinge 52ad560f3b
[monotouch-test] Make CalendarTest.TestOrdinality location-agnostic. Fixes #xamarin/maccore@2471. (#12192)
Modifying the test to use UTC datetimes instead of local datetimes + specify
the timezone for the NSCalendar to make the results predictable everywhere and
at all times.

Fixes https://github.com/xamarin/maccore/issues/2471.
2021-07-27 07:37:15 +02:00
Sebastien Pouliot 2032f4a09a
[tests] Fix introspection results on iOS 15 beta 3 devices (#12232) 2021-07-26 20:31:13 -04:00
Sebastien Pouliot 13b1b3c45a
[tests][macos] Fix protocol failures for introspection on beta 3 (#12233) 2021-07-26 20:29:05 -04:00
Sebastien Pouliot b02f7c8e66
[tests] Fix introspection on macOS 12 (#12234)
This was fixed for iOS 15 but also happens on macOS 12 so the case
was moved into the common, shared test sources.
2021-07-26 20:23:12 -04:00
TJ Lambert 149434de3e
[SafariServices] Update to Xcode13 beta1 (#12102) 2021-07-26 17:29:17 -05:00
Manuel de la Pena d6542dd352
[CI] Update xcode versions to remove. (#12229) 2021-07-26 17:39:25 -04:00
Rolf Bjarne Kvinge c0651c92b1
[dotnet] Put the 'createdump' executable in the app bundle when using CoreCLR. Fixes #11432. (#12210)
So that CoreCLR can create crash dumps.

Fixes https://github.com/xamarin/xamarin-macios/issues/11432.
2021-07-26 16:16:10 +02:00
Manuel de la Pena afe582f91e
[CI] Remove xtro todo files form the static page due to size issues. (#12202) 2021-07-26 10:08:23 -04:00
Rolf Bjarne Kvinge e67f4de7cb
[AppKit/Foundation] Use Foundation's NSUnderlineStyle everywhere except for macOS until XAMCORE_4_0. (#12221) 2021-07-26 15:29:07 +02:00
Sebastien Pouliot 402be91510
[generator] Fix `[PrologueSnippetAttribute]` (#12212)
Lack of mapping results in an error if the attribute is used

```
error BI1055: bgen: Internal error: failed to convert type 'PrologueSnippetAttribute, Xamarin.iOS.BindingAttributes, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Please file a bug report (https://github.com/xamarin/xamarin-macios/issues/new) with a test case.
```

Unit test will be added as part of https://github.com/xamarin/xamarin-macios/pull/12165
2021-07-26 09:19:01 -04:00
Rolf Bjarne Kvinge 233675a19d [tools] Always use '__Internal' as the native library for .NET.
This is not the final fix, but this code will be reworked extensively, and
this fix works for now to make the interpreter work.
2021-07-26 15:17:45 +02:00
Rolf Bjarne Kvinge 478b58897f
[AppKit/Foundation] Sprinkle some null allowed. (#12201) 2021-07-26 09:19:48 +02:00
Rolf Bjarne Kvinge 170ab44c7c
[msbuild] Unify the Archive task between iOS and Mac. (#12200)
The iOS version and the Mac version were slightly different in that they were
adding different things to the archive, but both seemed to be resilient to
those files not existing, so I just merged both implementations to try to add
everything to the archive.
2021-07-26 09:19:01 +02:00
Rolf Bjarne Kvinge 561ffb7663
[AppKit/UIKit/Foundation] Use NSWritingDirection from Foundation. Partial fix for #6573. (#12199)
Make the NSWritingDirection enum from Foundation the main version, and
deprecate the others (AppKit.NSWritingDirection,
UIKit.UITextWritingDirection).

This makes things a bit easier with Mac Catalyst, which ships both AppKit and UIKit.

Ref: https://github.com/xamarin/xamarin-macios/issues/6573
2021-07-26 09:10:41 +02:00
Rolf Bjarne Kvinge 8372cda0fa
[msbuild] Remove dead code. (#12198) 2021-07-26 09:09:29 +02:00
Rolf Bjarne Kvinge 5d07e8de59
[msbuild] Make sure DeviceSpecificOutputPath always has a trailing slash. Fixes #12158. (#12162)
Fixes https://github.com/xamarin/xamarin-macios/issues/12158.
2021-07-26 08:58:13 +02:00
Sebastien Pouliot 0ba858a5c1
[corespotlight] Fix API not available on Catalyst (#12186)
Headers were only decorated with `ios(15.0)`
Testing on macOS 12 b3, as a Catalyst app, shows they are not available.
2021-07-23 22:07:44 -04:00
Sebastien Pouliot a9d5a71cb3
[coremotion] Remove API not available on Catalyst 15 (#12207) 2021-07-23 22:03:00 -04:00
Sebastien Pouliot 5c93260ca4
[gamekit] Remove `isPresentingFriendRequestViewController` from Catalyst (#12206)
* [gamekit] Remove `isPresentingFriendRequestViewController` from Catalyst

The selector is not annotated by itself (wrt Catalyst) but it maps to
`presentFriendRequestCreatorFromViewController` which is not available
on Catalyst. That part is clear in the headers

```diff
+#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
+/**
+ *  presentFriendRequestCreatorFromViewController:
...
+#elif TARGET_OS_OSX
+/**
+ *  presentFriendRequestCreatorFromWindow:
```
2021-07-23 21:58:19 -04:00
TJ Lambert 62a9fd98c4
[SensorKit] Updates for Xcode13 Beta1
No updates for Beta 2 or 3
2021-07-23 14:16:28 -05:00
TJ Lambert a27a58aa29
[UserNotifications] Updates for Xcode13 beta 3 (#12130) 2021-07-23 14:13:32 -05:00
Rolf Bjarne Kvinge 6c06a9fa81
[dotnet/templates] Use file-scoped namespaces. Fixes #12085. (#12197)
Fixes https://github.com/xamarin/xamarin-macios/issues/12085.
2021-07-23 21:06:17 +02:00
Rachel Kang 24acd2da84
Merge pull request #12152 from rachelkang/xcode13.0-storekit-b1
[StoreKit] Update bindings for Xcode 13.0 beta 1
2021-07-23 12:10:46 -04:00
Manuel de la Pena de862502ae
[CoreData] Add support for Xcode 13 beta 3. (#12183) 2021-07-23 11:24:19 -04:00
Manuel de la Pena c14c07af0f
[Xcode13] Use the correct simulators on beta 3. Fixes #11881 (#12178)
We can access the correct simulators fixing https://github.com/xamarin/xamarin-macios/issues/11881

fixes #11881
2021-07-23 11:23:44 -04:00
Rachel Kang cc48a3c45c
Merge branch 'main' into xcode13.0-storekit-b1 2021-07-23 11:08:00 -04:00
Sebastien Pouliot 4efd4409d8
[passkit] Disable default ctor on PKPaymentAuthorizationViewController (#12187)
It's not valid and macOS 12 complains.

Replaced by a stub to maintain binary compatibility.
2021-07-23 11:04:20 -04:00
Rolf Bjarne Kvinge 28bb8bc6f2
[AppKit] Make the files containing enums API source files instead of Core source files. (#12191)
This makes it easier to include/exclude certain enums in Mac Catalyst (since
we can use [NoMacCatalyst] instead of littering the files with "#if
MACCATALYST").

It required moving a little bit of unrelated code out of the enums source
files, but this is a much smaller change than moving all of the enums out of
these files (see #12185 for how that ends up).
2021-07-23 15:21:29 +02:00
Rolf Bjarne Kvinge a010778b30
[dotnet] Add support for implicit namespace imports. Fixes #12084. (#12173)
* [dotnet] Add support for implicit namespace imports. Fixes #12084.

Also update our templates to remove any using statements for implicitly imported
namespaces.

Fixes https://github.com/xamarin/xamarin-macios/issues/12084.

* [monotouch-test] Fix compilation error due to implicit namespace causing type conflict.

Fixes these errors:

    xamarin-macios/tests/monotouch-test/ImageIO/MutableImageMetadataTest.cs(54,54): error CS0104: 'CGImageProperties' is an ambiguous reference between 'CoreGraphics.CGImageProperties' and 'ImageIO.CGImageProperties'
    xamarin-macios/tests/monotouch-test/ImageIO/MutableImageMetadataTest.cs(54,88): error CS0104: 'CGImageProperties' is an ambiguous reference between 'CoreGraphics.CGImageProperties' and 'ImageIO.CGImageProperties'
    xamarin-macios/tests/monotouch-test/ImageIO/ImageMetadataTest.cs(40,54): error CS0104: 'CGImageProperties' is an ambiguous reference between 'CoreGraphics.CGImageProperties' and 'ImageIO.CGImageProperties'
    xamarin-macios/tests/monotouch-test/ImageIO/ImageMetadataTest.cs(40,88): error CS0104: 'CGImageProperties' is an ambiguous reference between 'CoreGraphics.CGImageProperties' and 'ImageIO.CGImageProperties'
2021-07-23 15:07:03 +02:00
Rolf Bjarne Kvinge ffc17b6ce2
Bump Touch.Unit. (#12182)
New commits in spouliot/Touch.Unit:

* spouliot/Touch.Unit@a246ede [TouchRunner] Avoid a NRE when unable to configure the selected transport mechanism. (#106)
* spouliot/Touch.Unit@2f0fad5 [TouchRunner] Add some tracing (#105)
* spouliot/Touch.Unit@2ef1771 [TouchRunner] Use CFString.FromHandle instead of NSString.FromHandle. (#104)
* spouliot/Touch.Unit@bd62d53 [Touch.Client] There's no need to include Xamarin.iOS in Mac Catalyst projects. (#103)

Diff: 07067b6a1c..a246ede5fb
2021-07-23 09:14:03 +02:00
Rolf Bjarne Kvinge 0a631f0523
[AppKit] Move NSAccessibility enums to be in the api definition. (#12180) 2021-07-23 09:12:24 +02:00
Rolf Bjarne Kvinge 0f62f57ac9
[link sdk] Fix incorrect test logic in HttpClientHandlerTest for Mac Catalyst. Fixes #xamarin/maccore@2472. (#12179)
Fixes https://github.com/xamarin/maccore/issues/2472.
2021-07-23 09:10:11 +02:00
Rolf Bjarne Kvinge 60fa8c90fe
[monotouch-test] Check a few more permissions that sometimes make the app crash due to a TCC violation on Mac Catalyst. (#12134)
* [monotouch-test] Check a few more permissions that sometimes make the app crash due to a TCC violation on Mac Catalyst.

* [monotouch-test] Adjust CaptureDeviceTest to only verify camera permission for Audio+Video, any other value is not supported by the OS.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-07-23 09:08:25 +02:00
dotnet-maestro[bot] 7dd7960f57
[main] Update dependencies from dotnet/installer (#12171)
* Update dependencies from https://github.com/dotnet/installer build 20210722.2

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rc.1.21370.12 -> To Version 6.0.100-rc.1.21372.2

* [dotnet] Work around problem where the local .NET install contains an invalid workload.

We work around it by deleting the invalid workload.

* [dotnet] Fix merge failure - don't reference workloads that don't exist anymore.

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2021-07-22 22:13:03 +02:00
Sebastien Pouliot 0344624f75
[corelocation] Update annotations to to fix intro on macOS 12 beta 3 (#12167)
Headers only mention iOS 15.

It does not make sense on tvOS (does not move much) and it's not on
Mac (or Catalyst) as validated with macOS 12 beta 3.
2021-07-22 15:41:19 -04:00
Rolf Bjarne Kvinge 4060387367
[AppKit/UIKit] Share the implementation of more enums between AppKit and UIKit. (#12175)
* [AppKit/UIKit] Merge the definitions of NSTextLayoutOrientation.

* [AppKit/UIKit] Merge the definitions of NSTextScalingType.

* [AppKit/UIKit] Merge the definitions of NSTextStorageEditActions.
2021-07-22 20:29:51 +02:00
Sebastien Pouliot 23d3fa51e5
[chip] Remove API to fix intro on macOS 12 beta 3 (#12166)
That API was removed in beta 3.
https://github.com/xamarin/xamarin-macios/wiki/CHIP-iOS-xcode13.0-beta3

but this was missed by https://github.com/xamarin/xamarin-macios/pull/12143
2021-07-22 09:53:28 -04:00
Rolf Bjarne Kvinge 1b357204ee
[dotnet/msbuild] Add support for using LLVM to build .NET apps. Fixes #11379. (#12136)
Fixes https://github.com/xamarin/xamarin-macios/issues/11379.
2021-07-22 15:49:22 +02:00
Rolf Bjarne Kvinge adc63843cd
[msbuild] Share the _CodesignVerify target between iOS and Mac. (#12142)
This brings the iOS logic to verify the signature in app extensions to Mac.
2021-07-22 15:48:19 +02:00
Rolf Bjarne Kvinge b4c2185c59
[AppKit/UIKit] Share the implementation of some enums between AppKit and UIKit. (#12164)
* [AppKit/UIKit] Merge the definitions of NSDirectionalRectEdge.

* [AppKit/UIKit] Merge the definitions of NSControlCharacterAction.

The enum values weren't the same between AppKit and UIKit, but I picked the
AppKit ones since they looked better, added those to every platform, and
deprecated the other ones where they existed.

Except on Mac Catalyst, where I removed instead of deprecating, since we don't
need to consider backwards compatibility.

* [AppKit/UIKit] Merge the definitions of NSGlyphProperty.

* [AppKit/UIKit] Merge the definitions of NSLayoutAttribute and NSLayoutFormatOptions.

* [AppKit/UIKit] Merge the definitions of NSLayoutRelation.

* [AppKit/UIKit] Merge the definitions of NSLineBreakStrategy.

* [AppKit/UIKit] Merge the definitions of NSRectAlignment.
2021-07-22 10:56:55 +02:00
Peter Collins a150c1dfcc
[dotnet] Add runtime packs to workload manifests (#12168)
Runtime pack entries should be included in all workload manifest files,
even though they will not yet be resolved from the packs folder due to
https://github.com/dotnet/sdk/issues/14044.  These changes will also
allow us to start producing .msi files for the runtime packs for an
eventual inclusion in the Visual Studio installer.
2021-07-22 10:41:40 +02:00
Rolf Bjarne Kvinge c898f19f18 [monotouch-test] Improve the MTLDeviceTest to work on Mac Catalyst. 2021-07-22 10:37:28 +02:00
Rolf Bjarne Kvinge f1d8c760cc [tools] Disable direct-pinvoke for AOT-compiled code on Mac Catalyst.
Using 'direct-pinvoke' will tell the AOT compiler to emit a direct call to the
native function declared in the DllImport, which doesn't work when we want to
redirect to a different native funcion (in our xamarin_pinvoke_override/PINVOKE_OVERRIDE
implementation).

This fixes our exception marshalling tests in monotouch-test.
2021-07-22 10:37:28 +02:00
Rolf Bjarne Kvinge 676a8bb90d [monotouch-test] Fix some formatting and add assert messages 2021-07-22 10:36:21 +02:00
Rolf Bjarne Kvinge 79c96753f8 [dotnet-linker] Add native references to libSystem.Security.Cryptography.Native.Apple for Mac Catalyst.
Fixes these test failures:

    Ctor_Trust: System.DllNotFoundException : libSystem.Security.Cryptography.Native.Apple
    MailX1: System.DllNotFoundException : libSystem.Security.Cryptography.Native.Apple
    Encrypt_Empty: System.DllNotFoundException : libSystem.Security.Cryptography.Native.Apple
    KeyRecordTest: System.DllNotFoundException : libSystem.Security.Cryptography.Native.Apple
    Basic_Leaf_Only: System.DllNotFoundException : libSystem.Security.Cryptography.Native.Apple

which are all because of

    Xamarin.MacCatalyst: Unable to resolve P/Invoke 'AppleCryptoNative_X509GetContentType' in the library 'libSystem.Security.Cryptography.Native.Apple'

which happens because without this change we're not linking with the static version
of libSystem.Security.Cryptography.Native.Apple.
2021-07-22 10:36:21 +02:00