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

1735 Коммитов

Автор SHA1 Сообщение Дата
Chris Hamons 6d039cb969
Foundation for Xcode 10 Beta 1-2 (#4375)
- Work around #4441 by commenting out binding until fixed
2018-07-13 14:27:29 -04:00
Manuel de la Pena 62017a1405
[iAd] Xcode 10 beta 3 support. (#4425) 2018-07-13 16:23:44 +02:00
Miguel de Icaza 7d96ddab0a [Network] More security API bindings and Network updates to support the sample 2018-07-12 22:48:23 -04:00
Miguel de Icaza c7582f348f [Network] Move options to the right type 2018-07-12 15:50:06 -04:00
Miguel de Icaza cf62ae9886 [Network] Robustify, I ran into hard to diagnose bugs due to Dipose() being called, and figured this was a good time to robustify our use of disposed objects, so did that now 2018-07-12 15:23:48 -04:00
Miguel de Icaza 78458beacf [Security] Bring the new APIs that are needed for porting the Network sample 2018-07-12 15:11:33 -04:00
Vincent Dondain 4f1f06bba4
[scenekit] Avoid breaking change (missing !) (#4126) 2018-07-11 09:51:19 -05:00
Vincent Dondain f6db21262c
[scenekit] SCNPhysicsShape's Create should take a SCNMatrix4 array, not SCNVector3 (#4040)
- Fixes #4030: SCNPhysicsShape.Create transforms param is bound incorrectly
(https://github.com/xamarin/xamarin-macios/issues/4030)
2018-07-11 09:50:13 -05:00
Miguel de Icaza aaae315db6 [Network] Do not dispose objects after the callback is over, that is too aggressive, perhaps do this for all other transient objects as well 2018-07-10 23:19:12 -04:00
Miguel de Icaza 2fa768304e Remove debugging message 2018-07-10 17:18:26 -04:00
Miguel de Icaza 75828ac05c [Network] Compare IntPtr values with IntPtr.Zero, not null 2018-07-10 16:24:23 -04:00
Chris Hamons c429c0a17b
Fix NSViewController to have NSResponder to fix NSCoding 'removal' (#4420)
-  Add test exclusion for NSViewController.GetNewWindowForTab since it is optional but not a protocol
2018-07-10 14:42:03 -05:00
Manuel de la Pena 60398bf53b
[MediaPlayer] Xcode 10 beta 2 support. (#4387) 2018-07-10 18:38:19 +02:00
Manuel de la Pena 539da79d18
[CoreData] Xcode10 beta 3 update. (#4424) 2018-07-10 18:34:22 +02:00
Miguel de Icaza f85e6f7352 [Network] Fixes to some global references 2018-07-09 22:37:10 -04:00
miguel 74de50119a [Network] Bug fixes and API improvements based on sample code 2018-07-06 22:34:06 -04:00
Miguel de Icaza 28b67eea65 [Network, CoreFoundation] Fixes for Network API based on sample writing, and fixes to NativeObject initialization 2018-07-06 17:30:14 -04:00
Manuel de la Pena c1ad3f7865
[AVFoundation] Xcode 10 beta 3 support. (#4388) 2018-07-06 18:57:48 +02:00
Manuel de la Pena 6c06b962ab [UIKit] Added support for Xcode 10 beta 3. (#4395) 2018-07-06 11:52:56 -04:00
Vincent Dondain 2f89775fc2 [arkit] Update to Xcode 10 beta 3 (#4406)
- Updated some ARReferenceObject APIs based on their (better) Swift names. Breaking changes but on new APIs.
- Update ARReferenceObjectTest for device (center and extent have real values on device).
- Reuploaded an arobject file from Beta 3 just in case because of: "ARReferenceObject and ARWorldMap data generated using iOS 12 beta 2 or earlier isn’t compatible with beta 3 or later. Please rescan your objects to generate new ARReferenceObject and ARWorldMap data."
2018-07-05 22:36:33 -04:00
Vincent Dondain e51f17bcb2
[healthkit] Update for Xcode 10 beta 3 (#4405)
Somehow some of the APIs added there weren't reported as missing by xtro. https://github.com/xamarin/xamarin-macios/issues/4407
2018-07-05 17:08:44 -04:00
Alex Soto 913a209ec3
[SceneKit] Update bindings to Xcode 10 Beta 3 (#4403) 2018-07-05 15:37:14 -05:00
Alex Soto 79e1392823
[Intents|UI] Update bindings to Xcode 10 Beta 3 (#4402) 2018-07-05 15:36:24 -05:00
Rolf Bjarne Kvinge b8b6ef3f5f
Merge pull request #4278 from rolfbjarne/jenkins-mojave
[tests] Run Xamarin.Mac tests on Mojave, and add more Xamarin.Mac tests.

* Add more Xamarin.Mac tests: introspection, link sdk, link all and xammac_tests.
* Fix TextureAtlasTest.Empty to not crash due to Apple not liking null callbacks. (#4003)
* Run Xamarin.Mac tests on Mojave as well, even though the build OS is an earlier OS (High Sierra).
2018-07-05 18:43:17 +02:00
Sebastien Pouliot 132fa8aa01
[macos][appkit] Update for beta 3 (#4399)
Also convert `NSSharingServiceName` to a smart-enum, add some missing
values and adapt helper method to use the smart-enum (future-proofing it)
2018-07-05 11:21:07 -04:00
Sebastien Pouliot d280683627
[corevideo] Update for beta 3 (#4398) 2018-07-05 08:54:56 -04:00
miguel 87cb805cc2 [CoreFoundation] Introduce NativeObject and remove unnecessary code from Network framework 2018-07-04 22:10:44 -04:00
Alex Soto 3604c4b04b
[CarPlay] Update bindings to Xcode 10 Beta 3 (#4396) 2018-07-04 18:47:41 -05:00
Alex Soto 152da50ef9
[CoreMotion] Update bindings to Xcode 10 Beta (#4397) 2018-07-04 18:45:53 -05:00
Sebastien Pouliot 2c49bdac53
[watchos][clockkit] Update for beta 3 (#4393) 2018-07-04 15:53:46 -04:00
Manuel de la Pena fce1e4c135 [NaturalLanguage] Xcode 10 beta 3 update. (#4390) 2018-07-04 14:43:00 -04:00
Sebastien Pouliot 13ecb2adef
[watchos][watchkit] Update for beta 3 (#4392) 2018-07-04 13:57:57 -04:00
Vincent Dondain ced0e9c3f7 [modelio] Update for Xcode 10 beta 2 (#4378)
Renamed and obsoleted 'FromBundle' in favor of 'CreateTexture' for consistency with new API and because I believe it was a mistake anyway.
For instance 'textureNamed:' was 'FromBundle', there's no mention of the bundle there.
2018-07-04 09:58:49 -04:00
Rolf Bjarne Kvinge bcfd6290c3 Merge remote-tracking branch 'origin/xcode10' into jenkins-mojave 2018-07-04 12:35:10 +02:00
Sebastien Pouliot 4fc7330e52 Bump for Xcode 10 beta 3 (#4386)
* Bump for Xcode 10 beta 3

Include a few changes to have green builds, e.g. it seems
`[GKAchievement init]` and `[GKAchievement initWithIdentifier:nil]`
are different now

```
[FAIL] Default constructor not allowed for GameKit.GKAchievement : Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: -[GKAchievement identifier]: unrecognized selector sent to instance 0x6000004a48d0
	[FAIL] iOSApiCtorInitTest.ApiCtorInitTest.DefaultCtorAllowed :   1 potential errors found in 1426 default ctor validated:
```

* [xtro] Fix EventKit

* [tests] Make intro tests green in macOS Mojave Beta 3

* [tests] Make xtro happy
2018-07-04 11:14:17 +02:00
Rolf Bjarne Kvinge 85b6406b4e [StoreKit] Undo breaking change by Apple.
References:
* https://trello.com/c/A34S0kLY/125-41782055-skproductdownloadable-crashes-on-macos-1011-when-compiled-with-xcode-10
* e6cf81406a (diff-e9aebf3ee5f3c844607eb2da9d2feb14R216)
2018-07-04 00:21:45 +02:00
Sebastien Pouliot 8a1db43d70
[coreimage] Add properties (to subbed) filters added in beta 2 (#4385) 2018-07-03 15:18:41 -04:00
Sebastien Pouliot 8a3a30d054
[mapkit] Fix compatibility stub for MKUserTrackingBarButtonItem which is only required for iOS (and not other platforms) (#4381) 2018-07-03 13:01:32 -04:00
Miguel de Icaza 1530e13754 [Network] Finish NWListener 2018-07-03 12:31:52 -04:00
Manuel de la Pena 1b946b7cf6
[Photos] Update for Xcode10-beta2. (#4371) 2018-07-03 17:26:40 +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
Alex Soto 709e855c15
[CoreText] Update bindings to Xcode 10 Beta 1 & 2 (#4368)
* [CoreText] Update bindings to Xcode 10 Beta 1 & 2

* Adds tests and unbreaks API

* Check for Xcode 10 in tests
2018-07-03 09:48:10 -05:00
miguel 569b3751c5 [Network] protocol-options, tcp-options, udp-options, partial tls-options and path-monitor 2018-07-02 22:42:26 -04:00
Chris Hamons 48767e21eb
[mac] AppKit Xcode 10 beta 1 (#4326) 2018-07-02 06:45:34 -05:00
Sebastien Pouliot a76a7f6f80
[gamekit] Update for beta2 (largely deprecations) (#4374) 2018-07-01 21:16:57 -04:00
miguel a093f8d601 [Network] Start of NWListener 2018-06-30 23:27:47 -04:00
miguel 3416bd24a7 Fix merge conflict 2018-06-30 22:46:48 -04:00
miguel 3785e20404 Merge xcode10 2018-06-29 22:56:31 -04:00
Vincent Dondain 763305e775 [coreml] Update for Xcode 10 beta 2 (#4359) 2018-06-29 17:41:26 -04:00
Alex Soto e45838a1e8
Fix GetMatchingFontDescriptors overload with sort callback (#3871) (#4373)
It incorrectly returned array of arrays instead of array of CTFontDescriptors.

Add CTFontCollectionTest
2018-06-29 16:05:00 -05:00
Chris Hamons a38604fd2f
[mac] Add NSColor.LinkColor (#4356) (#4363) 2018-06-29 13:25:08 -07:00
Manuel de la Pena 26cd76cb7e [HealthKit] Update to Xcode10-beta2 (#4336) 2018-06-29 15:41:16 -04:00
Vincent Dondain 0a69e3943e
[homekit] Update for Xcode 10 beta 2 (#4370) 2018-06-29 15:28:30 -04:00
Alex Soto e6cf81406a
[StoreKit] Update bindings to Xcode 10 Beta 1, nothing in beta2 (#4367)
* [StoreKit] Update bindings to Xcode 10 Beta 1, nothing in beta2

* Unbreak tvOS API and add Compat suffix
2018-06-29 13:50:20 -05:00
Sebastien Pouliot 140c40a298
[opengles] Update for beta 2 (deprecation warnings) (#4366) 2018-06-29 09:35:54 -04:00
Sebastien Pouliot 4da64a8355
[systemconfiguration][tvos] CaptiveNetwork API are now marked as prohibited in tvOS (#4357) 2018-06-29 09:35:05 -04:00
Miguel de Icaza a3f2c4889d [Network] Complete NWConnection, add supporting types to NWContentContext 2018-06-28 23:04:29 -04:00
Miguel de Icaza 5953175acf [BlockLiteral] Add convenience method for simple scenarios to reduce boilerplate 2018-06-28 23:03:38 -04:00
Miguel de Icaza 8537267abc [DispatchData] Add creation methods to DispatchData 2018-06-28 23:02:57 -04:00
Alex Soto 8ca16c8d3d
[CloudKit] Update bindings to Xcode 10 Beta 1, nothing in beta 2 (#4354)
* [CloudKit] Update bindings to Xcode 10 Beta 1, nothing in beta 2

* Update deprecation message
2018-06-28 20:08:03 -05:00
Miguel de Icaza c7aee0355d [Network] NWContentContext binding, progress on NWConnection 2018-06-28 17:11:27 -04:00
Miguel de Icaza e2d1190423 [CoreFoundation] Added DispatchData, needed by Network framework 2018-06-28 16:43:42 -04:00
Rolf Bjarne Kvinge 5245cfab14
[Foundation] Fix NSDictionary string indexers. (#4335)
Creating a new NSString doesn't always lead to creating a new NSString, which
will obviously cause trouble.

The scenario is:

* An NSString with the value @"Bye" is added to an NSDictionary, with the same
  string as both the key and the value.

* The (managed) string indexer is used to try to get the value back. The
  string indexer would call 'new NSString ("Bye")', which would create a new
  managed NSString, and maybe a new native NSString (or maybe it would re-use
  an existing NSString). Then the handle of this NSString would be passed to
  the native API, and the same handle would come back as the result (since the
  same string is both the key and the value). We'd call Runtime.GetNSString on
  the returned handle, get back the same managed instance that was created
  just before the call to the native method. Finally, just before returning
  this managed instance from the indexer, we'd dispose it... since it was
  created in a 'using' block. Then we'd return a disposed NSString object from
  the indexer. Ops.

The fix is to not create a managed wrapper for the NSString handle we need to
pass to the native API, but create and free the native NSString object without
using a managed wrapper.
2018-06-28 14:57:41 +02:00
Sebastien Pouliot b63f668a4e
[tvos][tvuikit] Add new TVUIKit (up to beta 2) (#4346) 2018-06-28 08:51:38 -04:00
Miguel de Icaza d2bd9a6760 [Network] Path, Connection, Parameters 2018-06-27 23:59:23 -04:00
Miguel de Icaza 51a5e1a8aa NWAdvertiseDescriptor, NWError 2018-06-27 22:55:30 -04:00
Miguel de Icaza 5ed8ec9e31 Complete NWParameters 2018-06-27 20:01:04 -04:00
Chris Hamons bd9e8cf1a0
Add CoreAudio 10b1 (#4343) 2018-06-27 12:21:18 -07:00
Chris Hamons c4a54aa1dd
CoreWLan 10b1 (#4344) 2018-06-27 12:21:01 -07:00
Miguel de Icaza 72ef6d1346 Merge branch 'xcode10' into xcode10-network 2018-06-27 12:31:39 -04:00
Miguel de Icaza ca68d6d7ae More work before breakfast 2018-06-27 11:01:34 -04:00
Miguel de Icaza 6b3606cf55 Address feedback from PR and add more APIs 2018-06-27 00:59:42 -04:00
Sebastien Pouliot 695a547c57
[tvos][tvmlkit] Update up to beta 2 (#4325) 2018-06-26 08:47:51 -04:00
Rolf Bjarne Kvinge f0dacd1bfb
[Security] Don't call properties in the Dispose method, access the field directly. (#4329)
This is particularly important because in this case the property will try to
(re)create the handle, thus making Dispose behave incorrectly.
2018-06-25 10:50:39 +02:00
Rolf Bjarne Kvinge c7179142b9
[generator] Fix project file for debugging Xamarin.Mac configurations. (#4328) 2018-06-25 10:48:02 +02:00
Rolf Bjarne Kvinge 06fd4029f3
[generator] Fix generated code for INativeObject properties in filters: we don't own such objects. (#4330)
Fixes a crash in the MonoTouchFixtures.CoreImage.FilterTest.ColorSpace on macOS 10.9 and 10.10:

    Assertion failed: (!space->is_singleton), function color_space_dealloc, file ColorSpaces/color-space.c, line 102.
    Stacktrace:

      at <unknown> <0xffffffff>
      at (wrapper managed-to-native) CoreGraphics.CGColorSpace.CGColorSpaceRelease (intptr) [0x00009] in <7709ef494bc84be8a727c0b1d19c4344>:0
      at CoreGraphics.CGColorSpace.Dispose (bool) [0x00016] in /Library/Frameworks/Xamarin.Mac.framework/Versions/4.99.0.103/src/Xamarin.Mac/CoreGraphics/CGColorSpace.cs:116
      at CoreGraphics.CGColorSpace.Finalize () [0x00002] in /Library/Frameworks/Xamarin.Mac.framework/Versions/4.99.0.103/src/Xamarin.Mac/CoreGraphics/CGColorSpace.cs:94
      at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) [0x0001f] in <ea4ecc87ef1044a98fc1b5fdb59119e7>:0

    Native stacktrace:

    	0   xammac_tests                        0x000000010d55fc18 mono_handle_native_crash + 264
    	1   libsystem_platform.dylib            0x00007fff8d4a152a _sigtramp + 26
    	2   ???                                 0x0000000000000000 0x0 + 0
    	3   libsystem_c.dylib                   0x00007fff9aba76df abort + 129
    	4   libsystem_c.dylib                   0x00007fff9ab6edd8 basename + 0
    	5   CoreGraphics                        0x00007fff8c2b58b8 color_space_dealloc + 248
    	6   CoreFoundation                      0x00007fff87997af3 CFRelease + 371
    	7   ???                                 0x00000001248548cd 0x0 + 4907681997
    	8   ???                                 0x000000012416a13c 0x0 + 4900430140
    	9   xammac_tests                        0x000000010d5f7d0e mono_gc_run_finalize + 734
    	10  xammac_tests                        0x000000010d6e859a sgen_gc_invoke_finalizers + 234
    	11  xammac_tests                        0x000000010d5f9754 finalizer_thread + 756
    	12  xammac_tests                        0x000000010d6ae930 start_wrapper + 704
    	13  libsystem_pthread.dylib             0x00007fff8ae8999d _pthread_body + 131
    	14  libsystem_pthread.dylib             0x00007fff8ae8991a _pthread_body + 0
    	15  libsystem_pthread.dylib             0x00007fff8ae87351 thread_start + 13

On newer macOS versions, the API that returns a CGColorSpace returns a global
object that can't be retained/released, and thus won't crash since the
CGColorSpace is never freed.
2018-06-25 10:47:14 +02:00
Manuel de la Pena 489e0119e0
[IOSurface] Update for Xcode10-beta2 (#4322) 2018-06-22 16:41:11 +02:00
Manuel de la Pena e7f1161146
[AVFoundation] bump for Xcode10-beta 2. Includes AVFAudio. (#4313) 2018-06-22 10:36:01 +02:00
Sebastien Pouliot 761bc085a8
[scenekit] Update for beta 2 (#4317) 2018-06-21 13:35:45 -04:00
Manuel de la Pena 94355148c9
[AVKit] Update for Xcode10-beta2 (#4314) 2018-06-21 16:23:36 +02:00
Manuel de la Pena 05cc126dc3
[NaturalLanguage] Xcode10-beta2 update. (#4300) 2018-06-21 08:01:37 +02:00
Alex Soto 2c6eec8687
[Intents] Update bindings to Xcode 10 Beta 2 (#4303) 2018-06-20 16:54:00 -05:00
Alex Soto 99a71fcfe4
[ReplayKit] Update bindings to Xcode 10 beta 2 (#4304) 2018-06-20 16:51:22 -05:00
Sebastien Pouliot 0888061736
[contacts] Update for beta 2 (#4298) 2018-06-20 11:26:49 -04:00
Sebastien Pouliot 92992385a1
[accounts] Update for beta 2 (#4297) 2018-06-20 11:25:51 -04:00
Sebastien Pouliot 6e79ddd477
[mapkit] Update for beta2 (macOS only changes) (#4296) 2018-06-20 11:21:15 -04:00
Alex Soto 18f182187d
[CarPlay] Update bindings to Xcode 10 Beta 2 2018-06-19 16:52:36 -05:00
Sebastien Pouliot ee6461d20d Add new coreimage filter stubs and a partial update for xtro 2018-06-19 15:58:02 -04:00
Sebastien Pouliot cc73932ea5 Bump for xcode10 beta 2 2018-06-19 15:26:08 -04:00
Sebastien Pouliot 7762c643bb
[contacts] Update for beta 1 (#4291)
A new enum value and the removal of availability on existing error codes
since they are output, not input.
2018-06-19 08:29:12 -04:00
Manuel de la Pena 145237dd7a
[UserNotifications] Add Xcode 10 support. (#4290) 2018-06-19 07:39:55 +02:00
Manuel de la Pena fc32c2980c
[UserNotificationsUI] Update the fro Xcode 10. (#4268) 2018-06-18 16:05:20 +02:00
Manuel de la Pena 553238abc8
[UIKit] Update for Xcode10. (#4253) 2018-06-18 16:01:47 +02:00
Alex Soto 3aa2167928
[IdentityLookupUI] Add bindings for Xcode 10 Beta 1 (#4281) 2018-06-15 20:46:35 -05:00
Sebastien Pouliot f9a0253e71
[videosubscriberaccount] Update for beta 1 (#4275)
This ended up enabling the framework for macOS.
2018-06-15 16:43:23 -04:00
Sebastien Pouliot 03a352dc53
[mapkit] Updates for beta1 (#4256) 2018-06-15 16:42:15 -04:00
Sebastien Pouliot f96d4c9f9b
[macos][quartzcomposer] Update for beta 1 (#4258)
Nothing really new beside the OpenGL related deprecation and the fact
that 3 fields were removed, without deprecation, and this requires some
adjustments in the intro tests (while running on 10.14) to ignore them.

1) ApiFieldTest.FieldExists (Introspection.MacApiFieldTest.ApiFieldTest.FieldExists)
     3 errors found in 5680 fields validated: QCCompositionInputRSSArticleDurationKey, QCCompositionInputRSSFeedURLKey, QCCompositionProtocolRSSVisualizer
  Expected: 0
  But was:  3

  at Introspection.ApiFieldTest.FieldExists () [0x00127] in /Users/poupou/git/xcode10/xamarin-macios/tests/introspection/ApiFieldTest.cs:245
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /Users/poupou/git/xcode10/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

2) ApiFieldTest.NonNullNSStringFields (Introspection.MacApiFieldTest.ApiFieldTest.NonNullNSStringFields)
     3 errors found in 4904 fields validated: QuartzComposer.QCComposition.InputRSSArticleDurationKey, QuartzComposer.QCComposition.InputRSSFeedURLKey, QuartzComposer.QCComposition.ProtocolRSSVisualizer
  Expected: 0
  But was:  3

  at Introspection.ApiFieldTest.NonNullNSStringFields () [0x0008d] in /Users/poupou/git/xcode10/xamarin-macios/tests/introspection/ApiFieldTest.cs:214
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /Users/poupou/git/xcode10/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

That issue is filed w/Apple https://bugreport.apple.com/web/?problemID=41125938
2018-06-15 16:41:26 -04:00
Alex Soto 344c3f0b78
[IdentityLookup] Update bindings to Xcode 10 Beta 1 (#4276) 2018-06-15 13:55:06 -05:00
Alex Soto 7cadf1994d
[QuickLook|UI] Update bindings to Xcode 10 Beta 1 (#4264)
* [QuickLook] Update bindings to Xcode 10 Beta 1

* [QuickLookUI] Adds bindings for Xcode 10 Beta 1

* Make mac xctro happy
2018-06-15 02:28:06 -05:00
Alex Soto a6cbd48fab
[IntentsUI] Update bindings to Xcode 10 Beta 1 (#4262)
* [IntentsUI] Update bindings to Xcode 10 Beta 1

This commit also adds a strong dictionary version to
INPlayMediaIntentResponse.WeakNowPlayingInfo.

* Implement feedback
2018-06-15 00:35:27 -05:00
Alex Soto 5de3cdb848
[SpriteKit] Update bindings to Xcode 10 Beta 1 (#4263)
* [SpriteKit] Update bindings to Xcode 10 Beta 1

* Implement feedback
2018-06-15 00:22:51 -05:00
Sebastien Pouliot a2b33d1d1d
[tests] Fix introspection failures when running on macOS 10.14 (#4261) 2018-06-14 23:09:02 -04:00
Alex Soto 25aa7e8d10
[VideoToolbox] Update bindings to Xcode 10 Beta 1 (#4260) 2018-06-14 19:00:30 -05:00
Alex Soto cb8902d118
[CoreMotion] Update bindings to Xcode 10 Beta 1 (#4247)
* [CoreMotion] Update bindings to Xcode 10 Beta 1

* Add a note about why sharpie did not pick up these classes

* Remove CMMovementDisorderManager from simulator checks since it is not available there
2018-06-14 18:57:57 -05:00
Alex Soto 785e0fbb70
[ReplayKit] Update bindings to Xcode 10 Beta 1 (#4249)
* [ReplayKit] Update bindings to Xcode 10 Beta 1

* Implement feedback
2018-06-14 14:49:12 -05:00
Vincent Dondain 2f1859733d
[arkit] Update to Xcode 10 beta 1 (ARKit 2.0) (#4209)
I obsoleted `GetProjectPoint` in favor of `Project` because of the introduction of `Unproject` (which made me realize the naming was wrong) and based on the API doc https://developer.apple.com/documentation/arkit/arcamera/2923538-projectpoint?language=objc. 

The `CGPoint` returned is the projection of a point. An other naming option would have been `GetProjectedPoint` but I think `Project` is closer to the original and clear enough. You project/unproject something onto something else and you get the projection back.
2018-06-14 13:44:45 -04:00
Manuel de la Pena f77f44940e
[NaturalLanguage] Added the new framework for Xcode10. (#4236) 2018-06-14 19:21:44 +02:00
Alex Soto 85e0f60a86
[Intents] Adds Xcode 10 Beta 1 bindings (#4243)
* [Intents] Adds Xcode 10 Beta 1 bindings

* Adds missing comma to enum

* Update deprecation message
2018-06-14 07:10:22 -05:00
Rolf Bjarne Kvinge fdff12672f
Fix typo 2018-06-14 07:30:02 +02:00
Rolf Bjarne Kvinge f189da6058
Fix typo 2018-06-14 07:20:23 +02:00
Alex Soto cb14283da3
[CoreNFC] Update bindings to Xcode 10 beta 1 (#4246)
* [CoreNFC] Update bindings to Xcode 10 beta 1

* Address feedback
2018-06-13 22:21:17 -05:00
Alex Soto 2e516792f4
[GameplayKit] Update bindings to Xcode 10 Beta 1 (#4248) 2018-06-13 21:46:36 -05:00
Miguel de Icaza 723ccfcc42 Introduce constructor that tracks ownership of the object.
This is to follow the convention that we have for INativeObject, adjust
the code accordingly, and update existing consuming code.   The net
effect should be the same.
2018-06-13 22:40:39 -04:00
Miguel de Icaza 44de0b26c9 sigh 2018-06-13 22:40:39 -04:00
Miguel de Icaza 0cb1a0c8bb [xcode10] CoreGraphics support 2018-06-13 22:40:39 -04:00
Miguel de Icaza 0ff219854c [CoreGraphics] Add first batch of Xcode10 APIs, added an enum that we did not surface before 2018-06-13 22:40:39 -04:00
Miguel de Icaza 9f23234d3d [Network] First pass at the Network bindings 2018-06-13 22:40:04 -04:00
Sebastien Pouliot 75d88d44ff
[glkit] Update (deprecate in favor of Metal) for beta1 (#4245) 2018-06-13 22:25:57 -04:00
Sebastien Pouliot 5784f8daee
[authenticationservices] New iOS-only framework added in beta 1 (#4234) 2018-06-13 14:06:37 -04:00
Sebastien Pouliot 300018fd42
[corevideo] Update for beta 1 (#4232) 2018-06-12 16:51:57 -04:00
Alex Soto 20f5d952a9
[CarPlay] Adds Xcode 10 Beta 1 Bindings (#4217)
* [CarPlay] Adds Xcode 10 Beta 1 Bindings

* Adds [DisableDefaultCtor] to CPVoiceControlTemplate

* Implement feedback
2018-06-12 12:12:20 -07:00
Sebastien Pouliot d2b8669113
[messages] Updates for beta 1 (#4230) 2018-06-12 13:59:46 -04:00
Sebastien Pouliot a8ee40e61a
[watchos][clockkit] Update for beta 1 (no new API) (#4229) 2018-06-12 13:35:51 -04:00
Sebastien Pouliot 3b87a2b3dc
[coreimage] Add new filters from Xcode 10 beta 1 (#4228)
Complete the earlier stubs (committed to avoid tests failures) and add
`[Mac (10,14, onlyOn64: true)]` attributes on them.

This solves two XM failures when running on Mojave

```
3) ApiCoreImageFiltersTest.CheckManagedFilters (Introspection.MacCoreImageFiltersTest.ApiCoreImageFiltersTest.CheckManagedFilters)
     Managed filters not found for CIAreaMinMax, CIDither, CIGuidedFilter, CIMeshGenerator, CIMix, CISampleNearest
  Expected: 0
  But was:  6

  at Introspection.ApiCoreImageFiltersTest.CheckManagedFilters () [0x0019e] in /Users/poupou/git/xcode10/xamarin-macios/tests/introspection/ApiCoreImageFiltersTest.cs:146
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /Users/poupou/git/xcode10/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

4) ApiCoreImageFiltersTest.CheckNativeFilters (Introspection.MacCoreImageFiltersTest.ApiCoreImageFiltersTest.CheckNativeFilters)
     6 native filters missing: CIAreaMinMax, CIDither, CIGuidedFilter, CIMeshGenerator, CIMix, CISampleNearest
  Expected: 0
  But was:  6
```

Also introduce a new base type `CIReductionFilter` as found by tests

```
[WARN] CIAreaMaximum.SuperClass == CIReductionFilter (native) and CIFilter managed
[WARN] CIAreaMaximumAlpha.SuperClass == CIReductionFilter (native) and CIFilter managed
[WARN] CIAreaMinimum.SuperClass == CIReductionFilter (native) and CIFilter managed
[WARN] CIAreaMinimumAlpha.SuperClass == CIAreaMaximumAlpha (native) and CIFilter managed
```

Finally `CIMeshGenerator` is incomplete because the generator does not
support (never had to before) `NSArray` in filters, so we cannot express
`CIVector[]`. Filed as https://github.com/xamarin/xamarin-macios/issues/4226
2018-06-12 13:16:31 -04:00
Sebastien Pouliot 7372f627ad
[adsupport] Update for beta 1 (#4213) 2018-06-12 05:19:16 -07:00
Sebastien Pouliot 6d5cffcd10
[scenekit][tvos] SCNGeometryTessellator is now available in tvOS 12 (#4219) 2018-06-12 05:17:16 -07:00
Sebastien Pouliot 06ac9f970b
[accounts] Updates for beta 1 (#4216) 2018-06-11 17:42:33 -07:00
Sebastien Pouliot 2d197b9cfe
[corelocation] Update for beta 1 (macOS only changes) (#4215) 2018-06-11 17:42:18 -07:00
Sebastien Pouliot 8e72465496
[macos][corebluetooth] Enable CBConnectPeripheralOptionStartDelayKey on macOS (#4212)
Headers mention macOS 10.13 but, upon verification, the latest 10.13.5
still reports the key as missing from the framework.

Also remove the 10,13,4 maximum since we now have Mac(10,14) attributes
in the platform assemblies (which solve the previous issue)
2018-06-11 13:22:35 -07:00
Alex Soto 02e8a2d7a3
[generator] Fixes WrapAttribute usage with interface protocols (#3885) (#4210)
* [generator] Fixes WrapAttribute usage with interface protocols

Fixes xamarin/xamarin-macios#3869

We need to support the scenario where `WrapAttribute` is used
to wrap an interface protocol type declaration like:

```csharp

	[Wrap ("WeakDelegate")]
	[NullAllowed]
	ICLSDataStoreDelegate Delegate { get; set; }

	[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
	NSObject WeakDelegate { get; set; }

```

We generated invalid code for the setter that needed an explicit cast
and ended up with a CS0266 compiler error:

Bad generated code:

```csharp

[CompilerGenerated]
public ICLSDataStoreDelegate Delegate {
	get {
		return WeakDelegate as ICLSDataStoreDelegate;
	}
	set {
		WeakDelegate = value;
	}
}

```

Good generated code:

```csharp

[CompilerGenerated]
public ICLSDataStoreDelegate Delegate {
	get {
		return WeakDelegate as ICLSDataStoreDelegate;
	}
	set {
		var rvalue = value as NSObject;
		if (value != null && rvalue == null)
			throw new ArgumentException ("The object passed of type " + value.GetType () + " does not derive from NSObject");
		WeakDelegate = rvalue;
	}
}

```
2018-06-11 10:26:30 -07:00
Sebastien Pouliot 45ae4c53ce
[tests] Add introspection tests to ensure there are native linking instructions for all frameworks. Fixes #3976 (#4194) (#4208)
* [tests] Add introspection tests to ensure there are native linking instructions for all frameworks. Fixes #3976

or a good, documented (in test code) reason for not needing it.

https://github.com/xamarin/xamarin-macios/issues/3976

* Fix failures

- static registrar failed on 32bits because one type in PhotoUI missed
  its `onlyOn64: true`

- link with the top, not the sub-frameworks

* [tvos] Fix mistakes in tvOS where some extranous types triggered unrequired/unavailable (or missing) frameworks

* [watchos] Fix watchOS frameworks mapping
2018-06-11 08:01:41 -07:00
Sebastien Pouliot 3c8680ad22
[safariservices] Updates (some deprecations) for beta 1 (#4206) 2018-06-11 05:37:06 -07:00
Sebastien Pouliot b0b3d094b4
[watchconnectivity] Updates for beta 1 (#4205) 2018-06-11 05:34:40 -07:00
Sebastien Pouliot a9d8ce7c07
[watchkit] Update for beta 1 (#4204) 2018-06-11 05:31:52 -07:00
Sebastien Pouliot 2d6ce7459d
Bump to use Xcode 10 beta 1 (#4179)
* Bump to use Xcode 10 beta 1

* Update Versions.plist

* Add a dependency on Xcode 9.4.

* [msbuild] Fix build with Xcode 10 beta 1. (#4182)

Many years ago (in Xcode 7 according to code comment)
Developer/Platforms/iPhoneOS.platform/Developer/usr disappeared, and we coped
by looking at Developer/usr instead (and also the subsequent code to locate
the bin directory was based on the location of the usr directory).

Developer/Platforms/iPhoneOS.platform/Developer/usr reappeared in Xcode 10
beta 1, but it seems useless (for one it doesn't contain a bin directory), so
in order to try to keep things sane don't look for this directory in Xcode 10
and instead go directly for Developer/usr (which is what we've been using as
the usr directory for years anyway).

Fixes this problem when building apps with Xcode 10 beta 1:

      /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(626,3): error : Could not locate SDK bin directory [/Users/rolf/Projects/TestApp/test-app.csproj]

* [runtime] Build 32-bit mac executables using Xcode 9.4.

* [mtouch] Work around broken tvOS headers in Xcode 10 beta 1.

* [mtouch] Work around build problem with Apple's simd headers in Objective-C++ mode.

* Use version-agnostic paths to sdk directories.

* [tests][xtro] Add todo files (from unclassified) and adjust ignore files to avoid errors

* [macos][security] Re-enable SSL[Get|Set]AlpnProtocols. Fixes #4001 (#4022)

* [macos][security] Re-enable SSL[Get}Set]AlpnProtocols. Fixes #4001

This was fixed in macOS 10.13.4

https://github.com/xamarin/xamarin-macios/issues/4001

* [tests][monotouch-tests] Disable a few test cases (one crasher, other failures). Causes to be verified later

* [xharness] Fix permission dialog suppression in Xcode 10.

* [xharness] Ignore 32-bit macOS tests by default.

* [tests] Execute mmp regression tests with Xcode 9.4 since many of them are 32-bit and needs porting to 64-bit.

* [mmptest] Ignore 32-bit XM tests if we don't have a 32-bit-capable Xcode.

* [registrar] Add workaround for broken headers in Xcode 10 beta 1 (radar 40824697).

* [mtouch] Restrict another workaround for an Xcode 10 beta 1 bug to a specific Xcode version to remove it asap.

* [tests] Fix some protocol changes (public or not) find by introspection tests

* [tests][intro] Fix DefaultCtorAllowed failures

* [Intents] Obsolete several Intents classes in watchOS.

Several existing Intents classes have been marked as unavailable in watchOS in
the headers in Xcode 10 beta 1, and corresponding tests are now failing.

So obsolete the managed wrapper types, and fix tests accordingly.

* Fix xtro wrt previous Ietents/intro changes

* [tests] Minor adjustments to mtouch tests to work with Xcode 10.

* [msbuild] Update tests to cope with additional files produced by the Core ML compiler.

* [msbuild] Xcode 10 doesn't support building watchOS 1 apps, so show a clear error message explaining it.

Also update tests accordingly.

* [coreimage] Stub new filters and exclude ?removed? ones from tests

* Update GameplayKit and SpriteKit NSSecureCoding _upgrade_ and fix other non-public cases (in tests)

* [tests] Ignore some GameKit selectors that don't respond anymore (but seems to be available, at least in header files)

* [tests] Fix intro 32bits testing for filters resutls

* [msbuild] Slightly change error message to be better English.
2018-06-08 18:45:24 -07:00
Sebastien Pouliot 64fece5f0a
Merge pull request #4026 from spouliot/d15-7-xcode94
Add xcode9.4 support into 15.7
2018-05-29 17:55:31 -04:00
Chris Hamons eeaeb7e651
Fix default values for touchbar APIs in NSTextViewDelegate. (#3843) (#4071) 2018-05-14 15:04:36 -05:00
Sebastien Pouliot 145aca30a3 Fix bindings since 15.7 does not use [p]mcs but csc 2018-05-03 19:12:02 -04:00
Sebastien Pouliot 9208e9a0a4 Add xcode9.4 support into 15.7
The PR is not final and cannot be merged until the final Xcode 9.4
release from Apple is available.

Since there's no macOS specific changes (at least up to beta 2) we can
directly merge into the _normal_ milestone branch and avoid having
separate branches to maintain for XI and XM (until 15.8).
2018-05-03 13:55:11 -04:00
Vincent Dondain 25314e51d6 [classkit] Update for Xcode 9.4 beta 2 (#4020) 2018-05-01 22:33:20 -04:00
Rolf Bjarne Kvinge b1c5ebf326
[generator] Register models with unique names to not match platform types. Fixes #3875. (#3879) (#3888)
* Move Registrar.SanitizeName to StringUtils.SanitizeObjectiveCName.

* [generator] Register models with unique names to not match platform types. Fixes #3875.

* [NSObject] Don't compare against a non-existent protocol.

* [generator] Make it possible to register models like before if the binding developer wishes it.

* [src] Make sure to not declare ObjC classes Apple already defines.

Fixes these warnings at startup:

    Class DOMNodeFilter is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebKitLegacy.framework/Versions/A/WebKitLegacy (0x7fffa944a788) and /Users/builder/data/lanes/6035/0ca02336/source/xamarin-macios/tests/xharness/tmp-test-dir/dont link-mac-unified/bin/x86/Debug-unified/dont link.app/Contents/MacOS/dont link (0x10d8a9958). One of the two will be used. Which one is undefined.
    Class WebOpenPanelResultListener is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebKitLegacy.framework/Versions/A/WebKitLegacy (0x7fffa944e4c8) and /Users/builder/data/lanes/6035/0ca02336/source/xamarin-macios/tests/xharness/tmp-test-dir/dont link-mac-unified/bin/x86/Debug-unified/dont link.app/Contents/MacOS/dont link (0x10d8a9a98). One of the two will be used. Which one is undefined.
    Class WebPolicyDecisionListener is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebKitLegacy.framework/Versions/A/WebKitLegacy (0x7fffa944e838) and /Users/builder/data/lanes/6035/0ca02336/source/xamarin-macios/tests/xharness/tmp-test-dir/dont link-mac-unified/bin/x86/Debug-unified/dont link.app/Contents/MacOS/dont link (0x10d8a9ae8). One of the two will be used. Which one is undefined.
    Class MTLCaptureScope is implemented in both /System/Library/Frameworks/Metal.framework/Versions/A/Metal (0x7fffa806f1d0) and /Users/builder/data/lanes/6035/0ca02336/source/xamarin-macios/tests/xharness/tmp-test-dir/dont link-mac-unified/bin/x86/Debug-unified/dont link.app/Contents/MacOS/dont link (0x10d8aa858). One of the two will be used. Which one is undefined.
    Class JSExport is implemented in both /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore (0x7fffa7eb4f60) and /Users/builder/data/lanes/6035/0ca02336/source/xamarin-macios/tests/xharness/tmp-test-dir/dont link-mac-unified/bin/x86/Debug-unified/dont link.app/Contents/MacOS/dont link (0x10d8aaa38). One of the two will be used. Which one is undefined.
2018-04-06 19:58:20 +02:00
Alex Soto 347160cf51
[ClassKit] Add Xcode 9.4 Beta 1 Bindings (#3853)
* [ClassKit] Add Xcode 9.4 Beta 1 Bindings

* ClassKit moved to v11.4 or we'd link against a private frmework in 11.3

* Turn CLSPredicateKeyPath into a static class

CLSPredicateKeyPath does not make much sense as an enum, we'll use
a static class instead so we do not have to call GetConstant() and
use the NSString directly.

Sample code using CLSPredicateKeyPath:

```csharp
var store = CLSDataStore.Shared;
var predicate = NSPredicate.FromFormat ("%K = %@", CLSPredicateKeyPath.Parent, store.MainAppContext);
var ctxs = await store.FindContextsMatchingAsync (predicate);
foreach (var ctx in ctxs) {
	Console.WriteLine (ctx.Title);
}
```

* [tests] Exclude WeakTopic incorrect check, bound as smart enum
2018-04-05 10:20:05 -05:00
Vincent Dondain 3955be3f12 [arkit] Add missing ARHitTestResultType binding (#3872) (#3873)
- Fixes #3870: Missing ARHitTestResultType.EstimatedVerticalPlane binding for ARKit 1.5
(https://github.com/xamarin/xamarin-macios/issues/3870)
2018-04-04 20:22:01 -04:00
Manuel de la Pena 1110d8fcb3
[Foundation] Ensure we do raise 401 on NTLM when no creds are present. (#3866)
* [Foundation] Ensure we do raise 401 on NTLM when no creds are present. Fixes #3742

The code was not executing the completionHandler in those case were the
user did not provide the creds. We should try to get the creds and use
them or call the cb with the proposed creds.
2018-04-04 16:31:04 +02:00
Vincent Dondain e90c86d2e4 [arkit] Add missing ImageIO using 2018-03-29 23:40:29 -04:00
Alex Soto dc03a42cd3
Remove XamCore. and a couple of nint/nuint enums 2018-03-29 19:46:17 -06:00
Alex Soto 0b2e65599a
Remove diff noise from merge 2018-03-29 18:27:04 -06:00
Vincent Dondain d34f1fbbd7 Merge branch 'xcode9.3' into d15-7-merge-xcode9.3 2018-03-29 19:31:01 -04:00
Alex Soto cc41ecd60c [Appkit] Adds NullAllowed to NSTableCellView.ObjectValue (#3793)
Fixes xamarin/xamarin-macios#3792

`null` is allowed in `NSTableCellView.ObjectValue` property according to header definition:

```
@property (nullable, strong) id objectValue;
```
2018-03-23 18:02:25 -06:00
Alex Soto a04b482273 [AppKit] Adds [NullAllowed] to NSGridCell.ContentView (#3779)
Fixes xamarin/xamarin-macios#3777

The Objective-C definition is:

```
@property (strong,nullable) __kindof NSView *contentView;
```
2018-03-23 18:00:49 -06:00