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

5217 Коммитов

Автор SHA1 Сообщение Дата
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 9d65e42f58 Fix testing 32-bit XM apps. Fixes maccore issue 884. (#4555)
* [jenkins] Only XM apps with variations are Classic/32-bit apps, so adjust ignore logic accordingly. Fixes maccore issue 884.

Fixes https://github.com/xamarin/maccore/issues/884.

* [mmp] Fix passing -stdlib=libc++ to clang.

* [tests] Fix 32-bit XM issues.

* [xharness] Add support for building 32-bit XM apps by using Xcode 9.4.

* [xharness] Since xharness can now build 32-bit mac apps, enable them by default.

* Remove debug code.

* Remove unused variable.
2018-08-03 17:06:23 -04:00
Rolf Bjarne Kvinge 5400e01178
[xtro] Make 'classify' faster by running it for each platform in parallel with eachother. (#4563) 2018-08-03 16:20:00 +02:00
Rolf Bjarne Kvinge 0ede8b07bc
[jenkins] Implement support for slack notifications. (#4369)
Implement support for slack notifications.

Notifications will only be sent when something fails, and unfortunately I wasn't able to make notifications ping due to https://github.com/jenkinsci/slack-plugin/issues/353.
2018-08-03 11:37:54 +02:00
Rolf Bjarne Kvinge 698441e4a2 Update xtro todos. 2018-08-03 10:38:24 +02: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
Vincent Dondain f3b5b81163 [arkit] Add ARAnchorCopyingCtorTest (#4551)
- Fixes https://github.com/xamarin/xamarin-macios/issues/4497.
2018-08-02 20:29:50 -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
Rolf Bjarne Kvinge 04b181f574 [tests] Adjust the MT5211 test according to modified ld output. Fixes maccore issue 897. (#4557)
Fixes https://github.com/xamarin/maccore/issues/897.
2018-08-02 15:42:17 -04:00
Chris Hamons 9e3c69a7f5
Add soft deprecations from Foundation beta 5 on macOS (#4548) 2018-08-02 11:06:28 -05:00
Rolf Bjarne Kvinge bb631d36bd Update xtro definitions. 2018-08-02 17:16:00 +02: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
Chris Hamons 42bdecda4d Ignore instead of todo CoreWLand bindings uncovered by 24f865655f (#4552) 2018-08-02 09:16:48 -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 fc561b247c [msbuild] Fix parsing of json parser errors to handle trailing periods in the error message.
Fixes this test:

    1) Test Failure : Xamarin.iOS.Tasks.Bug60536.TestACToolTaskCatchesJsonException
         ColumnNumber
      Expected: 2
      But was:  0
2018-08-02 11:21:59 +02:00
Rolf Bjarne Kvinge 9946fbd4dd [tests] Adjust the MT0137 test for mcs change in behavior.
Starting with mono 5.16 mcs will now add assembly references when the assembly
is only used in attributes (this was already the case for csc in both 5.14 and
5.16, so it seems to be a compatibility change).

Adjust the MT0137 test accordingly.
2018-08-02 11:11:02 +02:00
Rolf Bjarne Kvinge 8040f2351d introspection: Adjust CMAttachmentTest for new CoreFoundation types. 2018-08-02 10:23:24 +02: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
Rolf Bjarne Kvinge bdb3ff9049 Update xtro definitions. 2018-08-02 09:59:08 +02:00
Rolf Bjarne Kvinge 0181606fce
[jenkins] Skip any executing builds on internal jenkins when new builds are scheduled for pull requests. (#4518) 2018-08-02 09:53:46 +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 7b4654ba29 Update xtro todos 2018-08-01 17:11:07 +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