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

102 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge bf05f39f37
[xtro] Unify the <platform>-CHIP.ignore files into a common-CHIP.ignore file. (#14401) 2022-03-21 10:16:07 +01:00
Alex Soto c7dc47ed59 [ScreenCaptureKit] Add new Framework to todo 2022-03-14 22:54:34 -04:00
Alex Soto 60f012c328 [ReplayKit] Update bindings up to Xcode 13.3 Beta 3 2022-03-14 22:54:34 -04:00
Alex Soto edc55e0283 [ProximityReader] Ignoring this framework nothing useful to bind 2022-03-14 22:54:34 -04:00
Alex Soto 31970e83c8 [Network] Add Framework to todo 2022-03-14 22:54:34 -04:00
Alex Soto e24151b438 [MetalPerformanceShadersGraph] Add Framework to todo
We can update it once https://github.com/xamarin/xamarin-macios/pull/14303 lands
2022-03-14 22:54:34 -04:00
Alex Soto 5ca983925d [MediaSetup] Add MacCat framework to the todo list 2022-03-14 22:54:34 -04:00
Alex Soto cf0cabbf64 [CoreMotion] Update bindings up to Xcode 13.3 Beta 3 2022-03-14 22:54:34 -04:00
Alex Soto f1257d8095 [CoreMediaIO] Add new macOS framework to todo 2022-03-14 22:54:34 -04:00
Alex Soto 858c60474e [CellularDataDiagnosticsSuite] Wait to bind this new one until GA 2022-03-14 22:54:33 -04:00
Alex Soto 03bdc33103 [CarPlay] Update bindings up to Xcode 13.3 Beta 3 2022-03-14 22:54:33 -04:00
Alex Soto 7efe7bee2d [AppKit] Update xtro annotations of unbound API 2022-03-14 22:54:33 -04:00
Alex Soto 019ec18bc6 [xtro] Fix xtro annotations
Ignoring CHIP framework for now since it is not stable just yet
and we want to avoid breaking changes in the future.
2022-03-14 22:54:33 -04:00
Rolf Bjarne Kvinge c98a6d01cc
[HealthKit] Add this framework to Mac Catalyst. (#14312) 2022-03-09 18:18:48 +01:00
Rolf Bjarne Kvinge 0897150a4f
[VisionKit] Add this framework to Mac Catalyst. (#14316) 2022-03-07 09:30:17 +01:00
Alex Soto 28f905fd75
[CHIP] Remove CHIP framework from dotnet (#14309)
CHIP framework seems to not be stable yet from Apple's side
each xcode update it brings breaking changes and it is also
not documented anywhere so let's disable it for now and
we can re-enable it in the future once it is stable.
2022-03-04 11:59:49 -05:00
Rolf Bjarne Kvinge 2a8e0121d8
[ARKit] Ignore this framework on Mac Catalyst. (#14290)
It exists, but does nothing on Mac Catalyst.

"This framework ignores calls from Mac apps built with Mac Catalyst."

Ref: https://developer.apple.com/documentation/arkit?language=objc

Also augment xtro to not be confused when encountering lines starting with '#'
that has no other text.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-03 21:43:33 +01:00
Rolf Bjarne Kvinge 1011419896
[xtro] Remove old and unused annotations. (#14282) 2022-03-02 15:15:11 +01:00
Curtis Wensley 069d34b454
Set NSImageRep DrawInRect hints as nullable (#13834)
* Set NSImageRep DrawInRect hints as nullable

* Add nullable attributes to NSString DrawAtPoint/DrawInRect/StringSize

* Fix xtro test failure

Co-authored-by: Chris Hamons <chris.hamons@xamarin.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-01 20:34:02 +01:00
Rolf Bjarne Kvinge c51b064ba2
[Message[s|UI]] Add to Mac Catalyst. #13935. (#14268)
Fixes https://github.com/xamarin/xamarin-macios/issues/13935.
2022-02-28 22:37:14 +01:00
Rolf Bjarne Kvinge 8f5c8b1685
Bump ObjectiveSharpie to 3.5.50. (#14256)
This also requires updating the xtro definitions, because sharpie now finds
many more Mac Catalyst frameworks than before (and we haven't bound those
frameworks yet).
2022-02-26 01:59:11 +01:00
Rolf Bjarne Kvinge 2a1f24f2cc
[CoreTelephony] Fix multiple issues. Fixes #13931. (#14242)
* Add to Mac Catalyst. Fixes #13931.
* Manually include CoreTelephony headers in xtro. There's no umbrella header
  in CoreTelephony 😡 😞
* Fix availability attributes
	* Only CTCall and CTCallCenter are deprecated in the CoreTelephony API.
	* None of these APIs are obsolete, just deprecated.
	* Add Mac Catalyst attributes.

One curious fact is that the PCSC framework interferes with compiling CTCarrer.h:

    In file included from /private/var/folders/43/h027tm1n101cdrq2_b6n9n2m0000gn/T/n0b0byrt.h:163:
    /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h:62:41: error: reference to 'BOOL' is ambiguous
    @property (nonatomic, readonly, assign) BOOL allowsVOIP __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
                                            ^
    /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/PCSC.framework/Headers/wintypes.h:59:18: note: candidate found by name lookup is 'BOOL'
            typedef int16_t BOOL;
                            ^
    /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/objc/./objc.h:78:18: note: candidate found by name lookup is 'BOOL'
        typedef bool BOOL;
                     ^
    1 error generated.

but since we don't bind the PCSC framework, we can just ask ObjectiveSharpie
to exclude it.

Fixes https://github.com/xamarin/xamarin-macios/issues/13931.
2022-02-24 23:41:52 +01:00
Rolf Bjarne Kvinge b99e75d6ad
[Metal] Name the enum fields consistently, and obsolete/remove the rest. (#14240) 2022-02-24 23:00:26 +01:00
Rolf Bjarne Kvinge d414aa2eb1
[AVFoundation] Remove the AVAssetsDownloadTaskKeys and AVAssetDownloadOptions API in .NET for tvOS. (#14233)
These API were never valid for tvOS, and now we can completely remove them in .NET.
2022-02-24 22:58:01 +01:00
Rolf Bjarne Kvinge bd97933b60
[runtime] Remove ObjCRuntime.nfloat in favor of System.Runtime.InteropServices.NFloat. (#14197)
* Remove ObjCRuntime.nfloat (in favor of   System.Runtime.InteropServices.NFloat).
* Automatically add a reference to the System.Runtime.InteropServices.Internal
  package, so that developers get the new NFloat API (with operators) we've
  added post .NET 6 (but don't do this for .NET 7).
* Automatically add a global using alias for
  System.Runtime.InteropServices.NFloat -> nfloat. This is not behind the
  usual `ImplicitUsings` condition our other implicit usings are, because
  they're off by default for existing projects, and the main target for the
  global using alias for nfloat is upgraded projects.
* Automatically generate a global using alias (like above) in the generator
  for all code the generator compiles.
* Update xtro entries to reference System.Runtime.InteropServices.NFloat
  instead of ObjCRuntime.nfloat.
* Add a workaround for a hopefully temporary issue with .NET/CoreCLR where the
  wrong runtime pack is selected otherwise (without the new NFloat API, so
  nothing works at runtime).

Ref: https://github.com/xamarin/xamarin-macios/issues/13087
2022-02-24 16:51:12 +01:00
Rolf Bjarne Kvinge 3b617adb0f
[CloudKit] Remove API that no longer exists in the headers from .NET. (#14228) 2022-02-24 08:20:26 +01:00
Rolf Bjarne Kvinge 66dcb94e1f
[AVFoundation] Simplify code behind + api definition for AVCaptureConnection. (#14199)
* Remove the code behind for AVCaptureConnection.SupportsVideoMinFrameDuration
  and AVCaptureConnection.SupportsVideoMaxFrameDuration. The codebehind looks like
  a workaround for Apple renaming the selector, but from history it looks like that
  happened before the earliest version of iOS we support today, so this can be expressed
  in an api definition now without any code behind.
* Add these fields to macOS, where they're not even deprecated (like they are on
  other platforms).
* Remove conditional code in api definition, and distribute [No*] attributes as
  required.
* Remove the AVCaptureConnection.AudioChannels property from .NET, it doesn't do
  anything useful.
2022-02-21 20:58:47 +01:00
Rolf Bjarne Kvinge d58409c018
[AppKit] INSTextInputClient.GetAttributedSubstring can return null. Fixes #14129. (#14131)
Fixes https://github.com/xamarin/xamarin-macios/issues/14129.
2022-02-15 17:44:21 +01:00
Rolf Bjarne Kvinge 31f11e2632
[CoreText] Move numerous CoreText fields to generated code for .NET. (#14132) 2022-02-15 08:24:34 +01:00
Stephane Delcroix f36606e654
[C] Clear OpenTK namespace (#13767)
fixes #13160

- remove unused types
- use System.Numerics when possible
- move own created types from OpenTK namespace to CoreGraphics
- create missing types in CoreGraphics namespace

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-02-14 18:50:23 +01:00
TJ Lambert 764e797ceb
[NET 6 Attribute Conversion] Security (#14033)
* Removing attributes for mellite

* Remove existing attributes

* Attribute Conversion

* Reverting changes to Security/Enums.cs and Security/SecureTransport.cs since they are API source

* Revert "Removing attributes for mellite"

This reverts commit eea2898870.

* Fixing Verifies, Moving Obsolete, Adding missing conversion

* Adding in removed comments and messages

* Removing unused NET Attributes

* Removing duplicated comments

* Removing not needed availability

* Remove todos

* removing other not needed availability

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-02-14 10:36:33 -06:00
Rolf Bjarne Kvinge 0df9fa98ef
[UIKit] Implement the UIResponderStandardEditActions protocol. (#14095)
Implement the UIResponderStandardEditActions protocol, move the
corresponding API from UIResponder there, and make sure UIResponder implements
the new UIResponderStandardEditActions protocol (which should make this move a
non-breaking change, since the protocol is inlined in UIResponder).
2022-02-08 10:38:28 +01:00
Rolf Bjarne Kvinge eb281aefee
[AppKit] Make NSTextView implement the NSColorChanging protocol in .NET. (#14071)
Also change the NSColorChanging.ChangeColor method to not be deprecated
anymore, Apple's headers say nothing of the sort.
2022-02-07 08:06:24 +01:00
Rolf Bjarne Kvinge 18b53d8e4b
[xtro] Remove dead comment in ignore file. (#14078) 2022-02-07 08:04:34 +01:00
Rolf Bjarne Kvinge 6bef760049
[NetworkExtension] Remove fields from macOS that aren't in macOS for .NET. (#14082) 2022-02-07 08:03:53 +01:00
Rolf Bjarne Kvinge 154bd6b22b
[AppKit] Implement the NSUserInterfaceValidation protocol for a few types in .NET. (#14036) 2022-02-04 08:27:29 +01:00
Rolf Bjarne Kvinge d766fe8c8b
[AppKit] Remove a few obsolete members in .NET (#14043) 2022-02-04 08:14:10 +01:00
Rolf Bjarne Kvinge 3a2acf9d99
[AppKit] Implement the NSUserActivityRestoring protocol. (#14045) 2022-02-04 08:06:25 +01:00
Rolf Bjarne Kvinge 0a10670d2e
[UIKit] Rename UISegmentedControl.DividerImageForLeftSegmentStaterightSegmentStatebarMetrics to UISegmentedControl.GetDividerImage in .NET. Fixes #6357. (#14059)
Also make the return value nullable since xtro says so.

Fixes https://github.com/xamarin/xamarin-macios/issues/6357.
2022-02-04 07:50:47 +01:00
Rolf Bjarne Kvinge 56313f896d
[AppKit] Use the correct interface for inlining protocols in our api definitions in .NET. (#14041)
Also update/fix code to show the corresponding warning in the generator, and
make a note of why MKUserLocation/MKAnnotation is special.
2022-02-03 17:56:20 +01:00
Rolf Bjarne Kvinge 363e58f079
[Foundation] Adopt more XAMCORE_4_0 changes in .NET. (#14017)
This is just removing obsolete API.
2022-02-02 17:24:51 +01:00
Rolf Bjarne Kvinge 4b1738826f
[FileProvider] Adopt XAMCORE_4_0 changes in .NET. (#14012) 2022-02-02 08:01:06 +01:00
Rolf Bjarne Kvinge 2d48710858
[AppKit] Adopt XAMCORE_4_0 changes in .NET. (#13987)
* A lot of obsolete/deprecated removal.
* Remove the NSDraggingInfo model, which required numerous other changes.
* Remove the NSPasteboardReading/NSPasteboardWriting models, which required more
  numerous changes.
* Update the tests accordingly.
2022-02-01 20:56:32 +01:00
Rolf Bjarne Kvinge 5606035493
[MediaAccessibility] Adopt XAMCORE_4_0 changes in .NET. (#13984) 2022-02-01 11:31:45 +01:00
Rachel Kang a64b03a886
[CHIP] Updates for Xcode13.2 beta 1 (#13884)
* [CHIP] Updates for Xcode13.2 beta 1

* Update based on feedback

* Update based on feedback and intro test failure

* Update xtro .todo files

* Fix some breaking API changes

* Delete silly typos
2022-01-31 18:55:49 -05:00
Rolf Bjarne Kvinge 7517d6a8b5
[WKWebKit] Adopt XAMCORE_4_0 changes in .NET. (#13992) 2022-01-31 23:47:45 +01:00
Rolf Bjarne Kvinge bd5c7b331f
[Contacts] Adopt XAMCORE_4_0 changes in .NET. (#13993) 2022-01-31 23:46:11 +01:00
Rolf Bjarne Kvinge 2de903f337
[Social] Adopt XAMCORE_4_0 changes in .NET. (#13986)
Also clean up the code to use fewer ifdefs.
2022-01-31 21:33:53 +01:00
Chris Hamons e8663ebbc7
[NET 6 Attribute Conversion] CoreFoundation (#13816) 2022-01-31 13:27:23 -06:00
Rolf Bjarne Kvinge ee8869a9d1
[GameKit] Adopt XAMCORE_4_0 changes in .NET. (#13964) 2022-01-31 17:04:23 +01:00