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

11279 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 38acfafd38 [msbuild] Move/document a few properties related to signing and packaging. 2021-07-27 13:52:46 +02:00
Rolf Bjarne Kvinge a6b10696aa [msbuild] Accept both 'CodeSigningKey' and 'CodesignKey' as synonyms.
This makes it easier to use the same csproj for multiple platforms for customers.
2021-07-27 13:52:46 +02:00
Rolf Bjarne Kvinge b62b6213e2 [msbuild] Move the EnablePackageSigning variable to shared code.
So that it's set for both macOS and Mac Catalyst.
2021-07-27 13:52:46 +02:00
Rolf Bjarne Kvinge ea61948502 [msbuild] Merge the EnableSGenConc properties.
We use two different properties for the same thing: MtouchEnableSGenConc and
EnableSGenConc. Going forward, we're sticking with just EnableSGenConc, but
we'll keep accepting MtouchEnableSGenConc if it's set.
2021-07-27 13:52:46 +02:00
Rolf Bjarne Kvinge a2a2221c5e [msbuild] Unify the IsAppExtension property 2021-07-27 13:52:46 +02:00
Rolf Bjarne Kvinge 1e8698ae9b [msbuild] Unify the ArchiveOnBuild property 2021-07-27 13:52:46 +02:00
Rolf Bjarne Kvinge 3accf61ffd [msbuild] Unify the _CanOutputAppBundle property. 2021-07-27 13:52:46 +02:00
Rolf Bjarne Kvinge 12f49a327e [dotnet] Add the CreateIpa, _CreateInstaller and Archive targets to the things we need to do at build time
* CreateIpa: only executed if 'BuildIpa' is set.
* _CreateInstaller: only executed if 'CreatePackage' is set.
* Archive: only executed if 'ArchiveOnBuild' is set.

We don't do this for inner builds of multi-rid builds, only single-rid builds or
outer builds of multi-rid builds.
2021-07-27 13:52:46 +02:00
Rolf Bjarne Kvinge 7e52c08a52 [msbuild/dotnet] Mac Catalyst entitlements must be embedded in the app signature, not the executable.
Just like they are for macOS apps.
2021-07-27 13:52:46 +02:00
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