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

1346 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 84c32b0a99 [tests] Run the mtouch tests in debug mode to get better stack traces. (#962) 2016-10-07 13:50:17 +02:00
Rolf Bjarne Kvinge 39ec76e28a [tests] Add workaround for file descriptor leak in System.Diagnostics.Process. (#961) 2016-10-07 13:50:08 +02:00
Rolf Bjarne Kvinge a5fde9fbbe [monotouch-test] Remove duplicated entry in project file. (#958) 2016-10-06 19:37:27 +02:00
Sebastien Pouliot 742f85ff5a Ensure BoringTLS is not build (by default) in any configuration for XI and XM (no trace in logs) (#957) 2016-10-06 12:56:17 -04:00
Rolf Bjarne Kvinge 2f60dd2220 [mtouch] Fix NullReferenceException in PInvoke wrapper generation. Fixes #44763. (#956)
Fix NullReferenceException in PInvoke wrapper generation when incremental
builds are enabled and the linker didn't run because cached results were
found.

https://bugzilla.xamarin.com/show_bug.cgi?id=44763
2016-10-06 16:13:01 +02:00
Rolf Bjarne Kvinge b2634bce56 [mtouch] Set install_name for libpinvokes.dylib. Fixes #44775. (#955)
https://bugzilla.xamarin.com/show_bug.cgi?id=44775
2016-10-06 15:17:40 +02:00
Rolf Bjarne Kvinge 7e1d9820b3 [mtouch] Bundle libpinvokes.dylib in the app. (#954)
Building a dylib is somewhat useless unless it ends up in the app bundle.
2016-10-06 14:16:55 +02:00
Rolf Bjarne Kvinge d3ae54adb6 Fix xamarin_log to not treat % as format specifiers. Fixes #45046. (#952) 2016-10-06 14:01:14 +02:00
Rolf Bjarne Kvinge 6f60992290 [mtouch] Build with -debug so that we get debug information and thus source code location in stack traces. (#953) 2016-10-06 10:24:09 +02:00
Sebastien Pouliot 860b694002 Bump mono to the head of mono-4.8.0-branch at PeterC's request (#950) 2016-10-06 08:07:39 +02:00
Chris Hamons 4bb4e2629d [XM] Teach mmp to set xamarin_debug_mode so mono will read mdb files (#951) 2016-10-06 07:05:12 +02:00
Rolf Bjarne Kvinge 07600238fc Bump mono to get linker fix. (#948)
commit mono/mono@fb01e0742c
Merge: 960ae16 3090df7
Author: Alexander Köplinger <alex.koeplinger@outlook.com>
Date:   Wed Oct 5 13:50:49 2016 +0200

    Merge pull request #3708 from rolfbjarne/linker-mark-nested-types-4.8.0

    [linker] We need to mark nested types even if the declaring type isn't marked.
2016-10-05 15:24:18 -04:00
Chris Hamons e9f02a4195 [XM] Add missing NSResponder APIs (#929)
- https://bugzilla.xamarin.com/show_bug.cgi?id=38652
2016-10-05 14:15:39 -05:00
Rolf Bjarne Kvinge c0255c2d49 Try to make the watch build parallel safe. (#949)
We need to build the watch profile in tools64 now, since we don't have
a separate watch-mono repository anymore.
2016-10-05 20:20:53 +02:00
Timothy Risi 065b189c26 [Mac] CoreBluetooth low hanging fruit bindings (#947) 2016-10-05 11:10:32 -05:00
Rolf Bjarne Kvinge 1d54c461b0 Remove the watch-mono repository, and use a single mono repository. (#941)
Still keeping some of the logic so that it's easy to switch back if we wish
to.
2016-10-05 16:21:01 +02:00
Chris Hamons 642173828e [XM] Disable blts on XM since we don't ship it (#946) 2016-10-04 21:31:56 -04:00
Rolf Bjarne Kvinge d1361d963e Merge pull request #933 from rolfbjarne/watchos-network-api
Bump [watch-]mono to get more API removal for watchOS.
2016-10-04 19:47:10 +02:00
Rolf Bjarne Kvinge f694955e5b Add makefile target to clean everything. (#942) 2016-10-04 18:42:57 +02:00
Rolf Bjarne Kvinge 8abaa2a742 Bump [watch-]mono to get ServicePointManager adjustments. 2016-10-04 18:40:50 +02:00
Rolf Bjarne Kvinge 66915a01c0 [system-dependencies] Add logic to auto-provision cmake. (#940) 2016-10-04 10:28:41 +02:00
Marius Ungureanu 9b7feaae38 Performance improvements (#938)
* [Perf] Use Runtime.IntPtrEqualityComparer everywhere

This avoid boxing the key for Dictionaries which take IntPtr as keys.

* [Perf] Avoid Tuple allocations and boxing of tuple items

The default implementation of Tuple IEquatable uses EqualityComparer<Object>.Default, which causes boxing for IntPtr.
Implement a hand-made IntPtr-Type tuple that also uses custom comparers defined Runtime, for IntPtr and Type equality.

This should improve allocations done by GetDelegateForBlock
2016-10-04 10:26:18 +02:00
Alex Soto 462a3c79fa [CoreLocation] Review macOS CoreLocation low hanging fruits and xtro (#937) 2016-10-03 21:59:39 -04:00
Alex Soto f136ae0520 Merge pull request #936 from VincentDondain/master-fix-bug-44874
[networkextension] Enable default contructor on NETunnelProviderManager
2016-10-03 19:52:25 -05:00
Vincent Dondain 699fbdf7fc [networkextension] Enable default contructor on NETunnelProviderManager
Fixes bug #44874: Problems with NetworkExtension.NETunnelProviderManager
(https://bugzilla.xamarin.com/show_bug.cgi?id=44874)

Using the default constructor doesn't return null anymore, this might be a
change we missed in one of the betas.
2016-10-03 23:31:53 +02:00
Timothy Risi ecdd2fa43a [Mac] SceneKit and Metal low hanging fruit bindings from iOS (#931) 2016-10-03 16:02:32 -04:00
Chris Hamons a214a37c96 [XM] Add NSValidatedUserInterfaceItem, NSCloudSharingValidation, NSUs… (#928)
- https://bugzilla.xamarin.com/show_bug.cgi?id=18359
2016-10-03 14:23:40 -05:00
Rolf Bjarne Kvinge 1fdd17e611 [mtouch] Add (another) workaround for file descriptor leak in System.Diagnostics.Process. (#934) 2016-10-03 20:02:28 +02:00
Rolf Bjarne Kvinge a3939b100f [mtouch] Tell Cecil to load assemblies in memory unless they're big assemblies. (#935)
In the recent Cecil update Cecil changed from loading assemblies in memory to
keep a FileStream around and read whenever necessary [1].

This is problematic for us, because we need all the AssemblyDefinitions in
memory at once, and if there are many assemblies, then we'll run into problems
due to the number of file descriptors in use.

So revert to the behavior for the old Cecil: loading assemblies in memory,
unless the assemblies are big, since in that case we might run out of memory
otherwise.

http://cecil.pe/post/149243207656/mono-cecil-010-beta-1
2016-10-03 13:44:51 -04:00
Jeffrey Stedfast 2a02804d81 [msbuild] Fixed IsWatchExtension state property (#913)
The problem was that this property was evaluating to True
for the main app bundle because it assumed that if the
project contained a Watch app, that it was the WatchExtension.

This logic only holds true for WatchOS1, but not WatchOS2.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44841
2016-10-03 13:44:31 -04:00
Rolf Bjarne Kvinge 2c9b5a5377 [Security] Re-enable some TLS logic on watchOS to fix a few unit tests.
Re-enable some TLS logic on watchOS to fix a few unit tests:

    [FAIL] CertificateTest.MailX1 : Same Handle
    [FAIL] RecordTest.SecRecordRecordTest : Same Handle
2016-10-03 18:31:04 +02:00
Rolf Bjarne Kvinge 7bcad32ddc [tests] Tweak link all/sdk tests after API change in watchOS. 2016-10-03 18:31:04 +02:00
Rolf Bjarne Kvinge c4f4056b22 Bump [watch-]mono to get more API removal for watchOS. 2016-10-03 18:31:04 +02:00
Martin Baulig 032e2482e4 [AppleTls]: Make 'OldTlsProvider' derive from 'LegacyTlsProvider'.
Ideally, we should just simply use 'Mono.Net.Security.LegacyTlsProvider',
but that would require some tweaks to the linker code.
2016-10-03 18:31:04 +02:00
Rolf Bjarne Kvinge 0fa4235097 [mtouch] Don't do any TLS processing in the linker for watchOS.
Don't do any TLS processing in the linker for watchOS, because on watchOS we
don't have (managed) TLS.
2016-10-03 18:31:04 +02:00
Manuel de la Pena da1478a680 New url session handler (#932)
* Added rewritten NSUrlSessionHandler that handles memory better

This is a rewrite of the ModernHttpClient version of NSUrlSessionHandler, it has better handling for memory that provides a more consistant memory footprint. It accomplishes this by using NSInputStream for requests, and reading and disposing directly from NSData instead of transitioning the NSData to a byte[] array.

* Try to fix build of PR #31

* [foundation] Restore compatibility with the new NSUrlSessionHandler

Mostly my comments in PR #174

* Add support for redirection [1]
* Add support for credentials [1]
* Add support for caching [2]
* Remove 2nd dictionary lookup in GetHeaderSeparator
* Avoid extraneous cast for credentialsToUse

PR 177 [3] adds tests that ensure no commits can remove, or change
default values, for handlers.

[1] breaking changes (feature, not API)
[2] breaking change (API removal)
[3] https://github.com/xamarin/xamarin-macios/pull/177

* [foundation] Restore compatibility with the new NSUrlSessionHandler

Mostly my comments in PR #174

* Add support for redirection [1]
* Add support for credentials [1]
* Add support for caching [2]
* Remove 2nd dictionary lookup in GetHeaderSeparator
* Avoid extraneous cast for credentialsToUse

PR 177 [3] adds tests that ensure no commits can remove, or change
default values, for handlers.

[1] breaking changes (feature, not API)
[2] breaking change (API removal)
[3] https://github.com/xamarin/xamarin-macios/pull/177

* Try to fix build of PR #31

* prevent DEADLOCK in UI code

* Added ConfigureAwait(false) to Task.Delay to prevent DEADLOCK when the stream is being awaited on the UI thread

* added a few more ConfigureAwait(false) statments that were missed on first pass

* Fix some small style issues.

* Set the default value of AllowAutoRedirect to true.
2016-10-03 18:25:16 +02:00
Martin Baulig eb516cbcd8 [AppleTls]: Ignore port number when validating certificates.
Fix for:
https://bugzilla.xamarin.com/show_bug.cgi?id=44708
2016-10-01 20:20:37 -04:00
Vincent Dondain fff489e3c0 Update reference to maccore 2016-10-01 23:11:23 +02:00
Vincent Dondain ecf5b1abe6 Update reference to maccore 2016-09-30 23:35:53 +02:00
Chris Hamons 110fc4cb5b [XM] Remove TODO from LaunchServices.cs because LSOpenFromURLSpec is deprecated (#930) 2016-09-30 17:13:33 -04:00
Rolf Bjarne Kvinge 460d41e9e3 Bump mono to get System test fixes. (#919) 2016-09-30 16:14:43 -04:00
Sebastien Pouliot 3c000ff67b [CoreVideo] Add CVPlanarPixelBufferInfo_YCbCrBiPlanar, fixes #28817 (#927) 2016-09-30 15:47:01 -04:00
Rolf Bjarne Kvinge 3f74be5a80 [system-dependencies] Add CMake dependency. (#920) 2016-09-30 15:46:40 -04:00
Rolf Bjarne Kvinge 0863e412b4 Remove XI/Classic support (#926)
* [tests] Remove Classic SDK tests.

* Remove XI/Classic support.

This also means we can remove support for the legacy registrars.

* [monotouch-test] Remove legacy registrar tests.

* [tests/mtouch] Remove Classic tests (and legacy registrar logic).

* [tests/scripted] Fix tests to reference Xamarin.iOS.dll.
2016-09-30 15:02:17 -04:00
Chris Hamons b7b970588a [XM] Add NSTooltipOwner to NSObject (#904)
* [XM] Add NSTooltipOwner to NSObject

- https://bugzilla.xamarin.com/show_bug.cgi?id=27349
- Designed to be implemented by any NSObject you pass into AddToolTip.
2016-09-30 11:57:28 -05:00
Chris Hamons 97dfc6e972 [XM] Add missing NSNotification bits (#925)
- https://bugzilla.xamarin.com/show_bug.cgi?id=40494
2016-09-30 12:51:11 -04:00
Sebastien Pouliot d0773a9ffc [avfoundation] Add overloads to AVCaptureDevice that accept an enum. Fixes #32535 (#922)
The current API use `string`, not `NSString` is added as a step forward.
The `NSString` is more correct but it does not ease discoverability (e.g.
code completion) so an enum-based overload is added (as the preferred API).

https://bugzilla.xamarin.com/show_bug.cgi?id=32535
2016-09-30 12:49:45 -04:00
Timothy Risi 7d14a4b94f [Mac] Activate gamekit bindings shared with iOS (#924) 2016-09-30 09:13:17 -05:00
Alex Soto 1d828e9e5e [CoreFoundation] Fix bug 44399 - ArgumentNullException in AddObserver (#921)
https://bugzilla.xamarin.com/show_bug.cgi?id=44399

We did not fully support passing null to name and objectToObserve in
CFNotificationCenter::AddObserver an  ArgumentNullException was thrown

The use case of sending null to both name and objectToObserve is to
observe all notifications posted to the notification center, this
won't work using darwing notification center, it is restricted
by apple.
2016-09-29 13:35:29 -04:00
Rolf Bjarne Kvinge 4d06d05cc0 [mtouch] Add workaround for file descriptor leak in System.Diagnostics.Process. (#917) 2016-09-29 17:45:23 +02:00