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

3660 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena 55665e8e4d [Harness] Move to create a more general TestTasks class to be reused. (#8286)
Some of the Jenkins test tasks are very useful and do A LOT of stuff. So
we try to generalize the base class, to later be able to share the most
usebul ones in the shared lib.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-08-05 18:25:24 -04:00
Alex Soto 42eaa54108
[xcode12] Initial bump to Xcode 12 Beta 4 (#9272)
* [xcode12] Bump to Xcode 12 Beta 4

* [Tests] Disable Trust_FullChain and Trust2_FullChain tests

These tests started showing a different error than the one we expect
I'll let our security expert chime in
2020-08-05 13:25:01 -04:00
Manuel de la Pena 57212bce8e
[CoreHaptics] Update framework for Xcode 12 beta 3. (#9273)
Update the framework to include Xcode beta3 and add support for tvOS.
As of Xcode12 beta 3 it cannot yet be compiled on macOS X, please refer
to https://github.com/xamarin/maccore/issues/2261
2020-08-05 11:43:44 -04:00
Manuel de la Pena f6b2f55353
[ClassKit] Update to Xcode12 beta 3. (#9274) 2020-08-05 06:07:49 -04:00
Whitney Schmidt c999bd5f57
[HealthKit][Xcode12] Update beta 1 (no b2, b3 changes) (#9249)
* HealthKit updates for Xcode12
2020-07-30 16:41:38 -04:00
Alex Soto b3194f5d57
[UIKit] Update bindings to Xcode 12 Beta 3 (#9224)
* [UIKit] Update bindings to Xcode 12 Beta 3

* Update src/uikit.cs
2020-07-30 09:39:52 -04:00
Alex Soto 3107356250
[Intents] Update bindings from Xcode 12 Beta 1 to Beta 3 (#9220)
* [Intents] Update bindings from Xcode 12 Beta 1 to Beta 3

* Apply suggestions from code review

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>

* Implement feedback

* Fix more feedback

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-07-30 09:36:59 -04:00
Alex Soto 4d23d42ea3
[AppKit] Update bindings to Xcode 12 Beta 3 (#9232) 2020-07-30 09:33:29 -04:00
Manuel de la Pena e821b2708a
[CoreMIDI] Add support for Xcode 12 beta 3. (#9125) 2020-07-29 16:51:45 -04:00
Sebastien Pouliot c7f6ca0506
[mediaplayer] Update for Xcode 12 beta 3 (#9214)
tvOS mostly catch up with (much older) iOS changes
2020-07-29 13:36:43 -04:00
Sebastien Pouliot e8de7afd4d
[mlcompute] New Xcode 12 framework. Up-to-date with beta 3 (#9208)
Framework not shipped for iOS/tvOS simulators - even if it's available
on macOS...

Feedback FB8132074 / https://github.com/xamarin/maccore/issues/2271
2020-07-28 20:55:28 -04:00
Whitney Schmidt 8fc88096ad
Revert "[Xcode12] HealthKit b1 update (#9152)" (#9217)
This reverts commit 74e8421f2c.
2020-07-28 14:04:31 -04:00
Whitney Schmidt 74e8421f2c
[Xcode12] HealthKit b1 update (#9152)
* HealthKit updates for beta 3
2020-07-28 14:03:56 -04:00
Rolf Bjarne Kvinge 988edad1d3
[tests] Skip 32-bit iOS tests in the simulator, because the 32-bit iOS simulator is broken. (#9201) 2020-07-28 14:19:39 +02:00
Whitney Schmidt 0f7aa312e1
[CoreVideo][Xcode12] Update through beta 3 (#9209)
* corevideo changes
2020-07-27 19:44:37 -04:00
Whitney Schmidt 0e4749c207
[Xcode12][GameKit] Update for beta 1-2 (#9126)
* initial gamekit commit for xcode12
2020-07-27 11:12:02 -04:00
Chris Hamons b101d7e8b9
Add support for arbitrary extensions to be bundled in XI/XM apps (#9048) (#9107)
- This commit adds a hook, "AdditionalAppExtensions", to the msbuild to allow
extensions written in other languages, such as Swift, to be embedded and signed in an
Xamarin App bundle easily.
- Example:
<AdditionalAppExtensions Include="$(MSBuildProjectDirectory)/../../native">
	<Name>NativeTodayExtension</Name>
	<BuildOutput Condition="'$(Platform)' == 'iPhone'">build/Debug-iphoneos</BuildOutput>
	<BuildOutput Condition="'$(Platform)' == 'iPhoneSimulator'">build/Debug-iphonesimulator</BuildOutput>
</AdditionalAppExtensions>
2020-07-27 09:27:19 -05:00
Alex Soto 5289facd04 [xcode11.6] Bump to final version of Xcode 11.6 (#9112) 2020-07-26 18:27:06 -04:00
Alex Soto f9c2a62127 [MetalPerformanceShaders] Neural Networks Update to Xcode 11 (#8844)
* [MetalPerformanceShaders] Neural Networks Update to Xcode 11

This includes updates from PRs xamarin/xamarin-macios#6932, xamarin/xamarin-macios#6935 and xamarin/xamarin-macios#7461

It adds new functionality to the neural network components.
This is still not the complete API for 11.3

* Update src/metalperformanceshaders.cs

Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>

* Make changes requested by @rolfbjarne

* Fix binding of default random distribution creation

The parameterless function creates new
default distributions and is not a property.
It is a counterpart of CreateUniform.

* Expose public APIs for MPSCnnConvolutionTransposeNode

These APIs are public and documented at: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposenode/2942641-initwithsource?language=objc

I have also tested that they work.

* Reintroduce compat API.

* Fix acronym casing.

* Fix introspection tests.

* Fix xtro.

* One last xtro issue.

* Fix more xtro.

* Another introspection fix.

Co-authored-By: Frank A. Krueger <fak@praeclarum.org>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>

* Apply suggestions from code review

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>

* Apply feedback

* Please the typo guardians

Co-authored-by: Frank A. Krueger <fak@praeclarum.org>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-07-26 18:27:06 -04:00
Alex Soto ac42dad8de [xcode11.6] Initial bump to support Xcode 11.6 Beta 1 2020-07-26 18:27:06 -04:00
monojenkins 8c587f89a3
[generator] Add nullability `?` when [BindAs] is used with an array type (#9185)
Fix two false positives in AVFoundation.
Needed for xcode12 too (to be backported)
2020-07-25 11:30:42 -04:00
Sebastien Pouliot dd6f12bb5d
[tools][tests] Update to use macOS 11.0 (instead of 10.16) (#9188) 2020-07-24 22:03:46 -04:00
Sebastien Pouliot e47e10addf
[corebluetooth] Update for Xcode 12 beta 3 (#9186)
Apple removed the 10.16 API instead of marking them for 11.0 ?!?
2020-07-24 18:16:46 -04:00
Sebastien Pouliot 04e84477b2
[uniformtypeidentifiers] Update for Xcode 12 beta 3 (#9181) 2020-07-24 13:38:44 -04:00
Sebastien Pouliot 1497988e21
[wkwebkit] Update for Xcode 12 beta 3 (#9178) 2020-07-24 11:45:47 -04:00
Sebastien Pouliot 142ff3127b
[xcode12] Bump for beta 3 (#9162)
* Disable iOS 32bits simulator based tests
2020-07-24 08:52:33 -04:00
Sebastien Pouliot 038db0fa51
[metrickit] Update for Xcode 12 beta 2 (#9151) 2020-07-22 13:32:06 -04:00
Sebastien Pouliot 52e51bccfc
[corewlan] Update for Xcode 12 beta 2 (#9156) 2020-07-22 13:30:47 -04:00
Sebastien Pouliot 5cdfa2ebd6
[devicecheck] Update for Xcode 12 beta 2 (#9145) 2020-07-21 19:21:18 -04:00
Sebastien Pouliot f36b2ae7b8
[sensorkit] Update for Xcode 12 beta 2 (#9142) 2020-07-21 13:12:51 -04:00
Sebastien Pouliot 819acdaad3
[mediaplayer] Update for Xcode 12 beta 2 (#9136) 2020-07-21 08:45:38 -04:00
Sebastien Pouliot 38fb1018a7
[naturallanguage] Update for Xcode 12 beta 2 (#9133) 2020-07-20 16:15:00 -04:00
Sebastien Pouliot 1966e155cf
[coreml] Update for Xcode 12 beta 2 (#9124) 2020-07-17 17:46:47 -04:00
Chris Hamons fbcbdcde77
[AppKit] Xcode 12.0 Beta 1 (#9106)
* [AppKit] Xcode 12.0 Beta 1

* Apply suggestions from code review

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>

* More code review changes

* Apply suggestions from code review

Co-authored-by: Alex Soto <alex@alexsoto.me>

* Code review changes

* Apply suggestions from code review

Co-authored-by: Whitney Schmidt <whschm@microsoft.com>

* Remove unnecessary 10.7 mac attribute

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
2020-07-17 15:19:31 -05:00
Sebastien Pouliot 59bd868952
[wkwebkit] Update for Xcode 12 beta 2 (#9113) 2020-07-16 20:35:00 -04:00
Sebastien Pouliot 486ded93dc
[mediasetup] Update for Xcode 12 beta 2 (#9087)
The framework is not available (binary or even headers) for the iOS
simulator, only devices.

As such `tools/mtouch/Makefile` is not updated with a `-weak-framework`

Tracked with
* https://github.com/xamarin/maccore/issues/2266
* https://feedbackassistant.apple.com/feedback/8001312
2020-07-16 20:34:19 -04:00
Manuel de la Pena f5d61b4db4
[CoreNFC] Add support for xcode 12 beta 1. (#9089) 2020-07-16 18:50:22 -04:00
Sebastien Pouliot 376ad7444d
[authenticationservices] Update for Xcode 12 beta 2 (#9099) 2020-07-16 11:53:02 -04:00
Sebastien Pouliot 3c2e4d619a
[foundation] Update for Xcode12 beta 2 (#9095)
Some backlog from Xcode11 still exists and requires generator changes
Tracked in https://github.com/xamarin/xamarin-macios/issues/8943
2020-07-15 16:59:19 -04:00
Manuel de la Pena 2b35db02ae
[Accessibility] Add new Framework from Xcode 12 beta 1. (#9086)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-07-15 16:29:15 -04:00
Manuel de la Pena 061f6a7cba
[CoreMedia] Add xcode12 beta 1 support. (#9081) 2020-07-14 15:09:35 -04:00
Manuel de la Pena cc3a04b173
[Contacts] Add support for Xcode 12 beta 1. (#9080) 2020-07-14 15:09:10 -04:00
Manuel de la Pena 8bb60059e5
[ClockKit] Add support for Xcode 12 beta 1. (#9010)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2020-07-14 11:12:26 -04:00
Manuel de la Pena 6aceb81539
[CloudKit] Add support for Xcode 12 beta 2. (#9075)
Added support for the Xcode 12 beta 2. There are a number of methods
that should be obsoleted, but have not been. Added issue
https://github.com/xamarin/maccore/issues/2265 to let apple now and
track it.
2020-07-14 06:32:56 -04:00
Sebastien Pouliot 3fed5d74d5
[corefoundation] Update for Xcode 12 beta 2 (#9074)
Only constants part of unbound `kCFUrl*` group as they are also part of
`NSUrl` inside `Foundation.framework`.
2020-07-13 22:18:35 -04:00
Manuel de la Pena c170ba2fe0
[MTouch] Add a workaround for a failing tests in the Xcode 12 betas. (#9073)
There is an issue in the linker warnings (https://github.com/xamarin/maccore/issues/2264) which makes our CI read. Added a workaround in the test for
the Xcode version until is fixed by Apple.
2020-07-13 21:32:59 -04:00
Sebastien Pouliot 100357b419
[imageio] Update for Xcode 12 beta 2 (#9069) 2020-07-13 16:49:51 -04:00
Sebastien Pouliot 3eeb15ff72
[coregraphics] Update for Xcode 12 beta 2 (#9070) 2020-07-13 16:36:40 -04:00
Whitney Schmidt 4ac7540d75
[Xcode12][PhotosUI] Update for beta 1 (#9059)
* Xcode 12 beta 1 update
2020-07-13 14:47:18 -04:00
Sebastien Pouliot 8a57e7daf6
[coretext] Update for Xcode 12 beta 2 (#9062) 2020-07-13 08:41:14 -04:00
Whitney Schmidt 32c82f3f95
[xcode12][pencilkit] Update for beta 1 (add macOS support, new apis for iOS) (#8982)
* PencilKit changes for xcode12
2020-07-10 14:30:57 -04:00
Sebastien Pouliot 41e204f81f
[coremotion] Update for Xcode 12 beta 2 (#9056) 2020-07-10 13:56:09 -04:00
Alex Soto 802bd4e069
[UIKit] Update bindings to Xcode 12 Beta 2 (#8992) 2020-07-10 13:21:18 -04:00
Whitney Schmidt 79f33e494a
[Xcode12][Photos] Update for beta1 (no beta2 changes) (#9045)
* photo updates for xcode12
2020-07-10 11:05:26 -04:00
Sebastien Pouliot 83fd7694ff
[scenekit] Update for Xcode 12 beta 2 (#9051) 2020-07-10 08:58:24 -04:00
Sebastien Pouliot 05cff07082
[xcode12] Update for Xcode 12 beta 2 (#9052) 2020-07-10 08:56:23 -04:00
Sebastien Pouliot 5246bacb19
[safariservices] Update for Xcode 12 beta 2 (#9053) 2020-07-10 08:55:03 -04:00
Sebastien Pouliot 829eb27986
[spritekit] Update for Xcode 12 beta 2 (#9047) 2020-07-09 15:34:21 -04:00
Sebastien Pouliot 017160caf0
[corespotlight] Update for Xcode 12 beta 2 (#9044) 2020-07-09 11:17:44 -04:00
Sebastien Pouliot 66ae40a442
[tests][monotouch-test] Re-enable some tests with beta 2 (#9042)
Some issues we detected in beta 1 are not present in beta 2
https://github.com/xamarin/xamarin-macios/issues/8943
2020-07-09 08:53:56 -04:00
Sebastien Pouliot e5100b74d3
[uniformtypeidentifiers] Update for Xcode 12 beta 2 (#9039)
Includes support for `UTType`-based `[Field]` in the generator as an
hundred (or so) of them were added. Unit test shows the field-based
properties are working as expected.
2020-07-09 08:50:57 -04:00
Manuel de la Pena f76253b0a8
[CallKit] Add support for Xcode 12 beta 1. (#9004)
There are two method not bound due to a dependency on AVAudioSession that
does not seem to be exposed on Mac OS X.

Related issue: https://github.com/xamarin/maccore/issues/2257

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-07-08 22:53:47 -04:00
Sebastien Pouliot 5bf1073cdb
[corebluetooth] Update for Xcode 12 beta 2 (#9037) 2020-07-08 17:27:02 -04:00
Manuel de la Pena 10b3ddba31
[xharness] Make ConsoleLog thread-safe. Fixes #8569. (#8864) (#9038)
Fixes https://github.com/xamarin/xamarin-macios/issues/8569.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-07-08 15:42:33 -04:00
monojenkins 9c8d1cc5f2
[tests][xtro] Fix NSUrl-based categories (#9034)
We were using the managed name, e.g. `NSUrl`, instead of the native name,
e.g. `NSURL`, when dealing with categories.

To fix this we must resolve the type and this caused issues as other
assemblies (e.g. OpenTK) were not already loaded/cached and some type
could not be resolved (and this throw exceptions)

The runner now loads all assemblies before starting to visit them.

The fix solved a known issue (iOS-NetworkExtension.ignore), some API
that were already bound (common-Foundation.ignore) and also caught an
additional API where we missed a `[NullAllowed]` on a return value
2020-07-08 13:23:43 -04:00
Sebastien Pouliot de306cd96d
Bump for Xcode 12 beta 2 (#9027)
* [arkit] Remove fields (from beta2) to fix introspection
* [tests][introspection] AVMutableMediaSelection is as bad as it's non mutable parent
* [tools] Update IsFrameworkBroken (remove CoreAudioTypes and MediaPlayer)
* [tests][monotouch-test] MKPinAnnotationView seems fixed in beta 2
* [tests][xtro] Update ARKit todo (with previous fix)
2020-07-08 09:26:24 -04:00
Manuel de la Pena c0781c4a13
[CoreLocation] Add support for Xcode 12 beta 1. (#9001)
A number of APIs added and deprecated in the same release. We will see
that is that about.

The status property move to be a instance property in CLLocationManager,
we expose those and add a deprecation warning. That needs to be ignored in xtro due to issue https://github.com/xamarin/xamarin-macios/issues/9026


Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-07-07 17:55:15 -04:00
Manuel de la Pena 93103e23ed
[CFNetwork] Add support for xcode 12 beta 1. (#9006) 2020-07-07 17:53:50 -04:00
Sebastien Pouliot 579ef29d52
[replaykit] Update for xcode12 beta 1 (#9025) 2020-07-07 13:45:52 -04:00
monojenkins 110f13759c
[tests] Skip a few networking tests on macOS 10.9. Fixes #xamarin/maccore@2221. (#9021)
Fixes https://github.com/xamarin/maccore/issues/2221.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-07-07 15:56:43 +02:00
Manuel de la Pena 5fae175cf6
[ARKit] Add support for Xcode 12 beta 1. (#9002)
PInvoke that is missing is due to a dependency with Visio which is not
yet updated.



Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-07-07 09:37:16 -04:00
Manuel de la Pena bae53fac16
[AVKit] Add support for Xcode 12 beta 1. (#9005) 2020-07-06 10:57:31 -04:00
Manuel de la Pena 599249fd27
[ClassKit] Add support for Xcode 12 beta 1. (#9008) 2020-07-06 10:56:54 -04:00
Manuel de la Pena 347a4959b1
[AddSupport] Updting binding xcode 12 beta 1. (#8999) 2020-07-06 10:55:40 -04:00
Sebastien Pouliot ae548380c4
[xcode12][security] Update for beta 1 (#8969) 2020-06-29 15:02:16 -04:00
Sebastien Pouliot c21caece19
[xcode12][usernotificationui] Update for beta 1 (add macOS support) (#8970) 2020-06-26 21:54:25 -04:00
Sebastien Pouliot e582c501c0
[xcode12][notificationcenter] Update for beta 1 (#8968) 2020-06-26 20:01:34 -04:00
Sebastien Pouliot 039f58c876
[xcode12][linkpresentation] Update for beta 1 (add tvOS support) (#8965) 2020-06-26 20:00:54 -04:00
Sebastien Pouliot c188f593fe
[xcode12][watchkit] Update for beta 1 (#8967) 2020-06-26 20:00:16 -04:00
Sebastien Pouliot b6c3e1a84f
[xcode12][tvmlkit] Update for beta 1 (#8966) 2020-06-26 17:14:35 -04:00
Sebastien Pouliot 1bb720b687
[xcode12][appclip] Update for beta 1 (#8964) 2020-06-26 17:13:30 -04:00
Sebastien Pouliot f427b5e91d
[xcode12] Bump for beta 1 (#8935)
Known issues https://github.com/xamarin/xamarin-macios/issues/8943
2020-06-26 14:02:44 -04:00
monojenkins ad92cdb6a2
[xharness] Add crash reports to a logs collection we care about. (#8960)
Add crash reports to a logs collection we care about, instead of to a logs
collection that's promptly forgotten.

This makes sure crash reports actually show up in the html report.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-06-26 14:18:47 +02:00
monojenkins bf4b5f4db8
[xcode12] [ImageIO] Update bindings for Xcode11 (#8942) 2020-06-25 15:28:29 -04:00
Rolf Bjarne Kvinge e6afca196c
[xcode12] Backport a few linker changes. (#8926)
* [linker] Fix infinite queue found with nullability PR (#8337)

and removed previous workaround

Replace previous attempt https://github.com/xamarin/xamarin-macios/pull/8336

* [linker] Remove code to deal with ExportedTypes (#8632)

This is now supported by upstream mono/linker

* [linker] Remove internal [NullablePublicOnly] attribute from apps (#8568)

I've only seen it with .net5 so far but it's better handled in master
and flow back into the branch

* [linker] Update custom attributes that can be removed (#8535)

Some are no longer part of the SDK (or converted into new ones
at build time), others were new (and missing).

A full list of attributes and their usage frequency in what we ship can
be seen in https://gist.github.com/spouliot/ca03c6da7d4d75670ca77749350eb8a2

Also update tests: no need to check for removals of stuff that does not
exists anymore.

Co-authored-by: Sebastien Pouliot <sebastien.pouliot@gmail.com>
2020-06-23 09:01:36 +02:00
monojenkins 5f71492418
[xcode12] [AppKit] NSTextView allows passing nil to PasteAsPlainText and PasteAsRichText. (#8923)
* [AppKit] NSTextView allows passing nil to PasteAsPlainText and PasteAsRichText.

This is documented in Apple's documentation, their headers, and even proved
experimentally.

* Update xtro.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-06-23 08:53:47 +02:00
monojenkins 5e75a06b32
[runtime] Remove memcpy usage from Runtime.CloneMemory (#8925)
instead use `Buffer.MemoryCopy`.

Currently only used from `CGDataProvider`. Added unit tests for the
public/indirect, usage of the API (we had none).

Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com>
2020-06-23 08:52:32 +02:00
monojenkins 2525b21d23
[AppKit][Tests] Do not fail when we cannot create a NSPasteboard. (#8914)
The test has started failign more commonly, but only in a number of old
OS versions and not all the time. The function should return a new
Pasteboard, but it is true that we are not releasing the old ones,
meaning that the pasteboard is left after the app is done as stated by
the apple documenation.

The test has been updated to:

1. Release the pasteboard.
2. Be inconclusive if the pasteboard service could not create a new one.

fixes: https://github.com/xamarin/xamarin-macios/issues/8787

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-06-22 15:35:31 +02:00
monojenkins fdaa8e01be
[tools] Remove MD5 from tooling (#8774)
Note: affected tools are not included in the code shipping inside the SDK

Usage of deprecated cryptographic algorithms is not approved anymore,
even if not used for cryptographic purpose.

MD5 was used to create immutable GUID since it's output is 128bits which
is just what a GUID wants as it's input (16 bytes). The same can be
achieved (even if a bit slower) with a newer/longer hash function

https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1128148
2020-06-05 09:02:41 -04:00
monojenkins c22a1a72c5
[sharpie] Bump version of sharpie and accommodate xtro to new output (#8760)
Co-authored-by: Alex Soto <alex@alexsoto.me>
2020-06-04 15:17:09 -04:00
monojenkins b492f5a33e
[runtime] Remove Classic code. (#8722)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-06-02 16:14:17 +02:00
Rolf Bjarne Kvinge 952037b7a3
[tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
Alex Soto bb5a3d353a
[Tests] Use safe listed password by our Credentials Scanner tool (#8580) (#8652) 2020-05-21 20:47:43 -04:00
Alex Soto 1614d569cc
[d16-7] Merge Xcode11.5 Support and include provisionator changes (#8645)
New commits in xamarin/maccore:

* xamarin/maccore@ef861db73e [devops] Enhance Xcode renaming script (#2208)

Diff: 92a06f7303..ef861db73e
2020-05-21 14:11:27 -04:00
monojenkins 4d7dfaafd1
[d16-7] [Foundation] Do not get in an infinite loop with empty creds. (#8548)
As described in the issue, when the credentials for the base auth are set
to be empty the request reaches a timeout.

The inner issue is that when we have empty credentials the query that
is performed to the credentials db of the system throws an exception.
This exception is not raised to our code, but simply prints out in stderr.

When this situation occurs we get in an infinite loop in which we keep
sending the same credentials, we get another challenge, but the OS does
not do the right thing, we believe that we have to provide the creds
again (which are the same) and we get another challenge.. this goes on
an on until we reach the timeout.

Fortunately we know the number of failed challenges and the failure
response. With this information we can deduce if we already sent the
credentials, and if we did, do not set them again. In this case, the OS
sees no credentials in out delegate, uses the default handler and
correctly returns a 401.

fixes: https://github.com/xamarin/xamarin-macios/issues/8342
Fixes: https://github.com/xamarin/xamarin-macios/issues/8344

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-05-07 22:21:36 -04:00
monojenkins bced85e1af
[corelocation] Adds platform specific nullability attributes to CoreLocation (#8503)
Co-authored-by: Cosmin Stirbu <stirbucosmin@gmail.com>
2020-05-04 14:59:08 -04:00
monojenkins 09a5d7a111
[d16-7][avfoundation] Added nullability attributes to AVFoundation (#8495)
* Added nullability attributes to AVFoundation

* Revert AVPlayerItem FromAsset nullability attributes changes to keep existing tests passing and allow backwards compatibility

* Documents common-AVFoundation.ignore entry related to Foundation.NSNumber[] AVFoundation.AVVideoCompositionInstruction::get_RequiredSourceTrackIDs()

!extra-null-allowed! 'Foundation.NSNumber[] AVFoundation.AVVideoCompositionInstruction::get_RequiredSourceTrackIDs()' has a extraneous [NullAllowed] on return type

Co-authored-by: Cosmin Stirbu <stirbucosmin@gmail.com>
2020-05-04 11:00:45 -04:00
monojenkins 85e4ce178a
[corelocation] Added missing nullability attributes to CoreLocation (#8477)
Co-authored-by: Cosmin Stirbu <stirbucosmin@gmail.com>
2020-04-29 17:20:36 -04:00
Manuel de la Pena aed4af1ce0
[Bump Mono] Bump mono to the latest of 2020-02. (#8457)
* [Bump Mono] Bump mono to the latest of 2020-02.

Commits:

  * mono/mono@051408e0be: Bump CoreFX to pickup https://github.com/mono/corefx/pull/398. (#19566)

Full diff: 58b04da0d7...051408e0be

Bump and match android: https://github.com/xamarin/xamarin-android/pull/4608

* Remove already fixed warning in mono.
2020-04-27 09:50:33 -04:00
monojenkins 50d3d7bdc2
[Harness] Fix HML report for NUnitTestTasks. (#8379)
PR https://github.com/xamarin/xamarin-macios/pull/8184 removed the
inheritance with TextWriter, therefore the `as` will return null and we
will not generate the Html report. In this particular case, we do not
need an ILog, we just use it to get a path to the correct location,
therefore, we can create the file using the full path and pass it to the
xslt.

Fixes: https://github.com/xamarin/xamarin-macios/issues/8364
2020-04-14 12:03:25 -04:00
monojenkins d76c86f233
[d16-7] [Harness] Ensure that the generator tests are set when we modify the sources. (#8378)
fixes: https://github.com/xamarin/xamarin-macios/issues/8363
2020-04-14 11:33:56 -04:00
monojenkins 731963e6f8
[d16-7] [AppKit] Allow static properties to execute on non-UI threads. (#8339)
VSMac has failing tests when they query the NSScrees.Screens property
which the following swift code shows that it can be executed in a diff
thread:

```swift
import Cocoa
import AppKit

DispatchQueue.global(qos: .background).async {
    print("This is run on the background queue")

    print(Thread.current)
    var screens = NSScreen.screens
    print (screens.count)
}
```

Fixes: https://github.com/xamarin/xamarin-macios/issues/8329


Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-04-10 16:25:00 -04:00
Sebastien Pouliot 15938de198
[generator] Add C#8 nullability into generated code (#7570) (#8333)
Goals
* Reflect Apple nullability annotations in our bindings using C#8
* No warnings when building bindings

Non-Goals
* Update (add or fix) `[NullAllowed]` to match Apple headers (next phase)
* Make the generator or internal code fully nullable aware (`nowarn` is used)

Notes
* Apple's own annotations are not 100% accurate :(
* Where known issue exists we have _fixed_ our attributes to match reality :)
* We also do additional null-checks internally that might seems not required (better safe than sorry).
2020-04-10 12:38:14 -04:00
monojenkins 015fd895c5
[d16-7] [xtro][bindings] Add xtro support for nullability and fix some bindings (#8341)
Enabling this will ensure that future bindings (and Xcode updates that
change nullability information) are spotted right away.

The binding fixes are **not** complete, i.e. what was done was mostly
to debug the xtro rule and find corner cases. The backlog will be
_ignored_ so the builds won't fail.
2020-04-10 12:37:16 -04:00
Přemek Vysoký 530f2a2bfa
[Harness] Rename device management classes (Devices, Simulators, ILoadAsync) (#8295) 2020-04-06 14:33:27 -04:00
Manuel de la Pena 6c9f62f56e
[Introspection] Fix a false typo in mac modern typo tests. (#8294)
Add Sha as an allowed word in the typo tests, it is a well known
acronym.
2020-04-06 14:31:46 -04:00
Přemek Vysoký b4a262eb42
Fix unit tests, make Devices fields readonly (#8293) 2020-04-06 10:57:31 -04:00
Manuel de la Pena ab476d7fa2
[Harness] Fix the generation of the sources. (#8289)
The name of the dll changed, ergo the prefix changed.
2020-04-06 09:52:18 -04:00
Přemek Vysoký ce9f9278b6
[Harness] Move TestImporter into the shared library (#8283) 2020-04-03 18:28:49 -04:00
Manuel de la Pena 10333b0d0f
[Harness] Make sure TestsTasks do not share an id. (#8273)
Threading is hard, part 2. We could have a situation in which two tasks
that are instantiated async use the same id. The id is later used to
build the logs directory etc.. When they share the id we end up in a
situation in which the logs overlap.

fixes: https://github.com/xamarin/xamarin-macios/issues/8146
2020-04-03 14:43:04 -04:00
Manuel de la Pena 3004e7d34b
[Harness] Ensure we do not throw an exception if we do not have tasks. (#8272)
The First extension will throw an exception if the list is empty. Use
FirstOrDefault, check if the devices are null and return the test as
Ignored.

fixes: https://github.com/xamarin/xamarin-macios/issues/8271
2020-04-03 13:23:35 -04:00
Manuel de la Pena d7160b3dcf
[Harness] Completely remove the BCL prefix from the test importer. (#8224)
Remove the last BCLPrefix and move the InfoPlistGenerator to the managed
namespace since it is part of the managed template.
2020-04-03 11:01:56 -04:00
Přemek Vysoký d4cf8301cf
[Harness] Allow to create a process manager with default tool paths (#8278) 2020-04-03 11:00:45 -04:00
Manuel de la Pena feec8d4ef9
[Harness] Remove hardcoded paths to the testing framework dlls. (#8244)
The testing framework dlls come from mono and their paths are harcoded
in the templates. Move the hardcoded paths out to the assembly locator
which know were to find the paths.

This is needed to later allow the cmd to pass the location of the paths.
2020-04-01 15:10:13 -04:00
Manuel de la Pena 1518894394
[Harness] Add the assets as part of the managed template. (#8251)
The assets were being used from the bcl-test directory. Move them as
part of the template. Renamed a file to make things a little easier when
adding the assets (a '.' in the middle of the name made this
complicated).

The template should be selfcotained.
2020-04-01 15:09:08 -04:00
Manuel de la Pena f16561b49f
[Harness] If we cannot connect over tcp use Console.Out as the writer. (#8235)
If we could not connect to the host via tcp, set the writer to be
Console.Out which will fix the NRE and will report the test run in the
runlogs.

fixes: https://github.com/xamarin/xamarin-macios/issues/8130
2020-04-01 14:03:40 -04:00
Přemek Vysoký b14a055265
[Harness] Move code to a shared library (#8234)
- Code that will later be moved to the `dotnet/xharness` repo is first moved to an isolated project before it will be extracted to the new repo and NuGetified
- New project for the shared code and new test project for tests accompanying the moved code are created
- Only Factories are left behind that are used only by XHarness
2020-04-01 13:32:21 -04:00
Sebastien Pouliot 86ab2bc1d1
[tests][link all] Remove test workaround (#8252)
iOS fixed after Xcode 11 release

Fix https://github.com/xamarin/xamarin-macios/issues/6254
2020-04-01 09:00:26 -04:00
Sebastien Pouliot ac01b522f0
[generator] Add missing `EnsureUIThread` for generated `init` and `initWithCoder` (#8250)
Fix https://github.com/xamarin/xamarin-macios/issues/8249
2020-03-31 17:20:44 -04:00
Manuel de la Pena f383593924
[Harness] Merge the Generator and the Factory in a same object and rename namespace. (#8222)
The Generator and the Factory classes are a xamarin-macios thing.
Initially, they were separated because the code that generated the bcl
tests was not inside xharness. That is not longer the case. We can merge
both classes, generalize the namespace and be more prepared to move out
of the xamarin-macios repo.
2020-03-30 23:23:33 -04:00
Manuel de la Pena 63fcc22bad
[Harness] Make sure we do not copy/generate the app sources more than once. (#8243)
Threading is hard, even with async. We reached a situation in which the
src code of the test applications from the template was being generated
more than once. Ideally, we could have a nice solution with
AsyncLazy<bool> and use the lazy async to copy the code, but it was
moved to netcore 5. The fix is a little uglier but valid, lock and
enure we only generate it once. Please note that you CANNOT use a lock
statement inside a async method.

Fixes: https://github.com/xamarin/xamarin-macios/issues/8240
2020-03-30 21:20:37 -04:00
Manuel de la Pena bdce02622f
[Harness] Remove the BCLTestProjectInfo class. (#8221)
Remove two classes that are not really needed and a method. We moved to
named tuples to make things simpler. Unfortunally C# does not support:

```csharp
using MyNamedTuple = (string Name, double value, bool answer);
```

But we have to live with this. Makes the namespace simpler and removes
confusion with the already present project classes that are more widely
used.

* [Harness] Remove the BCLTestProjectInfo class.

The class is not really needed. Move to a tuple, make the definition of
the group test project nicer since the dictionary initiallization makes
it cleaner.
2020-03-30 15:20:50 -04:00
Manuel de la Pena 728442e01f
[Harness] If empty nodes are found, do not crash. (#8201)
Looks like we have cases in which we get empty nodes when listing
devices, which makes the parsing of the nodes fail and crash.

Move the code to a diff method, try to parse the data, if there is an
exception (missing data) return null. If null is returned, do not add
it.

Fixes: https://github.com/xamarin/xamarin-macios/issues/8160
2020-03-30 10:41:38 -04:00
Sebastien Pouliot f1508bff64
[tests][bcl] Ignore some known failures on arm/32 bits (#8216) 2020-03-30 08:26:36 -04:00
Manuel de la Pena 0ffd4faa64
[Harness] Add a new known failure to help the mionitoring person. (#8227)
Looks like mono is not investing much time at the moment fixing
https://github.com/mono/mono/issues/18560

The above error happens always on 32b device tests. Added a new known
failure for the monitoring to use in their task so that they do not have
to goole the issue and they know that is knonw already.
2020-03-30 07:29:52 -04:00
Manuel de la Pena b371133216
[Harness] Verify that issue #8214 is fixed. (#8229)
Added a test in the xml parser that verifies that the parsing of the xml
is correct and that the correct number of failures is reported in the
human readable form.

fixes: https://github.com/xamarin/xamarin-macios/issues/8214
2020-03-30 07:29:22 -04:00
Manuel de la Pena 3623d7a72f
[Harness] Remove not needed classes from the BCLTestImporter. (#8218)
Remove two classes that are not really needed and a method. We moved to
named tuples to make things simpler. Unfortunally C# does not support:

```csharp
using MyNamedTuple = (string Name, double value, bool answer);
```

But we have to live with this. Makes the namespace simpler and removes
confusion with the already present project classes that are more widely
used.
2020-03-30 07:26:15 -04:00
Přemek Vysoký 7d47b073cf
[Harness] Remove AppRunner references from TestReporter (#8212) 2020-03-29 12:02:03 -04:00
Přemek Vysoký 6209719f51
[Harness] Remove Harness as a dependency (#8203) 2020-03-27 12:41:31 -04:00
Alex Soto dddcba9dc4
Merge pull request #8207 from dalexsoto/master-xcode11.4
[xcode11.4] Merge d16-5-xcode11.4 into master
2020-03-27 10:58:32 -04:00
Přemek Vysoký 46a2d96c55
[Harness] Fix XHarness unit tests (#8208)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-03-27 09:46:54 -04:00
Alex Soto 3ff3e07ebe Merge remote-tracking branch 'xamarin/d16-5-xcode11.4' 2020-03-26 19:59:14 -04:00
Chris Hamons 53964c0af0
[mac] Add NSScrollView.WillStartLiveScrollNotification (#8205)
- https://github.com/xamarin/xamarin-macios/issues/7712
2020-03-26 16:15:50 -05:00
Přemek Vysoký a48667b761
[Harness] Remove TextWriter dependency, refactor Logging (#8184) 2020-03-26 09:59:43 -04:00
Přemek Vysoký 3f3c9af198
Fix BUILD_REVISION env argument (#8197)
Fixes #8185 and some other minor things problems in AppRunner
2020-03-25 12:38:10 -04:00
Manuel de la Pena a59d519775
[BCL] Ignore a failing test on devices. (#8195)
Ignore a failing test on devices. Related mono issue: https://github.com/mono/mono/issues/19308

Mono has to fix the issue, so we ignore in the meantime.



Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-03-25 11:24:07 -04:00
Přemek Vysoký d98c515a4c
[Harness] Add strongly typed mlaunch args and escape them (#8167)
Co-authored-by: Premek Vysoky <prvysoky@microsoft.com>
2020-03-25 10:59:29 -04:00
Alex Soto aa73e41254
[xcode11.4][UIKit] Update bindings to Xcode 11.4 Final (#8192)
* [UIKit] Update bindings to Xcode 11.4 Final

* Apply feedback
2020-03-25 10:52:11 -04:00
Manuel de la Pena 0324fbab34
[Harness] Refactor, simplify and fix issues in the result parsing. (#8183)
Refactor result parsing and test it. Make sure that all the possible
corner cases are taken into account. The changes are as follow:

1. Move all the logic to a new class, which will take care of the reustl
parsing.
2. Simplify the parsing method by splitting the noise code to other
functions. There is no need to parse several files in the same method.
3. Add tests that make sure that the correct result is returned when:
  a. The app cannot launch.
  b. The app timesout.
  c. The app crashes.
2020-03-25 02:44:47 -04:00
Alex Soto 96e806c6e2
[FileProvider] Update bindings to Xcode 11.4 Beta 3 (#8075) (#8194) 2020-03-25 00:32:30 -04:00
Sebastien Pouliot aa5e17dfc5
[xcode11.4][intentsui] Add missing [DesignatedInitializer] (#8191) 2020-03-25 00:31:15 -04:00
Sebastien Pouliot 064886a09f
[xcode11.4][arkit] Add final bindings (ARKit 3.5) (#8190) 2020-03-24 22:29:32 -04:00
Alex Soto e8e78ff86e
[d16-5-xcode11.4] Initial bump to Xcode 11.4 Final (#8189) 2020-03-24 20:46:37 -04:00
Sebastien Pouliot e5e93f6c53
Revert "[tests] Adjust expected result of looking for 'mono_native_initialize'. Fixes xamarin/maccore#1809. (#6806)" (#8182)
This reverts commit e4a926e8f2.
2020-03-24 17:36:29 -04:00
Přemek Vysoký 6a58674960
Extract AppBundleInformationParser (#8174) 2020-03-24 10:02:22 +01:00
Sebastien Pouliot e9ff1f854d
It seems 'initWithRequest:cachedResponse:client:' is not called on 10.9 (#8173) 2020-03-23 20:55:51 -04:00
Sebastien Pouliot 9f1ecfa85f
[tests][monotouch-test] Update UrlProtocolTest (#8168)
The _nice_ thing about `NSURLProtocol` is that it does not force the use
of the network - but we inflicted this upon us on tests.

So this updates the test to avoid the network, which should make it
more reliable and not so much influenced by the URL used or the OS
versions where it's executed.

This does not cover as much callback as before. However this it does
test that the NSUrlProtocol is registered correctly (what we care) and
the rest is largely only related the the OS (which is not the target
of our unit tests).

Hopefully fix https://github.com/xamarin/maccore/issues/1956
2020-03-20 21:52:43 -04:00
Rolf Bjarne Kvinge d0b170bf8f
[d16-5-xcode11.4][mtouch/mmp] Only use stdout from xcrun as the path of the file that was found. Fixes #8147. (#8150) (#8164)
xcrun can print stuff to stderr even if it succeeds and prints what it found
to stdout, which means we have to separate stdout and stderr when capturing
xcrun's output.

This also means that we need a few changes to our RunCommand API:

* Add support for capturing stdout and stderr separately by providing
  different callbacks/StringBuilder instances.
* Use overloads instead of default arguments, because with default arguments
  we end up with ambiguous matches in a lot of places with the new overloads.

Fixes https://github.com/xamarin/xamarin-macios/issues/8147.

Backport of #8150.
2020-03-20 19:44:58 +01:00
Rolf Bjarne Kvinge dccf99a0ca
[tests] Work around xamarin/maccore#2177 by building test-libraries as part of the build. (#8163)
This is not a complete solution, because it doesn't work when running device
tests, because then we don't build locally. On the other hand, that bug has
never been a problem for device bots, so hopefully that won't change in the
future.

Ref: https://github.com/xamarin/maccore/issues/2177
2020-03-20 19:39:31 +01:00
Přemek Vysoký 29e978e0be
[Harness] Add AppRunner.RunAsync unit tests (#8159)
Co-authored-by: Premek Vysoky <prvysoky@microsoft.com>
2020-03-20 14:18:28 -04:00