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

2007 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot c244b5cafb [mediaplayer] Add missing API found by xtro 2018-08-24 16:05:43 -04:00
Sebastien Pouliot 8dd288925b [uikit] Fix/comment missing API reported by xtro 2018-08-24 11:24:47 -04:00
Sebastien Pouliot 707334f95e [spritekit] Enable missing API in watchOS (found by xtro) 2018-08-23 15:26:44 -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 d0ecdc9c42 [corewlan] Add missing API found by xtro 2018-08-23 10:21:27 -04:00
Sebastien Pouliot 5adbf19400 [coreimage] Add missing API found by xtro 2018-08-23 09:47:05 -04:00
Vlad Brezae 24c69996af Reflect latest X509CertificateImpl changes 2018-08-23 16:01:50 +03:00
Rolf Bjarne Kvinge 3472a17b21 [generator] Build using csproj instead of manual csc command. Partial fix for #4384.
1. Put the source files into generator.csproj, and stop generating it.
2. Build bgen.exe using msbuild in the makefile.

Partial fix for https://github.com/xamarin/xamarin-macios/issues/4384.
2018-08-23 13:49:40 +02:00
Rolf Bjarne Kvinge 80430df393 [src] Use generated rsp files when executing the generator.
This is step 1 in not having to generate generator.csproj, since we can
reference the rsp files statically instead of injecting the actual command
line arguments to the generator for the debugging run configurations.

