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

3529 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot bc80460409
[imageio] Update for xcode 9.3 beta 2 (#3411)
Two constants with `__IPHONE_NA` were changed to `__IPHONE_11_3`.

Also decorate with [TV] and [Watch] attributes since they are implicit,
i.e. not in the headers but available in tvOS 11.3+ and WatchOS 4.3+
and, without our attributes, would seems to have been available much
earlier
2018-02-07 21:35:56 -05:00
Rolf Bjarne Kvinge 337335a5dd
[xharness] Run xtro tests when Make.config changes. (#3408) 2018-02-07 22:09:06 +01:00
Alex Soto 5bf7f0c542
[SceneKit] Adds NullAllowed to ISCNSceneRenderer.OverlayScene (#3410) (#3423)
Fixes xamarin/xamarin-macios#3392

It seems swift has this property listed as an optional[0] and
an Apple sample[1] sets this to null so `ISCNSceneRenderer.OverlayScene`
needs to have `[NullAllowed]` even if ObjC headers do not have
nullability information.

[0]: https://developer.apple.com/documentation/scenekit/scnscenerenderer/1524051-overlayskscene
[1]: https://github.com/xamarin/xamarin-macios/issues/3392
2018-02-07 15:02:30 -06:00
Vincent Dondain 60a17f1c11 Bump Xcode to 9.3 beta 2 (#3405) 2018-02-07 04:44:58 -05:00
Chris Hamons 46382d86b8
[ImageIO] Update to Xcode 9.3 Beta 1 (#3339) 2018-02-06 11:51:06 -06:00
Chris Hamons 418f1a9590
[VideoToolbox] Update to Xcode 9.3 Beta 1 (#3313) 2018-01-31 08:51:50 -05:00
Vincent Dondain 4c25aa94bd
[arkit] Update for Xcode 9.3 beta 1 (#3343)
- Obsolete `ARFaceAnchor`'s default constructor because it's marked as unavailable.
- Obsolete `CreateFaceGeometry` in `ARSCNFaceGeometry` in favor of `Create` (same as `ARSCNPlaneGeometry`).
2018-01-30 17:09:16 -05:00
Manuel de la Pena a49b01143f
[HomeKit] Update for Xcode 9.3 beta 1. (#3322)
* [HomeKit] Update for Xcode 9.3 beta 1.
2018-01-30 11:49:48 +01:00
Manuel de la Pena 320ae723d3
[CloudKit] Xcode 9.3 beta 1 changes. (#3321) 2018-01-29 18:10:45 +01:00
Vincent Dondain 5cc720ff37
[backport][arkit] Fix 'Vertices', 'TextureCoordinates' and 'TriangleIndices' in 'ARFaceGeometry' (#3090) (#3342)
- Fixes bug #61056: [ARKit] TriangleIndices, Vertices and TextureCoordinates should be respectively short [], Vector3 [] and Vector2 []
(https://bugzilla.xamarin.com/show_bug.cgi?id=61056)
- Obsolete `short TriangleIndices`.
- Obsolete `Vector3 Vertices`.
- Obsolete `Vector2 TextureCoordinates`.
- Introduced new `short [] GetTriangleIndices ()`.
- Introduced new `Vector3 [] GetVertices ()`.
- Introduced new `Vector2 [] GetTextureCoordinates ()`.
2018-01-29 11:07:52 -05:00
Rolf Bjarne Kvinge 7a1eab513c
[xharness] Call VerifyRun for each subtest in the aggregated simulator test run. Fixes maccore #623. (#3331)
We must call VerifyRun for each subtest in the aggregated simulator test run
in order to mark those subtests as failed if there's no available device.

Fixes https://github.com/xamarin/maccore/issues/623.
2018-01-29 07:42:12 +01:00
Alex Soto a6204f2aa5
[Security] Update to Xcode 9.3 Beta 1 (#3344)
* [Security] Update to Xcode 9.3 Beta 1

Api diff:
- https://github.com/xamarin/xamarin-macios/wiki/Security-iOS-xcode9.3-beta1
- https://github.com/xamarin/xamarin-macios/wiki/Security-tvOS-xcode9.3-beta1
- https://github.com/xamarin/xamarin-macios/wiki/Security-watchOS-xcode9.3-beta1
- https://github.com/xamarin/xamarin-macios/wiki/Security-macOS-xcode9.3-beta1

* Update the xtro files

* Add SecCopyErrorMessageString binding
2018-01-27 16:26:43 -06:00
Chris Hamons 72d91566de [WKWebKit] Update to Xcode 9.3 Beta 1 (#3312)
* [WKWebKit] Update to Xcode 9.3 Beta 1

* Add onlyOn64 on new APIs
2018-01-27 13:38:42 -06:00
Alex Soto 2b866bc1d6
[MediaPlayer] Update bindings to Xcode 9.3 Beta 1 (#3330)
Diff files:
* https://github.com/xamarin/xamarin-macios/wiki/MediaPlayer-iOS-xcode9.3-beta1
* https://github.com/xamarin/xamarin-macios/wiki/MediaPlayer-tvOS-xcode9.3-beta1
2018-01-27 12:51:44 -06:00
Alex Soto 4546377b6f
[iAd] Update bindings to Xcode 9.3 Beta 1 (#3326)
Diff files:
* https://github.com/xamarin/xamarin-macios/wiki/iAd-iOS-xcode9.3-beta1
2018-01-27 12:49:57 -06:00
Alex Soto 805fcf2d49
[VideoSubscriberAccount] Update bindings to Xcode 9.3 Beta 1 (#3348) 2018-01-27 10:51:56 -06:00
Alex Soto 371decb6da
[SafariServices] Update to Xcode 9.3 Beta 1 (#3347)
* [SafariServices] Update to Xcode 9.3 Beta 1

Api diff:
- https://github.com/xamarin/xamarin-macios/wiki/SafariServices-macOS-xcode9.3-beta1

* Add onlyOn64:true
2018-01-27 10:50:47 -06:00
Alex Soto 9220544faa
[PDFKit] Update bindings to Xcode 9.3 Beta 1 (#3345) 2018-01-27 10:48:49 -06:00
Alex Soto d07afb5fbc
[PassKit] Update bindings to Xcode 9.3 Beta 1 (#3340)
* [PassKit] Update bindings to Xcode 9.3 Beta 1

Diff files:
- https://github.com/xamarin/xamarin-macios/wiki/PassKit-iOS-xcode9.3-beta1
- https://github.com/xamarin/xamarin-macios/wiki/PassKit-watchOS-xcode9.3-beta1

* Adds DisableDefaultCtor to PKTransitPassProperties and PKSuicaPassProperties

Both `PKTransitPassProperties` and `PKSuicaPassProperties` have getter only props and a factory method.

* Fix intro tests
2018-01-27 10:46:16 -06:00
Sebastien Pouliot 98a1928144
[xharness] Backport the xharness changes needed to produce html reports by xtro on bots (#3328)
Partial backport/adaptation of
https://github.com/xamarin/xamarin-macios/commit/8d854a0f3d
2018-01-26 21:40:15 -05:00
Sebastien Pouliot 914077ce62
Update API diff references from xcode9.2 (#3327)
That's 15.5 SR5 for XI but it's not for XM. However we want to
track the changes being made in this branch (not to the previous
XM release) so that's fine
2018-01-26 14:30:20 -05:00
Sebastien Pouliot fdc70c6526
[tests] Adjust monotouch-test so it does not crash/fail on simulator and devices running 11.3 (#3319)
* Only skip broken tests when using Xcode9.3 SDK
2018-01-26 11:17:46 -05:00
Vincent Dondain 5ebc4b28c7 [avfoundation] Fix AVAudioUnitComponentManager default .ctor crash (#3314)
It looks like this should not have been bound since there's a singleton-like static property to use the type.
Keeping binary compatibility.

- Fixes github issue #3303: AVAudioUnitComponentManager default .ctor can crash on macOS 10.13.3
(https://github.com/xamarin/xamarin-macios/issues/3303)
2018-01-25 23:10:28 -05:00
Vincent Dondain da89edb3f6 [harness] Update mlaunch_url link (w/Xcode 9.3 fix) (#3317) 2018-01-25 22:46:52 -05:00
Vincent Dondain 263e714f5c [xtro] Fix .todo that were addressed during Xcode 9.3 beta 1 bump (#3315) 2018-01-25 19:28:47 -05:00
Alex Soto 4a40d12a6f
[CoreImage] Update to Xcode 9.3 Beta 1 (#3311) 2018-01-25 15:50:51 -06:00
Alex Soto b7f6f57336
[AVFoundation] Update to Xcode 9.3 Beta 1 (#3305)
* [AVFoundation] Update to Xcode 9.3 Beta 1

* Fix sharpie AVFoundation TODO
2018-01-25 13:45:35 -06:00
Alex Soto 5683c91a14
[AVKit] Update to Xcode 9.3 Beta 1 (#3310)
Diff files:
- https://github.com/xamarin/xamarin-macios/wiki/AVKit-tvOS-xcode9.3-beta1
2018-01-25 13:44:07 -06:00
Alex Soto c9c0457dcf
[AudioToolbox] Update to Xcode 9.3 Beta 1 (#3304) 2018-01-25 10:11:42 -06:00
Sebastien Pouliot af3e249cb7
[tests][xtro] Copy xtro from master + update data files to show appropriate todo for beta 1 (#3298) 2018-01-25 09:12:41 -05:00
Sebastien Pouliot d6dcbbf37f
[tests][macos] RoundtripRSAMinPKCS1 public/GetPublicKey should be false on 10.13 (#3116) (#3297) 2018-01-25 09:01:32 -05:00
Vincent Dondain 04f4a4bbea Bump Xcode and versions for 9.3 beta 1 (#3296)
- Bump maccore for mlaunch fix.
- Add new Xcode 9.3 protocol conformances.
2018-01-25 00:20:11 -05:00
Sebastien Pouliot db807ec992
[XI] Bump mono for 15.5 SR5 (#3194)
Commit list for mono/mono:

* mono/mono@6fcdbac844 [System]: Ensure WebConnection calls nstream.EndWrite()

Diff: b293f45302...6fcdbac844
2018-01-10 11:28:55 -05:00
Sebastien Pouliot f70a13480f
Merge d15-5 into xcode9.2 (for SR3) (#3111)
* Updated reference to mono/mono@950ea65 (#2975)

* [macos] Fix AVCaptureDepthDataOutput on HS and 10.13 typo (#2977)

* Bump mono to get the conv.u/roslyn fix. Fixes #60625 (#3100)

https://github.com/mono/mono/pull/6242
2017-12-18 13:41:19 -05:00
Sebastien Pouliot 6857dfccf2
Merge pull request #3081 from VincentDondain/storekit-xc92-final
Bump to xcode 9.2 final
2017-12-04 19:48:44 -05:00
Vincent Dondain 9568331b34 [storekit] Update for Xcode 9.2 final 2017-12-04 17:13:27 -05:00
Vincent Dondain dfd10bd5b7 Bump xcode to 9.2 final 2017-12-04 17:13:27 -05:00
Chris Hamons 4c966e3e71 Fix macOS 10.13 test failures (#3066) 2017-12-03 19:45:28 -05:00
Rolf Bjarne Kvinge 113e518d9d
[monotouch-test] Update permission checks. (#3071)
Apparently iOS 11 shows system dialogs for more API, so sprinkle permission
checks in more places.
2017-12-01 17:46:47 +01:00
Chris Hamons b87b3ba878
Fix test failures on 10.13 (#3065) (#3072) 2017-12-01 06:40:56 -06:00
Sebastien Pouliot 2bfbc8a834
[tests] Fix mac-apitest on High-Sierra (#3064)
MetalPerformanceShadersLibrary is new in macOS 10.13 and only available
for 64bits.

from https://wrench.internalx.com/Wrench/WebServices/Download.aspx?workfile_id=19778531

    Tests run: 248, Passed: 238, Errors: 0, Failures: 1, Inconclusive: 0
      Not run: 9, Invalid: 0, Ignored: 9, Skipped: 0
    Elapsed time: 00:00:11.3800000

    Errors and Failures:

    1) ExpectedLibrariesAreLoaded (Xamarin.Mac.Tests.EveryFrameworkSmokeTests.ExpectedLibrariesAreLoaded)
       MetalPerformanceShadersLibrary (/System/Library/Frameworks/MetalPerformanceShaders.framework/MetalPerformanceShaders) failed to load but this was not expected
      at Xamarin.Mac.Tests.EveryFrameworkSmokeTests.ExpectedLibrariesAreLoaded () [0x000c5] in /Users/builder/data/lanes/5665/74d2dcad/source/xamarin-macios/tests/apitest/src/EveryFrameworkSmokeTest.cs:99
      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 /Library/Frameworks/Xamarin.Mac.framework/Versions/4.1.1.45/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
2017-11-29 14:16:27 -05:00
Rolf Bjarne Kvinge 7fd2b67759
[xharness] Make it possible to select from the command line whether tests requiring system permissions should be executed or not. (#3053) (#3062) 2017-11-29 15:57:15 +01:00
Alex Soto 74d2dcadfb
[tests] Fix introspection tests for macOS (#3054)
* [tests] Fix introspection tests for macOS

It seems that apple forgot to ship SSLSetALPNProtocols and SSLCopyALPNProtocols in macOS
there are already radars filled about this https://bugs.swift.org/browse/SR-6131
So this test will fail once Apple fixes this issue. when this happens we need to do two things, reenable
the API and reenable the [Get|Set]AlpnProtocols tests, the one insides 'StreamDefaults' for the mac.

* Implement feedback
2017-11-28 17:27:20 -06:00
Rolf Bjarne Kvinge f21f48b727 [tests] Enable xammac-tests on wrench. (#3056)
Wrench runs `wrench-mac-xammac_tests`, but since there were no such target,
make would execute the `wrench-%` target, which is disabled when iOS is
disabled.

Thus this strange behavior would be seen on wrench for xammac tests when iOS
is disabled:

    /Applications/Xcode92-beta2.app/Contents/Developer/usr/bin/make -C /Users/builder/data/lanes/5665/d2b1b757/source/xamarin-macios/tests wrench-mac-xammac_tests
    git clean -xfdq
    iOS tests have been disabled [wrench-mac-xammac_tests]

By creating the `wrench-mac-xammac_tests` target, we'll end up doing the right
thing instead.
2017-11-28 16:10:56 -05:00
Timothy Risi 87f9e23989 [MetalPerformanceShaders] Xcode 9 bindings (#3005)
* [MetalPerformanceShaders] Activate bindings for Xamarin.Mac and add n… (#2816)

* [MetalPerformaceShaders] Several MPSCnnKernel properties should be readonly (#2938)

The subclasses versions of the properties need Override, cannot be removed since it would break visibility for iOS 10

* Remove some [Model] attributes that sholdn't be needed

* Fix introspection test crashes

* More introspection fixes

* NN does not need to be PascalCased

Remove unneeded Models and BaseTypes

* PR Whitespace fixes and renamings

* Paste fail

* More fixes from PR comments

* [MPS] Adds new intro test, fixes ctors and xtro output

* Removes duplicated availability attributes.
* Removes obsoleted API from macOS since mps is new to it.
* Fixes xtro output.
* Adds missing API.
* Fixes parameterless ctors, some of them do not really work, found
  by our new intro test and disabled the one that seem to not make
  sense due to the presence of DesignatedInitializers.
* Fixes a selector typo.
* Adds new `ShouldNotExposeDefaultCtorTest` to intro.

ShouldNotExposeDefaultCtorTest
==============================

This test checks for types with a parameterless ctor that are subclasses
of `NSObject` and then cheks if the BaseType of said objects also expose
a parameterless ctor (all in .NET land), if this is not the case it reports
them and so they can manually audited. Also this test has the ability to
print alloc/init ObjC code by setting `genObjCTestCode` to `true` so you can
take this code into an Xcode project and easily tests the ctors.

It seems that xtro (sharpie) does not have a complete picture of when a ctor
must be exposed hence the hability to generate this code and manually test.

Right now this test is just enabled for MPS since it is the scope of this PR.
In the future it should be enabled for all other frameworks and the output be
manually audited.

* [MPS] Fixes premature collection possible in bindings (bug 59547) and implements feedback.

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

* Fixes premature collection possible in bindings im MPSKernel.cs
* Fixes MPSImageHistogramTest from using deprecated API.
* Removes renamed selectors and typos from ApiSelectorTest and ApiTypoTest.

* [MPS] Reenable Copy API and DesignatedInitializer xtro feedback

* Implement more feedback

* More feedback
2017-11-28 14:29:05 -06:00
Alex Soto d2b1b7578a
[HealthKit] Fix availability metadata on HKWorkoutRoute in order to fix intro in i 2017-11-27 16:46:20 -06:00
Sebastien Pouliot 4ad96b03fa
[security] Add bindings for Xcode 9 (#3043)
Also covers the missing enum value (added in xcode9) from
https://bugzilla.xamarin.com/show_bug.cgi?id=59278
2017-11-26 09:53:04 -05:00
Sebastien Pouliot f0915df335
[coreimage] Fix the pointer used in CIVector(nfloat[]) until the native call completes (#3038)
However there's a small window between the time we get a pointer
and the call to the native selector where the memory is not fixed.
During this time the GC can move the memory resulting in hard to
diagnose crashes.

Note: `initWithValues:count:` copies the provided memory so what
happens afterward is not an issue.
2017-11-24 09:55:11 -05:00
Timothy Risi da591eae51 [mac-introspection] Use en-US for ApiTypoTest, fix typo failures (#3018)
Also disables typo check for XM classic because:

`We have 823 typos!`

I'm not sure why but switching to the new API, which specify `en_US`,
seems to report more errors.

Unified API are already fixed and I don't see value in adding _ignore_
entries for classic (we don't add classic-only API anyway) so this
just makes then test built/executed for XAMCORE_2_0
2017-11-22 20:52:10 -05:00
Sebastien Pouliot a2d9c80cb5
[homekit] Expose weakly-typed API since the constants are extensible. Fixed #60303 (#3025)
This is a case of NSString enum extensibility - even if this framework does not use the usual `NS_EXTENSIBLE_STRING_ENUM` macro (which is recent and have not been applied for all framework / headers).

Minimally we need to provide alternative, weakly typed, `NSString`-based API wherever the (extensible) enums types are used. Not the best API (even if we can minimize it's use with `[EditorBrowsable (EditorBrowsableState.Advanced)]`) but C# enums can't be extended this way.

Also, even if less urgent, we need to make the enum-generated helper aware of the extensibility so they do not throw, making it easier to mix strongly and weakly typed code (instead of choosing one over the other).

Taking the first step for `xcode92` with the enum-backed constants in HomeKit, i.e.
* HMAccessoryCategoryType
* HMCharacteristicType
* HMServiceType
* HMSignificantEvent

Reference
https://bugzilla.xamarin.com/show_bug.cgi?id=60303

* [tests] WeakSignificantEvent is a weakly typed alternative (not a weak argument semantic)
2017-11-21 20:50:33 -05:00