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

4371 Коммитов

Автор SHA1 Сообщение Дата
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
Sebastien Pouliot 412f0938b5
[apidiff] Update XML definitions to 15.7 stable (#4365) 2018-06-28 21:30:35 -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
Chris Hamons 24f865655f Fix xtro-sharpie 10.13 vs 10.14 issue (#4353)
- On 10.14 we were seeing unclassified issues appear that were not
on 10.13 builds.
- It turns out each instance involved a framework with a different
capitalization (PDF -> Pdf, MIDI -> Midi, WLAN -> WLan) in our bindings
than the header.
- For some reason that still isn't 100% clear, we'd see both our binding
and some clang item and register by capitalizations in the list in Log.cs
- Then we'd process the first list, write it down to disk, process the
second list (which is empty) by deleting that file that we just wrote down
2018-06-28 15:29:26 -04:00
Rolf Bjarne Kvinge 38ac83a43f
[jenkins] Make it possible to run internal jenkins tests on pull requests. (#4334)
Add support for the 'run-internal-tests' label on pull requests to indicate
that the internal jenkins should run tests when that label is applied.

Also make it so that either the 'run-internal-tests' or the 'build-package'
label will actually make the internal jenkins execute (otherwise the 'run-
internal-tests' label would also require the 'build-package' label, which
wouldn't be very obvious/user-friendly).
2018-06-28 14:58:30 +02: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
Rolf Bjarne Kvinge 89df923fac
[xharness] Don't try to add additional information to xml logs. Fixes maccore#827. (#4349)
Don't try to inject additional information into xml logs, it seems we may
corrupt the xml file.

Fixes https://github.com/xamarin/maccore/issues/827.
2018-06-28 14:51:25 +02:00
Rolf Bjarne Kvinge 0d31720770
Use libc++ instead of stdlibc++ when compiling with Xcode 10. (#4348)
Xcode 10 doesn't ship with stdlibc++ anymore, we need to use libc++ instead.

This is documented in Xcode 10's release notes:

> Building with libstdc++ was deprecated with Xcode 8 and is not supported in Xcode 10 when targeting iOS. C++ projects must now migrate to libc++ and are recommended to set a deployment target of iOS 7 or later.

This fixes a problem when compiling certain system headers as Objective-C++.

References:

* https://twitter.com/jeremyhu/status/1003882060556062720
* https://stackoverflow.com/a/50734510/183422
* https://trello.com/c/PsHpNHq6/113-40824697-scenekith-doesnt-compile-as-objective-c
2018-06-28 14:49:22 +02: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
Rolf Bjarne Kvinge 3dcfdd47dd
[jenkins] Add support for completely skipping the public jenkins job using a label. (#4333)
This can be useful when working on the support for private jenkins, since many
of those changes can only be tested as a pull request, and they also tend to
include a lot of commits (because nothing can be tested locally).

So until whatever needs implementing for private jenkins is complete and
working, there's no need for the public bots to do anything for such pull
requests.
2018-06-26 15:50:54 +02:00
Sebastien Pouliot 695a547c57
[tvos][tvmlkit] Update up to beta 2 (#4325) 2018-06-26 08:47:51 -04:00
Matt Sylvia ba2757ccd6 Branching for xcode10 2018-06-25 18:26:19 -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 9a59588107
[introspection] Cache typo checks. (#4327)
This makes TypoTest finish in 62 seconds on Mojave instead of 411 seconds.
2018-06-25 10:48:57 +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 081655a45c
[tests] Fix introspection tests when running on Mojave (10.14) (#4318)
Mostly known iOS cases that are now part included in macOS.

Two failures remains until the AppKit update is merged, i.e.
both were _upgraded_ to conform to `NSSecureCoding`

```
[FAIL] NSBezierPath conforms to NSSecureCoding but does not implement INSSecureCoding
[FAIL] NSGradient conforms to NSSecureCoding but does not implement INSSecureCoding
```
2018-06-21 15:13:50 -04:00
Sebastien Pouliot 761bc085a8
[scenekit] Update for beta 2 (#4317) 2018-06-21 13:35:45 -04:00
Sebastien Pouliot 009f208eb8
[macos][quartzcomposer] Move existing (pre-Xcode10) API from .todo to .ignore (#4316) 2018-06-21 13:35:16 -04:00
Manuel de la Pena 94355148c9
[AVKit] Update for Xcode10-beta2 (#4314) 2018-06-21 16:23:36 +02:00
Rolf Bjarne Kvinge a6311765b5
Bump maccore to get mlaunch fix to make os_log write to stderr. (#4307)
Commit list for xamarin/maccore:

* xamarin/maccore@a49e4f2ca1 Bump maciostools to get logging improvement. (#864)

Diff: 01da406883...a49e4f2ca1
2018-06-21 10:15:05 +02:00
Rolf Bjarne Kvinge ec44e83abe
[introspection] CMMovementDisorderManager isn't usable for now. (#4306) 2018-06-21 10:14:14 +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