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

15532 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge fb3df91407
[tests] Adjust EveryFrameworkSmokeTest to not run when every assembly is linked. (#17696)
It expects the executable to be linked will every system framework we've
bound, which doesn't happen when linker is enabled for all assemblies.
2023-03-06 13:38:07 +01:00
Rolf Bjarne Kvinge 3f742de4aa
[monotouch-test] Fix NWBrowserTest to not throw assertions on background threads. (#17697)
Exceptions on background threads will crash the process.
2023-03-06 12:48:39 +01:00
Rolf Bjarne Kvinge 02ebbd47a1 [net8.0] Merge main into net8.0. 2023-03-06 10:54:00 +01:00
Rolf Bjarne Kvinge b4fd14b2f8
[net8.0] Merge main into net8.0. (#17692) 2023-03-06 10:40:55 +01:00
Rolf Bjarne Kvinge e013c10a30
Add support for function pointers to BlockLiteral. (#17672)
Add support for function pointers to BlockLiteral, and use it to update
almost all manually bound block code to use function pointers (in .NET).

Also add support to the linker for optimizing the new block API.

Contributes towards https://github.com/xamarin/xamarin-macios/issues/15783.
2023-03-06 10:26:08 +01:00
dotnet-maestro[bot] b4755a5204
[net8.0] Update dependencies from xamarin/xamarin-macios (#17668)
This pull request updates the following dependencies

## From https://github.com/xamarin/xamarin-macios
- **Subscription**: 69411ae3-c771-4088-2d6e-08dac814288b
- **Build**: 20230303.10
- **Date Produced**: March 3, 2023 11:12:44 AM UTC
- **Commit**: fc1e134d14
- **Branch**: refs/heads/release/7.0.1xx-xcode14.2

- **Updates**:
  - **Microsoft.MacCatalyst.Sdk**: [from 16.2.1040 to 16.2.1044][16]

[16]: dc6675c...fc1e134
2023-03-06 10:19:27 +01:00
dotnet-maestro[bot] f15a903710
[main] Update dependencies from dotnet/installer (#17705)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer
- **Subscription**: 50c9492e-4671-4d1d-7920-08dabd1031a2
- **Build**: 20230303.1
- **Date Produced**: March 3, 2023 3:46:57 PM UTC
- **Commit**: a4ecf7bfc012e282bb2f1c81081328098dcb9b35
- **Branch**: refs/heads/release/7.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.104-servicing.23122.7 to 7.0.104-servicing.23153.1][2]

[2]: df0fc12...a4ecf7b
2023-03-06 10:11:20 +01:00
Manuel de la Pena a8a3a2e206 [CI] Pass stirng not array. 2023-03-04 11:51:56 -05:00
Manuel de la Pena ddec161ea1 [CI] Pass stirng not array. 2023-03-04 11:50:32 -05:00
VS MobileTools Engineering Service 2 863aefd7fd
[net8.0] [CI] Ensure that the condition also include the dependency of the stage. (#17704)
Without the extra condition, the stage iwll run always when the stage
dependency was skipped or cancelled.


Backport of #17703

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2023-03-04 11:46:33 -05:00
Manuel de la Pena 6c27c2915b
[CI] Ensure that the condition also include the dependency of the stage. (#17703)
Without the extra condition, the stage iwll run always when the stage
dependency was skipped or cancelled.
2023-03-04 11:46:15 -05:00
Steve Hawley a6eb8cb586
[dotnet] AppKit pinvokes (#17644) 2023-03-03 11:10:47 -05:00
Manuel de la Pena 0a8170017b
[CI] Fix the GIT_HASH variable inside the buildjob. (#17681)
Because the variable is an output variable, we need to provide the name
of the step that creates the variable. This is nto needed in other
stages because we are setting the variable via the env vars of the
stage.
2023-03-03 10:25:39 -05:00
Mauro Agnoletti 9f3b77eb71
[main] Added Merq and Merq.Core to ILMerge since they're now required and loaded by Messaging (#17683) 2023-03-03 14:57:55 +01:00
Rolf Bjarne Kvinge 0c4be6ec9c Merge remote-tracking branch 'origin/main' into bump-main-in-net8.0-2023-03-03 2023-03-03 13:20:17 +01:00
Rolf Bjarne Kvinge e170ba56d8
[dotnet] Rework how we handle manifest version bands. (#17670)
* Use a separate variable for Mono's and Emscripten's manifest version band,
  so that they can diverge (this is a decision from the corresponding teams,
  we don't control it).
* Have a separate variable for our own manifest version band, so that it's
  easier to hard code it if we want to.
* Rename a few variables to make them clearer.
* Remove hardcoded rc.2 logic, we're not using any rc.2 versions right now, so
  that's dead code.
* A few other minor changes.
2023-03-03 13:17:55 +01:00
Rolf Bjarne Kvinge 8355cc0600
[tests] Don't use 'notdir' to compute the filename of a path. (#17682)
It doesn't work at all with paths with spaces. Instead call into the shell to
compute the filename.

Also fix a couple of other quoting issues.
2023-03-03 11:10:37 +01:00
Rolf Bjarne Kvinge 4883fde488 [net8.0] Merge main into net8.0. 2023-03-03 10:16:13 +01:00
Rolf Bjarne Kvinge 2d9f72ba26
[net8.0] Merge main into net8.0. (#17680) 2023-03-03 10:15:54 +01:00
Rolf Bjarne Kvinge 58f1b3de79
[tools] Commit the regenerated SdkVersions.cs (#17671)
Also make it an error if the SdkVersions.cs file was updated, so this doesn't
go unnoticed again.
2023-03-03 07:54:33 +01:00
Manuel de la Pena 9dfad11a8b
Revert "[CI] Set a variable to be able to avoid collision between templates. (#17664)" (#17688)
This reverts commit f4ebf2f75e.

This changes does not work when not in a PR. Needs to be reverted
2023-03-02 19:18:19 -05:00
Manuel de la Pena 373e7fa324
[Actions] Somplify the trigger for the action. (#17686) 2023-03-02 18:03:29 -05:00
Manuel de la Pena f4ebf2f75e
[CI] Set a variable to be able to avoid collision between templates. (#17664) 2023-03-02 14:44:43 -05:00
Rolf Bjarne Kvinge 7a866a5cc6 [net8.0] Merge main into net8.0. 2023-03-02 15:49:52 +01:00
Rolf Bjarne Kvinge 481bbd11a2 [net8.0] This is preview 3 now. 2023-03-02 14:50:30 +01:00
Rolf Bjarne Kvinge 877ae0bb5d
[generator] The trampoline name is always 'Invoke', so simplify code accordingly. (#17657)
We try to pass another name to the TrampolineInfo constructor, but it's
ignored, and 'Invoke' is always used, so just hardcode 'Invoke' everywhere
instead.

This makes the code a little bit simpler.
2023-03-02 12:24:43 +01:00
Rolf Bjarne Kvinge a99520d169
[ImageIO] Refactor block code to use blittable callbacks. (#17654)
This is necessary in order to convert all block callbacks to use
UnmanagedCallersOnly function pointers (which can't have non-blittable types
in their signature).

Contributes towards https://github.com/xamarin/xamarin-macios/issues/15783.
2023-03-02 10:39:05 +01:00
Rolf Bjarne Kvinge d75b697ebc
[tests] Adjust UrlSessionTests to ignore more failure scenarios in CI. (#17649)
Should fix random test failures like this:

    MonoTouchFixtures.Foundation.UrlSessionTest
        [FAIL] CreateDataTaskAsync :   CreateDataTask a Exception
            Expected: null
            But was:  <Foundation.NSErrorException: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=57, NSUnderlyingError=0x6000011f4990 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x600003deaa80 [0x7ff865b1f1c0]>{length = 16, capacity = 16, bytes = 0x100201bb6007a9b70000000000000000}, _kCFStreamErrorCodeKey=57, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <5E766082-B379-491A-BCB0-EA1B36E54A8B>.<15>, _NSURLErrorRelatedURLSessionTaskErrorKey=("LocalDataTask <5E766082-B379-491A-BCB0-EA1B36E54A8B>.<15>"), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://www.microsoft.com/, NSErrorFailingURLKey=https://www.microsoft.com/, _kCFStreamErrorDomainKey=1}
                at MonoTouchFixtures.Foundation.UrlSessionTest+<>c__DisplayClass1_0.<CreateDataTaskAsync>b__0 () [0x00039] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Foundation/UrlSessionTest.cs:64 >
                at MonoTouchFixtures.Foundation.UrlSessionTest.CreateDataTaskAsync () [0x000b7] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Foundation/UrlSessionTest.cs:71
2023-03-02 10:38:41 +01:00
Rolf Bjarne Kvinge fffd2c2b9a
[ObjCRuntime] Make BlockLiteral a ref struct in XAMCORE_5_0. (#17658)
A ref struct has a few limitations that makes a lot of sense for blocks:
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/ref-struct,
so by making BlockLiteral a ref struct, we're getting the C# compiler to help
us not writing broken code by accident.

The limitations also mean that it's a breaking change, so we can't do it
before XAMCORE_5_0.
2023-03-02 10:21:33 +01:00
dotnet-maestro[bot] 76aea1f5a2
[net8.0] Update dependencies from xamarin/xamarin-macios (#17638)
This pull request updates the following dependencies

## From https://github.com/xamarin/xamarin-macios
- **Subscription**: 69411ae3-c771-4088-2d6e-08dac814288b
- **Build**: 20230301.4
- **Date Produced**: March 1, 2023 9:36:51 AM UTC
- **Commit**: dc6675cef2
- **Branch**: refs/heads/release/7.0.1xx-xcode14.2

- **Updates**:
  - **Microsoft.MacCatalyst.Sdk**: [from 16.2.1037 to 16.2.1040][12]

[12]: 9c2af79...dc6675c
2023-03-02 08:34:12 +01:00
Rolf Bjarne Kvinge b2ae8507e0
[AppKit] Make sure NSButtons are treated as toggled objects after setting a field. Fixes #17635. (#17639)
If a wrapper type has a custom field (with a non-default value), we need to
mark the instance as dirty, to make it participate in the toggle-ref
machinery, and not get collected as long as the corresponding native instance
is around (otherwise the GC will collect the value in the field).

Fixes https://github.com/xamarin/xamarin-macios/issues/17635.
2023-03-01 16:35:10 +01:00
Rolf Bjarne Kvinge 3ab439a5d9
[net8.0] Merge main into net8.0. (#17637) 2023-03-01 15:39:55 +01:00
Steve Hawley f77929a0ed
[dotnet] security pinvoke and nullable string arrays (#17643)
Modded AllocStringArray to allow nullable strings.
2023-03-01 09:24:46 -05:00
Steve Hawley cf53aeeb47
[dotnet] network pinvoke (#17642) 2023-03-01 09:24:08 -05:00
Steve Hawley 239f668626
[dotnet] mac CoreGraphics pinvokes (#17634) 2023-03-01 09:21:53 -05:00
Manuel de la Pena 0fb19bc868
[Sim] Bump min simulator versions for ventura. (#17645) 2023-03-01 08:13:19 -05:00
Rolf Bjarne Kvinge 967358ccf6
[src] Refactor block code to use blittable callbacks. (#17641)
This is mostly converting 'bool' arguments to 'byte' arguments, and 'string'
arguments to 'IntPtr' with custom utf8->string conversions.

This is necessary in order to convert all block callbacks to use
UnmanagedCallersOnly function pointers (which can't have non-blittable types
in their signature).

Contributes towards https://github.com/xamarin/xamarin-macios/issues/15783.
2023-03-01 10:26:52 +01:00
Mauro Agnoletti 2178951527
[main] Updated Xamarin.Messaging to 1.9.59 (#17646)
Includes latest fixes like support for retry and reconnect, new telemetry, bug fixing, etc.

Also added Merq.Core.dll to dotnet/Workloads/SignList.xml because now it comes as part of Xamarin.Messaging
2023-03-01 08:20:59 +01:00
Rolf Bjarne Kvinge 8f8818dd72
[generator] Use the new Block API that makes BlockLiteral disposable. (#17612)
Contributes towards https://github.com/xamarin/xamarin-macios/issues/15783.
2023-03-01 07:23:21 +01:00
Manuel de la Pena 7933da85db
[CI] Add a prefix to the uploads and downloads to avoid collisions. (#17636)
This allows to add a prefix to the uploads/downloads of the CI to help
avoid collisions with other projects when the template is used in a diff
template.

---------

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-02-28 16:19:03 -05:00
TJ Lambert 80fdc5871a
[Localization] Revert "[CI] Remove the translations from the main stage. (#17453)" (#17537)
We actually do need to keep this task inside our normal builds for the
Loc team to identify if there are new translations through the
localizationDrop artifact. The other pipeline that runs this task on the
cron job is used for a separate part of the localization process that
creates the PRs with the usable translations.

We re-add the job and provide a new parameter to ignore the translations (set to be true by default) that way other pipelines using the template can ignore the job.


https://github.com/xamarin/maccore/wiki/Localization#the-translation-process

---------

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2023-02-28 12:32:34 -05:00
Steve Hawley ac1dad4dcc
[dotnet] fix pinvokes for Darwin (#17633)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2023-02-28 10:19:16 -05:00
Rolf Bjarne Kvinge 429c423075
[ImageIO] Simplify the block code in CGImageAnimation. (#17622)
These CGImageAnimation.AnimateImage functions are one-directional only, in
that they're only used to call into Objective-C from managed code, and not
into managed code from Objective-C. This means we can remove any block code
related to the latter scenario, since it's not needed.
2023-02-28 14:38:13 +01:00
Rolf Bjarne Kvinge 8285c08c17
[registrar] Improve support for pointers to value types in exported signatures. (#17608)
This will be required when we make blocks use blittable callbacks, since we'll
have to use pointers in a few cases (because ref/out arguments aren't
blittable).
2023-02-28 11:48:27 +01:00
Rolf Bjarne Kvinge a867353096 [net8.0] Merge main into net8.0. 2023-02-28 08:00:23 +01:00
Steve Hawley aacedd12c7
[dotnet] Remove dead method, add some ignores (#17631)
Removed a flavor of `class_addMethod` that is unused.
Ignored a few cases that are going to be in .NET and/or may break AOT
optimizations

Now all iOS pivots pass, 17 macOS remain.
2023-02-27 17:56:06 -05:00
Steve Hawley 32961d97dd
[dotnet] UIMain changes (#17611)
handling of string array for args
2023-02-27 10:23:39 -05:00
Rolf Bjarne Kvinge 24799c68da
[ImageIO] Update CGImageMetadata.EnumerateTags to use the branch new Block API. (#17621) 2023-02-27 14:50:15 +01:00
Rolf Bjarne Kvinge aaa79e85ed
[tests] Improve diagnostic output in FSEventStreamTest. (#17614)
Ref: https://github.com/xamarin/maccore/issues/2630
2023-02-27 14:14:05 +01:00
Manuel de la Pena 876522e374
[CI] The DropsPAT was removed, change it to a new one. (#17610)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-02-27 09:55:53 +01:00