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

7495 Коммитов

Автор SHA1 Сообщение Дата
monojenkins 954c01b54e Bump mono to get mono archives. (#7367)
New commits in mono/mono:

* mono/mono@062f0ab8ca [sdks] Use Xcode 11.2 stable version for iOS/Mac SDKs

Diff: e1ef774391..062f0ab8ca
2019-11-06 07:26:18 +01:00
Manuel de la Pena 746fd47638
[Networking] Add the NWFramer implementation. (#7338)
Uncommented the sources and update some mistakes after following the
sample provided by Apple. Initially tests were going to be added but
they resulted to be to flacky and would make the CI red too often to be
adding value.

Porting the sample will ensure that it works are the bindings are not
broken.
2019-11-05 15:32:17 -05:00
Vincent Dondain ef1ccbd3f0
Update xcode11.3 version to 13.9/6.9 (#7362)
(.9) was previously used by master builds but this was not released to the public so we should be fine.
xcode11.3 will eventually become (.10)
2019-11-05 11:07:50 -05:00
Vincent Dondain 44c08f2ca3
Merge pull request #7355 from VincentDondain/d16-4-xcode11.2-merge
Merge xcode11.2 into d16-4
2019-11-04 16:25:02 -05:00
Vincent Dondain 898ea3cdbf [d16-4] Bump mono 2019-08@e1ef7743 (#7356)
New commits in mono/mono:

* mono/mono@e1ef774391 [2019-08] Bump CoreFX to pickup corefx PR #367 to fix #17133. (#17622)
* mono/mono@6d1f88e0ad Bump msbuild to get SDK updates from https://github.com/mono/msbuild/pull/150
* mono/mono@a3f3bfc4c3 Bump nuget to the latest suggested version
* mono/mono@9bd3079f1c [2019-08] bump msbuild with more p2 packages
* mono/mono@6ac1ff75a2 [dim][regression] Explicit interface override (#17583) (#17627)
* mono/mono@a119807a01 [acceptance-tests] Bump mono/roslyn to get build fix
* mono/mono@d234d34b70 [2019-08][merp] Install sigterm handler in EnableMicrosoftTelemetry
* mono/mono@444a9a3fc4 [2019-08] [merp] Introduce a new 'dump mode' that allows different signal behavior when dumping (#17568)

Diff: 8946e49a97..e1ef774391
2019-11-04 08:38:19 +01:00
Vincent Dondain ec3c01d131 Merge branch 'xcode11.2' into d16-4-xcode11.2-merge 2019-11-01 17:11:44 -04:00
Vincent Dondain e3c2b406de Bump to Xcode 11.2 final (#7347)
* Bump to Xcode 11.2 final

* Fix xtro
2019-10-31 23:25:04 -04:00
Whitney Schmidt d90223a316
[MapKit] Xcode 11.2 update (#7331)
* mapkit 11.2

* make methods public

* add async attribute

* style fixes, using pattern
2019-10-31 11:11:41 -04:00
Pramit Mallick c4f28a1888
[MPSCore] Xcode11.1 GM Binding (#7330) 2019-10-31 10:02:53 -04:00
Ema 0fc20af16a [msbuild] Makes DSymUtil task report the Executable as output
The DSymUtil tool not only generates the debug symbol files but also modifies the executable file. Marking that property as Output (and changing it to ITaskItem type) makes Visual Studio on Windows aware of that change. Under certain scenarios this was making the build on VS produce an app bundle that was not fully signed on incremental builds. For instance, the DSymUtil task was run for a framework on an incremental build, but as the executable file of that framework was not modified on Windows the inputs/outputs check for CodesignFrameworks did not fail so that target was skipped. This led to a failure on the CodesignVerify target.

Partial fix for https://developercommunity.visualstudio.com/content/problem/729766/codedesign-exited-with-code-1.html
2019-10-30 18:21:26 -03:00
Manuel de la Pena 957572720e
[Tests] Fix some network tests that were leaving the connection in a bad (#7337)
state.

Some of the tests were creating connections when not needed, this
'apparetly' was leaving the internal state of the Networking API in a
bad state in which it would throw a SIGSEGV and will make the connection
of other tests fail. In this case, the Tls tests that use the Network
API.

Cleaning the tests and removing those badly managed connections ensured
that the SIGSEGV would not be thrown and got all the other tests to
work.

This is a blackbox, test now passes without problems.

Fixes: https://github.com/xamarin/maccore/issues/2048
2019-10-30 15:07:28 -04:00
Pramit Mallick 3cf957442e [Foundation] Add 'targetContentIdentifier' to macOS and watchOS 2019-10-30 14:53:55 -04:00
Pramit Mallick ecefbde776
[ARKit] Xcode11.2 Binding (#7324)
* [ARKit] Add enum for xcode11.2

* address reviews

* Added Obsolete attribute
2019-10-30 11:04:48 -04:00
Manuel de la Pena 4a9c10a85b
[Introspection] Add Mac OS X 15.15.1 on availability tests. (#7328) 2019-10-30 01:47:41 -04:00
Whitney Schmidt b71fc30f49
CoreMedia 11.2 updates (#7329) 2019-10-29 17:05:23 -04:00
Waleed Chaudhry 90982b64b4
[CoreGraphics] Add CoreGraphics bindings for xcode11.2b2 (#7327) 2019-10-29 14:06:02 -04:00
Whitney Schmidt 54572a9f7b
add avmetadata updates (#7316) 2019-10-29 11:42:55 -04:00
Whitney Schmidt 04d2436587
[Xcode 11.2] Callkit updates (#7322)
* callkit updates for 11.2

* remove availability attributes for error enum
2019-10-29 11:42:32 -04:00
Waleed Chaudhry 25da8b43a2
[AuthenticationServices] Add AuthenticationServices bindings for xcode11.2 (#7315) 2019-10-29 10:52:03 -04:00
Vincent Dondain 346dc17447
Update Xcode11.2 package version to stable (.6) (#7320)
In anticipation of Xcode 11.2 release to stable which should be any time soon now that iOS 13.2 and tvOS 13.2 are out.
2019-10-29 10:18:38 -04:00
monojenkins 88f78f9a05 [Tests] Ignore BCL tests on 32b that fail due to threads failing to be created. (#7319)
Related mono issue: https://github.com/mono/mono/issues/17588
2019-10-29 08:20:49 -04:00
Matt Sylvia 95dd97c70c Branching for d16-5 2019-10-28 16:22:53 -04:00
Pramit Mallick f35569a715 [Appkit] Bindings part 4 (#7295)
Complete the AppKit bindings up to Xcode 11.2
2019-10-28 15:38:34 -04:00
Manuel de la Pena 610cefaf1e
[Tests] Fix the Network tests. (#7293)
* [Tests] Fix the Network tests.

The pattern used to Cancel then Dispose the connection is wrong and
ended up crashing the tests sometimes. It is a race condition and is
very rare, but makes the tests flaky. The changes ensures that we
Dispose the connection, which internally closes it.

Tests have been added for the NWConnection Close calls.

Also cleaned some on the CWL that were not needed.
2019-10-28 14:50:44 -04:00
Rolf Bjarne Kvinge 3d1790df41 [tests] Fix Xamarin.Tests.Misc.PublicSymbols after recent changes in our native code. (#7312)
Fixes this test:

     1) Failed : Xamarin.Tests.Misc.PublicSymbols(watchOS)
       Failed libraries
       Expected: <empty>
       But was:  "/Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.WatchOS.sdk/usr/lib/libxamarin-debug.a:
     	___os_log_helper_16_2_1_4_34
     "
       at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00000] in <1fca7937273a476381dfa5d9399511ee>:0
2019-10-28 10:40:53 -04:00
Vincent Dondain 84ee21569f [d16-4] Bump mono 2019-08@8946e49a (#7311)
New commits in mono/mono:

* mono/mono@8946e49a97 Added SR.missing from original backport
* mono/mono@5c784c9747 Bump to mono/corefx@fb41040
* mono/mono@fdb704901e Revert "[2019-08] rollback msbuild/roslyn updates for a preview" (#17543)
* mono/mono@92a177923c [2019-08] [debugger] Changing how debugger handles exception w… (#17524)
* mono/mono@1b2e536b22 [2019-08] rollback msbuild/roslyn updates for a preview
* mono/mono@ec4ef9bc34 Bump roslyn-binaries to get roslyn 3.4.0-beta3-19521-01
* mono/mono@cc8deca901 Bump msbuild to pick up sdks+roslyn updates
* mono/mono@335f0109c5 Bump msbuild to track mono-2019-08
* mono/mono@90d6e496e4 Fix checks so stack overflows work again.
* mono/mono@4b60e7f930 [jit] Avoid running mono_handle_native_crash () on the altstack, it can't produce a backtrace. AMD64 only for now.
* mono/mono@989333d6ae Bump Bockbuild to pick-up gtk# binding change (#17486)
* mono/mono@baa12e5d24 [profiler] Fix coverage profiler on macos (#17422)

Diff: ef75d4bef7..8946e49a97
2019-10-28 10:38:53 -04:00
Sebastien Pouliot c0e5176e9e
[runtime] Simplify Vision dlsym'ed functions (#7307)
* [runtime] Simplify Vision dlsym'ed functions

More code sharing - DRYer :)

It also remove complaints (from static analysis tools) that a `dlclose`
should be present. That's not really an issue here since it's reference
counted and won't be unloaded if you use the code (and such a call is
not added in the PR). It silence the warning since it's not a local
variable anymore.
2019-10-28 09:21:34 -04:00
Manuel de la Pena 4a9c6b994f
[Networking] Use the correct signature on SetData. Fixes #2042 (#7310)
Use the correct signature or the app will crash. Tested on a device.

Fixes: https://github.com/xamarin/maccore/issues/2042
2019-10-25 20:06:23 -04:00
Manuel de la Pena 5670872dc6
[Generator] Allow 1 level nester classes. Fixes: #7304 (#7309)
We have only encountered a case in which we had to add a nested
class/enum as the return type of a property. This fix ensures that we
can work with 1 level nested classes. A more general situation with
nested/nested/nested/.. classes is not taken into account because:

1. Would complicate too much the code.
2. Is fixing problems we do not have AFAIK.

So I'm keeping the fix simple, as I said, we have never faced anything
deeper than one level.
2019-10-25 20:06:00 -04:00
Sebastien Pouliot 9fd03625b4
[msbuild] Ensure the output of `mtouch` (and friends) are included in binary logs. Fix #7035 (#7288)
and by friends I mean `mmp` and `btouch`

What does this do ?

1. Assume that output of `mtouch` (and other similar tools) is **always** of high importance. Why ?

- If not then it's not saved in the binary log (even if visible on the console/text logs).
- The logging of `mtouch` (and friends) is dynamic, based on a supplied verbosity level.
- If a verbosity level _anywhere_ then it's a clear sign that the developer wants that extra output (and that includes binary logs).

2. Assume the _global_ verbosity of `msbuild` from the console is just as valid/useful than the one from VSfM.

- CI/bots produce logs and they should be useful to diagnose build issues.
- Setting verbosity in several places is error-prone, which delay investigations and results.
- Running the same project, with the same `msbuild` verbosity, should be identical between IDE and console.

What does that mean ?

Using `msbuild /v:diag /bl:out.binlog` you get a small(er) binary log that has everything[1] you need to diagnose a Xamarin.iOS (or Mac) build. It's also identical to the output what VSfM produce (for the same `msbuild` verbosity level).

[1] we might need to review what we log if we're missing interesting stuff

References:
https://github.com/xamarin/xamarin-macios/issues/7035
2019-10-25 17:44:35 -04:00
Rolf Bjarne Kvinge 34f02ff0a0
Bump mono to a hash with archives and use them. (#7299)
* Bump mono to a hash with archives and use them.

New commits in mono/mono:

* mono/mono@6af4ae7635 [2019-06][ci] Add Xcode 11.2beta2 for XI/XM Mono SDK builds

Diff: 476d72b9e3..6af4ae7635

* Bump mono to get min iOS version fix.

New commits in mono/mono:

* mono/mono@3775d5ac0a [sdks] Bump min iOS version to 7.0.

Diff: 6af4ae7635..3775d5ac0a

* [xharness] Bump mtouch tests timeout to 3h, we have a couple of new PR bots which are old and slow.

The new PR bots are late 2012 mac minis, so quite slow.
2019-10-25 22:13:20 +02:00
Sebastien Pouliot 6fca42049d
[runtime] Throw a OutOfMemoryException when processing parameters (#7308)
`calloc` can return `null` and we're writing to the memory location
which would crash the process.

An `OutOfMemoryException` is the correct way to handle this (even if
will likely crash the process anyway).
2019-10-25 15:49:22 -04:00
Sebastien Pouliot 6bada3b20c
[runtime] Simplify `xamarin_switch_gchandle` by removed dead code (#7306)
If `old_gchandle` is not set (0) then the function returns early,
so can't be 0 after the `MONO_THREAD_ATTACH` meaning:

* the `else` branch is never executed;

* the `exception_gchandle` is never set to something other than 0

* ` if (exception_gchandle == 0) {` is always `true` and can be removed (diff looks bigger than it is because of indentation change)

= the call to `xamarin_process_managed_exception_gchandle` is unneeded
2019-10-25 13:27:52 -04:00
Alex Soto 00d822bc97
[master] bump maccore (#7302) 2019-10-25 08:41:31 -04:00
Sebastien Pouliot f2c7eb887c
[runtime] Ensure binding-generator full initialize NVector3[d] members (#7298) 2019-10-24 18:04:26 -04:00
William Kent 9be58e4b9c os_log(3) support (#7141)
* Add xamarin_os_log function

See the comment in the function for an explanation
of why this wrapper function is required.

* Add Darwin/OSLog.cs

* Add xamarin_os_log to header

This ensures that the symbol will not be subject
to C++ name mangling, therefore breaking mmp.
With this change applied, OSLog works as expected.

* Resolve stylistic PR feedback

* Move OSLog into CoreFoundation namespace

This is where the NativeObject class lives, and it
also feels like a better fit for a low-level API
that is available on non-Mac platforms than the
macOS-only Darwin namespace.
2019-10-24 17:46:03 -04:00
Marius Ungureanu 775fbf56d0 Optimize a bit of the runtime sorting code by avoiding branches (#7145)
It is the more common and optimized idiom to just substract two integer values rather than do conditional checks. This may yield better performance for the qsort function, improving a bit of the startup time in case of many items

* Use a better, non-overflowing version with bit twiddling hacks.

Credits to @mandel-macaque for the magic
2019-10-24 16:59:36 -04:00
Manuel de la Pena e1c12bba11
[Network] Add NWFramerMessage implementation. (#7256)
Add a missing object for the type.

Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>
2019-10-24 10:40:54 -04:00
Connor Adsit 0f7213d481 Notarization tweaks (take 2) (#7287)
* Only notarize CI builds; timeout after 90 min

* Update jenkins/Jenkinsfile

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

* Don't upload notarized pkgs if it fails

* Update jenkins/Jenkinsfile

Co-Authored-By: Manuel de la Pena <mandel@microsoft.com>
2019-10-24 07:48:50 +02:00
Pramit Mallick a95fe82a68 [NetworkExtension] Bindings for xcode11.2 - Added missing selector 'identifier' 2019-10-23 17:33:30 -04:00
Rolf Bjarne Kvinge 4d8ec5d531
[Network] Fix NWTxtRecord.Apply. Fixes xamarin/maccore#2036. (#7281)
The block/delegate passed to NWTxtRecord.Apply is supposed to return a bool.
Not returning anything ends up with random behavior, which causes a test
failure on Catalina:

   3) TestApply (MonoTouchFixtures.Network.NWTxtRecordTest.TestApply)
        keycount
     Expected: 4
     But was:  1

     at MonoTouchFixtures.Network.NWTxtRecordTest.TestApply () [0x000a3] in /Users/builder/jenkins/workspace/xamarin-macios-pr-builder/tests/monotouch-test/Network/NWTxtRecordTest.cs:134
     at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
     at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Users/builder/jenkins/workspace/xamarin-macios-pr-builder/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395

I've fixed the existing API to return 'true' always in the block callback, to
get consistent behavior, and in addition I've added a new overload that takes
a delegate that returns a bool, which allows the consumer of the API to decide
what to return.

Fixes https://github.com/xamarin/maccore/issues/2036.
2019-10-23 23:25:27 +02:00
Waleed Chaudhry bad61b8f5e
[StoreKit] Add StoreKit bindings for xcode11.2b2 (#7294) 2019-10-23 16:29:35 -04:00
Manuel de la Pena e537e52386
[Tests] Allow to ignore the CMattachment tests in certain namespaces. (#7286)
There are a number of namespaces that do not support the API and can be
completly skipped. Also some of the classes in those namspaces are
expensive to create and the test is not providing any useful
information.

Fixes: https://github.com/xamarin/maccore/issues/2038
2019-10-23 16:03:02 -04:00
Vincent Dondain 8e2f221063
Update APIDIFF_REFERENCES to track current stable (13.4/6.4) (#7253) 2019-10-23 15:49:03 -04:00
Waleed Chaudhry c52a59358f
[UIKit] Add UIKit bindings for xcode11.2b2 (#7290) 2019-10-23 15:12:19 -04:00
Rolf Bjarne Kvinge 7df9ddd973
[xharness] Fix a process argument typo. (#7284) 2019-10-23 19:05:54 +02:00
Pramit Mallick fbf33357ab
[Appkit] Bindings - part 3 (#7261)
* added NSCollectionLayoutSupplementaryItem + NSCollectionLayoutItem

* added NSCollectionLayoutBoundarySupplementaryItem + NSCollectionLayoutDecorationItem

* added NSCollectionLayoutGroupCustomItem + NSCollectionViewCompositionalLayoutConfiguration

* added NSColorSampler + NSSwitch

* added NSCollectionLayoutGroup

* merge conflict resolve in todo

* merge

* merge

* merge

* added NSCollectionViewCompositionalLayout

* added NSStepperTouchBarItem

* removed DesignatedInitializer and added cases to ApiCtorInitTest

* ready for PR

* addressed reviews

* added [DisableDefaultCtor]
2019-10-23 10:15:33 -04:00
Rolf Bjarne Kvinge e919ae7f7a Revert "Only notarize CI builds; timeout after 90 min (#7280)"
This reverts commit cd396d63cc.
2019-10-23 08:10:47 +02:00
Connor Adsit cd396d63cc Only notarize CI builds; timeout after 90 min (#7280)
* Only notarize CI builds; timeout after 90 min

* Update jenkins/Jenkinsfile

Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>
2019-10-23 07:46:55 +02:00
Manuel de la Pena 20df742564
[Network] Cleanup the NWProtocolMetadata. (#7270)
Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>
2019-10-22 23:49:51 +02:00