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

1595 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 41a4abe54b [xtro] Update. 2022-12-15 16:35:40 +01:00
Rolf Bjarne Kvinge 6581fcb5fb
[Foundation] Create a new NSAttributedStringDocumentAttributeKey enum to match Apple's headers. (#16969)
This allows us to unify the code between all platforms.

Also add all the NSAttributedStringDocumentAttributeKey values we haven't bound yet.

There are no changes in the public API, because I'm only changing internal types.

Ref: #14489.
2022-12-07 15:52:20 +01:00
Haritha Mohan 5a0366a9fa
[Foundation] Add missing bindings in NSTask (#16856)
Added new bindings for deprecated methods/properties: 

Launch -> LaunchAndReturnError
LaunchFromPath -> LaunchFromUrl
LaunchPath -> ExecutableUrl
CurrentDirectoryPath -> CurrentDirectoryUrl

Fixes #14659
2022-11-29 08:32:36 -08:00
Rolf Bjarne Kvinge c1606d5497
[Foundation] Unify a few NSAttributedString constructor implementations. (#16804)
Unify the code for the following constructors:

* NSAttributedString (NSData data, NSDictionary options, out NSDictionary resultDocumentAttributes, ref/out NSError error);
* NSAttributedString (NSUrl url, NSAttributedStringDocumentAttributes options, out NSDictionary resultDocumentAttributes, ref/out NSError error);
* NSAttributedString (NSData data, NSAttributedStringDocumentAttributes options, out NSDictionary resultDocumentAttributes, ref/out NSError error);

These functions use 'ref' arguments instead of 'out' arguments for mobile
platforms (likely due to the generator not having proper 'out' parameter
support when these functions were implemented), so improve to use 'out'
parameters in XAMCORE_5_0 (and macOS, where they already use 'out'
parameters).

Also fix nullability.

Ref: https://github.com/xamarin/xamarin-macios/issues/15216
2022-11-21 21:05:20 +01:00
Rolf Bjarne Kvinge 95783dbb50
[Foundation] Unify a few NSAttributedString functions. (#16782)
Unify the code for the following functions:

* NSAttributedString.GetData[FromRange]
* NSAttributedString.GetFileWrapper[FromRange]

These functions use 'ref' arguments instead of 'out' arguments for mobile
platforms (likely due to the generator not having proper 'out' parameter
support when these functions were implemented), so improve to use 'out'
parameters in XAMCORE_5_0 (and macOS, where they already use 'out'
parameters).

Also fix nullability.

Ref: https://github.com/xamarin/xamarin-macios/issues/15216
2022-11-17 15:51:19 +01:00
Rolf Bjarne Kvinge bedcbb063f
[Foundation] Remove support for '[NSAttributedString initWithFileURL:options:documentAttributes:error:]'. (#16787)
The 'initWithFileURL:options:documentAttributes:error:' was deprecated in iOS
9, and a new alternative (initWithURL:options:documentAttributes:error:) was
added. At the time, we implemented automatic detection of the current OS, and
would choose one version or the other depending on which was available.

We won't support anything below iOS 9 anymore, which means that keeping the
backwards-compatible constructor is useless, so just remove the corresponding
code and expose the new alternative directly.

On another note, this constructor uses a 'ref NSError' argument instead of an
'out NSError' on mobile platforms (likely due to the generator not having
proper 'out' parameter support when this constructor was implemented), so
improve to use 'out' parameters in XAMCORE_5_0 (and macOS, where it already
uses 'out' parameters).

Ref: https://github.com/xamarin/xamarin-macios/issues/15216
2022-11-17 15:45:11 +01:00
Marius Ungureanu 4025f4e881
Fix ownership of CFSocketCreateRunLoopSource (#6089)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-15 15:55:21 +01:00
Rolf Bjarne Kvinge 2d96d43145
[xtro] Fix targets file and print out full path to the html report. (#16721)
There was a typo in the target name for creating the html report for .NET
('report-dotnet' vs 'dotnet-report').

Also print out the full path the html report when it's created, makes it much
easier to open the file from the command line because I can c&p the entire
path.
2022-11-14 18:18:06 +01:00
Rolf Bjarne Kvinge bc95efb0ae
[autoformat] Add xtro. (#16622) 2022-11-08 17:44:13 +01:00
Rolf Bjarne Kvinge c708c71c3b Merge remote-tracking branch 'origin/xcode14.1' into bump-xcode14.1-in-net7.0-xcode14.1-2022-10-24 2022-10-28 09:50:14 +02:00
Manuel de la Pena e315f09ea8
[MacOS] Fix all the issues we found running the tests on Ventura. (#16488) 2022-10-27 20:42:35 -04:00
Manuel de la Pena c797b77838
[Xtro] Add missing ignore in legacy. (#16460)
Fixes https://github.com/xamarin/xamarin-macios/issues/16442.
2022-10-26 12:48:12 -04:00
Alex Soto ac3ef8c348
[xcode14.1][HomeKit] Brings back HMAccessorySetupManager (#16439)
Fixes xamarin/xamarin-macios#16415

HMAccessorySetupManager was removed by mistake when we had to remove
matter related objects due to submission tests.

We have kept the Matter APIs removed and just enabled
PerformAccessorySetup Submission tests are happy using Xcode 14.1 RC1
https://gist.github.com/dalexsoto/243b0da224c613e9afc9706c54f882a1
2022-10-25 15:31:44 -04:00
Rolf Bjarne Kvinge 13ee421a67 Merge xcode14.1 into net7.0-xcode14.1. 2022-10-24 23:43:35 +02:00
Manuel de la Pena 2d2af3e872
[HealthKit] Add support for Xcode 14.1/. (#16410) 2022-10-24 11:26:24 -04:00
Manuel de la Pena 3b431e618c
[CoreMedia] Add support for xcode14.1 (#16409)
Co-authored-by: Alex Soto <alex@alexsoto.me>
2022-10-24 11:22:02 -04:00
Manuel de la Pena a9bca96404
[UIKit] Add support for Xcode 14.1. (#16411) 2022-10-24 11:21:40 -04:00
Manuel de la Pena 25d018437d
[CoreLocation] Add support for Xcode 14.1 (#16412) 2022-10-24 11:21:18 -04:00
Rolf Bjarne Kvinge 24f1fc18ed Merge remote-tracking branch 'origin/xcode14.1' into net7.0-xcode14.1 2022-10-20 19:30:22 +02:00
Alex Soto f414cfa6ca
[xcode14.1] Bump to Xcode 14.1 Release Candidate (#16379) 2022-10-19 07:56:47 +02:00
Rolf Bjarne Kvinge 57307a4168
Merge main into xcode14.1. (#16364) 2022-10-18 08:03:58 +02:00
Manuel de la Pena b75d4c3821
[BackgroundAsserts] Add support for Xcode 14.1 (#16350)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-17 11:46:27 -04:00
Rolf Bjarne Kvinge 9bf6cda819 [xtro] Use latest C# version in xtro-sanity. 2022-10-17 17:26:24 +02:00
Rolf Bjarne Kvinge cb6f555665 Merge main into xcode14.1. 2022-10-17 11:35:33 +02:00
Rolf Bjarne Kvinge 5975ffd6f1 Merge main into net7.0. 2022-10-17 10:21:24 +02:00
Rolf Bjarne Kvinge 71383ff1f0
[xtro] Fix processing common files when not all platforms are selected. (#16349)
We can't process a common-fx.ignore file for a given framework if that
framework isn't included in any of the platforms we're building for.

Example: we can't process common-AppKit.ignore when only iOS is enabled,
because none of the errors listed in common-AppKit.ignore will be reported for
an iOS build.
2022-10-17 09:26:07 +02:00
Rolf Bjarne Kvinge 05939b5e86
[xtro] Don't allow entries in 'common' ignore files that aren't actually common to all platforms for a given framework. Fixes #12769. (#16342)
This makes it possible to run xtro consistently when not all platforms are
enabled.

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

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-10-14 09:29:59 +02:00
Rolf Bjarne Kvinge 19680b568a
[xtro] Only run legacy/.NET tests if legacy/.NET is enabled. (#16329) 2022-10-13 23:28:27 +02:00
Israel Soto d910c1ba60
[GameController] Added support to Xcode 14.1 b1 (#16094)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-13 11:42:52 -04:00
Israel Soto 48293a4b05
[HomeKit] Added support to Xcode 14.1 b1-b3 (#16069)
* Matter properties are still missing

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-13 11:35:09 -04:00
Israel Soto bac36c5040
[VideoToolbox] Added support for Xcode 14 b1-3 (#15845)
Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-13 11:27:15 -04:00
Israel Soto 76a8673260
[SharedWithYou] Added support for Xcode 14.1 b3 (#16199)
* Added macOS support
* Added some missing attributes and a class

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-12 17:48:55 -04:00
Israel Soto 9543d817f4
[MapKit] Add support for Xcode 14 beta 1 & 2 & 5 (#15562) 2022-10-12 12:10:01 -04:00
Israel Soto 17f0ffd332
[SharedWithYouCore] Added support for Xcode 14.1 b3 (#16198)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-12 12:09:00 -04:00
Chris Hamons 8eb182f95d
[appkit] Xcode 14.1 Beta 1-3 (#16255)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-11 13:45:28 -05:00
Chris Hamons b959804c25
[foundation] Add new/fixed selectors from beta1 (#16249) 2022-10-11 13:38:01 -05:00
Israel Soto 1e877a84cb
[CoreLocation] Added support for Xcode 14.1 b1 (#16119)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-11 12:09:28 -04:00
Israel Soto 11b1d1e1c7
[ThreadNetwork] Added support for Xcode 14.1 b3 (#16196)
This PR adds support for Mac and MacCatalyst. Apple says that these
platforms are now supported; framework's headers does not specify them
but do not deny them either, so let's see what intro says about this.

I'm just creating this PR to test it against intro once we can build the
branch.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-10 10:51:50 -04:00
Israel Soto b97e797709
[CoreMotion] Added support for Xcode 14.1 b1 (#16118)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-07 11:31:12 -04:00
Rolf Bjarne Kvinge fc1bf0a974
Merge main into xcode14.1. (#16267) 2022-10-07 16:04:14 +02:00
Rolf Bjarne Kvinge d73f2f8fea
Merge main into net7.0. (#16268) 2022-10-07 07:52:44 +02:00
Israel Soto 4e765eca0b
[NetworkExtension] Added support for Xcode 14.1 b1 (#16066)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-06 12:16:12 -04:00
Chris Hamons 83ed66e7d6
[generator] Use new ObsoletedOSPlatformAttribute for generated code (#15941)
- Part of https://github.com/xamarin/xamarin-macios/issues/15849
- A bit of dead code was removed while I was reviewing things.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-06 11:15:51 -05:00
Rolf Bjarne Kvinge 45b97d838e Merge main into xcode14.1. 2022-10-06 13:59:29 +02:00
Rolf Bjarne Kvinge f22ecb5f05
[autoformat] Add xtro projects to the projects to autoformat. (#16239) 2022-10-06 07:30:47 +02:00
Israel Soto c019630352
[WatchKit] Added support for Xcode 14.1 b1 (#16061)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-05 11:39:28 -04:00
Israel Soto 66ae01a3b2
[StoreKit] Added support for Xcode 14.1 b1-b3 (#16026)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-05 11:37:09 -04:00
Alex Soto 27e6958b0a
[xcode14.1] Bump to Xcode 14.1 Beta 3 (#16010)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-03 17:24:41 +02:00
Chris Hamons 8a07db61bb
[main] Fix selectors from submission tests (#16042)
These selectors failed the most recent submission test:

```
UIFocusDebugger
  checkFocusGroupTreeForEnvironment:

HMMatterRequestHandler
  configureAccessoryWithName:room:completion:
  fetchRoomsInHome:completion:
  pairAccessoryInHome:onboardingPayload:completion:
HMMatterTopology
  initWithHomes:
HMMatterHome/HMMatterRoom
  initWithUUID:name:
HMAccessorySetupManager
  performMatterEcosystemAccessorySetupUsingRequest:topology:completionHandler:

ChipDeviceController
  pairDevice:address:port:discriminator:setupPINCode:error:
  setListenPort:
  sharedController
ChipLowPower
  sleep:
ChipTestCluster
  test:
  toggle:
ChipGeneralCommissioning
  commissioningComplete:
```

Passed API diff locally.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-09-27 08:42:53 +02:00
Chris Hamons 865e481498
[xcode14.1] Fix selectors from submission tests (#16047)
Manual backport of https://github.com/xamarin/xamarin-macios/pull/16042 to xcode14.1

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-09-26 11:14:37 +02:00