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

13390 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena d94ede01b3
[CI] Migrate all code to use the new api to set the status on github. (#14728) 2022-04-13 15:42:01 -04:00
Manuel de la Pena 1f1189fae0
[Foundation] Ensure that post requests are not cached by the native code.(#14729)
The behaviour from apple is wrong, PUT and POST are differnet in that PUT is idempotent.
Calling PUT several times successively has the same effect (that is no side effect),
where successive identical POST may have additional effects

We should not let the native code cache the calls.
2022-04-13 14:09:10 -04:00
Manuel de la Pena 4c8d4457e5
[CI] Fix issue when adding the api diff on CI. (#14731) 2022-04-12 16:24:18 -04:00
Manuel de la Pena b8eb1c3140
[CI] Provide the bot name on mac test result comments. (#14717) 2022-04-12 12:39:54 -04:00
Manuel de la Pena a27b2d25c5
[CI] Fix typo that made comments fail on CI but not PRs. (#14727) 2022-04-12 12:08:05 -04:00
TJ Lambert 1d4daf2b4a
[Localization] Add the resx file for localization and move errors and warnings (#14703)
* Add the resx file for localization and move error and warning strings

* Change NStrings.resx -> Errors.resx

* using the new namespace

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-12 09:36:54 -05:00
Mauro Agnoletti 8b8cf07182
Update Messaging to 1.6.2 (revert changes) (#14719)
It includes a change revert because of threading freeze issues.
An issue has been detected in Xamarin.Messaging 1.5.26 and 1.6.1 that makes the code unstable and sensitive to thread freeze issues, so we are reverting back the changes until we can stabilize it.
This delays the fix of a bug in MSBuild command line builds for iOS remote builds.
2022-04-12 09:42:55 -04:00
Manuel de la Pena 2c4bb79243
[CI] Add new pwsh to allow to use the new code for test result comments. (#14722)
Add a few classes that will be later used to create the comments for the
tests.

- GitHubStatus/es: Allows to represent a github status, we are addign a
  class per concern.
- TestResults: Contains the information and logic of a test result.
  Implements the same interface as the other comment objects so that we
  resuse the comment code.

Tests have been added and modified the github action to run on pull
requests too.
2022-04-12 09:20:57 -04:00
Rolf Bjarne Kvinge 254a47c440
[tests] Improve NWProtocolStackTest to not crash the process if the state change handler throws an exception. (#14697) 2022-04-11 16:38:20 -04:00
Manuel de la Pena c3e9a8c2ab
[CI] Improve the action used to run tests on the pwsh. (#14723) 2022-04-11 16:35:22 -04:00
TJ Lambert 8ef3850662
[coreml] Add nullability to (generated and manual) bindings (#14412)
* enable nullability

* use is null

* use an empty array

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-04-11 09:16:54 -05:00
Manuel de la Pena ad2caf1f94
[CI] Add the hash that was used to build in the commit. (#14713)
Add the hash of the project in the comment footer so that we can know
what we did build. Later we can use this to filter outdated comments.
2022-04-11 10:12:03 -04:00
Manuel de la Pena dfdd8f200c
[CI] Fix variables to show the correct bot in the comments. (#14714) 2022-04-10 19:27:34 -04:00
Manuel de la Pena c87e2c0c59
[CI] Add a prefix to the comment headers. (#14712)
Add a prefix that lets us know if the comment comes from a PR build
(using the public bots) or a CI build (using the private bots).
2022-04-09 20:47:30 -04:00
Manuel de la Pena b9d95213c4
[CI] Re-enable the api diff comments. (#14705) 2022-04-09 09:36:56 -04:00
Mauro Agnoletti ceacd96def
Updated Xamarin.Messaging to 1.6.1 (#14707)
Changed from 1.5.* to 1.6.* to match the versioning used in XamarinVS main branch (1.5.* now remains only for 17.2 based branches)
2022-04-09 07:27:15 -04:00
Steve Hawley a2624f6515
[nnyeah] Namespace change (#14710)
`nnyeah` -> `Microsoft.MaciOS.Nnyeah`
2022-04-08 14:52:02 -04:00
Alex Soto 0c1b7fb74b
Bump .NET in main to RC 3 2022-04-08 14:41:51 -04:00
Manuel de la Pena e065229712
[CI] Fix the import path to be relative. (#14706) 2022-04-08 11:35:46 -04:00
TJ Lambert 871b7858d8
[metrickit] Add nullability to (generated and manual) bindings (#14678)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-08 09:04:18 -05:00
TJ Lambert c1a6b74c14
[mobilecoreservices] Add nullability to (generated and manual) bindings (#14677)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-08 09:03:44 -05:00
TJ Lambert a0eeaec232
[messageui] Add nullability to (generated and manual) bindings (#14676)
* enable nullability

* use is null and is not null

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-08 09:03:05 -05:00
TJ Lambert 85b4c7a431
[metalkit] Add nullability to (generated and manual) bindings (#14695)
* add nullable enable

* use is null and is not null

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-04-08 08:57:10 -05:00
TJ Lambert aa98164c0f
[nativetypes] Add nullability to (generated and manual) bindings (#14694)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-07 18:17:58 -05:00
TJ Lambert bd744db43d
[multipeerconnectivity] Add nullability to (generated and manual) bindings (#14680)
* enable nullability

* throw better exceptions

* use is null and is not null

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-07 18:16:40 -05:00
Steve Hawley df395f2cff
[nnyeah] Nfloat fields (#14696)
Transform nfloat field references to getters on NFloat
2022-04-07 15:41:31 -04:00
Manuel de la Pena ef7db6a5fc
[ESRP] Move signing to the new xcode version. (#14654) 2022-04-07 12:48:10 -04:00
Manuel de la Pena 83cac1211e
[CI] Add a comment with the pkgs generated as soon as we build. (#14681) 2022-04-07 12:47:50 -04:00
Rolf Bjarne Kvinge 80a791cdc9
[runtime] Fix typo in comment. (#14687) 2022-04-07 18:30:06 +02:00
Rolf Bjarne Kvinge 2125c8febe
[tests] Make MonoTests.System.Net.Http.MessageHandlerTest handle some 504's. (#14688) 2022-04-07 18:01:25 +02:00
Chris Hamons cf77b790cb
[NET Attribute Conversion] Add missing attributes in code-behind by re-running conversion (#14660)
* [NET Attribute Conversion] Chip Framework
* [NET Attribute Conversion] Rerun with many fixes
* Fix generator crash when compiling attributes with no introduced version
* Test changes for availability re-run. One new test
2022-04-07 10:46:15 -05:00
Steve Hawley e0eed38ce1
[nnyeah] Nfloat type substitution (#14675)
This code substitutes NFloat for nfloat.
2022-04-07 09:42:18 -04:00
Rolf Bjarne Kvinge 398d5062d2
Bump MonoTouch.Dialog and Touch.Unit. (#14684)
New commits in migueldeicaza/MonoTouch.Dialog:

* migueldeicaza/MonoTouch.Dialog@8e859cc [MonoTouch.Dialog] Use 'BundledNETCoreAppTargetFrameworkVersion' to specify the .NET version in the project files.

Diff: e8e0abe586..8e859cc662

New commits in spouliot/Touch.Unit:

* spouliot/Touch.Unit@be3a8d0 [Touch.Client] Use 'BundledNETCoreAppTargetFrameworkVersion' to specify the .NET version in the project files.
* spouliot/Touch.Unit@3f103c6 [NUnitLite] Disable some warnings that come from using classic Xamarin.iOS.
* spouliot/Touch.Unit@1c1f57c [NUnitLite] Disaple some warnings that come from using classic Xamarin.iOS.

Diff: 8141653352..be3a8d0855
2022-04-07 15:20:54 +02:00
Rolf Bjarne Kvinge 0f5ad37b0e
[msbuild] Fix the build due to nullability changes from multiple PRs conspiring. (#14689) 2022-04-07 09:54:44 +02:00
dotnet-maestro[bot] b34cde58dc
[main] Update dependencies from dotnet/installer (#14673)
Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.300-preview.22204.3 -> To Version 6.0.300-preview.22205.8

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-04-07 09:30:58 +02:00
dotnet-maestro[bot] 56e0ffecdd
[main] Update dependencies from dotnet/runtime (#14674)
Microsoft.NETCore.App.Ref
 From Version 6.0.4 -> To Version 6.0.5

Dependency coherency updates

Microsoft.NET.Workload.Emscripten.Manifest-6.0.100
 From Version 6.0.4 -> To Version 6.0.4 (parent: Microsoft.NETCore.App.Ref

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-04-07 09:30:19 +02:00
Rolf Bjarne Kvinge 9c185e1fff
[msbuild] Ask ditto to thin native libraries according to the architectures we're targetting. Fixes #13081. (#14403)
Ask ditto to thin native libraries and frameworks when copying them to the app
bundle to remove slices for architectures we're not building for.

Also add tests.

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

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-04-07 08:17:01 +02:00
Rolf Bjarne Kvinge 1b37c48ac5
[dotnet] Add support for Mac Catalyst apps optimized interface for macOS. Fixes #14621. (#14663)
This also required bumping Xamarin.MacDev.

New commits in xamarin/Xamarin.MacDev:

* xamarin/Xamarin.MacDev@0717ac3 Add a new device type for Mac Catalyst.
* xamarin/Xamarin.MacDev@ed2a604 Remove net451 target framework from
Xamarin.MacDev.csproj

Diff: 9e6e29f2a4..0717ac3c24

Fixes https://github.com/xamarin/xamarin-macios/issues/14621.
2022-04-07 08:14:42 +02:00
Rolf Bjarne Kvinge 92ee92eeb5
[dotnet] Use only the first three parts of our product version as the assembly version. (#14679)
Problem:

* Assembly A is compiled referencing Microsoft.*.dll v1.0.0.123
* Assembly B is compiled referencing assembly A, and Microsoft.*.dll v1.0.0.0

The C# compiler doesn't like this, and says something like:

> error CS1705: Assembly 'A' with identity 'A, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.iOS, Version=1.0.0.123, Culture=neutral, PublicKeyToken=84e04ff9cfb79065' which has a higher version than referenced assembly 'Microsoft.iOS' with identity 'Microsoft.iOS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'

The C# compiler is right: you need all your local references to be at least
the version of any indirect references, otherwise you're compiling using
outdated API.

On the other hand, we know that [1] we don't have any API differences (neither
additions nor removals) between stable versions of assemblies where only the
fourth digit is different.

In that case, the C# compiler error is just making things more complicated for
users, because if a upstream dependency is compiled with a newer (but
API-identical) version of Microsoft.*.dll, it forces all their users to update
as well.

The fix is to always use '0' as the fourth digit. That way the C# compiler
will accept different versions of any API-identical assemblies, and everybody
is happy [2].

[1]: We know that we _shouldn't_ have API changes when the fourth digit
changes. Hopefully we won't make any mistakes here...

[2]: However, for people using preview versions, there may very well be API
differences when the fourth digit changes. In that case, you're own your own,
and if the build breaks, you get to guess the actual problem and then figure
out the fix (which would usually be to use the latest version of the preview).
2022-04-07 08:06:56 +02:00
Rolf Bjarne Kvinge 690f18385d
[msbuild] Enable nullability for the CompileAppManifest task. (#14670)
This also meant:

* Using 'latest' as the C# language version for all msbuild/ project files.
* Enabling warnaserror for nullability warnings.
* Fix any nullability warnings in the CompileAppManifest files.
* Fix a nullability warning in the Ditto task.
* Fix any '== null' or '!= null' to use 'is null' and 'is not null'.
2022-04-06 22:57:10 +02:00
Rolf Bjarne Kvinge 6af4b9607c
[tools] Make the TargetFramework.DotNet* variables version-agnostic. (#14669)
This minimizes the code changes required for .NET 7.
2022-04-06 21:33:46 +02:00
Rolf Bjarne Kvinge a46afd0147
[tests] Use 'BundledNETCoreAppTargetFrameworkVersion' to specify the .NET version in the project files. (#14666)
This way we don't have to update all these files when moving to .NET 7.
2022-04-06 20:58:20 +02:00
Manuel de la Pena 0c72b97207
[CI] Split the logic that writes artifacts and test it. (#14358) 2022-04-06 13:43:54 -04:00
Rolf Bjarne Kvinge 04993bc482
[src] Fix internal RemoveAttributesInstance directive for the linker. (#14667)
Fixes this warning:

>  Microsoft.MacCatalyst: The internal attribute name 'LinkerSafeAttribute' being used in the xml is not supported by the linker, check the spelling and the supported internal attributes.

It also probably fixes removal of the [Field] attribute.
2022-04-06 19:31:51 +02:00
TJ Lambert aa1733a623
[imageio] Add nullability to (generated and manual) bindings (#14633)
* add another nullability change

* Throw better exceptions

* use is null and is not null

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-04-06 11:58:37 -05:00
TJ Lambert 138c966ea4
[javascriptcore] Add nullability to (generated and manual) bindings (#14658)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-04-06 11:55:28 -05:00
TJ Lambert 032a2d47d6
[mediatoolbox] Add nullability to (generated and manual) bindings (#14664)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-06 11:54:38 -05:00
TJ Lambert f01439ecab
[mediaaccessibility] Add nullability to (generated and manual) bindings (#14656)
* Adding nullability

* throwing better exceptions

* using is null

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-06 11:53:37 -05:00
TJ Lambert db6c2749c7
[mapkit] Add nullability to (generated and manual) bindings (#14640)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-06 11:52:20 -05:00
Rolf Bjarne Kvinge 34dfcbf3aa
[tests] Stop hardcoding system assembly version number in linker tests. (#14668)
Another step towards .NET 7.
2022-04-06 17:57:39 +02:00