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

1051 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot 6d5beb61cb Merge branch 'cycle8' into xcode8 2016-08-26 08:19:33 -04:00
Sebastien Pouliot 2bcd40054f [linker] Ensure we do not devirtualize methods that needs to be called from a base class to satisfy an interface. Fixes #34308 (#675)
Update unit tests to catch this case and be more precise in others.

reference:
https://bugzilla.xamarin.com/show_bug.cgi?id=43408
2016-08-26 08:17:01 -04:00
Rolf Bjarne Kvinge a3a8733d30 Bump [watch-]mono to get fixes for #43357 and #43216. (#679) 2016-08-26 12:55:37 +02:00
Rolf Bjarne Kvinge cd96e255e4 [CoreAnimation] Re-mark CALayerDelegate as informal to fix #43585. (#677)
CALayerDelegate was an informal protocol in earlier versions
of iOS, but elevated to protocol in iOS 10 [1]. Unfortunately this causes
problems with the static registrar, since it needs to know if a protocol
is informal or not to generate the right code, but there's no way
with the current set of attributes we have to express the fact that
CALayerDelegate was an informal protocol until iOS 10, so the static
registrar don't know to treat it correctly when building with earlier
SDKs.

This is the error that results when using CALayerDelegate with an earlier SDK:

    /work/monotouch-samples/ZoomingPdfViewer/obj/iPhone/Debug/mtouch-cache/registrar.m:1336:51: error: no type or protocol named 'CALayerDelegate'
    @interface ZoomingPdfViewer_TiledPdfView : UIView<CALayerDelegate> {
                                                      ^
So we temporarily revert the change to make CALayerDelegate formal,
until we have enough metadata for the static registrar to do the
right thing (which is filed as bug #43780 [2])

[1] https://github.com/xamarin/xamarin-macios/commit/0178aa04
[2] https://bugzilla.xamarin.com/show_bug.cgi?id=43780

https://bugzilla.xamarin.com/show_bug.cgi?id=43585
2016-08-26 11:38:05 +02:00
Jeffrey Stedfast 73a1d74cab Cycle8 codesign simulator (#674)
* [msbuild] Always codesign iOS frameworks (#642)

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=43264

* [msbuild] Always codesign *.dylibs, even for Simulator builds (#672)

Another fix for https://bugzilla.xamarin.com/show_bug.cgi?id=43264
2016-08-25 18:22:20 -04:00
Sebastien Pouliot 144d96999b Merge branch 'cycle8' into xcode8 2016-08-25 14:08:23 -04:00
Chris Hamons 3ad2491006 Fixup C8 static registrar to work w\ Xcode 8 (#647)
* Fix static registrar on 10.12 by teaching it that QTKit is dead (#472)
* Rip out all 64-bit registration in 32-bit XM.
2016-08-25 14:03:43 -04:00
Sebastien Pouliot df32a6663b [watchos] Ena[scenekit]ble the last missing API from SceneKit now that AVFoundation is enabled in watchOS (#668) 2016-08-25 14:02:20 -04:00
Chris Hamons 82882b70f7 [XM] Add CoreLocation APIs that exist on macOS (#671)
- https://bugzilla.xamarin.com/show_bug.cgi?id=43593
2016-08-25 13:46:55 -04:00
Sebastien Pouliot 0656de444b [watchos][spritekit] Enable the last missing API from SpriteKit now that AVFoundation is enabled in watchOS (#669) 2016-08-25 13:02:26 -04:00
Jeffrey Stedfast 791423f4f1 [msbuild] Add the Insights API Key to the iOS archive manifest (#656)
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=43489
2016-08-25 11:45:55 -04:00
Sebastien Pouliot afd50b2bef [watchos][avfoundation] Enable AVFoundation in watchOS (#659) 2016-08-25 11:39:48 -04:00
Rolf Bjarne Kvinge 1d4019e966 [xharness] Don't run into an infinite loop if failing to run sqlite3. (#666) 2016-08-25 11:08:40 -04:00
Rolf Bjarne Kvinge d99d8c8cbe Fix ObjC encoding of block signatures. Fixes #43592. (#662)
The P/Invoke callback method that's called by native code
has a simpler function signature than what the user delegate
has.

Example P/Invoke callback signature:

    static unsafe void Invoke (IntPtr block, IntPtr obj)

which ends up calling this delegate:

    System.Action<NSDictionary>

The NSDictionary parameter has been simplifed to just IntPtr.

The problem is that we need to encode the block signature according
to the signature of the user delegate (Apple uses the signature
in some cases, and fails/aborts if the signature doesn't match
what the code expects).

So add more metadata to make it possible to find the signature
of the user delegate at runtime.

The generator generates code like this:

    block_scheduledCompletion.SetupBlock (Trampolines.SDActionArity1V2.Handler, scheduledCompletion);

where SDActionArity1V2.Handler is defined as this:

    static internal readonly DActionArity1V2 Handler = Invoke;

this means we can get the type of `Trampolines.SDActionArity1V2.Handler` at runtime
(which would be `DActionArity1V2` in this case), so put a new attribute (`UserDelegateTypeAttribute`)
at that type:

    [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
    [UserDelegateType (typeof (global::System.Action<NSDictionary>))]
    internal delegate void DActionArity1V2 (IntPtr block, IntPtr obj);

Then at runtime we check if the target delegate's type has this attribute,
and then we use the type specified by this new attribute instead when
computing the ObjC signature of the block.

https://bugzilla.xamarin.com/show_bug.cgi?id=43592
2016-08-25 11:08:22 -04:00
Sebastien Pouliot c50002ce7e Merge branch 'cycle8' into xcode8 2016-08-25 09:27:13 -04:00
Rolf Bjarne Kvinge 451781a98f [xharness] Don't run classic tests on wrench. (#661) 2016-08-25 13:11:51 +02:00
Alexander Köplinger 1f749413af [C8] Bump mono/watch-mono to latest mono-4.6.0-branch (#658)
Brings in the latest fixes.
2016-08-24 20:45:32 -04:00
Sebastien Pouliot e9ceab6c40 Bump version of XI and XM after beta 2 (C8) / fifth preview release 2016-08-24 17:21:22 -04:00
Alex Soto 901d960c1d Merge pull request #655 from dalexsoto/intents
[Intents] Fixes bug 43205 - SiriKit API Inconsistencies
2016-08-24 11:36:16 -05:00
Alex Soto 9354e2044e [Intents] Fixes bug 43205 - SiriKit API Inconsistencies
https://bugzilla.xamarin.com/show_bug.cgi?id=43205

Per documentation[1] INIntentResolutionResult is an abstract class
and now we honor that, also we now provide the right return type
on each of the properties (NeedsValue, NotRequired and Unsupported)
in all subclasses of INIntentResolutionResult.

Unit tests added for all INIntentResolutionResult subclasses.

[1]: https://developer.apple.com/reference/intents/inintentresolutionresult?language=objc
2016-08-24 10:14:27 -05:00
Marek Safar ef0f41dab8 Merge pull request #652 from marek-safar/cycle8-updates
Bump mono for more netstandard updates
2016-08-24 11:26:15 +02:00
Marek Safar 3ea0cb8838 Bump mono for more netstandard updates 2016-08-24 10:07:41 +02:00
Alex Soto d0647bc0da [AudioUnit/AudioToolbox] Updated to Xcode8b1 to Xcode8b6 (#651) 2016-08-23 20:29:43 -04:00
Sebastien Pouliot b4739dbedd [registrar] Teach the dynamic registrar to skip GKBasePlayer before iOS 10. Fixes #43654 (#650)
GKBasePlayer is new in iOS 10 but it's part of an existing hierarchy so
it must be ignore before (iOS 10).

https://bugzilla.xamarin.com/show_bug.cgi?id=43654
2016-08-23 20:21:33 -04:00
Daniel Cazzulino a744c7ad51 [msbuild] Add forward compatibility with symlinks support (#649)
See https://github.com/Microsoft/msbuild/issues/928
2016-08-23 15:35:57 -04:00
Sebastien Pouliot eb8d0be0a4 [security] Add new API (up to beta 6) and unit tests (#646)
A problem, that exists with the current API, is that several constants
are hidden but many are needed in some dictionaries - and not all of
them can be turned into _classic_ StrongDictionary.

This initial PR does not solve all the (old) problems, but it does offer
some useful overloads that makes the API usable for basic usages and
expose the NSDictionary-based API.
2016-08-23 11:36:39 -04:00
Sebastien Pouliot f63ecd7a21 [uikit] Re-expose 'defaultFormat' in UIGraphicsRendererFormat subclasses since it returns a 'instancetype'. Fixes #43640 (#643)
https://bugzilla.xamarin.com/show_bug.cgi?id=43640
2016-08-23 10:53:57 -04:00
Vincent Dondain ba196a8b41 [modelio] Update for iOS 10 beta 2 (#644) 2016-08-23 10:27:32 -04:00
Manuel de la Pena ba37aa4419 [AVFoundation] Add bindings for Xcode 8. (#635) 2016-08-23 08:19:54 -04:00
Sebastien Pouliot 43af6be7d4 Merge branch 'cycle8' into xcode8 2016-08-22 17:36:26 -04:00
Sebastien Pouliot 4a3d3ac96f Bump [watch-]mono to the latest 4.6/c8 revisions (#641) 2016-08-22 15:54:34 -04:00
Sebastien Pouliot 42ecb6ffbd [generator] Move availability attributes on enums/fields where our tests will see them (#640)
Needed for *upcoming* Security.framework bindings and also needed
to fix an error error reported on UIKit [1]

[1] https://github.com/xamarin/xamarin-macios/pull/636
2016-08-22 11:12:22 -04:00
Sebastien Pouliot 4f53b7e51f [tests] Fix NetworkReachabilityTest/Loopback difference on iOS/tvOS 10+. Fixes 42542 (#638)
https://bugzilla.xamarin.com/show_bug.cgi?id=42542
2016-08-22 11:03:26 -04:00
Alex Soto 16d5d68503 [UIKit] Updated UIKit to xcode8-beta6 (#636)
Expected extrospection test failures:

- ios.unclassified:!missing-field! UIApplicationInvalidInterfaceOrientationException not bound

Generator bugs:

- HACK: We have a generator bug(?) that won't allow overloads (AmbiguousMatchException) in protocols

tvOS/iOS 9 Introspection Expected failures (UIKit Only):

- [FAIL] UIKit.UIContentSizeCategoryExtensions.UIContentSizeCategoryUnspecified
Generated enum extensions do not honor availability on NSString properties

API Diff, expected changes (verified and correct):

Type Changed: UIKit.UIContentSizeCategory

Modified fields:

	ExtraExtraExtraLarge = 6 7
	ExtraExtraLarge = 5 6
	ExtraLarge = 4 5
	ExtraSmall = 0 1
	Large = 3 4
	Medium = 2 3
	Small = 1 2

Added values:

	AccessibilityExtraExtraExtraLarge = 12,
	AccessibilityExtraExtraLarge = 11,
	AccessibilityExtraLarge = 10,
	AccessibilityLarge = 9,
	AccessibilityMedium = 8,
	Unspecified = 0,
2016-08-22 08:44:43 -04:00
Sebastien Pouliot 9f2df4b2f3 [videotoolbox] DestinationICCProfile was already in XM so we can't fix the case (#637)
* [videotoolbox] Fix casing for DestinationICCProfile field

OTOH it was not fully exposed in the strong dictionary (fixed)
2016-08-21 18:51:02 -04:00
Vincent Dondain 5999d9cc4e [modelio] Update for iOS 10 beta 1 (#606) 2016-08-19 13:55:59 -04:00
Sebastien Pouliot b611414ef0 [tests] Add NSCameraUsageDescription to monotouch-test to avoid crash in AVFoundation. Fixes bug #43517 (#634) 2016-08-19 11:18:58 -04:00
Sebastien Pouliot c7abd28f2c [foundation] Fix NSDimension.BaseUnit on subclasses. Fixes #43444 (#623)
This is a static selector that needs to be overridden, which is not the
usual pattern in C#. We re-define it using [New] on subclasses.

Unit tests added for all NSDimension subclasses.

reference:
https://bugzilla.xamarin.com/show_bug.cgi?id=43444
2016-08-19 08:27:23 -05:00
Sebastien Pouliot c0d1ec3b7b [tests] Fix intro failures reported from iOS 6.1 and 7.1 devices (#629)
Also fix warnings printed while executing:

> CoreText performance note: Client called CTFontCreateWithName() using name "Arial" and got font with PostScript name "ArialMT". For best performance, only use PostScript names when calling this API.
> CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.
2016-08-18 23:02:42 -04:00
Sebastien Pouliot edca0f3306 [foundation] Rename NSUnitMass.PoundsMass to NSUnitMass.Pounds. Fixes #43526 (#631) 2016-08-18 23:01:45 -04:00
Sebastien Pouliot a0fd00c083 [tests] Fix monotouch-test failures when executed on iOS 9.x. Fixes bug #43520 (#632) 2016-08-18 22:59:26 -04:00
Sebastien Pouliot df7f604aad [tests] Update xtro data files to get more accurate results (#630) 2016-08-18 22:02:42 -04:00
Chris Hamons e4e02bfd1c Merge branch 'cycle8' into xcode8 2016-08-18 14:52:43 -05:00
Chris Hamons 5c7670121a Bump maccore 2016-08-18 14:27:27 -05:00
Chris Hamons 6318b79211 Bump maccore 2016-08-18 14:24:36 -05:00
Jason Imison 39b13fecba Fix fsharp targets to detect 'F#' language. Fixes #43356 (#626) 2016-08-18 14:11:02 -04:00
Sebastien Pouliot e038b4c8cd [healthkit] Remove HKDocumentType from watchOS builds (#624)
It's marked as iOS only

> HK_CLASS_AVAILABLE_IOS_ONLY(10_0)

even if some other API, marked as available on watchOS 3, are exposing
the type. Those API are now removed from the watch platform assembly.

From Apple:

    You want to use this API on watchOS that we explicitly decided to restrict this to iOS only.

    Thank you for your feedback. Engineering has determined that this issue behaves as intended.

reference:
* radar #27865614
* https://trello.com/c/4soJeYEr
2016-08-18 13:54:58 -04:00
Manuel de la Pena a5f6564aaa [AVFoundation] Update bindings for Xcode 8. (#598)
[AVFoundation] Update bindings for Xcode 8.
2016-08-18 13:17:17 +02:00
Chris Hamons b54bcd6ae0 [XM] Fix xtro-sharpie issues (#620) 2016-08-17 20:11:05 -04:00
Sebastien Pouliot 241434a3a4 Bump versions after 4th preview 2016-08-17 15:51:26 -04:00