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

16605 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 8100be8aff
Fix a few places that hardcoded the target framework to use the current .NET version instead. (#19403) 2023-11-09 16:24:04 +01:00
Rolf Bjarne Kvinge 88ae3b0834
[docs] Document NativeAOT support. Fixes #18585. (#19362)
Fixes https://github.com/xamarin/xamarin-macios/issues/18585.

---------

Co-authored-by: Šimon Rozsíval <simon@rozsival.com>
Co-authored-by: Ivan Povazan <55002338+ivanpovazan@users.noreply.github.com>
2023-11-09 16:05:54 +01:00
Rolf Bjarne Kvinge 3077ee9e62
[devops] Add the bundle.zip and msbuild.zip files to the 'package' artifact. (#19402)
This fixes this error in Azure DevOps:

* [PR] bundle.zip — bundle.zip not found.
* [PR] msbuild.zip — msbuild.zip not found.
2023-11-09 09:42:59 +01:00
Rolf Bjarne Kvinge c309661cca
[CoreText] Implement CTFontDescriptor.MatchFontDescriptors. Fixes #19397. (#19399)
Fixes https://github.com/xamarin/xamarin-macios/issues/19397.
2023-11-09 09:11:14 +01:00
dotnet-maestro[bot] 17a2176a87
[main] Update dependencies from dotnet/installer (#19357)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer

- **Subscription**: 80cb9ffd-f92f-4fc8-9f8b-08dbca46abfb
- **Build**: 20231107.6
- **Date Produced**: November 7, 2023 4:10:46 PM UTC
- **Commit**: c7ee8f18f4274dccfca8c01c34b388bdcf8f852e
- **Branch**: refs/heads/release/8.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-rtm.23524.17 to 8.0.100-rtm.23557.6][14]

[14]: 1dd37f868b...c7ee8f18f4


---------

Co-authored-by: Alex Soto <alex@alexsoto.me>
2023-11-09 09:09:21 +01:00
Rolf Bjarne Kvinge ad7996ee7b
Add the .NET TFM as a constant to the generated SdkVersions.cs from our Makefile variables. (#19401)
This way we can avoid hardcoding the TFM in a few more places.
2023-11-08 13:36:50 +01:00
dotnet-maestro[bot] 85a1e29d95
[main] Update dependencies from dotnet/xharness (#19394)
This pull request updates the following dependencies

## From https://github.com/dotnet/xharness

- **Subscription**: 601bc5e1-1cae-44b5-cf5f-08db9342aa2f
- **Build**: 20231031.1
- **Date Produced**: October 31, 2023 5:01:52 PM UTC
- **Commit**: e74a52e487efdf4f1dfcb7540abf5dd529ce2e4e
- **Branch**: refs/heads/main

- **Updates**:
  - **Microsoft.DotNet.XHarness.iOS.Shared**: [from 9.0.0-prerelease.23526.1 to 9.0.0-prerelease.23531.1][1]

[1]: ab9528860a...e74a52e487
2023-11-08 09:49:52 +01:00
Rolf Bjarne Kvinge 2ec000fde2
Add special versioning rules for 'release-test/rt/' branches to have shorter versioning. (#19396)
Long versions are sometimes problematic on Windows, because of MAX_PATH
issues. Versions for release builds don't contain the pre-release part, and
are thus usually short, but pre-release versions (which include an arbitrarily
long branch name) can get too long for Windows. This is a complication when
testing a release pipeline/process: we have to use final versioning just for
testing. This isn't ideal, so we special-case branch names that start with
`release-test/rt/`:
  * Example: `iOS 15.1.123-rt` (and nothing else). This makes these versions
    exactly 3 characters longer than the release version, which is hopefully
    enough to avoid MAX_PATH issues on Windows.
2023-11-07 15:19:01 +01:00
dustin-wojciechowski 280e0aa966
[Generator] Move Type-related methods into Type Manager (#19380)
Moves the following methods from the Generator class to the
TypeManager class:

IsNativeType
IsWrappedType
IsArray
IsDictionaryContainerType
GetParentTypeWithSameNameProperty
---------

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2023-11-06 08:26:00 -08:00
Rolf Bjarne Kvinge 1f41b82a30
[UIKit] Store the delegate in a local variable in the UIContextMenuInteraction. (#19386)
The UIContextMenuInteraction type is a bit uncommon: the delegate is
passed as
an argument to the constructor, instead of setting the 'delegate'
property
later on (in fact, the 'delegate' property is read-only).

Typically, the generated WeakDelegate property will store the value in
an instance field:

	object? __mt_WeakDelegate_var;
	public virtual NSObject? WeakDelegate {
		get {
			NSObject? ret = /* ... */;
			MarkDirty ();
			__mt_WeakDelegate_var = ret;
			return ret!;
		}
	}

And in order to have the same behavior in the UIContextMenuInteraction
we need to
store the delegate passed to the constructor as well, so do that.

Otherwise the GC will eventually collect the delegate, and things stop
working.

Ref: https://github.com/dotnet/maui/pull/18449
2023-11-03 08:23:56 -04:00
Rolf Bjarne Kvinge 929a2e9c87
[UIKit] Adjust availability attributes for UIButtonConfiguration.[Sub]TitleLineBreakMode. Fixes ##19377. (#19384)
Both headers and documentation agree that these members were introduced with
the type itself, so we can just remove our member-specific availability
attributes and inherit from the parent (class) instead.

Fixes https://github.com/xamarin/xamarin-macios/issues/19377.
2023-11-02 17:59:12 +01:00
Rolf Bjarne Kvinge 1d5dcae161
[msbuild] Deduplicate code to create lists of TaskItems for each file in a directory recursively. (#19382) 2023-11-02 17:23:10 +01:00
Rolf Bjarne Kvinge b4f95a67ec
[msbuild] Move shared/duplicated code into base XamarinBuildTask class from the FindILLink/FindAotCompiler tasks. (#19360) 2023-11-02 11:43:57 +01:00
dustin-wojciechowski b4da42958d
[Generator] Refactor Format Type methods into TypeManager class (#19331)
First take at refactoring parts of the Generator:

1. RemoveArity() is now a string extension method with a test
2. FormatType, FormatTypeUsedIn, and part of PrimitiveType methods have
been moved into the TypeManager class.
3. TypeManager now has access to BindingTouch (similar to the other
Manager classes) so that it may call methods from NamespaceManager,
which also had to be made into a public property of BindingTouch vs
being passed through the Generator constructor.

---------

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2023-11-01 09:40:00 -07:00
Haritha Mohan 8908fa13d7
[Vision] Add support for Xcode 15 (#19099)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Alex Soto <alex@soto.dev>
2023-10-31 13:20:59 -07:00
Haritha Mohan ca35f94b1f
[GameKit] Add support for Xcode 15 (#19285)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-31 13:20:38 -07:00
Rolf Bjarne Kvinge 21cafd0b4a
[devops] Upload crash reports into a different location for each test. (#19311) 2023-10-31 16:01:40 -04:00
VS MobileTools Engineering Service 2 7cc334dd30
Bring changes from Localization branch #20231025.9 (#19340) 2023-10-31 16:00:11 -04:00
dotnet-maestro[bot] 73906cc787
[main] Update dependencies from dotnet/xharness (#19372) 2023-10-31 15:59:20 -04:00
Rolf Bjarne Kvinge a97e069452
[msbuild] Subclass XamarinTask in numerous other tasks to reduce duplicated code. (#19343) 2023-10-31 11:09:02 -04:00
Manuel de la Pena c56605f9bf
[CI] Readd the statuses for bundle.zip and msbuild.zip needed for classic. (#19364)
This is a partial revert of 3bc4dfde9f, we
do not need the nugets.
2023-10-30 11:03:50 -04:00
Rolf Bjarne Kvinge 8c71cecf59
[docs] Improve a few things in the managed static registrar doc. (#19368) 2023-10-29 13:09:03 -04:00
Rolf Bjarne Kvinge f12ba7fcf5
Bump api-tools to get fix for changing base types. (#19356)
New commits in rolfbjarne/api-tools:

* rolfbjarne/api-tools@6d4007a [mono-api-html] Allow changing the base type if the old base type is a super class of the new base type.
* rolfbjarne/api-tools@cbc1e08 [mono-api-html] Fix compiler warning about obsolete formatter-based serialization attributes.

Diff: c7d5208967..6d4007a599

---------

Co-authored-by: Alex Soto <alex@alexsoto.me>
2023-10-27 12:54:31 +02:00
Rolf Bjarne Kvinge 2534418caa
[tests] Try to fix a few random test failures in UserDefaultsTests. (#19354)
Try to fix a few random test failures in UserDefaultsTests by making sure they
won't fail if another process is running the test at the same time by adding
the PID to any machine-wide identifiers.

Might fix:

* https://github.com/xamarin/maccore/issues/2488
* https://github.com/xamarin/maccore/issues/2725
2023-10-27 08:09:58 +02:00
Rolf Bjarne Kvinge 0d7de01ab3
[Readme] Update link to the forums. (#19361) 2023-10-26 19:28:51 +02:00
Manuel de la Pena 3c92423853
[UIKit] Add missing attrs for catalyst. (#19355)
Fixes #19353
2023-10-26 16:48:51 +02:00
Rolf Bjarne Kvinge 2dc72264ea
[devops] Upload the mac-test-package.7z file into the correct folder. (#19312) 2023-10-26 09:59:39 +02:00
Rolf Bjarne Kvinge a0eec0c265
[maestro] Fix a few issues with the maestro subscriptions. (#19347)
* The 'Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport' dependency was renamed to 'Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100'
* Add a separate dependency for 'Microsoft.NET.ILLink', since it can have a different version than 'Microsoft.NET.ILLink.Tasks'.
* Update using the '.NET 8' and '.NET 8.0.1xx' channels.
2023-10-26 07:45:03 +02:00
Mauro Agnoletti 28d6ae76fc
[main] Updated Hot Restart client version (#19345)
Updated to 1.1.0 to bring important changes and fixes on isignsharp:

- https://github.com/xamarin/isignsharp/pull/53
- https://github.com/xamarin/isignsharp/pull/54
- https://github.com/xamarin/isignsharp/pull/55
2023-10-25 19:54:49 -04:00
Manuel de la Pena d9f5a2bfb5
[UIKit] Add support for Xcode 15. (#19120)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Haritha Mohan <harithamohan@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2023-10-25 12:41:17 -04:00
Rolf Bjarne Kvinge 42ea483e70
[msbuild] Don't try to read a file that might not exist in the XamarinBuildTask task. (#19327)
This isn't very helpful:

	packs\Microsoft.iOS.Windows.Sdk\16.4.7123-ci.issue-19229\tools\msbuild\iOS\Xamarin.iOS.Common.After.targets(321,3): MessagingRemoteException: An error occurred on client Build1647107 while executing a reply for topic xvs/build/16.4.7107/execute-task/issue19229/ba129ce002fFindILLink
	AggregateException: One or more errors occurred.
	FileNotFoundException: Could not find file "/var/folders/43/h027tm1n101cdrq2_b6n9n2m0000gn/T/tmp2f66981e.tmp/Output.txt"

Now we'll get a much better error message that includes what 'dotnet build'
failed to do.
2023-10-25 11:28:52 +02:00
Rolf Bjarne Kvinge a56068bda2
[AppKit] Remove [NSImage imageWithSymbolName:bundle:variableValue:] from Mac Catalyst. (#19320)
It doesn't exist there, and it also fails a test:

[FAIL] StaticMethods : 1 errors found in 3389 static selector validated:
        AppKit.NSImage : imageWithSymbolName:bundle:variableValue:
          Expected: 0
          But was:  1
2023-10-25 11:27:21 +02:00
Rolf Bjarne Kvinge d719400c0f
[msbuild] Enable the _ExpandNativeReferences target for Hot Restart. (#19299)
This fixes an issue where xcframeworks weren't properly resolved for Hot Restart.
2023-10-25 08:46:51 +02:00
Rolf Bjarne Kvinge bb465c38ef
[msbuild] Don't add frameworks with static libraries to Hot Restart apps. (#19300)
The main problem is that an app with unsigned executable code will fail any signing
verification, and the app won't install on device.

This is implemented by doing two changes:

1. Augment the FilterStaticFrameworks task to only filter out frameworks with
   static libraries (and thus keeping everything that's not a static framework, even
   if it's not even a framework).

2. Execute the FilterStaticFrameworks task to filter out static frameworks from
   the entire list of files to bundle in the hot restart app bundle.
2023-10-25 08:46:20 +02:00
Rolf Bjarne Kvinge 25393b9c67
[msbuild] Copy files to be signed into the correct directory for Hot Restart. Fixes #19278. (#19302)
1. Move the signing to after we copy files that must be signed into the app bundle
   that will be signed: we sign in the _CodesignHotRestartAppBundle target, so this
   means the targets _CopyHotRestartBundleResources and _CopyFilesToHotRestartSignedAppDirContents
   must execute first.

2. Try to clear up some confusion about the directories involved. The HotRestartSignedAppOutputDir
   property indicates the location of the _signed_ app bundle, which means no files
   should be added there. Instead files that should be signed (or present when the
   app launches) must be placed in the HotRestartAppBundlePath directory.

3. Document each property involved to try to avoid more mistakes in the future.

Fixes https://github.com/xamarin/xamarin-macios/issues/19278.
2023-10-25 08:45:48 +02:00
Rolf Bjarne Kvinge c4e4a2c8cf
[msbuild] Fix parsing single-char mtouch extra args of the form '-vvvv'. (#19318) 2023-10-25 08:44:54 +02:00
Rolf Bjarne Kvinge 458a11b822
[msbuild] Look for and copy binding resource packages to the remote Mac in the ResolveNativeReferences task. Fixes #19229. (#19325)
Look for any binding resource packages (a directory named AssemblyName.resources
or a compressed version named AssemblyName.resources.zip) next to any references,
and copy those to the remote Mac when doing remote builds.

Fixes https://github.com/xamarin/xamarin-macios/issues/19229.
2023-10-25 08:44:03 +02:00
Rolf Bjarne Kvinge 85ddcf2006
[dotnet] Remove support for MtouchArch and XamMacArch. (#19319)
When migrating Xamarin projects to .NET projects, somewhat frequently people
will leave the MtouchArch/XamMacArch properties in their project files with
old values. This won't work, since we use RuntimeIdentifier(s) now to control
the target architecture, so remove support for MtouchArch/XamMacArch, and show
an error if we detect that they're set.

This will hopefully prevent some really confusing problems, especially in the IDEs.

Example: https://github.com/xamarin/xamarin-macios/issues/19258
2023-10-25 08:33:06 +02:00
VS MobileTools Engineering Service 2 1da686d974
Localized file check-in by OneLocBuild Task: Build definition ID 17751: Build ID 8579266 (#19307)
This is the pull request automatically created by the OneLocBuild task
in the build process to check-in localized files generated based upon
translation source files (.lcl files) handed-back from the downstream
localization pipeline. If there are issues in translations, visit
https://aka.ms/icxLocBug and log bugs for fixes. The OneLocBuild wiki is
https://aka.ms/onelocbuild and the localization process in general is
documented at https://aka.ms/AllAboutLoc.
2023-10-24 11:56:20 -05:00
Manuel de la Pena 16e915424d
[Storekit] Add support for xcode 15. (#19309)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-24 07:59:49 -04:00
Manuel de la Pena f9fb647e8e
[AppKit] Add support for Xcode 15. (#19119) 2023-10-23 21:39:29 -04:00
Manuel de la Pena f181a1d744
[MacCatalyst] Fix intro failures in catalyst on sonoma. (#19308) 2023-10-23 21:28:02 -04:00
dotnet-maestro[bot] a9abaabd70
[main] Update dependencies from dotnet/xharness (#19298)
This pull request updates the following dependencies

## From https://github.com/dotnet/xharness

- **Subscription**: 601bc5e1-1cae-44b5-cf5f-08db9342aa2f
- **Build**: 20231023.1
- **Date Produced**: October 23, 2023 8:27:12 AM UTC
- **Commit**: 3fc757d9b48e116713d1e0e3a3bd111a588905cb
- **Branch**: refs/heads/main

- **Updates**:
  - **Microsoft.DotNet.XHarness.iOS.Shared**: [from 8.0.0-prerelease.23516.1 to 8.0.0-prerelease.23523.1][1]

[1]: 02098f6cf8...3fc757d9b4
2023-10-23 22:52:16 +02:00
TJ Lambert 6d30e583d3
[PassKit] Add support Xcode15 Beta 7 (#19139)
The bindings for PassKit Xcode15 Beta 7.

---------

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2023-10-23 13:05:19 -05:00
dotnet-maestro[bot] af3fb85cfa
[main] Update dependencies from dotnet/installer (#19296)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
  - **Microsoft.NET.ILLink.Tasks**: from 8.0.0-rtm.23518.26 to 8.0.0-rtm.23519.13 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.AspNetCore.App.Ref**: from 8.0.0-rtm.23519.14 to 8.0.0-rtm.23520.10 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.NETCore.App.Ref**: from 8.0.0-rtm.23518.26 to 8.0.0-rtm.23519.13 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.NETCore.App.Ref**: from 8.0.0-rtm.23518.26 to 8.0.0-rtm.23519.13 (parent: Microsoft.Dotnet.Sdk.Internal)

## From https://github.com/dotnet/installer

- **Subscription**: 80cb9ffd-f92f-4fc8-9f8b-08dbca46abfb
- **Build**: 20231022.1
- **Date Produced**: October 23, 2023 3:21:58 AM UTC
- **Commit**: 30d7d24a6592aa0c97f81ac36b563fab2b451b14
- **Branch**: refs/heads/release/8.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-rtm.23520.38 to 8.0.100-rtm.23522.1][1]
  - **Microsoft.NET.ILLink.Tasks**: [from 8.0.0-rtm.23518.26 to 8.0.0-rtm.23519.13][2]
  - **Microsoft.AspNetCore.App.Ref**: [from 8.0.0-rtm.23519.14 to 8.0.0-rtm.23520.10][3]
  - **Microsoft.NETCore.App.Ref**: [from 8.0.0-rtm.23518.26 to 8.0.0-rtm.23519.13][2]
  - **Microsoft.NETCore.App.Ref**: [from 8.0.0-rtm.23518.26 to 8.0.0-rtm.23519.13][2]

[1]: 7a6cb1fc8a...30d7d24a65
[2]: c6e7ebdcb1...86c949374e
[3]: e4ba445101...c9fa5f3a34
2023-10-23 18:30:37 +02:00
VS MobileTools Engineering Service 2 7be5c08268
Bring changes from Localization branch #20231019.4 (#19267)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-23 11:26:19 -05:00
VS MobileTools Engineering Service 2 b229fb18b1
Bring changes from Localization branch #20231018.4 (#19261)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-23 11:26:09 -05:00
Manuel de la Pena 61f438656c
[MetalFX] Add the framework (which was added in Xcode 14) and add xcode 15 support. (#19107)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-10-23 10:40:02 -04:00
Rolf Bjarne Kvinge 77451313ed
Bump mlaunch to get resource fix. (#19291)
New commits in xamarin/maccore:

* xamarin/maccore@699ed5eaf2 [mlaunch] Fix the resource name for the
error/warning strings.

Diff: 04b71d98c8..699ed5eaf2
2023-10-23 08:44:07 -04:00
dotnet-maestro[bot] 33c9914c8f
[main] Update dependencies from dotnet/installer (#19287)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
  - **Microsoft.NET.ILLink.Tasks**: from 8.0.0-rtm.23517.16 to 8.0.0-rtm.23518.26 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.AspNetCore.App.Ref**: from 8.0.0-rtm.23518.3 to 8.0.0-rtm.23519.14 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.NETCore.App.Ref**: from 8.0.0-rtm.23517.16 to 8.0.0-rtm.23518.26 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.NETCore.App.Ref**: from 8.0.0-rtm.23517.16 to 8.0.0-rtm.23518.26 (parent: Microsoft.Dotnet.Sdk.Internal)

## From https://github.com/dotnet/installer

- **Subscription**: 80cb9ffd-f92f-4fc8-9f8b-08dbca46abfb
- **Build**: 20231020.38
- **Date Produced**: October 21, 2023 1:25:22 AM UTC
- **Commit**: 7a6cb1fc8a3a6048783eddb10b32281aa2fcb992
- **Branch**: refs/heads/release/8.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-rtm.23519.30 to 8.0.100-rtm.23520.38][4]
  - **Microsoft.NET.ILLink.Tasks**: [from 8.0.0-rtm.23517.16 to 8.0.0-rtm.23518.26][5]
  - **Microsoft.AspNetCore.App.Ref**: [from 8.0.0-rtm.23518.3 to 8.0.0-rtm.23519.14][6]
  - **Microsoft.NETCore.App.Ref**: [from 8.0.0-rtm.23517.16 to 8.0.0-rtm.23518.26][5]
  - **Microsoft.NETCore.App.Ref**: [from 8.0.0-rtm.23517.16 to 8.0.0-rtm.23518.26][5]

[4]: 7c50a5c83c...7a6cb1fc8a
[5]: 6f7af556d2...c6e7ebdcb1
[6]: 954413f0ae...e4ba445101
2023-10-23 14:05:40 +02:00