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

12526 Коммитов

Автор SHA1 Сообщение Дата
Alex Soto 0114aabb18
[maccore] Bump maccore to ease submission tests (#13717)
New commits in xamarin/maccore:

* xamarin/maccore@037cc66058 Setup MacCoolApp (NET6) to be duel x86_64/arm64 as required by submission tests now
* xamarin/maccore@3332ba19a0 [submission tests] Always build with /bl, even Legacy
* xamarin/maccore@6bb8bf46dd Fix a few submission test issues and document filters
* xamarin/maccore@b63ef4428c [devops] Add pipeline to test provisioning.

Diff: 0be9399a53..037cc66058
2022-01-14 09:39:17 -05:00
Rolf Bjarne Kvinge a34ca54cc2
[src] Make sure the (IntPtr/NativeHandle, bool) ctor is always preserved (conditionally) for types that subclass NativeObject. Fixes #13699. (#13708)
Also add test to make sure we never forget again.

Fixes https://github.com/xamarin/xamarin-macios/issues/13699.
2022-01-14 15:26:23 +01:00
Rolf Bjarne Kvinge 8050ca36ed
[AppKit/Foundation] Use NSUnderlineStyle from the Foundation namespace everywhere. (#13707) 2022-01-14 14:48:09 +01:00
Rolf Bjarne Kvinge 9894605c4f
[SceneKit] Make SCNMatrix4 column-major in .NET. Fixes #4652. (#13695)
* Implement a column-major version of SCNMatrix4 in .NET to match native code.
* This was done by copying the existing SCMatrix4 implementation, and modify it
  as required (doing it with conditional compilation in the same file turned out
  to be quite messy, so I opted for using different files for legacy Xamarin and
  .NET).
* There was one major change: the matrix inversion algorithm is new (copied from
   .NET instead), because the legacy Xamarin version showed strange results with
  some test values.
* Add setters for SCNMatrix4.Column[0-3] for legacy Xamarin to match the .NET API.
* Add CreateFromColumns methods for legacy Xamarin to match the .NET API.
* Add tests for all the new API.

Fixes https://github.com/xamarin/xamarin-macios/issues/4652.
2022-01-14 07:30:19 +01:00
Rolf Bjarne Kvinge 1ee7a63412
[Foundation] Remove the NSDateComponentsWrappingBehavior in .NET. (#13713)
It's our own enum, and all the API using it have been obsoleted/removed.

There doesn't seem to be any other usage of it on GitHub either (only our own
source code and documentation).
2022-01-14 07:27:08 +01:00
Rolf Bjarne Kvinge 2ec10ca397
Bump mono. (#13714)
Bump mono to get fix for https://github.com/dotnet/runtime/issues/61153.

New commits in mono/mono:

* mono/mono@45efaa3b6f [interp] Remove hack for nint/nfloat
* mono/mono@a5d1934898 transform sgen_get_descriptor to parallel safe version in job_major_mod_union_preclean

Diff: b8d7525156..45efaa3b6f
2022-01-14 07:21:58 +01:00
Manuel de la Pena 3801e688bb
[CI] Refactor the artifacts parsing. (#13711) 2022-01-13 19:24:12 -05:00
Rolf Bjarne Kvinge 76cd53fe4d
[Foundation] Rename the NSLinguisticTagUnit enum to NSLinguisticTag in .NET. (#13706) 2022-01-13 22:30:44 +01:00
Mauro Agnoletti 5c342f0283
Include Broker satellite assemblies to the sign list (#13688) 2022-01-13 16:30:33 -05:00
Rolf Bjarne Kvinge 751608cf31
[Foundation] Fix broken NS[Mutable]Dictionary<TKey, TValue>.FromObjectsAndKeys signature in .NET. (#13702) 2022-01-13 22:30:01 +01:00
Rolf Bjarne Kvinge 65a7794244
[AppKit] Update NSWindowStyle deprecations according to headers. (#13696)
Also remove the Unscaled field, it's removed from the headers, and it was
deprecated before the earliest macOS version we support.

Also also fix a few xtro issues.
2022-01-13 22:29:11 +01:00
Rolf Bjarne Kvinge 3fd1c90dd4
[Foundation] Make all NSMetadataItem properties nullable for .NET. (#13705) 2022-01-13 22:26:59 +01:00
dotnet-maestro[bot] baf16b7abe
Update dependencies from https://github.com/dotnet/installer build 20220111.4 (#13686)
Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.200-preview.22055.18 -> To Version 6.0.200-preview.22061.4

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-01-13 21:45:59 +01:00
Manuel de la Pena 1109fcea3a
[CI] Invert if to workaround a bad variable expansion. (#13698)
This is weird bug in the agent code.
2022-01-13 11:38:18 -05:00
Rolf Bjarne Kvinge 621ec3f9f3
[AudioToolbox] Use unsafe code to marshal in/out arrays. Fixes #xamarin/maccore@2537. (#13694)
Arrays are by default only marshaled to P/Invokes, any changes done to the array
in native code are not copied back to managed memory.

Ref: https://docs.microsoft.com/en-us/dotnet/framework/interop/marshaling-different-types-of-arrays

However, broken code tend to work just fine, because the runtime usually just passes
a pointer to the managed memory to the P/Invoke. This is fast (no need to copy memory
around), but it also has the side effect that any changes to the memory during execution
of the P/Invoke is observed in managed code as well.

For some reason the MonoTouchFixtures.AudioToolbox.AudioConverterTest test runs into
a scenario where this isn't the case, and the test ends up hanging.

So fix it by making the P/Invoke take a pointer to the AudioStreamPacketDescription
array instead of the array itself, and we explicitly pass it a pointer to the managed
memory of the array. This way we'll see any changes to the array in managed code.

Fixes https://github.com/xamarin/maccore/issues/2537.
2022-01-13 14:09:01 +01:00
Sebastien Pouliot f269d03c06
[coregraphics] Fix some names for the NET profile (#13668)
* Fix `CGColorConversionInfoTriple` name (missing initial `C`)

* Rename `RectangleFExtensions` to `CGRectExtensions` since the former
  name has not been around for a while

* Remove API naming mistakes (already under XAMCORE_4_0)

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-01-13 07:18:39 +01:00
Manuel de la Pena c5fb5dfa34
[CI] Refactor code out to a function. (#13672)
Make the code more readable, this is the first step to clean the scripts
and to be able to add a switch so that we can diff between comments for
device tests and general comments.
2022-01-12 20:09:26 -05:00
Rolf Bjarne Kvinge a35ee4e7a6
[CoreAnimation] Rename CATransform3D's fields to follow standard naming conventions for .NET. (#13684)
Public fields shouldn't start with a lower-cased letter.

Also provide public properties in legacy Xamarin so that we can write
identical code for both, and obsolete the lower-cased fields.
2022-01-12 21:46:20 +01:00
Rolf Bjarne Kvinge 32561da563
[Foundation] Remove the NSObject.[MonoTouchAssembly|MonoMacAssembly] fields in .NET. (#13681)
They're deprecated, because there's a better alternative (NSObject.PlatformAssembly).
2022-01-12 20:53:18 +01:00
Rolf Bjarne Kvinge 10ad084ec3
[AudioUnit] Create a GCHandle when AudioUnit.SetInputCallback is called. Fixes #13637. (#13673)
AudioUnit needs a GCHandle in the input callback, which means we have to create it
when SetInputCallback is called (like we already do for SetRenderCallback).

Fixes https://github.com/xamarin/xamarin-macios/issues/13637.
2022-01-12 20:52:03 +01:00
Rolf Bjarne Kvinge 677b45b91c
[NSSecureCoding] Enable nullability and a few other code improvements. (#13679) 2022-01-12 20:51:11 +01:00
Rolf Bjarne Kvinge 70851a0e9a
[msbuild] Add helpful comment about unused property (#13676)
This way I don't keep having to figure out why the property must not be
removed, even though it's not (visibly) used.
2022-01-12 20:49:10 +01:00
Rolf Bjarne Kvinge 131829c4c4
[xharness] Bump timeout for the .NET tests to 3 hours. Fixes #xamarin/maccore@2538. (#13685)
Fixes https://github.com/xamarin/maccore/issues/2538.
2022-01-12 20:26:24 +01:00
Rolf Bjarne Kvinge 38cf423936
[msbuild] Share the _CleanAppBundleRootDirectory target between iOS and Mac logic. (#13680) 2022-01-12 19:21:45 +01:00
Manuel de la Pena 17fbe27c1a
[CI] Clean the WriteDiff function to follow the pwsh style. (#13674)
* Function names are {Verb}-{Action}
* Params start with a uppercase
* Function does not need to be exported, it is internal to the module.
2022-01-12 11:34:47 -05:00
Rachel Kang 304048a965
Add cecil test for verifying obsoleted apis (#13590)
* First version cecil test

* Add missing net6 platform assemblies

* Make it work for Catalyst

* Add namespace switch and clean up code

* Update based on feedback

* Update based on feedback

* Update based on feedback

* Make test pass by default

* Fix bgen tests by fixing GetRefNuGetName

* Update based on feedback

Co-authored-by: Chris Hamons <chris.hamons@xamarin.com>
2022-01-12 09:47:46 -05:00
Rolf Bjarne Kvinge 473df24a2e
[dotnet] Update breaking changes documentation to talk about nint/nuint. (#13675) 2022-01-12 12:45:52 +01:00
Rolf Bjarne Kvinge 6f1362f1d2
[tests] Add helpful makefiles for a few test suites. (#13677)
Add makefiles that can build a test for all platforms with a single rule.
2022-01-12 11:39:06 +01:00
Alex Soto 5b09d6320a
[main] Bump to next dev versions 2022-01-11 20:48:19 -05:00
Manuel de la Pena cea0cae2bf
[CI] Fix comment aligment and add a warning sign. (#13671)
Fix the comment so that it does not look like
94863148dc (commitcomment-63453915)
2022-01-11 19:50:30 -05:00
Manuel de la Pena db4b4548ea
[CI] Add missing env. (#13670) 2022-01-11 19:50:13 -05:00
Manuel de la Pena 33a41c6fe3
[CI] Upload the agent logs as an artifact. (#13667) 2022-01-11 19:48:32 -05:00
Chris Hamons 3a1b06e5d5
[NET 6 Attribute Conversion] ARKit (#13661) 2022-01-11 10:21:03 -06:00
Rolf Bjarne Kvinge 16358a7963
[ObjCRuntime] Fix the DisposableObject.Owns property to return the correct value. Fixes #13646. (#13666)
* [ObjCRuntime] Fix the DisposableObject.Owns property to return the correct value. Fixes #13646.

Ops...

Also add tests to avoid more oopses.

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

* Update tests/monotouch-test/AudioToolbox/AudioConverterTest.cs

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-01-11 15:37:31 +01:00
dotnet-maestro[bot] 60e9d7bbb6
[main] Update dependencies from dotnet/runtime (#13648)
* Update dependencies from https://github.com/dotnet/runtime build 20220104.8

Microsoft.NETCore.App.Ref
 From Version 6.0.2-mauipre.1.21622.4 -> To Version 6.0.2-mauipre.1.22054.8

* [builds] Remove hardcoded Microsoft.NET.Workload.Mono.ToolChain.Manifest version.

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-01-11 07:21:19 +01:00
Manuel de la Pena 345f7a367e
[CI] Allow to retrieve the logs of the agent. (#13662) 2022-01-10 17:07:43 -05:00
Manuel de la Pena 94863148dc
[CI] Fix device tests (#13657)
Allow device tests to run. Tests do not pass yet, that has to be fixed in xharness.
2022-01-10 11:48:34 -05:00
Manuel de la Pena 148ab8cbe1
[CI] Use the correct dependency variable. (#13660) 2022-01-10 11:46:43 -05:00
VS MobileTools Engineering Service 2 be4d23a63f
Localized file check-in by OneLocBuild Task: Build definition ID 14411: Build ID 5607500 (#13663) 2022-01-10 08:35:06 -06:00
TJ Lambert a0ad207ea7
[Dotnet] Automatically Allow Assets of all types and Test (#13346) 2022-01-10 08:32:05 -06:00
dotnet-maestro[bot] 06e563dda5
[main] Update dependencies from dotnet/installer (#13647)
* Update dependencies from https://github.com/dotnet/installer build 20220104.7

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.200-preview.22053.5 -> To Version 6.0.200-preview.22054.7

* Update dependencies from https://github.com/dotnet/installer build 20220105.18

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.200-preview.22053.5 -> To Version 6.0.200-preview.22055.18

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-01-10 13:15:42 +01:00
James Parsons 321ceb62a4
Remove xamarin iOS designtime targets import (#13659)
These files are no longer used by the XamarinVS extension and the import is therefore unnecessary.
2022-01-10 13:03:33 +01:00
Rolf Bjarne Kvinge e06151c903
[VideoToolbox] Add a VTCompressionSession.EncodeFrame overload that takes a CVImageBuffer instead of a handle to one. (#13631)
This makes the API nicer to use.
2022-01-10 13:00:34 +01:00
Chris Hamons 260730d488
Prepare for NET6 attribute conversion with hand fixes (#13658)
- The tool I wrote to convert attributes [mellite](https://github.com/chamons/mellite) does single pass through each file
- This means files that define Foo and !Foo, each with availability attributes inside can not be proccessed
- These 2 locations were easy to fix by moving defines inside binding definations, so I did that
- About 10 other locations were not so easy, so those will be worked around by hand in the conversion process.

Part of https://github.com/xamarin/xamarin-macios/issues/10170
2022-01-07 13:57:20 -06:00
Manuel de la Pena b52af4b4f9
[CI] Fix mac tests yaml error (#13653) 2022-01-06 16:25:28 -05:00
Mauro Agnoletti 165924f83a
Ensure we remotely copy all project pdbs and not only the main app one (#13650) 2022-01-06 08:00:15 -05:00
Alex Soto 6515cfcfbf [dotnet] Bump to preview 13. 2022-01-05 14:29:12 -05:00
dotnet-maestro[bot] e49c11f99e
[main] Update dependencies from dotnet/installer (#13636)
* Update dependencies from https://github.com/dotnet/installer build 20211223.6

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.200-preview.21617.4 -> To Version 6.0.200-preview.21623.6

* Update dependencies from https://github.com/dotnet/installer build 20220103.5

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.200-preview.21617.4 -> To Version 6.0.200-preview.22053.5

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2022-01-04 22:04:11 -05:00
TJ Lambert 226cc169d2
[Metal] Exposing Selectors in iOS. Fixes #12648 (#13644) 2022-01-04 16:42:52 -06:00
dotnet-maestro[bot] 53f69259cb
Update dependencies from https://github.com/dotnet/runtime build 20211222.4 (#13633)
Microsoft.NETCore.App.Ref
 From Version 6.0.1-mauipre.1.21616.2 -> To Version 6.0.2-mauipre.1.21622.4

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2022-01-04 16:26:50 -05:00