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

8032 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 952037b7a3
[tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
monojenkins 52a30b9fed
[mono] Bump mono to match android (#8685)
New commits in mono/mono:

* mono/mono@8c085a99b3 [reflection] Check whether a pointer is valid before dereferencing (#19842)
* mono/mono@89d772a3ab Always include Unicode charinfo, so tar made in csc mode works in mcs mode (#19813)
* mono/mono@e9d3af508e Bump bockbuild to get https://github.com/mono/bockbuild/pull/159
* mono/mono@d6f0c25d34 [2020-02] Bump msbuild to track mono-2019-12 (#19661)

Diff: 075c3f0619..8c085a99b3

Co-authored-by: Alex Soto <alex@alexsoto.me>
2020-05-27 13:19:36 -04:00
monojenkins 7420efd696
[ObjCRuntime] Use _NSConcreteStackBlock instead of _NSStackBlock. (#8673)
_NSConcreteStackBlock is documented in http://clang.llvm.org/docs/Block-ABI-Apple.html.

It's not an actual Objective-C class, so we have to use dlsym to find its pointer.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-05-27 08:34:12 +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 e9b1189f83
[d16-7] Bump API diff to latest released stable (#8653) 2020-05-21 20:47:18 -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 ab8a0fcc56
[d16-7] page through github statuses for manifest URL (#8638)
* page through github statuses for manifest URL

* Check to see if the content has values (rather than being the empty string)

* Fix code style.

Co-authored-by: cadsit <connor.adsit@gmail.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-05-21 16:39:01 +02:00
monojenkins c2a220d84e
[BGTasks] Do not make BGTask abstract. (#8532)
The class in the API is abstract, the problem is that when the
application goes to the background, when it gets back we try to
instantiate an abstract class probably because Apple returns a internal
type that we do not know about.

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

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-05-15 09:53:18 -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
Manuel de la Pena 0f1977a2a6
[Master][Mono] Bup mono to 075c3f0 (#8474)
Bump mono to the head of 2020. Match android.
Commits:

  * mono/mono@075c3f0619: Fix if already send error to http client, do not callback. (#19668)
  * mono/mono@35cc82cc6c: [2020-02] [debugger] Remove assert when the DebuggerTypeProxy cannot be instantiated (#19632)
  * mono/mono@00ae178a04: Bump corefx (#19656)
  * mono/mono@c23ad4f5b3: [2020-02] Bump msbuild to track mono-2019-12 (#19623)
  * mono/mono@83558de96b: [System.Runtime.Serialization] Work around `specified cast is not valid` error (#19640)

Full diff: 051408e0be...075c3f0619
Related android PR: https://github.com/xamarin/xamarin-android/pull/4630
2020-04-29 19:59:46 -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
Rolf Bjarne Kvinge aca2a1a257
[devops] Use a more restricted glob to find directories with sample data in. Fixes xamarin/maccore#2202. (#8465)
The previous pattern would match the output files we created from processing
these directories, and somehow the pattern would match such a file (even
though the pattern should only be executed before doing any processing, when
those files don't exist yet, so I don't know exactly why this is happening),
leading us to try to process those files as if they were directories with
sample data in, with the predictable (disastrous) result.

Fixes https://github.com/xamarin/maccore/issues/2202.
2020-04-29 17:35:23 +02: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 1040a31636
[generator] Remove generated, 32bits specific code paths for XM (#8445)
Product now only supports 64bits but the generator was still
producing some dual 32/64 code.

Fix https://github.com/xamarin/xamarin-macios/issues/8441
2020-04-22 12:12:39 -04:00
monojenkins 725aedec3d
[mtouch] Always enable experimental-xforms-product-type (#8427)
Not an experiment anymore - it works as expected.

This half-remove the optimization option (it must remain there to avoid
breaking all projects that have it defined) but it will always be `true`
so `Xamarin.Forms.Platform.iOS.dll` will **always** be considered as SDK
code by the linker.

Fix https://github.com/xamarin/xamarin-macios/issues/8407
2020-04-18 10:47:01 -04:00
Manuel de la Pena b6ff94a4cb
[d16-7][Mono] Bump mono to the head of 2020-02 (#8421)
Bump mono to the head of 2020-02 and match with android.
Commits:

  * mono/mono@58b04da0d7: Bump CoreFX to pickup https://github.com/mono/corefx/pull/397. (#19548)
  * mono/mono@f51cb7ad85: [2020-02][debugger] Bump protocol for multi threaded single step implementation (#19437) (#19477)
  * mono/mono@62414d588b: [2020-02] Add BeginRead/BeginWrite/EndRead/EndWrite overloads back to SslStream (#19476)
  * mono/mono@259ec2ef65: [2020-02][debugger] Bump protocol for this commit https://github.com/mono/mono/pull/19248 (#19318) (#19473)

Diff : 165f4b0341...58b04da0d7
Android PR: https://github.com/xamarin/xamarin-android/pull/4568
2020-04-17 16:17:04 -04:00
monojenkins 53694fabbd
[mmp] Fix PostLinkScanTypeReferenceStep from running two times (#8405)
This came with the merge from xcode11.4 into master. Thankfully there
were unit tests to caught it, because Eyeballs Mark I did not.

Fix https://github.com/xamarin/xamarin-macios/issues/8400
2020-04-16 09:22:18 -04:00
monojenkins 5673bb0dba
[msbuild] Build bindings with the latest (stable) version of C# (#8401)
We now require C# 8 for nullability support. However we allow custom code
to be included inside binding projects and we should not support anything
(stable) that the C# compiler (installed separately) allow, so `latest`
it is.
2020-04-15 20:31:18 -04:00
monojenkins 49f6846a72
[generator] Handle (ignore) C#8 special nullability attributes (#8384)
C# 8 nullability attributes are special (injected into assemblies) and
not meant to be used from C# source code.

We do not **use** them (we generated them) so existing attributes can
be ignored (filtered) by the generator.

Fix https://github.com/xamarin/xamarin-macios/issues/8347
2020-04-14 16:54:20 -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
Emanuel Fernandez Dell'Oca bdcd7d35a4
[d16-7] Fixes msbuild.zip (#8368)
* [msbuild] Conditionally include MSBuild assets

Updates the Microsoft.Build* references to use PackageReference to match Xamarin.iOS.Tasks.Core.csproj, and conditionally includes the MSBuild assets so these can be copied to the output directory if needed. If `IncludeMSBuildAssets` is not set, the behavior will remain the same, the MSBuild assemblies won't be copied to the output dir.

* Fix whitespace.

* Bump maccore

New commits in xamarin/maccore:

* xamarin/maccore@92a06f7303 [d16-7] Fixes msbuild.zip (#2200)

Diff: a14f74b40a..92a06f7303

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-04-14 08:19:08 +02: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
monojenkins 2ff994455d
[linker] Fix infinite queue found with nullability PR (#8340)
and removed previous workaround

Replace previous attempt https://github.com/xamarin/xamarin-macios/pull/8336
2020-04-10 15:44:06 -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
monojenkins fb5c5187a2
[linker] Remove nullability attributes than are not used at runtime (#8303) 2020-04-07 13:44:10 -04:00
Matt Sylvia 9686ecb7f6 Branching for d16-7 2020-04-06 18:22:06 -04:00
Alex Soto 55c6bd74e5
[maccore] Bump maccore to bring localization revert (#8298)
New commits in xamarin/maccore:

* xamarin/maccore@a14f74b40a Revert "[Localization] Rework mlaunch (#2171)" (#2194)
* xamarin/maccore@9939a3812d [mlaunch] Accept the latest C# language version in projects (#2193)

Diff: fdeec0f4cc..a14f74b40a
2020-04-06 17:21:28 -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
Rolf Bjarne Kvinge 2ae55ac1f4
[msbuild] Compute the ComputedFrameworkMoniker later in the build. Fixes #8277. (#8279)
It might only be necessary for Xamarin.iOS builds, but modify both XI and XM
so that the logic is identical.

Fixes https://github.com/xamarin/xamarin-macios/issues/8277.
2020-04-06 12:47:01 +02: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
Sebastien Pouliot a4d5d97b99
[avfoundation] Remove extra NSString instance created to get a constant (#8280) 2020-04-03 14:14:43 -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 f8001a8114
[Bump VMac] Bump max version of VSMac to current stable major. (#8282)
Current VSMac version is 8.5.1.42. Bump the max version so that we can
dogfood at least the stable channel without setting the ignore flag.
2020-04-03 13:14:11 -04:00
Manuel de la Pena da0c009a39
[Bump Mono] Bump mono to match android to ecde086 (#8281)
Commits:

* mono/mono@ecde08600b: [runtime] Allocate the memory for gshared gparams from image sets. (#19361) (#19419)
* mono/mono@8fb9301292: [meta] Add mono_type_get_name_full to public API (#19415)
* mono/mono@7bfb441fb4: Fix Windows .msi build using newer xar
* mono/mono@e77cea1910: Fix Windows .msi build with recent cygwin updates

Complete diff: fda73998f9..ecde08600b
2020-04-03 13:10:19 -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
Alex Soto 5aa2b1c34f
Update azure-pipelines.yml 2020-04-02 22:20:01 -04:00
Alex Soto 316359cf98 [maccore] Bump maccore to get AzDo script changes (#8269)
New commits in xamarin/maccore:

* xamarin/maccore@fdeec0f4cc Update external-deps.csx (#2191)
* xamarin/maccore@f473e45166 [Localization] Rework mlaunch (#2171)

Diff: 5dbf6f4c5f..fdeec0f4cc
2020-04-02 16:20:42 -04:00
Rolf Bjarne Kvinge 5aff10b3c0
[msbuild] No need to pass --gsharedvt to mtouch anymore, mtouch ignores --gsharedvt since it must always be enabled. (#8270) 2020-04-02 17:22:17 +02:00
monojenkins 04acaf65e4
[UIKit] Fixes UIGestureRecognizer default introduced in iOS 13.4 (#8264)
Fixes xamarin/Xamarin.Forms#10162
Fixes xamarin/xamarin-macios#8255

Xcode 11.4 introduced a new protocol member to
`UIGestureRecognizerDelegate` and our initial proposed default value for
`ShouldReceiveEvent` is not playing well with the world.

Co-authored-by: Alex Soto <alex@alexsoto.me>
2020-04-01 18:50:36 -04:00
Manuel de la Pena 786bfc09f5
[Mono bump] But mono to match android. (#8259)
Commits:

* mono/mono@7bfb441fb4 Fix Windows .msi build using newer xar

Full diff: e77cea1910..fda73998f9

Related android PR: https://github.com/xamarin/xamarin-android/pull/4500
2020-04-01 15:15:41 -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