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

13 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 491c5c979c
[src/tests] Fix consistency between ObsoletedOSPlatform and UnsupportedOSPlatform attributes. (#17104)
* If there's both an UnsupportedOSPlatform and ObsoletedOSPlatform attribute with
  the same version, then remove the UnsupportedOSPlatform attribute. This is because
  in the past we used [UnsupportedOSPlatform] + [Obsolete] to indicate that an API
  is obsolete, but then the [ObsoletedOSPlatform] attribute was added, and we replaced
  the [Obsolete] attributes with [ObsoletedOSPlatform] attributes, which makes the
  [UnsupportedOSPlatform] attributes redundant/incorrect.
* If there's [UnsupportedOSPlatform] with a version or [ObsoletedOSPlatform] with
  a version, then also add [SupportedOSPlatform] in a few cases.
* If there's an [UnsupportedOSPlatform] with a version for API that's obsolete/non-working,
  then remove the version.
2022-12-22 12:40:04 +01:00
Rolf Bjarne Kvinge 5975ffd6f1 Merge main into net7.0. 2022-10-17 10:21:24 +02:00
Rolf Bjarne Kvinge e43b53b574
[autoformat] Add the AddressBook[UI] frameworks. (#16343) 2022-10-14 16:14:36 +02:00
Chris Hamons a405564038
Semi-manually update all 'Starting with VERSION' Obsolete attributes to use 'ObsoletedOSPlatform' (#15953)
- Part of https://github.com/xamarin/xamarin-macios/issues/15849
- These were done with a few vim macros and some manual edits, so
mistakes are possibly but new typos are less likely.
2022-09-20 12:47:49 -05:00
Rolf Bjarne Kvinge 9e5113a7b9
[src] Add a global namespace using for a couple of namespaces. (#14356)
Also remove all the 'using System.Runtime.Versioning;' statements everywhere.
2022-03-10 08:07:54 +01:00
TJ Lambert a18429419b
[addressbookui] Add nullability to (generated and manual) bindings (#14221)
* enabling nullability

* use is null and is not null

* throw new exception

* missing nullables

* Removing recursive call and adding yield

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-03-04 16:57:03 -06:00
Chris Hamons 946f33cfb3
[NET 6 Attribute Conversion] AddressBookUI (#13716) 2022-01-14 10:20:06 -06:00
TJ Lambert e59480829c
[AddressBook] Add Support for DotNet Attributes (#12564)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2021-08-30 11:41:35 -04:00
Rolf Bjarne Kvinge db6e0b9cf5
Add a MarshalAs attribute to all boolean return types and parameters in P/Invokes. (#10782)
* [cecil-tests] Add test for MarshalAs attributes for bool return type / parameters in P/Invokes.

This also meant adding support for resolving additional BCL assemblies (to be able to process Action<> and Func<> types).

* [generator] Add [MarshalAs (UnmanagedType.I1)] to bool return types and parameters.

* Fix all manually bound API to use a MarshalAs attribute for boolean return types and parameters in P/Invokes.
2021-03-04 16:22:24 +01:00
Chris Hamons c0202e0e2b
PMCS Removal (#3197)
You were the preprocessor we wished C# had natively

Removing PMCS requires these changes:
* Remove XamCore from src/
* Remove XamCore from tools/
* Remove XamCore from runtime/
* nint/nuint enum conversion
* _compat_ enum conversion
* NSAction conversion
* Hand fix single API incorrectly converted by PMCS to unbreak compatibility
   - Due to a bug in PMCS, the nuint was incorrectly converted in this API.
   - However, as that ship as sailed, we must "fix" it until XAMCORE_4_0
* Update readme
* Bump macios-binaries
2018-02-05 10:26:29 -05:00
Chris Hamons 91d598909a
Update more Availability attributes in files not processed by the generator (#3123) 2017-12-21 09:09:55 -06:00
Vincent Dondain e78a7a3291 [intro] Add availability messages checks to ApiTypoTest (#2240)
- ApiTypoTest now enforces the rules defined here: https://github.com/xamarin/xamarin-macios/wiki/BINDINGS#availability-attributes-messages.
- Update all availability messages to follow new ApiTypoTest rules.
- Fix `IsObsolete` to handle ObsoletedAttribute.
- Don't apply rule 1 on Obsolete attribute.
- Allow to skip rule 4.
- Prevent use of OSX, OS X.
2017-06-26 18:17:06 -04:00
Rolf Bjarne Kvinge 5830166c63 Build the platform assemblies. 2016-04-24 14:47:26 -04:00