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

13577 Коммитов

Автор SHA1 Сообщение Дата
Frank A. Krueger bd4fee0cdc
Add MetalPerformanceShadersGraph Bindings (#14303)
I'm very pleased to present full bindings to the MetalPerformanceShadersGraph framework!

I'm happy with how everything turned out with the exception of a few notes and questions below.

I re-implemented Apple's MNIST sample (from https://developer.apple.com/documentation/metalperformanceshadersgraph/training_a_neural_network_using_mps_graph) here:

https://gist.github.com/praeclarum/b8077771fb341a1f9c28240113e00425

It's also added as a unit test.

Fixes #14286

### Notes

* Although the API says it works on macOS 11, it has bugs and crashes with errors even with Apple’s Swift examples. It’s better on macOS 12. iOS 14 and on is fine.

* `MPSGraphSparseStorageType` has terrible names. They match Apple's but I wish they were better.

* I added convenience methods to `MPSNDArray` and `MPSGrapTensorData` and the `Variable` and `Constant` operations to decrease the amount of unsafe code users have to write. I currently do this for 32-bit floats, the most common data type.

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-05-10 10:52:22 +02:00
Rolf Bjarne Kvinge 8cf02316ca
[tests] Unignore test that's now fixed in .NET. (#14937) 2022-05-10 09:34:21 +02:00
Rolf Bjarne Kvinge d1b7606181
Adjust versioning scheme for .NET to make the third field the commit distance. (#14923)
Adjust our versioning scheme so that the NuGet version is
`Major.Minor.CommitDistance`. The previous scheme ("Major.Minor.<fixed-ish
version>") causes problems on branches producing stable builds, because each
new commit would end up with the same NuGet version, and we wouldn't be able
to push those to a NuGet feed because there might already be an existing
version there.

By using the commit distance in the NuGet version we ensure that every commit
has a different version.
2022-05-10 09:28:39 +02:00
Rolf Bjarne Kvinge ffae484355
Bump mono to get fix for #12416. (#14934)
New commits in mono/mono:

* mono/mono@281ee19b9b [mono] Remove some of the restrictions on constrained calls from gsharevt methods.
* mono/mono@ed0788bf61 [2020-02] Use upstream zlib 1.2.12

Diff: 86118d5810..281ee19b9b

Fixes https://github.com/mono/mono/issues/21187.
Fixes https://github.com/xamarin/xamarin-macios/issues/12416.
2022-05-10 09:27:02 +02:00
Rolf Bjarne Kvinge cf44501f0f
[runtime] Fix build when logging is enabled. (#14922) 2022-05-10 09:26:20 +02:00
Rolf Bjarne Kvinge a07fda8f33
Bump maccore to get fix for #14834. (#14946)
New commits in xamarin/maccore:

* xamarin/maccore@29a1c1382e [mlaunch] Redirect stdout and stderr through a pty when launching in the simulator. Fixes #14834.

Diff: 749e84cb16..29a1c1382e

Fixes https://github.com/xamarin/xamarin-macios/issues/14834.
2022-05-10 09:18:20 +02:00
Rolf Bjarne Kvinge 69662c94e6
[apidiff] Ignore inherited interfaces. (#14960)
We only care about what each type does, not what any base types might have
done (nothing we can do about that anyway).
2022-05-10 09:04:20 +02:00
Rolf Bjarne Kvinge f8314a435e
Add a [NativeName] attribute we can use to declare the native name for a type (enum/struct). (#14918)
We already have a few attributes that can specify the native name for a type, whenever the native name doesn't match the managed name:

* [Register ("DifferentClassName"): specifies the Objective-C class name
* [Native ("DifferentEnumName")]: specifies the Objective-C enum name (and also that it's a native-sized enum)
* [Protocol ("DifferentProtocolName")]: specifies the Objective-C protocol name
* [Category ("DifferentCategoryName")]: specifies the Objective-C category name

Unfortunately this leaves (at least) two cracks:

* Objective-C structs.
* Objective-C enums which aren't native-sized.

So I'm adding a [NativeName] attribute for this purpose, and updating numerous
types to specify the native name (either using an existing [Native] attribute
for enums that already have one, or by adding a new [NativeName] attribute).

The static registrar needs to know the native name for such types, in case
they appear as parameter types in function signatures.

This also allows us to simplify xtro a bit, to not have a separate map of
managed name given a native name, because we can now build that map
dynamically.
2022-05-09 22:16:17 +02:00
Rolf Bjarne Kvinge b08a0f91db
[apidiff] Use variables to reduce code duplication. (#14935)
This also makes it easier to switch to .NET 5(+) versions of mono-api-info and mono-api-html
when that happens.
2022-05-09 22:12:03 +02:00
Rolf Bjarne Kvinge 32c29c1639
[Foundation] Make NSUserDefaults.VolatileDomainNames a property in XAMCORE_5_0. (#14942)
That's how it's in Swift.
2022-05-09 21:48:15 +02:00
Steve Hawley d8dfd37cc6
[nnyeah] IConvertible ancient history (#14945)
This was old code that hung around from before we discovered that we can't fully handle `IConvertible`
2022-05-09 14:23:22 -04:00
Mauro Agnoletti ff40b22180
Updated Xamarin.Messaging to 1.6.6 (#14915) 2022-05-09 18:16:52 +02:00
Steve Hawley 5631ca5c8e
[nnyeah] Start testing (#14913)
Added code to:

compile a string to a platform library
collect the output of the compilation process
check for errors
Added a single unit test of the smoke test variety.
2022-05-09 09:42:34 -04:00
dotnet-maestro[bot] 073c2c1047
[main] Update dependencies from dotnet/runtime (#14921)
Microsoft.NETCore.App.Ref
 From Version 6.0.6 -> To Version 6.0.6

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-05-09 10:59:51 +02:00
Emanuel Fernandez Dell'Oca e9333bae47
Bumps Xamarin.HotRestart.Application to 1.1.5 (#14925)
This new version contains a fix for incremental deployments when using Xamarin iOS Hot Restart.
2022-05-09 10:30:22 +02:00
Rolf Bjarne Kvinge 07b9d90fee
[msbuild] Enable nullability in the AOTCompileTask class. (#14924) 2022-05-09 10:10:57 +02:00
Rolf Bjarne Kvinge 8074f20aec
[apidiff] Pass full paths to mono-api-info and mono-api-html. (#14917)
Makes it easier to copy-paste commands to debug them with an IDE.
2022-05-09 09:06:46 +02:00
Manuel de la Pena 211fb9c83b
[CI] Make signing faster by using two diff jobs one for classic and one for dotnet. (#14908)
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-05-08 14:30:51 -04:00
Manuel de la Pena 43c2270b9d
[Nnyeah] Ensure that we have all the needed xamarin-macios dlls when using make. (#14910)
We need to be able to embed the dlls as a resource to compare the diff
assemblies. To do so we are going to ensure that we have called make in
the root dir so that the needed deps are present. This change is not yet
in the csproj, that will be a diff commit.



Co-authored-by: Chris Hamons <chris.hamons@xamarin.com>
2022-05-06 18:41:11 -04:00
Manuel de la Pena 99de095726
[XHarness] Enable nullable and fix some code issues (wrong inheritance) (#14867) 2022-05-06 17:14:00 -04:00
Chris Hamons a9cab8f1c1
[nnyeah] Add dotnet tool support (#14914)
- Stores legacy XI/XM and NET6 XI/XM inside nuget (unused for now)

% dotnet nnyeah
  -h, -?, --help
  -i, --input=VALUE
  -o, --output=VALUE
  -v, --verbose
  -f, --force-overwrite
  -s, --suppress-warnings

% mv nupkg/nnyeah.0.1.0.nupkg nupkg/nnyeah.0.1.0.zip
% unzip nupkg/nnyeah.0.1.0.zip
Archive:  nupkg/nnyeah.0.1.0.zip
..
  inflating: content/legacy/Xamarin.iOS.dll
  inflating: content/legacy/Xamarin.Mac.dll
  inflating: content/net6/Microsoft.iOS.dll
  inflating: content/net6/Microsoft.macOS.dll
..



Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>

* Update PackagePath for net libs

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-05-06 13:55:27 -04:00
Chris Hamons 2eb220caae
[nnyeah] Bump to NET6 (#14901)
- .NET5 on my mac has inconsistent debugging due to lack of support for apple's arm arch
- The tool is going to run against NET6, so why built it on NET5
2022-05-06 11:36:45 -05:00
Chris Hamons 2ec9649663
[nnyeah] Beginnings of an integration test framework (#14898) 2022-05-06 08:54:12 -05:00
Chris Hamons 6a1622624a
Fix crash with NSUrl implicit conversion and null (#14860)
- Fixes: https://github.com/xamarin/xamarin-macios/issues/14786
2022-05-06 08:52:37 -05:00
Rolf Bjarne Kvinge c44c5d3540
Adjust versioning logic/instructions to support stable releases. (#14876)
This is a heavily modified backport of #14847.
2022-05-06 13:27:33 +02:00
dotnet-maestro[bot] b407a0b0f9
[main] Update dependencies from dotnet/runtime (#14890)
* Update dependencies from https://github.com/dotnet/runtime build 20220503.10

Microsoft.NETCore.App.Ref
 From Version 6.0.5 -> To Version 6.0.6

* Update dependencies from https://github.com/dotnet/runtime build 20220504.4

Microsoft.NETCore.App.Ref
 From Version 6.0.5 -> To Version 6.0.6

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-05-06 09:18:15 +02:00
dotnet-maestro[bot] 10b1abc93c
[main] Update dependencies from dotnet/installer (#14906)
Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.301-rtm.22253.26 -> To Version 6.0.301-rtm.22254.17

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-05-06 09:17:32 +02:00
Chris Hamons 7d3fd33b2a
[introspection] Fix failures on older iOS/tvOS (#14911)
- Fixes https://github.com/xamarin/xamarin-macios/issues/14905 by skipping with a link to https://github.com/xamarin/xamarin-macios/issues/14802
2022-05-06 08:51:55 +02:00
Rolf Bjarne Kvinge 06e76a61e7
[apidiff] Use DOTNET_TFM instead of hardcoding 'net6.0'. (#14909) 2022-05-06 08:15:37 +02:00
Chris Hamons a8964905a8
[nnyeah] Fix race on error message output (#14900)
- Errors were written with Write and then Exit which at least in VSCode would exit before the write flushed to the console
- WriteLine seems better behaved
- See https://github.com/dotnet/sdk/issues/5928#issuecomment-215895840
2022-05-05 11:53:03 -05:00
TJ Lambert ac3f2ac642
[scenekit] Add nullability to (generated and manual) bindings (#14879)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-05 10:42:02 -05:00
TJ Lambert 1622221600
[searchkit] Add nullability to (generated and manual) bindings (#14878)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-05 10:41:28 -05:00
TJ Lambert f5c5232a29
[quicklook] Add nullability to (generated and manual) bindings (#14865)
* add nullable enable

* throw better null exception

* use is null

* Forgot an is null

* use GetHandle

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-05 10:30:15 -05:00
Rolf Bjarne Kvinge 01c3127c8c
[dotnet] Don't set '_RunAotCompiler' on macOS if 'MtouchInterpreter' is set. (#14874)
There's no AOT compiler for macOS, so setting _RunAotCompiler causes problems
because if it's set, we try to find the AOT compiler, and because there is
none, the build fails.

So don't set '_RunAotCompiler' if 'MtouchInterpreter' is set (which also
indirectly means if 'UseInterpreter' is set) to avoid the problem altogether.
2022-05-05 16:16:40 +02:00
Rolf Bjarne Kvinge 3c8984c1c5
Bump maccore. (#14875)
New commits in xamarin/maccore:

* xamarin/maccore@749e84cb16 [mlaunch] Make minor improvements to Main.cs

Diff: cf9f7409e9..749e84cb16
2022-05-05 10:20:44 +02:00
dotnet-maestro[bot] a1623b3158
[main] Update dependencies from dotnet/installer (#14889)
Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.300-rtm.22220.25 -> To Version 6.0.301-rtm.22253.26

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-05-05 08:58:54 +02:00
Steve Hawley 2f7289fe1e
[nnyeah] Add usage of module mapping (#14885)
* Remove existing attributes

* Attribute Conversion

* Map old types and members to new ones

* minor changes.

* cut down on toString calls.
2022-05-04 16:01:40 -04:00
Rolf Bjarne Kvinge 20212e6e26
Bump API reference for .NET to the 6.0.3xx branch. (#14888) 2022-05-04 20:38:22 +02:00
TJ Lambert 2affe2efaa
[systemcomponentmodel] Add nullability to (generated and manual) bindings (#14886)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-04 11:51:14 -05:00
TJ Lambert 7a8f47a28c
[spritekit] Add nullability to (generated and manual) bindings (#14883)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-04 11:50:29 -05:00
TJ Lambert e5cd0b2376
[social] Add nullability to (generated and manual) bindings (#14882)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-04 11:49:52 -05:00
TJ Lambert 4f1ad9cb18
[sensorkit] Add nullability to (generated and manual) bindings (#14881)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-04 11:43:54 -05:00
github-actions[bot] d25d6bea1c
[Localization] Pulling New Localization Translations 2259714093 (#14870)
* LEGO: Merge pull request 12848

LEGO: Merge pull request 12848

* LEGO: Merge pull request 12923

LEGO: Merge pull request 12923

* LEGO: Merge pull request 13022

LEGO: Merge pull request 13022

* LEGO: Merge pull request 13612

LEGO: Merge pull request 13612

* LEGO: Merge pull request 13638

LEGO: Merge pull request 13638

* LEGO: Merge pull request 14101

LEGO: Merge pull request 14101

* LEGO: Merge pull request 14205

LEGO: Merge pull request 14205

* LEGO: Merge pull request 14635

LEGO: Merge pull request 14635

* Juno: check in to lego/hb_dca0a672-370a-4b3c-b55f-cd146e93faf9_20220502183521765.

Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2022-05-04 11:43:11 -05:00
Manuel de la Pena caf68aac82
[Xharness]Enable nullability and update C# to new code patterns. (#14866)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-05-04 10:46:34 -04:00
Manuel de la Pena 0069323b6a
[Xharness] Add a label per test project to later be able to filter them. (#14844) 2022-05-04 10:46:07 -04:00
TJ Lambert 1e938b15d5
[replaykit] Add nullability to (generated and manual) bindings (#14863)
* nullable enable

* Use is null

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-03 10:51:35 -05:00
TJ Lambert d6bfa03fe4
[quicklookui] Add nullability to (generated and manual) bindings (#14862)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-03 10:50:57 -05:00
TJ Lambert 86a312d86e
[photos] Add nullability to (generated and manual) bindings (#14861)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-03 10:50:14 -05:00
TJ Lambert 0de0a2fd39
[printcore] Add nullability to (generated and manual) bindings (#14856)
* use better null exceptions

* add nullable enable

* Revert "add nullable enable"

This reverts commit 75909452e8.

* Add nullable enable without BOM

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-03 10:48:34 -05:00
Steve Hawley 1c7d63f393
[nnyeah] Move to generating map on the fly (#14868)
Remove the XML serialization and now make the map into a form that will work much better for actually modifying the assemblies
2022-05-03 09:40:51 -04:00