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

5217 Коммитов

Автор SHA1 Сообщение Дата
Alex Soto 4f3caa69ad Merge pull request #203 from dalexsoto/speech
[Speech] Add Speech Framework from Xcode 8 Beta 1
2016-06-18 14:30:28 -05:00
Alex Soto 29b47a8c7d [Speech] Add Speech Framework from Xcode 8 Beta 1
* Added Speech Framework bindings
* Ensured introspection test pass
* Ensured we link against Speech framework
* FIXME: SFSpeechRecordingRecognitionRequest is not in the public api
  filled radar://26799291 https://trello.com/c/s6s6YKua
2016-06-18 14:22:06 -05:00
Sebastien Pouliot 7c279d9f9f [tests][introspection] Fix protocol tests for SafariServices
The types are not _publicly_ conforming to the protocols (i.e. the header
files don't mention them). However they do conform at runtime, which is
what the test check (so we must ignore them)
2016-06-18 10:41:18 -04:00
Sebastien Pouliot 3381f7ca1e [tests][introspection] Ignore Sublocality as a typo (#234)
Fix test for a previous commit. This is what Apple use as the API name
even if it's not perfect English.
2016-06-18 07:34:03 -07:00
Sebastien Pouliot 8d4f9ce66d [gameplaykit] Remove default ctor for GKQuadTreeNode (#233)
That was committed, commented, in f2105210, likely a mistake for testing
something :| and it's not working when called in iOS 10

reference:
[FAIL] GameplayKit.GKQuadTreeNode : Handle
2016-06-18 07:32:48 -07:00
Sebastien Pouliot 7c688482e8 [uikit] Remove [BaseType] from type are that only [Protocol] (#231)
and not a [Model] as it's not required and also cause failures,
which we need to investigate (and report an error or fix).

* UIRefreshControlHosting
* UITableViewDataSourcePrefetching

reference:
[FAIL] iOSApiProtocolTest.ApiProtocolTest.GeneralCase : 2 types do not really conform to the protocol interfaces
2016-06-18 06:42:12 -07:00
Sebastien Pouliot 1d483f1979 [avfoundation] Remove default ctor from AVAudioChannelLayout and AVAudioConnectionPoint (#232)
* [avfoundation] Remove default ctor from AVAudioChannelLayout and AVAudioConnectionPoint

They return invalid (nil) instances in iOS 10.

references:
[FAIL] AVFoundation.AVAudioChannelLayout : Handle
[FAIL] AVFoundation.AVAudioConnectionPoint : Handle
2016-06-18 06:40:48 -07:00
Sebastien Pouliot d9fb8dc937 [tests][harness] Add kTCCServiceMediaLibrary to avoid privacy popup (#230)
Running some API without permission can crash some tests.
2016-06-18 06:36:59 -07:00
Alex Soto 7c66cbf736 [CallKit] Add CallKit framework binding from xcode 10 beta1 (#189)
* Added CallKit Bindings
* Ensure CallKit.framework is linked
* Ensure CallKit passes introspection tests
* FIXME: https://trello.com/c/afWXDZ3A
  Headers says CallKit is available on macOS 10.12
  but uses AVAudioSession and it is iOS only
  Opened Radar awaiting response.
2016-06-18 06:20:38 -07:00
Sebastien Pouliot 9e67e4674e [tests][introspection] Fix protocol tests for SafariServices
The types are not _publicly_ conforming to the protocols (i.e. the header
files don't mention them). However they do conform at runtime, which is
what the test check (so we must ignore them)
2016-06-18 08:53:21 -04:00
Sebastien Pouliot 0835b59bc3 [tests][introspection] Allow subclass to satisfy the designated initializer requirement on subclasses (#229)
Fix a false positive when a .ctor is exposed with paramaters using a
subclass of what the designated initializer is exposing.

reference:
[FAIL] UIKit.UIGraphicsPdfRenderer should re-expose UIGraphicsRenderer::.ctor(CGRect, UIGraphicsRendererFormat)
2016-06-18 05:40:22 -07:00
Sebastien Pouliot f173119361 [coreimage] Add bindings for the new CoreImage filters (#228)
New filters are:

* CIClamp;
* CIHueSaturationValueGradient;
* CINinePartStretched;
* CINinePartTiled;
* CIThermal; and
* CIXRay

note: Definitions are not part of Apple's API diff, nor headers diff,
but semi-correct bindings can be generated from iOSCoreImageFiltersTest
commented code.

references:
[FAIL] iOSCoreImageFiltersTest.ApiCoreImageFiltersTest.CheckManagedFilters : Managed filters not found for CIClamp, CIHueSaturationValueGradient, CINinePartStretched, CINinePartTiled, CIThermal, CIXRay
[FAIL] iOSCoreImageFiltersTest.ApiCoreImageFiltersTest.CheckNativeFilters : 6 native filters missing: CIClamp, CIHueSaturationValueGradient, CINinePartStretched, CINinePartTiled, CIThermal, CIXRay
2016-06-17 22:01:44 -07:00
Timothy Risi beb72152b1 SafariServices bindings for iOS 10 and macOS 10.12 (#217)
* SafariServices bindings for iOS 10 and macOS 10.12

* [SafariServices] Add Async for multiple methods, minor other fixes
2016-06-17 15:56:09 -07:00
Aleksey Kliger (λgeek) a46d86948c [linker] Adjust RemoveCode.cs not to remove MonoMethodMessage (#226)
Fixes Bug5354 in linker-ios/dont link/AotBugs.cs when compiled with Mono master.
2016-06-17 15:51:19 -07:00
Zoltan Varga e8819a17fb Bump mono/watch-mono to pick up the fix for #41947. (#227) 2016-06-17 18:28:28 -04:00
Miguel de Icaza ed9a4d57fb Add enum 2016-06-17 14:25:05 -04:00
Miguel de Icaza 10e744e4de Merge pull request #204 from migueldeicaza/xcode8-uikit
[Review][iOS10,UIKit] Small API introductions.
2016-06-17 11:21:38 -07:00
Rolf Bjarne Kvinge 6877ef44d7 [Security] Apple removed SSLSetSessionStrengthPolicy, which means we can't have the P/Invoke anymore either. (#216)
* [Security] Apple removed SSLSetSessionStrengthPolicy, which means we can't have the P/Invoke anymore either.

Since it causes native linker failures when not using dlsym
(which we've enabled by default now).

* [Security] Don't throw in SslContext.SetSessionStrengthPolicy.

Instead just write a debug message. This way it won't break
any existing code using this API.
2016-06-17 10:53:28 -07:00
Rolf Bjarne Kvinge 1e62987a29 [CoreGraphics] Fix CGRect.Inflate to work correctly, and add tests. Fixes #41684. (#225)
https://bugzilla.xamarin.com/show_bug.cgi?id=41684
2016-06-17 10:45:58 -07:00
Miguel de Icaza ad7f24e969 [iOS10,UIKit] Small API introductions.
Of note: NSLayoutConstraints.cs provides the generic methods, as the
generator currently does not know how to either annotate generic
return types (necesary to build), nor does it have "where" support.

UITraitCollection - re-indented to follow the tab convention.
2016-06-17 10:46:57 -04:00
Sebastien Pouliot 0b6ac445ce [modelio] All properties for MDLVertexAttributeData were turned read-only in iOS10 (#222)
The iOS 10 beta API diff (over 9.3 SDK) shows:

-@property (nonatomic, retain) MDLMeshBufferMap *map;
-@property (nonatomic) void *dataStart;
-@property (nonatomic) NSUInteger stride;
-@property (nonatomic) MDLVertexFormat format;
+@property (nonatomic, retain, readonly) MDLMeshBufferMap *map;
+@property (nonatomic, readonly) void *dataStart;
+@property (nonatomic, readonly) NSUInteger stride;
+@property (nonatomic, readonly) MDLVertexFormat format;

The commit fix this without introducing a API incompatibility.

references:
[FAIL] Selector not found for ModelIO.MDLVertexAttributeData : setDataStart:
[FAIL] Selector not found for ModelIO.MDLVertexAttributeData : setFormat:
[FAIL] Selector not found for ModelIO.MDLVertexAttributeData : setMap:
[FAIL] Selector not found for ModelIO.MDLVertexAttributeData : setStride:
2016-06-17 07:26:18 -07:00
Sebastien Pouliot a633b79684 [uikit] Fix issues found with introspection tests (#221)
Some types can't call `init` and return valid instances, some returns
nil and gives an invalid handle and one fails (throws) [1]

references:
[FAIL] UIKit.UIGraphicsPdfRenderer : Handle
[FAIL] UIKit.UIGraphicsPdfRendererContext : Handle
[FAIL] UIKit.UIGraphicsPdfRendererFormat : Handle
[FAIL] Default constructor not allowed for UIKit.UIPresentationController : Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Don't call -[UIPresentationController init].
2016-06-17 07:10:43 -07:00
Manuel de la Pena 35be8c62a0 Merge pull request #224 from mandel-macaque/bug-41562
[Fix] Ensure that tests do not fail on iOS 8.
2016-06-17 14:51:10 +02:00
Manuel de la Pena 787779eb0f Merge pull request #223 from mandel-macaque/nsexpression-tests-device
[Fix] Ensure NSExpression tests do run in the device ensuring that all members of the type are preserved.
2016-06-17 12:16:35 +02:00
Manuel de la Pena 99a8468406 [Fix] Ensure that tests do not fail on iOS 8 by skipping a type that does not support the CMAttachment API. 2016-06-17 12:04:00 +02:00
Manuel de la Pena f1e758c9e0 [Fix] Ensure NSExpression tests do run in the device ensuring that all members of the type are preserved.] 2016-06-17 11:19:07 +02:00
Sebastien Pouliot 127b1ae037 [gameplaykit] Setter for GKGridGraphNode.GridPosition was removed in iOS 10 beta 1 (#220)
The iOS 10 beta API diff (over 9.3 SDK) shows:

	-@property (nonatomic) vector_int2 gridPosition;
	+@property (nonatomic, readonly) vector_int2 gridPosition;

The commit fix this without introducing a API incompatibility.
2016-06-16 23:03:22 -07:00
Sebastien Pouliot 6fdce245bb [corespotlight] Disable CoreSpotlight.CSCustomAttributeKey default constructor (#219)
as it fails (throw) on iOS 10. Provide a managed stub to replace it and
maintain API compatibility.

reference:
* [FAIL] Default constructor not allowed for CoreSpotlight.CSCustomAttributeKey : Objective-C exception thrown. Name: NSInvalidArgumentException Reason: You must call -[CSCustomAttributeKey initWithKeyName...]
2016-06-16 22:32:08 -07:00
Sebastien Pouliot 5cc80e8650 [gameplaykit] Replace QuadTreeWithMinPosition by managed code (#218)
Looks like it was an API added in 9.x but removed (in later betas?). The
introspection tests did find (in 9.x) the selector so it was not reported
as an error but it's not part of iOS 10 (so it fails now)

This removes the binding and replace it with a managed alternative
so there is no breaking change.

references:
[FAIL] GameplayKit.GKQuadTree : quadTreeWithMinPosition:maxPosition:minCellSize:
2016-06-16 20:35:33 -07:00
Manuel de la Pena c3b768d739 [Fix] Add missing strong dict chectionaries in CoreBluetooth. (#168) 2016-06-16 18:34:31 -07:00
Jeffrey Stedfast ff381fe6f5 [msbuild] Support ibtool output when it adds ~ipad or ~iphone modifiers (#200)
* [msbuild] Support ibtool output when it adds ~ipad or ~iphone modifiers

When targetting older iOS versions (such as iOS 7) for multiple
device targets (e.g. iphone, ipad, etc), ibtool will output
multiple directories using the basename of the original ib file
and add ~ipad or ~iphone blurbs to the filename.

This was causing the linking step to fail due to paths not being
found at the expected locations.

* [msbuild] Added unit tests for ibtool --link w/ --minimum-deployment-target 7.0

Since pre-iOS 8.0 does not support size classes in storyboards,
ibtool will output LaunchScreen~ipad.nib and LaunchScreen~iphone.nib.

This test will fail if the IBTool logic does not properly determine
the outputs to pass to a final ibtool --link command to link all of
the storyboards together.
2016-06-16 14:17:25 -04:00
Daniel Cazzulino ef0b8867b9 [msbuild] Rename and unify to IsMacEnabled (#193)
* [msbuild] Rename and unify to IsMacEnabled

We previously had an MtouchTargetsEnabled and a separate
IsMacTargetsEnabled for iOS and XM, when both actually
meant the same thing: is a Mac enabled for building this
project?

Note that instead of "targets", we make it more generic,
since the condition can be used in a task, a property
group or whatever really, not just to enable/disable
certain targets.

Also, we call it Enabled, rather than Connected or
Available, since it's more natural to think that all such
tasks/targets are enabled when you're building locally
on the Mac. Connected wouldn't have been appropriate, and
Available would be confusing.

For backwards compatibility I've kepd the old MtouchTargetsEnabled
pointing to IsMacEnabled. We'll change our Windows targets
accordingly to also unify this property and how/where it's
set.

* [msbuild] Use full condition comparison for robustness

This is the proper way to use a boolean in a condition, and
prevents errors whenever the property is an empty string or
anything other than a boolean value.
2016-06-16 13:14:43 -04:00
Sebastien Pouliot ffc8388dd2 [tests][introspection] Fix crashers (not failures), add new required keys for permissions and disable logging (slows down execution and makes it difficult to parse normal issues) (#215) 2016-06-16 08:01:13 -07:00
Rolf Bjarne Kvinge b8ceeeb044 [xharness] Fix logdirectory path to use correct directory separator. (#212) 2016-06-16 00:03:04 -07:00
Sebastien Pouliot 3966a5c7f5 [tests][introspection] Enable more verbosity and continue on failure to find out broken pieces. (#211) 2016-06-15 22:05:39 -07:00
Rolf Bjarne Kvinge 70747b3317 [xharness] Fix logdirectory path to use correct directory separator. (#210) 2016-06-15 22:05:12 -07:00
Rolf Bjarne Kvinge 68761c0e5e [apitest] Modify a couple of test to not take a screen image just to get an image. (#209)
Taking a screen image does not work unless there's a window server
running, which may not always be the case on bots.

So instead just create an image manually, since these tests do
not seem to be requiring any particular type of image.
2016-06-15 19:29:15 -07:00
Rolf Bjarne Kvinge bdf7ca8429 [tests] Bump min deployment target to 6.0. (#208) 2016-06-15 19:12:48 -07:00
Rolf Bjarne Kvinge 64bc391669 [xharness] Fix NRE when running from the command line. (#207)
* [xharness] Log simulator loading and handle any exceptions.

* [xharness] Add missing tests.

* [xharness] Throw a helpful exception instead of NRE when a simulator can't be found.

* [xharness] Fix null reference exception.
2016-06-15 18:57:47 -07:00
Rolf Bjarne Kvinge b886d18d98 [system-dependencies] Execute 'xcode-select' after installing Xcode. (#206)
Since otherwise we'd have to provision again to select the installed
Xcode.
2016-06-15 18:25:47 -07:00
Rolf Bjarne Kvinge 679055aadd Merge pull request #202 from rolfbjarne/jenkins-tests-xcode8
[tests] Implement support in xharness for running the simulator tests grouped by simulator, and write out an html report.
2016-06-15 18:06:38 -07:00
Rolf Bjarne Kvinge 8a164bc8d0 [xharness] Download mlaunch if we don't have a local copy. 2016-06-15 17:00:09 -07:00
Rolf Bjarne Kvinge f17241e6e3 [xharness] Fix null reference exception. 2016-06-15 16:52:45 -07:00
Rolf Bjarne Kvinge df326a1d59 [xharness] Throw a helpful exception instead of NRE when a simulator can't be found. 2016-06-15 16:52:24 -07:00
Rolf Bjarne Kvinge ed1cbe003e [xharness] Add missing tests. 2016-06-15 16:51:42 -07:00
Rolf Bjarne Kvinge 8fc5f78eec Merge pull request #137 from rolfbjarne/jenkins-tests
[tests] Implement support in xharness for running the simulator tests grouped by simulator, and write out an html report.
2016-06-15 14:59:13 -07:00
Rolf Bjarne Kvinge 73b3a9b53e [xharness] Log simulator loading and handle any exceptions. 2016-06-15 13:32:09 -07:00
Miguel de Icaza 34fc1b7f4a Merge pull request #197 from migueldeicaza/xcode8-uigraphicsrenderer
[ios10,UIKit] UIGraphicsRenderer
2016-06-15 11:11:00 -07:00
Rolf Bjarne Kvinge 36159ec813 [jenkins] Ignore test errors for now. 2016-06-15 10:51:14 -07:00
Rolf Bjarne Kvinge 15a5af3342 [xharness] Exclude bcl tests by default. 2016-06-15 10:51:14 -07:00