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

36 Коммитов

Автор SHA1 Сообщение Дата
Chris Hamons 97a8e3d3f0
Remove unnecessary conditional defines from coredata.cs (#14464)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-04-01 10:14:14 -05:00
Rolf Bjarne Kvinge e963fc6f5f
[CoreData] Move CoreData into the .NET age. (#13718)
* Remove obsolete API from .NET.
* Change API marked with XAMCORE_4_0 due to naming problems to be in .NET.
* Change API marked with XAMCORE_4_0 due to using non-generic NSDictionary to be
  in XAMCORE_5_0 instead (yay!). This is because of #13704, which can make using
  generic NSDictionary in API buggy, and I feel it's a bit too risky to change this
  for .NET with the time we have available (no time to fix #13704). Additionally,
  moving this to XAMCORE_5_0 makes it possible to keep grepping for XAMCORE_4_0 to
  see what's left. Update all the CoreData API to be better as defined by our XAMCORE_4_0
  define. Mostly using generic NSSet/NSDictionary types instead of the non-generic
  ones, and other misc naming improvements.
* Change API marked with XAMCORE_4_0 due to both of the above to do both of the
  above - add a version of the naming issue fixed for .NET + a version with the generic
  dictionary for XAMCORE_5_0.
2022-01-14 17:13:46 +01:00
Rolf Bjarne Kvinge 765059cb5b [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
Rolf Bjarne Kvinge b960d569b0
[src] Change all usages of old-style availability attributes to new-style availability attributes. (#13332)
This will allow us to remove the old-style attributes from .NET (since they won't be used in shared code).
2021-11-10 18:12:12 +01:00
Manuel de la Pena de862502ae
[CoreData] Add support for Xcode 13 beta 3. (#12183) 2021-07-23 11:24:19 -04:00
Rolf Bjarne Kvinge 9a0cd6182b
[introspection] Add/fix/remove availability attributes for Mac Catalyst to make introspection's Introduced test pass. (#10587)
Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com>
2021-04-13 15:48:20 -04:00
Sebastien Pouliot e8c7aabdd5
[coredata] Add nullability to (generated and manual) bindings (#10533)
See [HOWTO](https://github.com/xamarin/xamarin-macios/wiki/Nullability)
2021-01-27 09:22:07 -05:00
Sebastien Pouliot 11aafadd86
[intro] check for duplicate or inconsistent availability attributes (#9825)
This can easily happen when existing type(s) or framework are added to a platform. E.g.

```csharp
[Watch (6,0)][iOS (9,0)]
interface AVFoo {
   [Watch (6,0)][iOS (13,0)]
   void NewMember ();
}
```

Here we have duplicate attributes and, while not confusing, it does mean extra (and non required) metadata into the platform assemblies.

```csharp
[Watch (6,0)][iOS (9,0)]
interface AVFoo {
   [Watch (5,0)][iOS (13,0)]
   void NewMember ();
}
```

Here we declare a member as available when the type is not. I'm not sure how the IDE will react - but this should be audited since one of them is wrong (whatever the IDE behaviour is).

Fix https://github.com/xamarin/xamarin-macios/issues/6856
2020-10-13 14:16:33 -04:00
Manuel de la Pena add9f54722
[CoreData] Update framework for Xcode 12 beta 4. (#9405)
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
2020-08-19 20:09:35 -04:00
Sebastien Pouliot de306cd96d
Bump for Xcode 12 beta 2 (#9027)
* [arkit] Remove fields (from beta2) to fix introspection
* [tests][introspection] AVMutableMediaSelection is as bad as it's non mutable parent
* [tools] Update IsFrameworkBroken (remove CoreAudioTypes and MediaPlayer)
* [tests][monotouch-test] MKPinAnnotationView seems fixed in beta 2
* [tests][xtro] Update ARKit todo (with previous fix)
2020-07-08 09:26:24 -04:00
Sebastien Pouliot f427b5e91d
[xcode12] Bump for beta 1 (#8935)
Known issues https://github.com/xamarin/xamarin-macios/issues/8943
2020-06-26 14:02:44 -04:00
Manuel de la Pena 1d9452a502
[CoreData] Add support up to Xcode11 beta 7. (#6896) 2019-09-04 09:32:29 -04:00
Rolf Bjarne Kvinge c1e6ac029f [src] Remove/obsolete 'onlyOn64: true' in attributes. (#6595)
* [src] Obsolete 'onlyOn64' parameter to the availability attributes.

* [src] Remove 'onlyOn64: true' from attributes.

* [src] Adjust availability attributes.
2019-07-16 12:13:11 -04:00
Rolf Bjarne Kvinge 36209e55e9 Remove 10.7 & 10.8 availability attributes, since they're redundant now. 2018-10-25 17:12:39 +02:00
Chris Hamons 1082ce7a09
Add xtro test for [Deprecated] attributes and fix up usages (#4966)
- https://github.com/xamarin/xamarin-macios/issues/4431
2018-10-15 10:43:17 -05:00
Chris Hamons c248d05c56 AppKit for Xcode 10 GM (#4795) 2018-09-13 02:45:47 -04:00
Sebastien Pouliot 0e785e3668 [coredata] NSCoreDataCoreSpotlightDelegate is 64bits only
causing
```
Introspection.MacApiCtorInitTest.ApiCtorInitTest.DefaultCtorAllowed: 1 potential errors found in 925 default ctor validated:
Default constructor not allowed for CoreData.NSCoreDataCoreSpotlightDelegate : Could not create an native instance of the type 'CoreData.NSCoreDataCoreSpotlightDelegate': the native class hasn't been loaded.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
```
when running intro for mac unified 32 bits
2018-08-23 15:23:26 -04:00
Sebastien Pouliot 216966ee87 [coredata] Add some missing API spotted by xtro 2018-08-22 16:51:24 -04:00
Manuel de la Pena 539da79d18
[CoreData] Xcode10 beta 3 update. (#4424) 2018-07-10 18:34:22 +02:00
Rolf Bjarne Kvinge 798cb5a688 [src] Adjust availability attributes to match API available on older macOS versions. 2018-07-03 16:55:30 +02: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
Vincent Dondain 4da8016db4
[xtro] Report missing-protocol-conformance when protocols are defined… (#3187)
- Fixes bug #59272: [xtro] Report !missing-protocol-conformance! when protocols are defined in categories
(https://bugzilla.xamarin.com/show_bug.cgi?id=59272)
- Implemented missing protocol conformances based on tool's new data.
- Remove Internal check from VisitObjCCategoryDecl and VisitObjCInterfaceDecl
- Ignore previewItemTitle failure (normal since it's optional)
- Only skip UIStateRestoring for subclasses of UIViewController
- Ignore UIStateRestoring test on watchOS (UIViewController not available)
- Remove protocol conformances that generated wrong availability attributes (https://github.com/xamarin/xamarin-macios/issues/3213)
- Avoid new virtual or virtual when adding protocol conformance (https://github.com/xamarin/xamarin-macios/issues/3217)
2018-01-18 13:41:09 -05:00
Sebastien Pouliot 07c81479e2
[tests][intro] Clean up old and some non-required availability attributes (#3141)
We normally frown on large scale _cosmetic_ changes, mostly because it breaks git's history (very useful) and makes merging branches harder and more error prone (very annoying).

However we require, right now, such changes to remove our old, mcs-based, pre-processor (pmcs) so it's a _good_ time to address the old, unneeded availability attributes - since most of them are re-written for our next milestone.

This won't change the final application size in most cases, as the linker removes them, but it will make the (unlinked) platform assemblies smaller. This means they will load faster (e.g. by mtouch, mmp, IDE, workbooks...) and will reduce the time/memory needed to reflect them.
2018-01-02 11:28:55 -05:00
Sebastien Pouliot a69e161d59
[src] Properly annotate designated initializers in many frameworks (#3142)
Correspond to xtro `!missing-designated-initializer!` errors
2017-12-28 16:37:13 -05:00
Chris Hamons cad99240e7
Hand-process troublesome attributes to fit pmcs conversion tooling (#3101)
There are a number of availability constructs that were uncommon enough / difficult to handle in the generator update or dead simple enough to change.

Some of them include:
   - Multiple platforms |'ed into one Availability attributes.
   - 32-bit arch Availability attributes were really uncommon and hand processing allowed
     them to be skipped completely
   - Convert Since, MavericksAttribute/MountainLionAttribute/LionAttribute, and a bunch of Availability (Introduced) to short forms like [Mac] and [iOS].

I also had to patch PMCS to correctly handle PlatformArchitecture arguments, which is ironic because a PR soon after this will delete all of that code.
2017-12-20 09:19:16 -06:00
Sebastien Pouliot 04e903ebfe [coredata] Enable new fields since rdar #33878590 is fixed w/beta 6 (#2570)
reference:
https://trello.com/c/dlSRYPFx
2017-08-31 07:48:27 +02:00
Sebastien Pouliot 4196cd8466 [coredata] Update to beta 6 (#2528)
This seems to only revert some nullability changes from beta 5.
2017-08-23 08:25:29 -04:00
Sebastien Pouliot 75ac29f8e5 [coredata] Update to beta 5 (#2488) 2017-08-15 08:29:54 -04:00
Sebastien Pouliot 47923f54cd [coredata] Update for beta 4 2017-07-24 23:32:36 -04: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
Manuel de la Pena 4eafdb150b [CoreData] Updated bindings for xcode9. (#2210)
* Updated bindings for xcode9.
* Fixed the tests to pass in those cases that NSCoding and NSSecureCoding
is supported.

A radar has been created on Apples side:

https://trello.com/c/y87bjnr9/69-32761925-nspersistenthistorytoken-supports-nssecurecoding-yet-supportssecurecoding-returns-false
2017-06-22 11:48:03 +02:00
Chris Hamons c80d72c7d6 Remove unnecessary public from binding definition files
- Was causing conflicts between {App,UI}Kit and CloudKit
2016-09-16 14:47:08 -05:00
Sebastien Pouliot 4c09e91f91 [watchos] Remove several [Obsolete] API when alternatives exists (#742) 2016-09-02 10:02:29 -04:00
Manuel de la Pena 0f0805b3e1 [CoreData] Update the api for Xcode 8 and add some small fixes in general. (#505) 2016-08-01 15:50:01 -04:00
Manuel de la Pena 3a2f4357ea [Fix] Add missing CoreData selectors.
This commit fixes bug #34968:

https://bugzilla.xamarin.com/show_bug.cgi?id=34968
2016-05-04 17:55:04 +02:00
Rolf Bjarne Kvinge 5830166c63 Build the platform assemblies. 2016-04-24 14:47:26 -04:00