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

13394 Коммитов

Автор SHA1 Сообщение Дата
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
Rolf Bjarne Kvinge 7a0c7428b8
[dotnet] Don't list OS versions we don't support. (#14665)
Our min OS target versions are different between legacy Xamarin and .NET
(former supports earlier versions). The list of versions in the Versions.plist
contain all the versions supported by legacy Xamarin, but that's not correct
for .NET, so don't list any version in Version.plist that's lower than the
minimum OS version we support for a given platform.
2022-04-06 17:53:06 +02:00
Chris Hamons d51bd343f7
Add nullability on one UndoManager API (#14653)
- Fixes https://github.com/xamarin/xamarin-macios/issues/14646
- I checked UIDocument and AppKit versions and those are not nullable.
2022-04-06 10:43:29 -05:00
Manuel de la Pena b9a7b0c00a
[CI] Move API diff to its own stage to make things much simpler. (#14657)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-04-06 11:16:42 -04:00
Alex Soto 2650ec7f61 Bump versions to accomodate d17-2 release 2022-04-06 10:27:49 -04:00
Emanuel Fernandez Dell'Oca 3af92421f9
[dotnet] Adds platform specific RID options (#14643)
This enables Visual Studio to set a specific `RuntimeIdentifier` for each platform when building all target frameworks in a MAUI project.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-04-06 09:39:33 +02:00
dotnet-maestro[bot] 160d955906
[main] Update dependencies from dotnet/installer (#14649)
Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.300-preview.22201.10 -> To Version 6.0.300-preview.22204.3

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-04-06 09:02:10 +02:00
Rolf Bjarne Kvinge 51a273f22b
[msbuild] Improve product name in .NET. (#14629)
Use 'Microsoft.<platform>' as the product name instead of 'Xamarin.[iOS|Mac]' for .NET builds. That makes error messages like this:

> [...]\Microsoft.iOS.Sdk\15.4.200-ci.windows2.62\tools\msbuild\iOS\Xamarin.Shared.targets(1676,3): Could not find Xamarin.iOS in /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.4.200-ci.windows2.62/.

look a bit better in .NET:

> [...]\Microsoft.iOS.Sdk\15.4.200-ci.windows2.62\tools\msbuild\iOS\Xamarin.Shared.targets(1676,3): Could not find Microsoft.iOS in /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.4.200-ci.windows2.62/.
2022-04-06 08:38:31 +02:00
Rolf Bjarne Kvinge 3d904dae2c
[tests] A few test fixes to make testing system installs better. (#14652)
* Make the custom-type-assembly library build using assemblies relative to
  MAC_DESTDIR, instead of poking into $(TOP)/_mac-build (for legacy Xamarin).
* Build the custom-type-assembly using a project file for .NET (and use our
  local .NET).
* Change the default for [IOS|MAC]_DESTDIR when TESTS_USE_SYSTEM is set to
  point to the system installation.
* Make sure 'MSBuildSDKsPath' isn't set when building the custom-type-assembly
  (set by xibuild), it breaks a lot of things.
2022-04-06 08:35:25 +02:00
Rolf Bjarne Kvinge 838b2ccd3b
[msbuild] Move logic to validate the UIDeviceFamily to shared code in the CompileAppManifest task. (#14661)
* Move logic to validate the UIDeviceFamily value to shared code.
* Remove logic related to watchOS 1 apps, it's been dead for a while.
* Change logic to not overwriting any existing UIDeviceFamily values in the customer's
  Info.plist.

This makes the code more platform-agnostic and easier to work with across all platforms
(such as adding new validations).
2022-04-06 08:22:25 +02:00
Rolf Bjarne Kvinge e4172ec7a9
[msbuild] Don't create output files for ditto'ed directories on Windows. (#14662)
Fixes this warning from the Codesign task:

    C:\Users\rolf\...\Microsoft.iOS.Sdk\15.4.200-...\tools\msbuild\iOS\Xamarin.Shared.targets(2045,3): Cannot create 'C:\Users\rolf\source\iOSApp4\bin\Debug\net6.0-ios\ios-arm64\device-builds\iphone14.2-15.3.1\iOSApp4.app\Frameworks\ArcGIS-arm64.framework' because a file or directory with the same name already exists.
    C:\Users\rolf\...\Microsoft.iOS.Sdk\15.4.200-...\tools\msbuild\iOS\Xamarin.Shared.targets(2045,3): Cannot create 'C:\Users\rolf\source\iOSApp4\bin\Debug\net6.0-ios\ios-arm64\device-builds\iphone14.2-15.3.1\iOSApp4.app\Frameworks\Runtimecore.framework' because a file or directory with the same name already exists.

which occurs when the Codesign task asks XVS to create output files for files from
inside ditto'ed directories, and if XVS created output files for those directories
in the Ditto task, then XVS would be trying to create files inside these output files
as if they were directories. That doesn't work (thus the warning).

I've fixed this by:

* Removing the 'ShouldCreateOutputFile' implementation. The ShouldCreateOutputFile
  method is called on Windows, and we can't determine from Windows whether the destination
  is a directory or a file.
* Remove the [Output] attribute for the Destination property, this way XVS doesn't
  automatically try to create an output file for whatever the destination is.
* Add another CopiedFiles output property, which contains all the copied files
  (and only files), so that XVS mirrors this with output files on Windows.

Fixes part of https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1505990/.
2022-04-06 08:19:00 +02:00
Alex Soto 132d5694d6
[ScreenCaptureKit] Add ScreenCaptureKit bindings up to Xcode 13.3 (#14644)
* [ScreenCaptureKit] Add ScreenCaptureKit bindings up to Xcode 13.3

* Use more appropriate exceptions.

* Remove ScreenCaptureKit from Mac Catalyst.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-04-05 20:16:31 -04:00
Manuel de la Pena 5e5f05c326
[CI] Improve API diff. (#14642)
Two small improvements before we reconver from the EO:

1. Upload the api diff to vsdrops.
2. Ensure that the dependencies are correct.
2022-04-05 15:24:02 -04:00
Rolf Bjarne Kvinge 969b54b24d
[builds] Don't use DOTNET6_VERSION anymore, it's DOTNET_VERSION. (#14655)
This wasn't caught when we renamed DOTNET6_VERSION to DOTNET_VERSION (probably
because it was in the process of being added in a different PR).
2022-04-05 20:38:53 +02:00
TJ Lambert 9b605f7806
[mlcompute] Add nullability to (generated and manual) bindings (#14639)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-05 11:23:45 -05:00
TJ Lambert 96a175cd5a
[inputmethodkit] Add nullability to (generated and manual) bindings (#14638)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-05 11:23:06 -05:00
TJ Lambert 0fc655c7c4
[imagekit] Add nullability to (generated and manual) bindings (#14637)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-05 11:22:33 -05:00
TJ Lambert 8cfd339998
[gamekit] Add nullability to (generated and manual) bindings (#14611)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-05 11:19:22 -05:00
Mauro Agnoletti b413f84187
Updated Xamarin.Messaging version to 1.5.27 (#14645)
Includes an important fix for an MSBuild hang when the connection to the Mac can't be established
2022-04-05 17:11:24 +02:00
Chris Hamons 79d13f2478
Fix multiple API mistakes made in define removal (#14641)
* Fix multiple API mistakes made in define removal

* Revert "[Quicklook]Remove unnecessary conditional defines from quicklook.cs (#14491)"

This reverts commit ff048c38b0.

* Fix API breaks reverting quicklook PR
2022-04-05 09:50:14 -04:00
Rolf Bjarne Kvinge 35b6329796
[msbuild] Make codesigned output files relative, and don't list directories. (#14610)
When XVS creates output/stamp files on Windows, the paths must be relative,
because otherwise XVS will append the full macOS path to the current Windows
directory and get garbage.

XVS also expects only files as output, so don't return any directories.

Fixes part of https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1505990/.
2022-04-05 14:49:49 +02:00
Rolf Bjarne Kvinge 906b94cb00
[mmptest] Fix resolving paths to required test files. Fixes #xamarin/maccore@2560. (#14566)
* Fix resolving paths to required test files (test files can be found relative to the root path of the repository, not relative to where Xamarin.Mac is installed)
* Don't try to sign symlinks - we can end up trying to sign the target of the symlink twice simultaneously.
* Fix finding libxammac.dylib and Xamarin.Mac.dll when testing a system installation (when MAC_DESTDIR or TESTS_USE_SYSTEM are set).
* Remove a few .NET tests we don't need anymore.

Fixes https://github.com/xamarin/maccore/issues/2560.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-04-05 14:30:35 +02:00
Přemek Vysoký 0a99bc260d
[Xharness] Extract mlaunch nupkg only once when multi-targeting (#14631) 2022-04-04 17:41:03 -04:00
Rolf Bjarne Kvinge f83db67a84
Use the tip of the 6.0.3xx-rc1 branch as the baseline for .NET API diffs. (#14623)
Since we're not planning on any more breaking changes after RC 1, we can
ensure we don't have any accidental breaking changes by using the RC 1
assemblies as the baseline.
2022-04-04 21:25:55 +02:00
Steve Hawley 900ed88249
[nnyeah] Array copy (#14630)
Add support for ArrayCopy
2022-04-04 15:04:04 -04:00
Rolf Bjarne Kvinge 277baaf521
[tests] Request labels after each test from NUnit. (#14628)
Fixes this NUnit warning:

> labels=All is deprecated and will be removed in a future release. Please use labels=Before instead.

We don't follow the suggestion from the warning, because the advantage of
writing the label after each test is that the test result will also be
printed, which means it's possible to see if any tests failed during the test
run, as opposed to having to wait until the entire test run is completed
(which can take a while) to realize that pretty much every test failed with
some silly mistake which could have been quickly fixed before re-running the
tests.
2022-04-04 19:19:45 +02:00
Rolf Bjarne Kvinge abb1831e65
[mtouch] Ignore linker warning due to a bug in the AOT compiler we already know about. (#14627)
The bug in the AOT compiler is being fixed, but until then we can just ignore
the warning, with the idea of removing this code once the AOT bug has been
fixed.

Fixes these MTouch test failures:

    * Xamarin.MTouch.BuildWithCulture("sl_SI"):
        No warnings expected, but got:
        Native linking warning: warning: '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/mtouch/bin/Debug/tmp-test-dir/Xamarin.Tests.BundlerTool.CreateTemporaryDirectory107/mtouch-test-cache/arm64/Xamarin.iOS.dll.o' was built with class_ro_t pointer signing enabled, but previous .o files were not

    * Xamarin.MTouch.BuildWithCulture("ur_IN"):
        No warnings expected, but got:
        Native linking warning: warning: '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/mtouch/bin/Debug/tmp-test-dir/Xamarin.Tests.BundlerTool.CreateTemporaryDirectory109/mtouch-test-cache/arm64/Xamarin.iOS.dll.o' was built with class_ro_t pointer signing enabled, but previous .o files were not

    * Xamarin.MTouch.MT0095_NotSharedCode:
        No warnings expected, but got:
        Native linking warning: warning: '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/mtouch/bin/Debug/tmp-test-dir/Xamarin.Tests.BundlerTool.CreateTemporaryDirectory274/mtouch-test-cache/arm64/Xamarin.iOS.dll.o' was built with class_ro_t pointer signing enabled, but previous .o files were not
        Native linking warning: warning: '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/mtouch/bin/Debug/tmp-test-dir/Xamarin.Tests.BundlerTool.CreateTemporaryDirectory272/mtouch-test-cache/arm64/Xamarin.iOS.dll.o' was built with class_ro_t pointer signing enabled, but previous .o files were not

Ref: https://github.com/xamarin/xamarin-macios/issues/14601
Ref: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1505990/
2022-04-04 19:17:11 +02:00
Rolf Bjarne Kvinge 42d561c623
[tests] Execute tests on older macOS bots with a timeout. (#14593)
This prevents a single test hang from breaking the entire test run.

Also bump timeout to 45 minutes.
2022-04-04 19:16:48 +02:00
Chris Hamons 612c32ca20
[metalperformanceshaders] Add one troublesome missing method (#14557)
- Fixes https://github.com/xamarin/xamarin-macios/issues/14450
- There is a significant amount of additional bindings to be done, but this way
we at least get the trivia one in now.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-04-04 11:08:55 -05:00
Chris Hamons 7c2ff23254
Remove unnecessary conditional defines from coreimage.cs (#14465)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-04-04 11:07:48 -05:00
Rolf Bjarne Kvinge 22f540dcd8
[devops] Rework and fix issue with making local symlinks point to global installs. (#14626)
* Move the logic to create the Xamarin.iOS and Xamarin.Mac symlinks together,
  so easier spot differences (both expected and unexpected).
* Fix an issue with the logic where we'd make
  /Library/Frameworks/Xamarin.iOS.framework/Versions/git point to
  /Library/Frameworks/Xamarin.Mac.framework/Versions/Current.
2022-04-04 17:52:14 +02:00
Rolf Bjarne Kvinge 5afbfb4de0
[devops] Don't add a failure status for missing notarized packages in PR builds. (#14591)
We're not even trying to notarize packages for PR builds (by design), so we
shouldn't create a failure status.
2022-04-04 17:51:46 +02:00
TJ Lambert 40d604fa43
[iosurface] Add nullability to (generated and manual) bindings (#14617)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-04 10:51:28 -05:00
TJ Lambert 544cace3ab
[coreimage] Add nullability to (generated and manual) bindings (#14363)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-04 10:47:44 -05:00
Manuel de la Pena dbe0e22aaf
[CI] Start using manifest to simplify the pwsh import. (#14588)
Co-authored-by: Alex Soto <alex@alexsoto.me>
2022-04-04 11:46:32 -04:00
Rolf Bjarne Kvinge 0924eb4ef1
[Foundation] Implement the properties inherited from HttpClientHandler in NSUrlSessionHandler. Fixes #13579. (#14484)
Fixes https://github.com/xamarin/xamarin-macios/issues/13579.
2022-04-04 17:25:54 +02:00
Rolf Bjarne Kvinge 6e348f0e65
[dotnet] Port the iOS tabbed app template to .NET. (#14592)
Ref: https://github.com/xamarin/xamarin-macios/issues/10747
2022-04-04 10:05:08 +02:00
Rolf Bjarne Kvinge 06140f1712
[tests] Adjust the Xamarin.Tests.Misc.PublicSymbols test to accept Brotli-related symbols. (#14605)
Our latest mono bump (in fd772aa82b), brought in
these new public symbols. Accept them for now, but hopefully we'll be able to
make them private at some point.

Fixes https://github.com/xamarin/xamarin-macios/issues/14604.
2022-04-04 09:55:05 +02:00
Rolf Bjarne Kvinge 53fdca45c8
[tests] Fix dependencies to build the mtouch tests. (#14606)
The corresponding project was renamed some time ago, but not all places that
used the derived Make variable were updated at the same time as they should
have been.
2022-04-04 09:53:08 +02:00
Rolf Bjarne Kvinge c4879f5142
[dotnet] Adjust template descriptions to not say .NET 6, just plain .NET instead. (#14607) 2022-04-04 09:52:02 +02:00
dotnet-maestro[bot] e7c53c0086
[main] Update dependencies from dotnet/installer (#14608)
* Update dependencies from https://github.com/dotnet/installer build 20220401.1

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.300-preview.22181.4 -> To Version 6.0.300-preview.22201.1

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

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.300-preview.22181.4 -> To Version 6.0.300-preview.22201.10

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-04-04 09:32:50 +02:00
Manuel de la Pena 65d356489c
[Foundation] Fix a small nullability change in the NSUrlSessionHandler. (#14620) 2022-04-04 09:05:34 +02:00
Chris Hamons 6969cbbd84
[mapkit] Fix API removal made in https://github.com/xamarin/xamarin-m… (#14613) 2022-04-04 08:50:52 +02:00
Chris Hamons 0fed58c38f
[system-dependencies.sh] Point to the correct pkg to install on M1 (#14614)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-04-02 15:19:39 -04:00
Manuel de la Pena 46af411d1c
[Foundation] Allow null parameters when creating a NSUrl from a string. (#14603)
The headers do not say that a null parameter is allowed, but the
documentation and tests state otherwise:

https://developer.apple.com/documentation/foundation/nsurl/1572047-urlwithstring

The URL string with which to initialize the NSURL object. Must be a URL that conforms to RFC 2396. This method parses URLString according to RFCs 1738 and 1808.
2022-04-02 15:13:52 -04:00
Chris Hamons d48b0eb42e
Remove unnecessary conditional defines from coregraphics.cs (#14466)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-04-01 15:56:14 -05:00
TJ Lambert f9aa001314
Remove unnecessary conditional defines from spritekit.cs (#14482)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Chris Hamons <chris.hamons@xamarin.com>
2022-04-01 15:55:56 -05:00