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

1742 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena 8d56ae186d
[Network] Add support for Xcode 15. (#19418)
Adding up for review but will block its landing until the PR
https://github.com/xamarin/xamarin-macios/pull/7539 which was fixed by
@dustin-wojciechowski has been landed.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2024-01-04 15:17:49 -05:00
Rolf Bjarne Kvinge b3e5784ef6
[UIKit] Fix broken UITrait bindings. Fixes #19410. (#19411)
There are a few issues with the bindings, because the typedef `UITrait`
in the headers is defined like this:

```objective-c
typedef Class<UITraitDefinition> UITrait
```

which means: "A Class that implements the UITraitDefinition protocol",
and not "The UITraitDefinition" protocol", which is how it was bound.

This means the corresponding bindings are incorrect, so fix them. In
some cases it's not possible to fix the API, so new ones had to be
implemented in order to maintain backwards compatibility.

Fixes https://github.com/xamarin/xamarin-macios/issues/19410.
2024-01-03 09:03:08 +01:00
Haritha Mohan f39489fe60
[Vision] Update Xcode 15 support (#19412)
This commit adds some missing bindings and fixes up some of the previous
API that were incorrectly bound with Vector4 instead of Matrix4.

A sample app using some of these latest bindings can be found here:
https://github.com/haritha-mohan/vision-analyzer

Contributes to https://github.com/xamarin/maccore/issues/2719, though
the manual testing ended up not being necessary still helped catch a few
bugs and showcases some of the latest work done for this Xcode release.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2024-01-02 15:17:57 -05:00
Rolf Bjarne Kvinge dfa1ec1516
[AppKit] Implement the NSUserInterfaceItemSearching protocol. Fixes #19649. (#19662)
Fixes https://github.com/xamarin/xamarin-macios/issues/19649.
2024-01-02 14:33:28 +01:00
Manuel de la Pena 7ad1837e7d
[Metal] Add support for Xcode15. (#19379)
This PR brings all the changes from the new Metal APIs. During the
review pay special attention to the changes done in the Protocols in
order to add tvOS support.

The main problem we have had doing this PR is that tvOS was not done on
time before the NET branching, that left us with a lot of memebers that
were NOT added in tvOS that are abstract on dotnet, which has left use
in a pickle.

Lets use the following code as an example.

Code found before this commit:

```csharp
	[Mac (11, 0), iOS (14, 0), NoTV]
	[MacCatalyst (14, 0)]
#if NET
	[Abstract]
#endif
	[Export ("accelerationStructureCommandEncoder")]
	IMTLAccelerationStructureCommandEncoder CreateAccelerationStructureCommandEncoder ();
```

A naive approach would be to add just the tvOS suppor as follows:

```csharp
	[Mac (11, 0), iOS (14, 0), TV (16,0)]
	[MacCatalyst (14, 0)]
#if NET
	[Abstract]
#endif
	[Export ("accelerationStructureCommandEncoder")]
	IMTLAccelerationStructureCommandEncoder CreateAccelerationStructureCommandEncoder ();
```

The above change represents and API braking change on the donet tvOS dll
because it adds a new Abstrtact members, so this is no an acceptable
solution.

There is a second naive approach we can take which is as follows:

```csharp
	[Mac (11, 0), iOS (14, 0), TV (16,0)]
	[MacCatalyst (14, 0)]
#if NET &!TVOS
	[Abstract]
#endif
	[Export ("accelerationStructureCommandEncoder")]
	IMTLAccelerationStructureCommandEncoder CreateAccelerationStructureCommandEncoder ();
```

Yet again, the naive approach has an issue with it. In this case, all
the extension methods that are generated for tvOS (something the
generator writes when methods are not abstract) will be decorated with
availability attributes for all the other platforms, which is incorrect
and will make developers life worse.

That leaves us with the following approach:

```csharp
#if NET
#if !TVOS
	[Mac (11, 0), iOS (14, 0), NoTV, MacCatalyst (14, 0)]
	[Abstract]
#else
	[NoMac, NoiOS, TV (16,0), NoMacCatalyst]
#endif
#else
	[Mac (11, 0), iOS (14, 0), TV (16,0), MacCatalyst (14, 0)]
#endif
	[Export ("accelerationStructureCommandEncoder")]
	IMTLAccelerationStructureCommandEncoder CreateAccelerationStructureCommandEncoder ();
```

With the above change, we do not add an abstract method in tvOS and we
only add the tvOS abailabity attribute to the extension methods, and use
NoiOS etc for all the other platforms.

The change had to be done to ALL methods that added tvOS support. The
good news are that our cecil tests and our introspection tests catch the
two naive approaces :)

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Haritha Mohan <harithamohan@microsoft.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2023-12-12 17:39:56 -05:00
Manuel de la Pena 5cca8aa1cf
[CoreMidi] Add CoreMidi enums to Watch so that we can have them for avfoundation. (#19580)
Similar to https://github.com/xamarin/xamarin-macios/pull/19529 we need
this for all the avfoundation to be landed.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-12-07 12:32:32 -05:00
Rolf Bjarne Kvinge 1ddc0b4b74
Get Mono.Cecil from NuGet everywhere. (#19535)
Also:

* Store the version in Directory.Build.props, which makes it much easier to update.
* Bump all versions to latest (0.11.5).
2023-12-04 20:15:03 +01:00
Manuel de la Pena d5f62b2758
[CoreMidi] Add support for tvOS. (#19529)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-11-30 13:25:34 -05:00
Rolf Bjarne Kvinge a736e683ae
[AppKit] Update the NSBezelStyle enum according to latest headers. Fixes #19555. (#19556)
Fixes https://github.com/xamarin/xamarin-macios/issues/19555.
2023-11-30 15:58:13 +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
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
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
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
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
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
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
Manuel de la Pena 85bd5786f5
[MetalKit] Add support for Xcode 15. (#19274)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-20 17:17:10 -04:00
Manuel de la Pena 41db19604d
[NerabyInteraction] Add support for xcode 15. (#19273)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-20 10:57:53 -04:00
Haritha Mohan 703bcfccc3
[WebKit] Add support for Xcode 15 (#19237)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-19 09:39:25 -07:00
Manuel de la Pena 1cbca67c84
[Tests] Fix introspection tests on Sonoma. (#19256)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-19 09:52:24 -04:00
Manuel de la Pena b73cb11dc1
[Foundation] Add support for Xcode 15 beta 7. (#19007)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2023-10-17 11:27:20 -04:00
Manuel de la Pena c661ef5f97
[Xtro] Bump objective sharpie and update todos. (#19220)
All the Frameworks that needed to be skipped now work and therefore we
need to update the todos files for xcode 15.
2023-10-16 16:10:09 -04:00
Rolf Bjarne Kvinge 2779d9c48a
[AutomaticAssessmentConfiguration] Add missing constructors to AEAssessmentApplication. Fixes #19133. (#19180)
Fixes https://github.com/xamarin/xamarin-macios/issues/19133.

---------

Co-authored-by: Alex Soto <alex@soto.dev>
2023-10-16 07:33:10 +02:00
Haritha Mohan 9345934791
[PHASE] Add support for Xcode 15 (#19104)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-05 09:50:05 -07:00
Haritha Mohan 5f905f2961
[NetworkExtension] Add support for Xcode 15 (#19059)
Support for TVOS was added

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-02 09:47:11 -07:00
Haritha Mohan 50309feec7
[SensorKit] Add support for Xcode 15 (#19105) 2023-09-27 17:36:06 -07:00
Manuel de la Pena faca88638e
[MediaPlayer] Add support for Xcode 15 beta7. (#19014)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-09-26 08:42:00 -04:00
Manuel de la Pena 3e3cf470d9
[Accessibility] Complete the binding for xcode 15. (#19098)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-09-26 08:41:44 -04:00
Manuel de la Pena 341bbfa1f7
[MessageUI] Add support for xcode 15. (#19096)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-09-26 08:41:14 -04:00
Alex Soto 4a59998d75
[net8.0-xcode15] Merge net8.0 into net8.0-xcode15. (#19081) 2023-09-22 07:25:27 -04:00
Haritha Mohan 2d7f0594ec
[PushToTalk] Add support for Xcode 15 (#19087)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Alex Soto <alex@soto.dev>
2023-09-21 16:22:46 -07:00
Rolf Bjarne Kvinge 62b742db3c [net8.0-xcode15] Merge net8.0 into net8.0-xcode15. 2023-09-21 16:39:06 +02:00
Haritha Mohan 6175265910
[SoundAnalysis] Support for Xcode 15 (#19062) 2023-09-21 07:28:39 -04:00
Haritha Mohan 7321bc82e8
[Speech] Add support for Xcode 15 (#19075)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Alex Soto <alex@soto.dev>
2023-09-21 07:28:02 -04:00
Alex Soto fc54e43f85
[net8.0-xcode15] Merge net8.0 into net8.0-xcode15. (#19071) 2023-09-20 19:43:38 -04:00
Haritha Mohan 7431474d28
[NaturalLanguage] Add support for Xcode 15 (#19039)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-09-20 12:05:16 -07:00
Rolf Bjarne Kvinge 6a63e76e74 [net8.0-xcode15] Merge net8.0 into net8.0-xcode15. 2023-09-20 19:21:24 +02:00
Haritha Mohan a9ee4fba68
[ScreenCaptureKit] Add support for Xcode 15 beta 8 (#18965)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Alex Soto <alex@soto.dev>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2023-09-19 10:16:01 -07:00
Manuel de la Pena e95959a5c6
[Intents] Add support for xcode 15. (#19006)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-09-19 12:45:48 -04:00
Alex Soto 391b8e2690
[xcode15] Bump to Xcode 15 stable version (#19009)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-09-19 12:34:34 -04:00
Manuel de la Pena 72ee9e973d
[MediaAccessibility] Add xcode 15 beta 7 support. (#19016)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2023-09-18 19:55:01 -04:00
Rolf Bjarne Kvinge 0d3d4ff2d0
[src] Exclude more code from .NET to fix compiler warning. (#19036)
Fixes this:

    ObjCRuntime/Dlfcn.cs(102,20): warning CS0649: Field 'Dlfcn.Dl_info.dli_fbase' is never assigned to, and will always have its default value
    ObjCRuntime/Dlfcn.cs(103,20): warning CS0649: Field 'Dlfcn.Dl_info.dli_sname' is never assigned to, and will always have its default value
    ObjCRuntime/Dlfcn.cs(104,20): warning CS0649: Field 'Dlfcn.Dl_info.dli_saddr' is never assigned to, and will always have its default value
    ObjCRuntime/Dlfcn.cs(101,20): warning CS0649: Field 'Dlfcn.Dl_info.dli_fname' is never assigned to, and will always have its default value

The warning is new, after we removed the referencing code from .NET in a recent commit.
2023-09-18 22:05:05 +02:00
Haritha Mohan e2dc23e651
[HealthKitUI] Add support for Xcode 15 (#19017)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-09-18 08:34:32 -07:00
Haritha Mohan 8d7b3f8bca
[ShazamKit] Add support for Xcode 15 (#19005)
WatchOS todo/xtro was weird, so added it to the ignore for now..all
intro tests look good though

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-09-18 08:29:29 -07:00
Manuel de la Pena ff805d1c5f
[Messages] Add support for Xcode 15 beta 7. (#19018)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-09-18 11:24:52 +02:00
Haritha Mohan 4f1cbbccaa
[SensitiveContentAnalysis] Add support for Xcode 15 (#19020)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Alex Soto <alex@soto.dev>
2023-09-15 09:49:05 -07:00
Rolf Bjarne Kvinge 703ee68cec
[UIKit] Make UIView.HitTest's return value nullable. Fixes #19019. (#19025)
Fixes https://github.com/xamarin/xamarin-macios/issues/19019.
2023-09-15 11:58:21 +02:00
Haritha Mohan 3e2ef133bc
[Security] Add support for Xcode 15 (#19021)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-09-14 13:49:59 -07:00