It also makes sure the project's run configurations are always up to date,
since they're using the exact same input as the command line build.
2018-08-23 13:38:32 +02:00
Rolf Bjarne Kvinge e955a489f8 Move generator-ikvm.csproj.in -> generator.csproj.in. 2018-08-23 13:38:32 +02:00
Rolf Bjarne Kvinge dea087332e [src] Simplify the IOS_TARGETS_template template to have fewer variables.
Turns out we only need a single variable now.
2018-08-23 13:38:32 +02:00
Rolf Bjarne Kvinge ab4b6fa8d9 [src] Expand the IOS_GENERATOR_template template, since it's only used once.
No need to have complicated template code when it's only instantiated once.
2018-08-23 12:59:03 +02:00
Rolf Bjarne Kvinge 508ecd16c8 [src] Remove make targets for SRE-based generators.
They're not used anymore.
2018-08-23 12:53:22 +02:00
Sebastien Pouliot 216966ee87 [coredata] Add some missing API spotted by xtro 2018-08-22 16:51:24 -04:00
Sebastien Pouliot 10d13cc986 [cloudkit] Review missing 'init' on some types, in particular allow them outside watchOS 2018-08-22 14:56:51 -04:00
Sebastien Pouliot 19683847c2 [avfoundation] Add missing API (previously missed by xtro) 2018-08-22 09:14:10 -04:00
Vlad Brezae 8076525f23 Merge remote-tracking branch 'origin/mono-2018-06' into mono-2018-08 2018-08-22 00:54:42 +03:00
Sebastien Pouliot d99be7a03e
Merge d15-8 into xcode 10 2018-08-21 09:29:35 -04:00
Sebastien Pouliot d9edf5928d
[avfoundation] Deprecate 'AVMediaTypeTimedMetadata' (#4655)
AVMediaTypeTimedMetadata has been obsoleted since iOS 6 but was totally
removed (returns null) in iOS 12.

Adjust test and provide a (better) deprecation warning for developers.
2018-08-21 08:57:44 -04:00
Manuel de la Pena 92d6e94707 [NaturalLanguage] Change return type to use double instead on nuint. Fixes #4642 (#4654)
The docs or headers do not specify the exact type. Using double to be
sure.

Issue: https://github.com/xamarin/xamarin-macios/issues/4642
2018-08-20 21:44:24 -04:00
Vincent Dondain c40822d846 [healthkit] Add missing static to GetClinicalType (#4657)
*Note: Credit to Paul DiPietro (@pauldipietro) for finding this when trying to use the new HealthKit APIs.*
2018-08-20 20:54:22 -04:00
Manuel de la Pena 82dfd4fb59 [AppKit] Xcode 10 beta 6 support. (#4653) 2018-08-20 18:00:32 -04:00
Manuel de la Pena c5974d94ef [CarPlay] Update for Xcode 10 beta 6. (#4650) 2018-08-20 14:49:02 -04:00
Vincent Dondain c2a993e4c9
[IntentsUI] Update for Xcode 10 beta 6 (#4640) 2018-08-20 09:20:01 -04:00
Rolf Bjarne Kvinge 5f4327ab0f
[CoreGraphics] Fix CGFunction to work after being disposed. (#4644)
We have a test for CGFunction, and in iOS 12 the behavior changed where
previously the CGFunction was invoked immediately when rendering, it's now
retained and only called later.

This is troublesome for the test, because it disposes the managed CGFunction
when it thinks it's completed. Since the function is invoked way later, the
test now crashes. Ops.

The obvious fix is to change the test to dispose the CGFunction later. This
falls flat when finding out that "later" is undetermined. Native code retains
the CGFunction, and can do whatever it wishes with it until it's released, and
there's no way to know when that is.

OK: what about not disposing the CGFunction, and letting the GC do its job?
This also falls flat, because there's a circular reference between the native
CGFunction and the managed wrapper, preventing any of them from being released
automatically by the GC. The only way to break the circular reference is to
dispose the managed wrapper.

So, can we fix the circular reference? Unfortunately not, because we can't
monitor the native CGFunction's retain count, which is required in order to
switch the native->managed link between weak and strong according to the
retain count.

This leaves one solution (that I could come up with at least): make sure
everything works fine after disposing the managed wrapper.

This involves a few things:

* Only break the native->managed connection (the 'gch' GCHandle) when the
  native CGFunction is freed. This is accomplished by using the API provided
  by Apple for exactly that purpose (the 'release' callback field in the
  'CGFunctionCallbacks' struct).

* Use a static variable for the 'CGFunctionCallback' struct and its contents.
  This solves another potential problem: the GC could have collected the
  delegate to the 'EvaluateCallback' function at any point.

* Don't null out the 'evaluate' delegate in Dispose. This leaves the user with
  no way to break a potential circular reference through that delegate (since
  it will never be null), so provide a property that makes it possible for
  users to explicitly null out the delegate ('EvaluateFunction').

* Only call the 'evaluate' callback if it's not null.

This also has the additional advantage that test (and any customer code
running into the same issue) works without modifications.
2018-08-20 07:40:54 +02:00
Rolf Bjarne Kvinge 8ff0dccad0
Try to fix random make failure in src/ by not using pattern rules. (#4639)
Randomly make 3.81 says this:

    error CS0006: Metadata file 'build/ios/reference/MonoTouch.Dialog-1.dll' could not be found

The makefile seems fine, and it also doesn't happen when using make 4.21, so
this looks like a make bug.

So rewrite the troublesome rule to not be a pattern rule, and cross some fingers.
2018-08-18 00:44:36 +02:00
Vincent Dondain f1fa9751bd [btouch] Fix merge issue, removed hack 2018-08-16 11:40:20 -04:00
Rolf Bjarne Kvinge 965e1f7bcc Merge remote-tracking branch 'origin/xcode10' into xcode10-rebase-15.8 2018-08-16 17:09:30 +02:00
Sebastien Pouliot b3efe23189
[networkextension] Obsolete NWPath and NWHostEndpoint default constructors (#4624)
There's nothing that indicates the types are user creatable. In addition
recent tests shows this (and similar) traces that suggest the instances
are not fully initialized.

2018-08-14 16:41:37.677780-0400 introspection[65154:688446] [] nw_path_get_mtu called with null path
2018-08-14 16:41:37.677917-0400 introspection[65154:688446] [] __nwlog_err_simulate_crash simulate crash failed "nw_path_get_mtu called with null path"
2018-08-14 16:41:37.680216-0400 introspection[65154:688446] [] nw_path_get_mtu called with null path, dumping backtrace:
        [x86_64] libnetcore-1229.202.1
    0   libnetwork.dylib                    0x00000001131b1c18 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x000000011315b962 nw_path_get_mtu + 274
    2   Network                             0x0000000111737a67 -[NWPath mtu] + 39
    3   Network                             0x000000011173610e -[NWPath descriptionWithIndent:showFullContent:] + 446
    4   Network                             0x0000000111736825 -[NWPath description] + 21
    5   introspection                       0x000000010484db69 xamarin_dyn_objc_msgSend + 217
    6   ???                                 0x0000000131be3755 0x0 + 5129516885
    7   ???                                 0x0000000131be73d9 0x0 + 5129532377
    8   introspection                       0x0000000104653963 mono_jit_runtime_invoke + 1443
    9   introspection                       0x0000000104732a9f mono_runtime_invoke_checked + 127
    10  introspection                       0x0000000104739de8 mono_runtime_try_invoke_array + 1160
    11  introspection                       0x00000001046da4b7 ves_icall_InternalInvoke + 647
    12  ???                                 0x0000000137b84ae1 0x0 + 5229791969
    13  ???                                 0x0000000137b8484b 0x0 + 5229791307
    14  ???                                 0x0000000137b845fb 0x0 + 5229790715
    15  ???                                 0x0000000137b83d59 0x0 + 5229788505
    16  ???                                 0x0000000137b7c2f4 0x0 + 5229757172
    17  ???                                 0x0000000136d6066b 0x0 + 5214963307
    18  ???                                 0x0000000137b7c2f4 0x0 + 5229757172
    19  ???                                 0x0000000136d6066b 0x0 + 5214963307
    20  ???                                 0x0000000137b7c2f4 0x0 + 5229757172
    21  ???                                 0x0000000136d6066b 0x0 + 5214963307
    22  ???                                 0x0000000137b7c2f4 0x0 + 5229757172
    23  ???                                 0x0000000136d6066b 0x0 + 5214963307
    24  ???                                 0x0000000137b0d76b 0x0 + 5229303659
    25  ???                                 0x0000000131bac8a1 0x0 + 5129291937
    26  introspection                       0x0000000104653963 mono_jit_runtime_invoke + 1443
    27  introspection                       0x0000000104734424 mono_runtime_try_invoke + 148
    28  introspection                       0x000000010473636f mono_runtime_invoke + 31
    29  introspection                       0x00000001044e4188 _ZL31native_to_managed_trampoline_20P11objc_objectP13objc_selectorPP11_MonoMethodj + 248
    30  introspection                       0x00000001044e8754 -[__MonoMac_NSAsyncActionDispatcher xamarinApplySelector] + 52
    31  Foundation                          0x0000000105c7bf6b __NSThreadPerformPerform + 330
    32  CoreFoundation                      0x0000000104f1bb31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    33  CoreFoundation                      0x0000000104f1b464 __CFRunLoopDoSources0 + 436
    34  CoreFoundation                      0x0000000104f15a4f __CFRunLoopRun + 1263
    35  CoreFoundation                      0x0000000104f15221 CFRunLoopRunSpecific + 625
    36  GraphicsServices                    0x00000001157d01dd GSEventRunModal + 62
    37  UIKitCore                           0x000000011a6e62f1 UIApplicationMain + 140
    38  ???                                 0x0000000131be4d18 0x0 + 5129522456
    39  ???                                 0x0000000131be4b93 0x0 + 5129522067
    40  introspection                       0x0000000104653963 mono_jit_runtime_invoke + 1443
    41  introspection                       0x0000000104732a9f mono_runtime_invoke_checked + 127
    42  introspection                       0x000000010473890e mono_runtime_exec_main_checked + 110
    43  introspection                       0x00000001045a132f mono_jit_exec + 287
    44  introspection                       0x000000010484b5ee xamarin_main + 2830
    45  introspection                       0x000000010484df6d main + 45
    46  libdyld.dylib                       0x00000001122915cd start + 1
    47  ???                                 0x0000000000000009 0x0 + 9

2018-08-14 17:09:22.864147-0400 introspection[78577:733530] [] nw_endpoint_get_parent_endpoint_domain called with null endpoint
2018-08-14 17:09:22.864273-0400 introspection[78577:733530] [] __nwlog_err_simulate_crash simulate crash failed "nw_endpoint_get_parent_endpoint_domain called with null endpoint"
2018-08-14 17:09:22.866190-0400 introspection[78577:733530] [] nw_endpoint_get_parent_endpoint_domain called with null endpoint, dumping backtrace:
        [x86_64] libnetcore-1229.202.1
    0   libnetwork.dylib                    0x0000000119d0bc18 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x0000000119c8b232 nw_endpoint_get_parent_endpoint_domain + 178
    2   Network                             0x0000000118261177 -[NWEndpoint parentEndpointDomain] + 39
    3   Network                             0x000000011824a941 -[NWHostEndpoint descriptionWithIndent:showFullContent:] + 97
    4   Network                             0x0000000118260eb5 -[NWEndpoint description] + 21
    5   introspection                       0x000000010b3a4b69 xamarin_dyn_objc_msgSend + 217
    6   ???                                 0x000000013ce75755 0x0 + 5316761429
    7   ???                                 0x000000013ce793d9 0x0 + 5316776921
    8   introspection                       0x000000010b1aa963 mono_jit_runtime_invoke + 1443
    9   introspection                       0x000000010b289a9f mono_runtime_invoke_checked + 127
    10  introspection                       0x000000010b290de8 mono_runtime_try_invoke_array + 1160
    11  introspection                       0x000000010b2314b7 ves_icall_InternalInvoke + 647
    12  ???                                 0x000000013e428bc1 0x0 + 5339515841
    13  ???                                 0x000000013e42892b 0x0 + 5339515179
    14  ???                                 0x000000013e4286db 0x0 + 5339514587
    15  ???                                 0x000000013e427e39 0x0 + 5339512377
    16  ???                                 0x000000013e4203d4 0x0 + 5339481044
    17  ???                                 0x000000013d8b875b 0x0 + 5327521627
    18  ???                                 0x000000013e4203d4 0x0 + 5339481044
    19  ???                                 0x000000013d8b875b 0x0 + 5327521627
    20  ???                                 0x000000013e4203d4 0x0 + 5339481044
    21  ???                                 0x000000013d8b875b 0x0 + 5327521627
    22  ???                                 0x000000013e4203d4 0x0 + 5339481044
    23  ???                                 0x000000013d8b875b 0x0 + 5327521627
    24  ???                                 0x000000013e3c37db 0x0 + 5339101147
    25  ???                                 0x00000001387848a1 0x0 + 5242374305
    26  introspection                       0x000000010b1aa963 mono_jit_runtime_invoke + 1443
    27  introspection                       0x000000010b28b424 mono_runtime_try_invoke + 148
    28  introspection                       0x000000010b28d36f mono_runtime_invoke + 31
    29  introspection                       0x000000010b03b188 _ZL31native_to_managed_trampoline_20P11objc_objectP13objc_selectorPP11_MonoMethodj + 248
    30  introspection                       0x000000010b03f754 -[__MonoMac_NSAsyncActionDispatcher xamarinApplySelector] + 52
    31  Foundation                          0x000000010c7d2f6b __NSThreadPerformPerform + 330
    32  CoreFoundation                      0x000000010ba72b31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    33  CoreFoundation                      0x000000010ba72464 __CFRunLoopDoSources0 + 436
    34  CoreFoundation                      0x000000010ba6ca4f __CFRunLoopRun + 1263
    35  CoreFoundation                      0x000000010ba6c221 CFRunLoopRunSpecific + 625
    36  GraphicsServices                    0x000000011c32a1dd GSEventRunModal + 62
    37  UIKitCore                           0x00000001212402f1 UIApplicationMain + 140
    38  ???                                 0x000000013ce76d18 0x0 + 5316767000
    39  ???                                 0x000000013ce76b93 0x0 + 5316766611
    40  introspection                       0x000000010b1aa963 mono_jit_runtime_invoke + 1443
    41  introspection                       0x000000010b289a9f mono_runtime_invoke_checked + 127
    42  introspection                       0x000000010b28f90e mono_runtime_exec_main_checked + 110
    43  introspection                       0x000000010b0f832f mono_jit_exec + 287
    44  introspection                       0x000000010b3a25ee xamarin_main + 2830
    45  introspection                       0x000000010b3a4f6d main + 45
    46  libdyld.dylib                       0x0000000118de65cd start + 1
    47  ???                                 0x0000000000000009 0x0 + 9
2018-08-15 21:44:13 -04:00
Sebastien Pouliot 878fdffea7
[foundation] Update for beta 6 (#4625) 2018-08-15 21:41:03 -04:00
Vincent Dondain 3548c44782
[metal] Update for Xcode 10 beta 1, 2, 3 & 4 (#4562) 2018-08-15 10:09:23 -04:00
Miguel de Icaza 569c3c29bd [Network] Bug fix the NWParameter constructors (#4615) 2018-08-14 08:56:50 -04:00
Vincent Dondain eec95e881c Merge branch 'd15-8' into xcode10-rebase-15.8 2018-08-13 21:04:56 -04:00
Vincent Dondain c067f64efa
[scenekit] Add advice to SCNMatrix4 (#4605)
In relation to https://github.com/xamarin/xamarin-macios/issues/4525, adding an "advice" to remind everyone this is a row major matrix.
2018-08-13 09:38:18 -04:00
Manuel de la Pena 41fe079f9b [Generator] Ensure the correct error is raised when an Export is missing on a Property. (#4604)
The generator had a small bug in which we would get a NRE when a
property missed a Export attribute and had no WrapAttr. The issue is due
to the fact that an || is being used and does not shortcut when the
attribute is missing. In that case, the first Get check would pass and a
second attempt would happen with the set. In the case the set is missing,
we would get a NRE. The correct way is to ensure that we do have the get
and the set BEFORE the attr is checked.

The added test shows an example of the issue.
2018-08-09 16:06:14 -04:00
Sebastien Pouliot f471f9b591
[security] Update for beta 5 (only) change (#4600) 2018-08-09 10:12:07 -04:00
Martin Baulig 84a815beed Initialize Dependency Injector. 2018-08-08 18:23:53 -04:00
Sebastien Pouliot 0b7265193a
[coreservices] Update up to beta 5 (#4590)
Also avoid creating NSString instances for hidden constants where
only the handle is every used.
2018-08-08 12:38:03 -04:00
Manuel de la Pena 7c7f46da28
[iTunesLibrary] Xcode 10 beta 3 support. (#4462) 2018-08-08 16:34:16 +02:00
Miguel de Icaza 8960cc0022
Merge pull request #4251 from migueldeicaza/xcode10-network
[Network, Security] Bindings for Network, Security, DispatchIO and some classes needed to port samples
2018-08-08 09:55:06 -04:00
Manuel de la Pena f4cd485b38 [ImageIO] Add support for Xcode 10 beta 5. (#4587) 2018-08-07 21:06:40 -04:00
Sebastien Pouliot 805c65ac98
[coreanimation] Add new API up to b5 (#4571)
Also a small generator change to allow `CGColorSpace` use inside
strong dictionaries.
2018-08-07 13:49:30 -04:00
Sebastien Pouliot 7e770663d9
[audiotoolbox][tvos] Remove AudioFileReadPackets symbol (#4570)
The public API was removed a long time ago (with XAMCORE_2_0) but
the p/invoke was still present in the platform assemblies.

Since tvOS requires bitcode this can cause a problem when linking
natively since a direct call won't be possible. That would only
happen if the symbol is removed (from the binary, not just the
headers) and if the managed linker is not enabled (otherwise it
will always be removed).
2018-08-04 00:24:54 -04:00
Manuel de la Pena 3613803471 [CoreMedia] Add Xcode 10 beta 5 support. (#4567) 2018-08-04 00:24:24 -04:00
Chris Hamons 7669300fcb Fix appkit warning (#4573) 2018-08-04 00:22:07 -04:00
Manuel de la Pena b47305ede2 [CoreImage] Add Xcode 10 beta 5 support. (#4564) 2018-08-03 17:06:45 -04:00
Rolf Bjarne Kvinge 16f8032616 Merge remote-tracking branch 'origin/xcode10' into xcode10-network 2018-08-03 10:32:10 +02:00
Rolf Bjarne Kvinge c77f191064 [CoreGraphics] Add missing API added in Xcode 10 beta 1. (#4547)
* [CoreGraphics] Add CGPDFArray.Get* overloads that take a nint index, since the CGPDFArray.Count property returns nint.

This makes the following code work:

    for (var i = 0; i < array.Count; i++)
    	array.GetInt (i, ...)

* Don't add [MonoPInvokeCallback] to Mac code.

* [CoreGraphics] Rename CGPDFArray.ApplyBlockCallback to ApplyCallback.

Since the fact that the method is implemented using a block is not relevant
for managed code.

This also makes the method named like an equivalent method in CGPDFDictionary.

* [CoreGraphics] Change CGPDFArray.Apply to take an 'object' as the info parameter instead of IntPtr.

This makes it nicer for managed code.

* [CoreGraphics] CGPDFArray.Apply: resolve the iterated object to the actual CGPDFObject type.

* [CoreGraphics] Add an CGPDFDictionary.Apply overload that resolves the iterated object to the actual CGPDFObject type.

This method was previously only available in Classic, so I just reintroduced
it with a few changes to make the API nicer (which isn't a breaking change
since we're not building Classic anymore).

* [tests] Add test for CGPDF types.

* [tests] Don't run the new tests unless the SDK was part of Xcode 10
2018-08-02 20:30:41 -04:00
Manuel de la Pena ab64222d5b [AudioToolbox] Add Xcode 10 beta 5 support. (#4559) 2018-08-02 20:29:15 -04:00
Miguel de Icaza 0c7f9248cd [Network, Security] Feedback, plus build warnings 2018-08-02 17:38:51 -04:00
Chris Hamons abcce7c2b9 Add missing AppKit Xcode 10 bindings (#4546) 2018-08-02 16:32:30 -04:00
Manuel de la Pena bf3d722360 [UIKit] Add support for Xcode 10 beta 5. (#4556) 2018-08-02 16:31:35 -04:00
Manuel de la Pena a2bfd0b633 [AVFoundation] Add support for Xcode 10 beta5. (#4554) 2018-08-02 16:15:16 -04:00
Chris Hamons 9e3c69a7f5
Add soft deprecations from Foundation beta 5 on macOS (#4548) 2018-08-02 11:06:28 -05:00
Sebastien Pouliot 66a4a0fd79
[iad] Update for beta 5 (#4544)
Apple removed `MPMoviePlayerController_iAdPreroll.h` in beta 5.

The deprecation existed, but indirectly, on `MPMoviePlayerController`,
the type on which the category is based. IOW it's became obsoleted so
we're adding the attributes to match this.
2018-08-02 10:13:15 -04:00
Sebastien Pouliot 1c2c655bb8
[coremidi] Update to beta 5 (#4550)
Be more explicit (and match headers) about API availability - even
if it does not change what we expose.
2018-08-02 09:15:09 -04:00
Rolf Bjarne Kvinge bbfb76135a Put availability attributes on the type instead of each member when it's the same for all members. 2018-08-02 10:09:53 +02:00
Marek Safar fdf3536170 Merge branch 'master' into mono-2018-06 2018-08-01 22:17:19 +02:00
Chris Hamons e77560fff3
Xcode 10 Beta 5 AppKit (#4539)
- Mark NSBindingSelectionMarker as 10.14+ and note in XAMCORE_4_0 future usages
2018-08-01 12:31:20 -05:00
Miguel de Icaza eee94b4620 [Network, ObjCRuntime] Bring back the helper for future simple uses of the block API 2018-08-01 12:20:56 -04:00
Rolf Bjarne Kvinge 21eb1037dc Add trailing slash to make future diffs nicer. 2018-08-01 17:22:48 +02:00
Rolf Bjarne Kvinge f54aa3b84b Remove unused file. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge b5a8124684 Move Blocks.SimpleCall into NWConnection.Batch.
It's not worth it to have a helper function (Blocks.SimpleCall) for a single
API (NWConnection.Batch( that will never be widely used, when the cost is a
static field and the corresponding eternal memory usage for every app that
uses blocks at least once (which is pretty much every app).
2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge c10a3d5742 Use 'ref BlockLiteral' in P/Invokes instead of unsafe code whenever we don't need to pass null blocks.
This makes it possible to avoid a lot of unsafe code, and additionally it
simplifies the block code greatly.
2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge def474d3ac Don't leak blocks if GetCheckedHandle throws. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge b539083d6d Fix typo. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge 1091ff9dcc Don't dispose the same object twice. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge ab8b84c43e Make NativeObject.handle a private field.
* This is how it's defined in the RFC (#3582).
* It forces us to call InitializeHandle (or use the property setter, which
  does the same thing), which makes it impossible to create broken types
  (instantiating C# wrapper objects successfully, but with a null handle)
2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge 302c880d1e Avoid repeated null checks when the variable has been null-checked earlier in the method. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge 4d7a166c41 Avoid double 'as'. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge 06e4426e1c Use INativeObject.GetHandle in a few places to simplify code.
Since INativeObject.GetHandle is an extension method that can detect a null
'this' value and returns IntPtr.Zero.
2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge a6efd56402 Rename NativeObject.GetHandle to NativeObject.GetCheckedHandle.
Two reasons:

* NativeObject.GetHandle looks too much like the existing
  INativeObject.GetHandle, which has a different behavior.
* It's not clear from the name that it can easily throw exceptions. This
  becomes particularly important with resource management (ensuring we don't
  leak stuff if calling the method happens to throw an exception).
2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge df11c128bb Simplify the block creation pattern.
This should have no functional changes.
2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge e04d7fdf9d Use nuint instead of IntPtr for size/length parameters. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge 2f5e14434f Add a BlockLiteral.GetTarget method and use it to simplify code (and make it less unsafe as well). 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge f5914589e1 CoreFoundation: consistently use nuint instead of mixed (u)long usage.
This also fixes a few P/Invokes that were incorrectly bound with (u)long instead of nuint.
2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge 63163714f5 Added some code review comments. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge ca9b61693c NWError: don't double retain, base class already does it. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge a605baca62 Fixed compiler warnings by removing unused variables. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge 06eda3504c Fix whitespace, add comma after last enum value, and fix a few other style issues. 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge 05340241ed Merge remote-tracking branch 'origin/xcode10' into xcode10-network 2018-08-01 17:10:36 +02:00
Manuel de la Pena 96509612d0 Merge branch 'xcode10-network' of github.com:migueldeicaza/xamarin-macios into xcode10-network 2018-08-01 16:56:44 +02:00
Manuel de la Pena 00eedb9381 [Network] Ensure NWAdvertiseDescriptor does take the type when exposing
a service.

As per documentation the NWAdvertiseDescriptor CreateBonjourService
should always get a type. Added the change which fixes the introspection
failures.
2018-08-01 16:55:06 +02:00
Miguel de Icaza b9ee7a93d7 [Network] Undo the change that uses Runtime.GetINativeObject as discussed with the team, it is just slower and does not fetch a cached object as originally assumed 2018-08-01 10:50:51 -04:00
Alex Soto b808213465 [Vision] Update bindings to Xcode 10 beta 1, nothing in beta 2 (#4321) 2018-08-01 10:50:13 -04:00
Miguel de Icaza 49bb4aa0ca Xcode10 CoreGraphics B1-B5 (#4198)
* [CoreGraphics] Add first batch of Xcode10 APIs, added an enum that we did not surface before

* [xcode10] CoreGraphics support

* Fix whitespace/formatting and add comma after last enum value.

* Make CFPropertyList follow normal INativeObject creation pattern.

* Make CFPropertyList.AsData return the error as a tuple.

* Fix CFPropertyList.AsData to not leak.

* CFPropertyList.Value: use Runtime.GetNSObject so that we don't accidentally create duplicate wrappers for the same native object.

* [CoreGraphics] Update to beta 5.

* Update xtro definitions.

* Add tests.

* Don't compare value type with null.

* Use PascalCase for named return tuples.

* [CoreFoundation] Make CFPropertyList enums native and fix code accordingly.

* [tests] Fix fetching 64-bit int to actually fetch a 64-bit int and not a nint.

* [tests] Teach introspection's ApiCMAttachmentTest about CFPropertyList.
2018-08-01 16:25:40 +02:00
Sebastien Pouliot 745ac8f1db
[foundation] Override Message property in NSErrorException. Fixes #4133 (#4176)
The default `Message` property is not every helpful. Better information
is available inside the `Error` property but it's not general (nor cross
platform) when dealing with exception.

Include unit tests (on an existing test checking NSError values)

https://github.com/xamarin/xamarin-macios/issues/4133
2018-08-01 09:18:04 -04:00
Vincent Dondain 52aae1858b [homekit] Remove export for 'RemoveUser' (iOS prohibited) (#4542)
We want to remove the native API because it's prohibited and Apple could reject apps with it. Therefore we exposed empty stubs to avoid breaking the API.
2018-08-01 08:13:49 -04:00
Sebastien Pouliot 7f30793364
[scenekit] Update for beta 5 (#4541) 2018-08-01 08:13:21 -04:00
Sebastien Pouliot b13347b1be
[storekit] Update for beta 5 (#4535) 2018-07-31 21:50:55 -04:00
Vincent Dondain 1ffa311117 [coreml] Update for Xcode 10 beta 5 (#4534) 2018-07-31 21:50:40 -04:00
Sebastien Pouliot c682959deb
[tvos][tvuikit] Update for beta 5 (#4533) 2018-07-31 21:50:10 -04:00
Vincent Dondain 021be4890b [modelio] Update for Xcode 10 beta 5 (#4536) 2018-07-31 21:25:30 -04:00
Sebastien Pouliot c987e054e3
[passkit] Update for beta 5 (#4537) 2018-07-31 21:22:30 -04:00
Vincent Dondain 839c26e21d [arkit] Add ARAnchorCopying protocol (#4523)
Even if empty this protocol will help with tests and subclasses.
2018-07-31 21:20:16 -04:00
Miguel de Icaza 4f33e6ab7b [CoreFoundation, Network, Security] Address review comments
* CoreFoundation/DispatchData: avoid possible integer overflow

* Network: move attributes for types introduced in Xcode10 from the
  members to the types.

* Network: for callbacks that surface INativeObjects, rather than using

* Hide P/Invokes that are not currently surfaced so xtro tests can track this

* guidelines: Ip -> IP

* SecIdentity2: fix a leak by releasing the returned array, check for handle being null.

* SecTrust2: check for handle being null.
2018-07-31 16:30:23 -04:00
Chris Hamons 65b1d0cfb5
AppKit 10b4 (#4488) 2018-07-31 15:17:25 -05:00
Sebastien Pouliot fe159bda2d
Update for xcode 10 beta 5 (#4527) 2018-07-31 08:49:19 -04:00
Vincent Dondain 53d7e23c46 [arkit] Introduce runWithConfiguration: (#4521)
The comment: "'runWithConfiguration:' selector marked as unavailable in Xcode 9 beta 5"
was *wrongly* referencing 'NS_SWIFT_UNAVAILABLE("Use run(_:options:) instead")'. However that applies to swift and not objective-c, this selector is valid and lets users skip the options.

Note: tested with real-world ARKit app.

* Add None to ARSessionRunOptions
2018-07-30 08:25:57 -04:00
Miguel de Icaza b8cf7b2bd8 Merge remote-tracking branch 'remotes/origin/xcode10' into xcode10-network 2018-07-27 13:45:55 -04:00
Sebastien Pouliot 3bb8f82e19
[coreimage] Add new CISaliencyMapFilter from beta 4 (#4513) 2018-07-27 08:27:23 -04:00
Rolf Bjarne Kvinge 7b8a7a3ced
[CoreBluetooth] Add availability attributes for CBUUID.CBUUIDValidRangeString. (#4508)
Fixes introspection on macOS 10.7-10.11.
2018-07-26 15:04:58 +02:00
Sebastien Pouliot 0402ef3f2f
[watchos][intents] Enable MediaPlayer related API (now enabled for watchOS) (#4505) 2018-07-26 08:38:12 -04:00
Marek Safar b183101350 Merge branch 'master' into mono-2018-06 2018-07-25 11:25:46 +02:00
Vincent Dondain 44799dc42c [arkit] Update for Xcode 10 beta 4 (#4496)
Inlined protocol member. No constructor in interfaces in C#.
Add 'initWithAnchor' to all subclasses of 'ARAnchor'
2018-07-24 20:40:15 -04:00
Miguel de Icaza d5248e6bb4 Merge remote-tracking branch 'remotes/origin/xcode10' into xcode10-network 2018-07-24 11:11:24 -04:00
Sebastien Pouliot ab57c4c53e
[macos][quartzcomposer] Update for beta 4 (#4493)
Apple re-added some constants that were dropped without any clue (and we
filed a rdar for it since it's a breaking change to remove them).

It's now clear that it's deprecated and why
`QC_GL_DEPRECATED(10_5, 10_14);`

so we can update the attribute (and fix the version).

note: also fix extra `;` in `CBUUIDValidRangeString` tests while removing
the special case added earlier (from beta 1)
2018-07-24 08:24:42 -04:00
Miguel de Icaza cd8e4a6f41 [Network, CoreFoundation] Fixes for the test suite 2018-07-23 16:20:19 -04:00
Manuel de la Pena 538ca047b7
[CoreMidi] Xcode 10 beta 3 update. (#4470)
Re-addition of the removed bindings after we fixed the structure.
2018-07-23 11:03:17 +02:00
Alex Soto db021b73d1
[Intents] Update bindings to Xcode 10 Beta 4 (#4482)
* [Intents] Update bindings to Xcode 10 Beta 4

* Fix attribute typo

* Fix availability attribute
2018-07-20 16:34:56 -05:00
Miguel de Icaza e862d68d7a [Network] Add BindingImplOptions.Optimizable 2018-07-20 17:00:57 -04:00
Miguel de Icaza a3ebda99ca [ApiTypoTest] add Explicit Congestion Notification and ECN Capable Transport acronyms
[Network] comment out code that seems to have been removed
[Security] Another type that is only created internally
2018-07-20 16:49:30 -04:00
Alex Soto 7126e06fdd
[Photos] Update bindings to Xcode 10 Beta 4 (#4484) 2018-07-20 14:46:24 -05:00
Alex Soto 19dac3b7b8
[UserNotifications] Update to Xcode 10 Beta 4 (#4481) 2018-07-20 14:44:09 -05:00
Alex Soto a3548598a6
[HealthKit] Update bindings to Xcode 10 Beta 4 (#4480) 2018-07-20 14:43:35 -05:00
Alex Soto 7d17c3e7e9
[FinderSync] Update to Xcode 10 Beta 4 (#4479) 2018-07-20 14:43:01 -05:00
Alex Soto 9f238a051a
[CoreMotion] Update to Xcode 10 Beta 4 (#4478) 2018-07-20 14:42:29 -05:00
Alex Soto 5a8ad7edf4
[CoreML] Update bindings to Xcode 10 Beta 4 (#4477) 2018-07-20 14:41:45 -05:00
Alex Soto 2b7aabae9f
[AVFAudio] Update binding to Xcode 10 Beta 4 (#4476) 2018-07-20 14:41:12 -05:00
Alex Soto 1fd13fffbe
[Contacts] Update bindings to Xcode 10 Beta 4 (#4475)
* [Contacts] Update bindings to Xcode 10 Beta 4

* Fix typo
2018-07-20 14:40:34 -05:00
Chris Hamons 1f3ec64601
Remove comment for 41367075 as header change verified as mistake by Apple (#4474) 2018-07-20 08:46:07 -05:00
Chris Hamons 045dda9d67
Initial OpenGL deprecation (#4458)
- Only on macOS
- Only a subset of the uses are deprecated, see radar://42257568
2018-07-20 08:45:47 -05:00
Alex Soto 2d1a314102
Merge pull request #4459 from dalexsoto/Xcode10-Beta4
Bump for Xcode 10 beta 4
2018-07-19 22:06:09 -05:00
Miguel de Icaza 7207e1ea8a [Security, Network] address issues found by automatic instance creation 2018-07-19 12:08:48 -04:00
Miguel de Icaza 8c53baa12e [generator, Network] Move towards actually supporting the generator to do some of the block-callback heavy lifting 2018-07-19 12:07:12 -04:00
Alex Soto 9bf520f067 Revert "[CoreMidi] Xcode 10 beta 3 update. (#4453)"
This reverts commit 53fdc017a8.

Unfortunately there is not enough info for the AOT compiler to handle
MidiCIDeviceIdentification struct and this is causing mtouch tests to fail
2018-07-19 10:00:42 -05:00
Manuel de la Pena 752083a53e
[CFNetwork] Xcode 10 beta 3 update. (#4454) 2018-07-19 14:06:34 +02:00
Alex Soto 95705d54ca [TVMLKit] Update bindings to Xcode 10 Beta 4 2018-07-18 22:46:09 -05:00
Alex Soto c19710269f Bump for Xcode 10 beta 4 2018-07-18 15:10:41 -05:00
Manuel de la Pena 53fdc017a8
[CoreMidi] Xcode 10 beta 3 update. (#4453) 2018-07-18 19:55:24 +02:00
Miguel de Icaza 7bfb265d0e [Network, Security] Typo fixes 2018-07-17 18:33:13 -04:00
Miguel de Icaza 5252b990c2 [CoreFoundation] DispatchIO, handle scenarios where the data being passed in the callback is null 2018-07-17 18:32:38 -04:00
Miguel de Icaza 00048eeb1f [Network] add convenience overload, and fix scenarios where remote end closes connection 2018-07-17 17:58:32 -04:00
Miguel de Icaza 953ece758b [Security] Fix P/Invoke signatures to reference SecurityLibrary instead of NetworkLibrary 2018-07-17 11:16:29 -04:00
miguel 3c3736e3a4 [CoreFondation] Introduce bindings for DispatchIO, add upcoming support for DispatchData on bindings API 2018-07-16 22:44:00 -04:00
Alex Soto e131be9e56
[PDFkit] Fix kPDFDestinationUnspecifiedValue availability (#4444)
This used to be a calculated macro and got promoted to a field
in macOS 10.13
2018-07-16 10:37:06 -05:00
Marek Safar 559ef82d59 Fixes pointer check logic in Deflater 2018-07-16 15:20:13 +02:00
Marek Safar 9935c1cf0d Fixes pointer check logic in Deflater 2018-07-15 11:17:54 +02:00
Marek Safar e20975b6bc Updates compression to work with the public span 2018-07-14 20:30:19 +02:00
Manuel de la Pena db62640c0e [PassKit] Added support for Xcode 10 up to beta 3. (#4423)
* [PassKit] Added support for Xcode 10 up to beta 3.

* Minor style changes.
2018-07-13 21:21:16 -05:00
Alex Soto 38bbffde76
[WebKit] Update bindings to Xcode 10 Beta 1, Nothing on beta 2 or 3 (#4443)
Allso adds UIKit UIWebView deprecations
2018-07-13 21:19:57 -05:00
Alex Soto e944b58206
[PDFKit] Update bindings to Xcode 10 Beta 1, 2 & 3 (#4439)
* [PDFKit] Update bindings to Xcode 10 Beta 1, 2 & 3

* Removes redundant availability attrib and fixes PDFKit library mapping case in xtro
2018-07-13 14:14:05 -05:00
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
Alex Soto 08a9bdcc18
Merge pull request #4411 from drailan/nshttpcookiestorage-notifications
Correcting NSHttpCookieStorage notifications mapping
2018-07-10 18:04:56 -05: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
iain f1c90e8f1a [Runtime] Emit the AssemblyRegistration event (#4414)
- A typo was preventing it from being emitted.
2018-07-10 11:28:40 -05: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
Denis Railan f23d292687 Cookie changed notification was mapped to accept policy, and vice versa - correcting the mapping. 2018-07-06 10:13:22 -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
Alex Soto 4f0bac5161
[Foundation] Adds missing [Static] attribute in NSDistributedNotificationCenter.DefaultCenter (#4383)
Fixes the mlaunch build:


	Xamarin.Hosting/SimulatorApplication.cs(183,51): error CS0120: An object reference is required for the non-static field, method, or property 'NSDistributedNotificationCenter.DefaultCenter'
	Xamarin.Hosting/SimulatorApplication.cs(231,51): error CS0120: An object reference is required for the non-static field, method, or property 'NSDistributedNotificationCenter.DefaultCenter'
	Xamarin.Hosting/Services.cs(1058,51): error CS0120: An object reference is required for the non-static field, method, or property 'NSDistributedNotificationCenter.DefaultCenter'
2018-07-03 12:47:05 -05: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
P3PPP c1f759ee56 Fix NSDistributedNotificationCenter.DefaultCenter return value
- As we can't change NSDistributedNotificationCenter.DefaultCenter return value outside of XAMCORE_4_0 add NSDistributedNotificationCenter.GetDefaultCenter () and point people to that for now.
- Fixed in XAMCORE_4_0 without the hack
2018-06-29 13:27:53 -07: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