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

14311 Коммитов

Автор SHA1 Сообщение Дата
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
Mauro Agnoletti cc8c336a2e
[illink] Ensure we replace the dotnet SDK path in the _ExtraTrimmerArgs for remote builds (#16294)
From net7, the original ILLInk targets are adding a new link attribute pointing to a supressions file inside the ILLink tasks folder, e.g: '--link-attributes "C:\Program Files\dotnet\sdk\7.0.100-rc.2.22477.23\Sdks\Microsoft.NET.ILLink.Tasks\build\6.0_suppressions.xml"'.

For remote builds, we need to replace the original dotnet folder with the XMA dotnet folder in the Mac, so in our override targets we replace this value before passing it to the ILLink task
2022-10-08 22:40:21 +02:00
Rolf Bjarne Kvinge 37211b52bc
[actions] Use a non-protected branch for release branch testing. (#16289)
See also: #16286
2022-10-07 18:28:21 +02:00
Rolf Bjarne Kvinge dbcf1cadf8
[devops] Add more post-build pipeline branches. (#16286)
* Add net8.0, because that's coming soon.
* Add release-test/\*, because we want to run some automated tests on various
  release configurations, and all the release/\* branches are branch-protected,
  which means CI can't commit any such branch without going through a pull
  request (which needs to be approved, etc.), and that's not very automated at
  all. So add a branch pattern to the post-build pipeline that isn't
  branch-protected.
2022-10-07 18:18: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
Mauro Agnoletti 448ffa9754
Updated Xamarin.Messaging to 1.8.6 (#16281) 2022-10-07 17:15:26 +02:00
Rolf Bjarne Kvinge fc1bf0a974
Merge main into xcode14.1. (#16267) 2022-10-07 16:04:14 +02:00
Rolf Bjarne Kvinge 67f95e64f8
[dotnet] Fix whitespace in templates. (#16275)
Make indentation consistent, and add eol at the end of files.
2022-10-07 13:15:31 +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
dotnet-maestro[bot] ec467c647b
[main] Update dependencies from dotnet/installer (#16272)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer
- **Subscription**: be6e1947-9e64-4217-c50e-08da52a3899f
- **Build**: 20221005.14
- **Date Produced**: October 5, 2022 11:18:08 PM UTC
- **Commit**: 06b150f71677399fe0a5cc3382b0aa7c3f3d9600
- **Branch**: refs/heads/release/6.0.4xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 6.0.403-servicing.22504.9 to 6.0.403-servicing.22505.14][1]

[1]: 9d74946...06b150f

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <github-actions@xamarin.com>
2022-10-07 08:22:34 +02:00
Mauro Agnoletti 6bc66bf2ee
Ensure we restore the temp csproj to compute AOT compiler path (#16280)
The build command doesn't support a parameter to specify a NuGet.config, so we need to restore the temp project first, so we pass the NuGet.config file to use the sources from, in case it exists (e.g: the NuGet.config from the XMA dotnet path).

This is useful to support auhtorized NuGet feeds

Fixes Bug #1611102 - [XVS][MAUI] Failed to build .NET MAUI (net6.0) with iOS Simulator: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1611102

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-10-07 08:16:01 +02:00
Rolf Bjarne Kvinge 9248e37698
[actions] Set a git identity when updating single platform release branches. (#16256) 2022-10-07 08:06:07 +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
Rolf Bjarne Kvinge 8bb8d1aa76
Update DOWNLOADS.md with new releases. (#16258)
Also fix the script that computes DOWNLOADS.md to actually use the correct
DOWNLOADS.md location.
2022-10-07 08:05:15 +02:00
Rolf Bjarne Kvinge 85292582ec
[dotnet] Add helpful make targets to implement and test templates (#16261) 2022-10-07 08:04:26 +02:00
Israel Soto 8e91385882
[TVServices] Added support for Xcode 14.1 b3 (#16194)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-06 17:21:10 -04:00
Israel Soto c54a957c8b
[CoreSpotlight] Added support for Xcode 14.1 b1 (#16116)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-06 13:44:36 -04: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 6afa8eaeae
[dotnet] macOS is not a mobile platform, so don't claim it is in the templates. (#16262) 2022-10-06 16:46:27 +02:00
Rolf Bjarne Kvinge ec2390ad6c
[dotnet] Improve name and descripting in a few existing templates a little bit. (#16260)
This increases the consistency with how other templates are named.
2022-10-06 15:50:33 +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
Rolf Bjarne Kvinge 48684c2285
[actions] Checkout all branches when updating single platform release branches. (#16254)
Because we want to update branches other than main.
2022-10-06 07:29:47 +02:00
Rolf Bjarne Kvinge ff2b0a02c2
[actions] Allow manual triggers in the update single platform branch action. (#16251) 2022-10-05 21:15:03 +02:00
dotnet-maestro[bot] e98e0cbb94
[main] Update dependencies from dotnet/installer (#16246)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer
- **Subscription**: be6e1947-9e64-4217-c50e-08da52a3899f
- **Build**: 20221004.9
- **Date Produced**: October 4, 2022 7:14:06 PM UTC
- **Commit**: 9d749467a5fb8fdc76c0ec90b3a7a6388dc3ca2c
- **Branch**: refs/heads/release/6.0.4xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 6.0.402-servicing.22465.1 to 6.0.403-servicing.22504.9][1]

[1]: 1c38151...9d74946

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <github-actions@xamarin.com>
2022-10-05 21:12:41 +02:00
Rolf Bjarne Kvinge 76c0ed947e
[actions] Update the single-platform test branch every Saturday. (#16243)
We have four branches that test releasing a single platform:

    release/release-test-only-dotnet-$platform

In these branches, only the given platform is enabled (these are also
.NET-only branches), with the idea that we're testing the build and publish of
a single platform. These branches have a 'release/' prefix, so that the go
through as much as possible of our release pipeline.

Hopefully by testing and making sure the following builds and publishes correctly:

* All platforms (the default for our build)
* Each platform by itself

Building and publishing more than one (but less than all four) platforms also
work.

This PR will automatically update these four branches from main every
Saturday, so that we'll be able to find and fix any problems that occur before
release date.
2022-10-05 18:11:52 +02:00
Rolf Bjarne Kvinge 890c9b7ba6
[autoformat] Update to cope with breaking changes in actions/github-script. (#16240)
actions/github-script was recently updated from 3.1.0 to 6.3.1 (69de14c668), but unfortunately there were breaking changes:

* https://github.com/actions/github-script#breaking-changes
* https://github.com/actions/github-script/issues/242#issuecomment-1049167283

This would manifest as:

    TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts')
    Error: Unhandled error: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts')
        at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13340:16), <anonymous>:3:38)
        at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13341:12)
        at main (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13436:26)
        at Module.858 (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:13413:1)
        at __webpack_require__ (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:24:31)
        at startup (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:43:19)
        at /home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:49:18
        at Object.<anonymous> (/home/runner/work/_actions/actions/github-script/v6.3.1/dist/index.js:52:10)
        at Module._compile (node:internal/modules/cjs/loader:1101:14)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

So update our code to to use the new way to do things.
2022-10-05 18:11:21 +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 14245bd13f
[release] Only try to copy files to the package directory if they exist. (#16225)
This is important when not building all platforms, because not all types of
files are produced for every platform.
2022-10-05 08:59:52 +02:00
Rolf Bjarne Kvinge e2c41bb90f
Merge main into xcode14.1. (#16234) 2022-10-05 08:52:19 +02:00
Rolf Bjarne Kvinge 71657cfe83
Disable objc_msgSend stubs in clang. Fixes #16223. (#16231)
Clang will by default emit objc_msgSend stubs in Xcode 14, which ld from
earlier Xcodes doesn't understand. We disable this by passing
-fno-objc-msgsend-selector-stubs to clang.

Ref: https://developer.apple.com/videos/play/wwdc2022/110363/
Ref: https://www.wwdcnotes.com/notes/wwdc22/110363/
Ref: https://github.com/llvm/llvm-project/issues/56034

Fixes https://github.com/xamarin/xamarin-macios/issues/16223.
2022-10-05 08:43:24 +02:00
Rolf Bjarne Kvinge 96d7b958b6
[msbuild] Fix processing static libraries in binding sidecars. (#16227)
Fixes an issue where we'd end up trying to link with the managed assembly instead:

> ld: warning: ignoring file .../bin/Debug/net6.0-ios/MyBinding.dll, building for iOS Simulator-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x4D 0x5A 0x90 0x00 0x03 0x00 0x00 0x00 0x04 0x00 0x00 0x00 0xFF 0xFF 0x00 0x00 )

Also add a warning if we run into other types of libraries in the future to
make it easier to diagnose.
2022-10-05 08:40:20 +02:00
Manuel de la Pena ee1855b887
[DevOps] Split the signing of legacy pkgs and dotnet pkgs. (#16183)
This change splits the signing of the pkgs so that we can have botnet
pkgs as early as possible without needing to wait for the legacy ones to
be completed, this will allow to do VS insertions earlier.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-04 16:46:38 -04:00