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

5907 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena a9bca96404
[UIKit] Add support for Xcode 14.1. (#16411) 2022-10-24 11:21:40 -04:00
Manuel de la Pena 25d018437d
[CoreLocation] Add support for Xcode 14.1 (#16412) 2022-10-24 11:21:18 -04:00
Rolf Bjarne Kvinge c5a42a96cb
Merge main into xcode14.1. (#16375) 2022-10-19 09:54:18 +02:00
Alex Soto f414cfa6ca
[xcode14.1] Bump to Xcode 14.1 Release Candidate (#16379) 2022-10-19 07:56:47 +02:00
Rolf Bjarne Kvinge 6414c14486 Merge main into xcode14.1. 2022-10-18 09:45:22 +02:00
Rolf Bjarne Kvinge db3c669502
[tests] Fix converting Profile values to ApplePlatform values for macOS. (#16357) 2022-10-18 08:04:36 +02:00
Rolf Bjarne Kvinge 9ab18236b8
[xharness] Fix path to mlaunch when using mlaunch from a .NET SDK pack. (#16361) 2022-10-18 08:04:13 +02:00
Rolf Bjarne Kvinge 57307a4168
Merge main into xcode14.1. (#16364) 2022-10-18 08:03:58 +02:00
Rolf Bjarne Kvinge a15b2e0fe0
Bump min watchOS simulator version. (#16317) 2022-10-17 17:57:47 +02:00
Rolf Bjarne Kvinge 06945fb238
[xharness] Ignore Mac Catalyst if Mac Catalyst is disabled. (#16356) 2022-10-17 17:54:04 +02:00
Manuel de la Pena b75d4c3821
[BackgroundAsserts] Add support for Xcode 14.1 (#16350)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-17 11:46:27 -04:00
Rolf Bjarne Kvinge ddb00021c4
[test] Adjust ProjectTest.AppWithGenericLibraryReference to not fail when only macOS is enabled. (#16346)
This test requires another platform to be enabled in addition to the current
platform being tested: that other platform is iOS when testing macOS, and
macOS for all other platforms.

This can be seen in the target frameworks for the referenced library projects:

    MacCatalyst/Library.csproj:     <TargetFrameworks>net$(BundledNETCoreAppTargetFrameworkVersion)-macos;netstandard2.1</TargetFrameworks>
    iOS/Library.csproj:             <TargetFrameworks>net$(BundledNETCoreAppTargetFrameworkVersion)-macos;netstandard2.1</TargetFrameworks>
    macOS/Library.csproj:           <TargetFrameworks>net$(BundledNETCoreAppTargetFrameworkVersion)-ios;netstandard2.1</TargetFrameworks>
    tvOS/Library.csproj:            <TargetFrameworks>net$(BundledNETCoreAppTargetFrameworkVersion)-macos;netstandard2.1</TargetFrameworks>
2022-10-17 13:32:05 +02:00
Rolf Bjarne Kvinge cb6f555665 Merge main into xcode14.1. 2022-10-17 11:35:33 +02:00
Simon Rozsival 7171baaeca
[Foundation] Implement the server certificate custom validation callback usage in NSUrlSessionHandler (#15117)
We recently implemented the `ServerCertificateCustomValidationCallback` in Xamarin.Android (https://github.com/xamarin/xamarin-android/pull/6665). It would be great to have feature parity and support the same callback in Xamarin.iOS and Xamarin.Mac.

Related to https://github.com/dotnet/runtime/issues/68898.

Partial fix for https://github.com/xamarin/xamarin-macios/issues/14632.

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-17 10:14:39 +02:00
Rolf Bjarne Kvinge 71383ff1f0
[xtro] Fix processing common files when not all platforms are selected. (#16349)
We can't process a common-fx.ignore file for a given framework if that
framework isn't included in any of the platforms we're building for.

Example: we can't process common-AppKit.ignore when only iOS is enabled,
because none of the errors listed in common-AppKit.ignore will be reported for
an iOS build.
2022-10-17 09:26:07 +02:00
Rolf Bjarne Kvinge ad8cdb3f91
[msbuild] Build the solution with .NET. (#16304)
Hopefully this fixes some of the recurrent build problems where we'd fail to
restore nuget packages.

Ref: https://github.com/xamarin/maccore/issues/2620

I wasn't able to execute ilrepack.exe with .NET, so that continues to be
executed with mono.
2022-10-17 07:22:24 +02:00
Rolf Bjarne Kvinge 98ffb7e32b
[xharness] Don't run Mac Catalyst tests if Mac Catalyst isn't enabled. (#16324) 2022-10-14 14:51:11 +02:00
Rolf Bjarne Kvinge 4db2998300
[tests] Adjust the BGen.ResponseFile to only execute when the platforms it needs are enabled. (#16333) 2022-10-14 10:01:59 +02:00
Rolf Bjarne Kvinge 05939b5e86
[xtro] Don't allow entries in 'common' ignore files that aren't actually common to all platforms for a given framework. Fixes #12769. (#16342)
This makes it possible to run xtro consistently when not all platforms are
enabled.

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

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-10-14 09:29:59 +02:00
Rolf Bjarne Kvinge 73ec322dd9
[mtouch] Generate own constants file. (#16321)
Generate own constants file, instead of relying on platform-specific files in
src/, which may or may not exist depending on the enabled platforms.
2022-10-14 09:24:04 +02:00
Rolf Bjarne Kvinge 19680b568a
[xtro] Only run legacy/.NET tests if legacy/.NET is enabled. (#16329) 2022-10-13 23:28:27 +02:00
Rolf Bjarne Kvinge 7659696c23
[autoformat] Add xharness.csproj. (#16322) 2022-10-13 23:10:08 +02:00
Israel Soto d910c1ba60
[GameController] Added support to Xcode 14.1 b1 (#16094)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-13 11:42:52 -04:00
Israel Soto 48293a4b05
[HomeKit] Added support to Xcode 14.1 b1-b3 (#16069)
* Matter properties are still missing

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-13 11:35:09 -04:00
Israel Soto bac36c5040
[VideoToolbox] Added support for Xcode 14 b1-3 (#15845)
Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-13 11:27:15 -04:00
Rolf Bjarne Kvinge 216018cda6
Merge main into xcode14.1. (#16303) 2022-10-13 09:28:06 +02:00
Israel Soto 76a8673260
[SharedWithYou] Added support for Xcode 14.1 b3 (#16199)
* Added macOS support
* Added some missing attributes and a class

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-12 17:48:55 -04:00
Israel Soto 9543d817f4
[MapKit] Add support for Xcode 14 beta 1 & 2 & 5 (#15562) 2022-10-12 12:10:01 -04:00
Israel Soto 17f0ffd332
[SharedWithYouCore] Added support for Xcode 14.1 b3 (#16198)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-12 12:09:00 -04:00
Rolf Bjarne Kvinge 1913c3efed
[tests] Re-enable tests that were disabled in Xcode 12 beta 1. Fixes #9531. (#16307)
Looks like some of these tests are working in the simulator now.

I also confirmed that ARReferenceObjectTest.MarshallingTest test should be
ignored in the simulator by verifying that Xcode gets the same behavior we do
(i.e. it doesn't work).

Fixes https://github.com/xamarin/xamarin-macios/issues/9531.
2022-10-11 23:25:14 +02:00
Chris Hamons 8eb182f95d
[appkit] Xcode 14.1 Beta 1-3 (#16255)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-11 13:45:28 -05:00
Chris Hamons b959804c25
[foundation] Add new/fixed selectors from beta1 (#16249) 2022-10-11 13:38:01 -05:00
Israel Soto 1e877a84cb
[CoreLocation] Added support for Xcode 14.1 b1 (#16119)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-11 12:09:28 -04:00
Israel Soto 11b1d1e1c7
[ThreadNetwork] Added support for Xcode 14.1 b3 (#16196)
This PR adds support for Mac and MacCatalyst. Apple says that these
platforms are now supported; framework's headers does not specify them
but do not deny them either, so let's see what intro says about this.

I'm just creating this PR to test it against intro once we can build the
branch.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-10 10:51:50 -04:00
Rolf Bjarne Kvinge 6b0d192131 Merge main into xcode14.1. 2022-10-10 13:02:13 +02:00
Rolf Bjarne Kvinge acf4edbfed
[dotnet] Add numerous item templates. Fixes #15836. (#16287)
Add the following item templates for all platforms:

* Controller (View Controller with UI written in code)
* View
* View Controller (View Controller with UI written in XIB)
* Storyboard

Item templates won't show up in VSMac until this is released:
https://github.com/xamarin/vsmac/pull/9133.

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

Also update the template tests accordingly.

This PR might be easier to review commit-by-commit due to the large number of generated localization files.
2022-10-10 08:09:34 +02:00
Rolf Bjarne Kvinge 6013e06418
[system-dependencies] Check for and install shellcheck and yamllint. (#16285)
Also make the build go into the tools/devops directory, which will run
shellcheck on the bash files. This also required fixing a couple of issues in
one of the bash scripts.

We currently don't use yamllint, but that's coming very soon.
2022-10-10 08:05:51 +02:00
Israel Soto b97e797709
[CoreMotion] Added support for Xcode 14.1 b1 (#16118)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-07 11:31:12 -04:00
Rolf Bjarne Kvinge fc1bf0a974
Merge main into xcode14.1. (#16267) 2022-10-07 16:04:14 +02:00
Rolf Bjarne Kvinge 2a4eaea5a7
[tests] Enable tests for interfaces being linked away. Fixes #9566. (#16279)
Fixes https://github.com/xamarin/xamarin-macios/issues/9566.
2022-10-07 13:10:03 +02:00
Rolf Bjarne Kvinge fa778b50e8
[autoformat] Add the DotNetUnitTests project to the projects to autoformat. (#16257) 2022-10-07 08:05:53 +02:00
Israel Soto 4e765eca0b
[NetworkExtension] Added support for Xcode 14.1 b1 (#16066)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-06 12:16:12 -04:00
Rolf Bjarne Kvinge 6d6c3b8570
[dotnet] Add class library project templates for tvOS, macOS and Mac Catalyst. (#16263)
These new project templates won't show up in VSMac until the new templates are
added to VSMac.

Ref: 61afbd1cd1/Xamarin.Addins.Core/Xamarin.Ide.Templating/TemplateDescriptionProvider.cs (L207-L216)

Also update the corresponding template tests.

This PR might be easier to review commit-by-commit due to the large number of generated localization files.
2022-10-06 16:47:06 +02:00
Rolf Bjarne Kvinge 45b97d838e Merge main into xcode14.1. 2022-10-06 13:59:29 +02:00
Rolf Bjarne Kvinge 273c2fa51a
[Foundation] Add NSArray.ToArray and implement IEnumerable<NSObject>. (#16252)
For NSArray, implement:

* A ToArray () method that returns an NSArray[].
* A ToArray<T> () method that returns a T[].
* The IEnumerable<NSObject> interface.

For NSArray<T>, implement:

* A ToArray () method that returns a T[].

This should make NSArray much better to work with from managed code.
2022-10-06 08:37:02 +02:00
Rolf Bjarne Kvinge f22ecb5f05
[autoformat] Add xtro projects to the projects to autoformat. (#16239) 2022-10-06 07:30:47 +02:00
Israel Soto c019630352
[WatchKit] Added support for Xcode 14.1 b1 (#16061)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-05 11:39:28 -04:00
Israel Soto 66ae01a3b2
[StoreKit] Added support for Xcode 14.1 b1-b3 (#16026)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-05 11:37:09 -04:00
Rolf Bjarne Kvinge c7badeacf1 Merge main into xcode14.1. 2022-10-04 16:21:54 +02:00
Rolf Bjarne Kvinge b0e99f8c26 Fix merge failure. 2022-10-04 08:13:46 +02:00