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

14816 Коммитов

Автор SHA1 Сообщение Дата
Haritha Mohan 374c2d1fba Fix typo in property name 2022-11-15 09:10:37 -08:00
Haritha Mohan dabcafab4c Add wrap attr 2022-11-15 09:10:37 -08:00
Haritha Mohan edfddbe07f [AVFoundation] Fix capitalization issue in type AVCaptureDeviceFormat
Fixes #16620
2022-11-15 09:10:37 -08:00
Rolf Bjarne Kvinge ea17a27554
[Foundation] Enable nullability for NSAttributedString. (#16728)
Part of #14489.

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-11-15 18:03:12 +01:00
Rolf Bjarne Kvinge 2f684ca72b
[runtime] Use the built-in support in MonoVM for autorelease pools on threadpool threads. Fixes #11788. (#16751)
MonoVM in .NET 6+ supports automatic autorelease pools on threadpool threads
just like CoreCLR does, so we can remove our custom mono profiler hooks to
accomplish this.

Fixes https://github.com/xamarin/xamarin-macios/issues/11788.
2022-11-15 17:44:41 +01:00
Rolf Bjarne Kvinge 8a62813e32
[dotnet-linker] Give a better exception message when unable to resolve an assembly reference. (#16750) 2022-11-15 17:43:28 +01:00
Rolf Bjarne Kvinge 9af83cd712
[monotouch-test] Ignore certificate chain errors on bots. Fixes #xamarin/maccore@2626. (#16743)
Ignore certificate chain errors on bots in MessageHandlerTest.RejectSslCertificatesWithCustomValidationCallbackNSUrlSessionHandler.

Fixes https://github.com/xamarin/maccore/issues/2626.
2022-11-15 17:43:11 +01:00
Rolf Bjarne Kvinge 4a626c2ac5
[autoformat] Add the IOSurface, ImageCaptureCore, ImageIO, ImageKit, Intents, JavaScriptCore, LocalAuthentication, MLCompute, MapKit, MediaAccessibility, MediaLibrary, MediaPlayer and MediaToolbox frameworks. (#16755) 2022-11-15 17:41:59 +01:00
Marius Ungureanu 4025f4e881
Fix ownership of CFSocketCreateRunLoopSource (#6089)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-15 15:55:21 +01:00
dotnet-maestro[bot] 62022835d3
[main] Update dependencies from dotnet/runtime (#16734)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a
*CoherentParentDependency*
attribute were produced in a build used as input to the parent
dependency's build.
See [Dependency Description
Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
- **Microsoft.NET.Workload.Emscripten.net7.Manifest-7.0.100**: from
7.0.0 to 7.0.1 (parent: Microsoft.NETCore.App.Ref)

## From https://github.com/dotnet/runtime
- **Subscription**: 38d2313f-22d5-4062-c8e1-08dabd6d8c77
- **Build**: 20221111.7
- **Date Produced**: November 12, 2022 12:29:45 AM UTC
- **Commit**: 12b1873d69d9d97aaaa3ed97cfa93657ad6f7f39
- **Branch**: refs/heads/release/7.0

- **Updates**:
  - **Microsoft.NETCore.App.Ref**: [from 7.0.1 to 7.0.1][5]
- **Microsoft.NET.Workload.Emscripten.net7.Manifest-7.0.100**: [from
7.0.0 to 7.0.1][6]

[5]: 96c24ea...12b1873
[6]: 6b7d1f4...3a6c724

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-15 14:38:42 +01:00
dotnet-maestro[bot] 45d0c82418
[main] Update dependencies from dotnet/installer (#16723)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer
- **Subscription**: 50c9492e-4671-4d1d-7920-08dabd1031a2
- **Build**: 20221113.3
- **Date Produced**: November 14, 2022 3:19:03 AM UTC
- **Commit**: cbfa5973058e8fad5e461e976ed821bc3ff6c313
- **Branch**: refs/heads/release/7.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.101-servicing.22559.16 to 7.0.101-servicing.22563.3][6]
  - **Microsoft.AspNetCore.App.Ref**: [from 7.0.0-rtm.22512.1 to 7.0.0][7]

[6]: c467942...cbfa597
[7]: https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore/branches?baseVersion=GCc686535&targetVersion=GCbb01bbf&_a=files

## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
  - **Microsoft.AspNetCore.App.Ref**: from 7.0.0-rtm.22512.1 to 7.0.0 (parent: Microsoft.Dotnet.Sdk.Internal)

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <github-actions@xamarin.com>
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-15 14:37:24 +01:00
Rolf Bjarne Kvinge 76c6c67fa8
[autoformat] Add the GLKit, GameController, GameKit, GameplayKit, HealthKit and HomeKit frameworks. (#16716) 2022-11-15 07:34:27 +01:00
Manuel de la Pena 0ed4ad3a26
[DevOps] Allow to pass extra dependencies for the build stage. (#16736)
Allow to add a dependency before our build. This is used in the unified
pipeline to try to download the binaries if it can rather than building
from scratch.

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-14 23:35:00 -05:00
Manuel de la Pena 363b6727ed
[DevOps] Forward forgotten parameters. (#16737)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-14 23:34:43 -05:00
Haritha Mohan a4f2ed35e3 [WebKit] defaultChecked -> DefaultChecked
Fixes #16727
2022-11-14 12:55:08 -08:00
Rolf Bjarne Kvinge 2d96d43145
[xtro] Fix targets file and print out full path to the html report. (#16721)
There was a typo in the target name for creating the html report for .NET
('report-dotnet' vs 'dotnet-report').

Also print out the full path the html report when it's created, makes it much
easier to open the file from the command line because I can c&p the entire
path.
2022-11-14 18:18:06 +01:00
Manuel de la Pena fc1b421f82
[DevOps] Write comments in the correct repo when we are not in self. (#16730)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-11-14 11:56:00 -05:00
Rolf Bjarne Kvinge 3b839e1551
[autoformat] Add msbuild tests. (#16717) 2022-11-14 08:58:59 +01:00
Rolf Bjarne Kvinge 6905e0b176
[apidiff] Fix comparison vs previous commit for .NET. (#16681)
When comparing with the previous commit, we can't use the TFM for the
stable version of .NET, since it may not be the same TFM used in the
previous commit.

Instead fetch the actual TFM from the checkout, and use that during the
api comparison.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-11-14 08:44:08 +01:00
Rolf Bjarne Kvinge 09f84f988c
[autoformat] Autoformat after a PR race. (#16720)
There was a PR race:

1. I created a PR to autoformat monotouch-test code.
2. Another PR added incorrectly formatted code to monotouch-test.
3. The first PR was merged, everything was fine.
4. The second PR was merged (it was green) - but its code hadn't been
   autoformatted.
5. Now there's incorrectly formatted code in the repo, which will show up in
   every new PR.

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-11-14 08:43:39 +01:00
Rolf Bjarne Kvinge a5a7f23494
[apidiff] Fix typo when loading AUTH_TOKEN_GITHUB_COM from a file. (#16722) 2022-11-14 08:06:12 +01:00
Manuel de la Pena 80c0e76218
[DevOps] Checkout the yaml repos to fix an issue with the working dir. (#16715)
Azure pipelines has this terrible design in which the path of the
checkout is different depending if you checkout a single repo or
several.

In this case, we have no issues on macios because we do know we have not
been checkout with anyother repo in the upload step, that is not the
case when working on the unified pipeline. Rather than adding some
complicated logic, we are going to be checking out the yaml templates so
that we have the same working directory structure.
2022-11-11 14:02:06 -05:00
Rolf Bjarne Kvinge 669232f322
Move commit distance computation into a separate bash script. (#16712)
The script does the same thing, except:

* It doesn't use 'bc', but instead bash's intrinsic math support: '$((1+2))' -
  because when we execute in bash on Windows, 'bc' might not be available.
* It's easier to debug.

This fixes a problem when we need to compute these values on Windows in CI.
2022-11-11 13:46:40 +01:00
Rolf Bjarne Kvinge 380cb06077
[tests] Make CFNotificationCenterTest.TestNullNameAndObserver wait for notifications. Hopefully fixes #xamarin/maccore@1440. (#16699)
Hopefully fixes https://github.com/xamarin/maccore/issues/1440.
2022-11-11 13:42:49 +01:00
Rolf Bjarne Kvinge 9fb6a4b309
[devops] Augment the install-workloads.sh script to make it easier to run locally. (#16698)
It's often desired to run the install-workloads.sh script locally, in order to
diagnose problems with it.

So improve it a bit by:

* Adding a few comments explaining things.
* Don't assume we're in the correct directory.
* Figure out BUILD_SOURCESDIRECTORY if it's not already set.
* Validate a bit and show more helpful errors.

Hopefully future me will be grateful!
2022-11-11 13:42:35 +01:00
Rolf Bjarne Kvinge 34995569fc
[tests] Fix conditional logic for .NET 7+. (#16704)
Fixes this test in .NET 8:

    AesCreate: System.Security.Cryptography.Algorithms,
        Expected: String starting with "System.Security.Cryptography.Algorithms, "
        But was: "System.Security.Cryptography, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
2022-11-11 09:48:33 +01:00
Marius Ungureanu 2bd6433fda
[perf] Add unmanaged constraint to some APIs to allow pinning, and not manual GCHandle code (#7561)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-11-11 08:58:46 +01:00
dotnet-maestro[bot] df2fcad671
[main] Update dependencies from dotnet/installer (#16585)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer
- **Subscription**: 50c9492e-4671-4d1d-7920-08dabd1031a2
- **Build**: 20221109.16
- **Date Produced**: November 9, 2022 8:04:06 PM UTC
- **Commit**: c4679427ae635df187e4d250bae4c7bcb58fd611
- **Branch**: refs/heads/release/7.0.1xx

- **Updates**:
- **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.100-rtm.22531.3 to
7.0.101-servicing.22559.16][8]

[8]: 3079e52...c467942

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <github-actions@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-11 08:51:19 +01:00
Rolf Bjarne Kvinge c4c0d35a7f
[autoformat] Add the CoreWlan, EventKit, EventKitUI, ExternalAccessory, FileProvider, FinderSync and Foundation frameworks. (#16714)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-11-11 08:21:20 +01:00
Rolf Bjarne Kvinge ca42f2644d
[autoformat] Add the CoreServices, CoreTelephony, CoreText and CoreVideo frameworks. (#16700) 2022-11-10 18:00:29 +01:00
Rolf Bjarne Kvinge 6f45caa84d
[autoformat] Add monotouch-test (#16701) 2022-11-10 17:59:26 +01:00
Manuel de la Pena be0c787503
[DevOps] Allow to pass the alias of the xamarin repo and its commit to the checkout. (#16657)
This will allow an external pipeline to checkout the repo and use our
templates to build.

This is a partial fix for
https://github.com/xamarin/sdk-insertions/issues/41
2022-11-10 08:12:42 -05:00
Manuel de la Pena d7833fcf8d
[DevOps] Allow to pass a prefix to be used in the display names. (#16686)
This will allow to know the owner of the stage.
2022-11-10 08:12:11 -05:00
Manuel de la Pena e51827ddb8
[DevOps] Use the project URI to calculate the project. (#16680)
The template can be run by a diff pipeline, that means that the project
and the commit wont point to xmarin/xamarin-macios. We use the URI to
calculate the org and the repo to be passed to the pwh objects.

Fixes https://github.com/xamarin/sdk-insertions/issues/43
2022-11-10 08:11:22 -05:00
Rolf Bjarne Kvinge b8362b1079
[runtime] Validate that the static registrar code being registered was built using the same runtime. (#16652)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-11-10 10:45:20 +01:00
Rolf Bjarne Kvinge d65b74a936
[autoformat] Add the CoreHaptics, CoreImage, CoreLocation, CoreML, CoreMedia, CoreMidi and CoreMotion frameworks. (#16689)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-11-10 10:29:40 +01:00
Rolf Bjarne Kvinge 1296e35205
[registrar] Deduplicate the code to compute the initialization method name for the generated static registrar code. (#16649)
This is a step towards having a registration map (and initialization method) for each assembly.

Ref: https://github.com/xamarin/xamarin-macios/issues/11309

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-11-10 08:56:37 +01:00
Manuel de la Pena 4da68c36ba
[DevOps] Update the way we pass the token to the provisionator task. (#16691) 2022-11-09 18:57:55 -05:00
Rolf Bjarne Kvinge 5eda14f782
[devops] Reset dependencies before adding provisioning profiles. (#16651)
This makes sure we're at the right maccore hash before adding provisioning
profile (in particular we want to be at the hash where the PR branch is at,
not the tip of main (which is the default)).
2022-11-09 19:23:52 +01:00
Haritha Mohan d3c73ce86d [AVFoundation] Fix inputs -> Inputs
Fixes #16631
2022-11-09 09:27:31 -08:00
Manuel de la Pena 527de6d0ab
[DevOps] Pass the yaml resource name since the default is not longer valid. (#16676) 2022-11-09 11:56:47 -05:00
Manuel de la Pena bbecd22e33
[DevOps] Do not use the output var from the azure step for the urls. (#16653) 2022-11-09 08:54:24 -05:00
Manuel de la Pena ee778c0f64
[DevOps] Fix missed variables format. (#16634)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-09 08:52:14 -05:00
Rolf Bjarne Kvinge 5f1d270cb3
[autoformat] Add the CoreGraphics framework. (#16644) 2022-11-09 14:10:06 +01:00
Rolf Bjarne Kvinge 8296809224
Bump Xamarin.MacDev. (#16656)
New commits in xamarin/Xamarin.MacDev:

* xamarin/Xamarin.MacDev@33502e1 Add better diagnostics when failing to find provisioning profiles.
* xamarin/Xamarin.MacDev@b0b5f8b Use Environment.SpecialFolder.UserProfile, not SpecialFolder.Personal.
* xamarin/Xamarin.MacDev@f4d43c1 Autoformat code
* xamarin/Xamarin.MacDev@5e7f841 Add the autoformat actions to autoformat the code in this repo.
* xamarin/Xamarin.MacDev@7e8233f Add Extended Version info to XamMac

Diff: 627737bf83..33502e15ba
2022-11-09 07:55:57 +01:00
Rolf Bjarne Kvinge a02e840007
[msbuild] Show an error when trying to build a binding project from Windows without a Mac connection. (#16612)
Building a binding project from Windows without a Mac connection doesn't work,
because we need to execute bgen. Currently we just skip every task and target
that doesn't work from Windows, but that means nothing at all happens, which
is confusing (in particular if the binding project is referenced by other
projects, which will also fail to build).

So make it more explicit that a connection to a Mac is required to build a
binding project by showing a warning when there's no connection (and not an
error because that could break existing workflows for customers).

Ref: https://github.com/xamarin/xamarin-macios/issues/16611
2022-11-09 07:52:58 +01:00
Alex Soto ba77d29f4e
[CI] Go back to the stable bots (#16661) 2022-11-09 07:42:12 +01:00
Manuel de la Pena 968ebbf4d3
[DevOps] Fix value of yamlResourceName to use the new resource name. (#16658) 2022-11-08 13:07:13 -05:00
Rui Marinho ccc24287a7
[Devops] Fix the tempalte name. There was a merge race. (#16654) 2022-11-08 17:05:20 +00:00
Manuel de la Pena e1ecf77211 [Devops] Fix the tempalte name. There was a merge race. 2022-11-08 12:04:03 -05:00