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

506 Коммитов

Автор SHA1 Сообщение Дата
nosami f7c84735c8 Fixes #42828 2016-08-02 16:59:44 +01:00
Marek Safar 03febb985d [tests] Add explicit System.Core references 2016-07-30 10:06:46 +02:00
Rolf Bjarne Kvinge 1c8a8db412 [runtime] Make sure to call mono_gc_init_finalizer_thread for watchOS. Fixes #42780. (#504)
https://bugzilla.xamarin.com/show_bug.cgi?id=42780
2016-07-28 09:56:55 +02:00
Rolf Bjarne Kvinge 22921dd8b7 [runtime] Fix a crash that occurs when Objective-C holds weak references. Fixes #39236. (#501)
Fix xamarin_switch_gchandle to not crash if the gchandle happens
to point to null (a collected object).

https://bugzilla.xamarin.com/show_bug.cgi?id=39236
2016-07-27 17:43:28 +02:00
Zoltan Varga be511f0abd Bump mono to pick up the fix for #42750. (#499) 2016-07-27 10:57:43 +02:00
Rolf Bjarne Kvinge 774fdf80b6 [runtime] Set base directory and config file name for extensions. Fixes #42784. (#493)
The base directory and config file name is normally set automatically
when we ask Mono to execute the Main function, but in the case of extensions,
there is no Main function, so these values are not set, causing some
features (reflection-only assembly load) to not work correctly.

https://bugzilla.xamarin.com/show_bug.cgi?id=42784
2016-07-26 11:39:33 -04:00
Rolf Bjarne Kvinge abd5d1ba46 Use dlsym for user assemblies on iOS. (#492)
We tried disabling dlsym for all assemblies on iOS, but it turned
out to break a significant amount of customer code [1].

So re-enable it, but only for user assemblies (since we control
all assemblies we ship and can thus make sure those work with
dlsym disabled).

https://trello.com/c/guig1MF2/623-re-enable-dlsym-for-ios
2016-07-26 11:39:18 -04:00
Rolf Bjarne Kvinge 45001cda7d Add multiple new assemblies to the list of known SDK assemblies. (#475)
Fixes the Sdk test:

    Errors and Failures:
    1) Test Failure : Xamarin.Linker.SdkTest.iOS_Classic
         BCL
      Expected: <empty>
      But was:  < "System.Net.Http.WinHttpHandler", "System.Numerics.Vectors", "System.Reflection.Context", "System.Reflection.DispatchProxy", "System.Runtime.InteropServices.RuntimeInformation", "System.Security", "System.Xml.XPath.XmlDocument" >

    at NUnit.Framework.CollectionAssert.IsEmpty (IEnumerable collection, System.String message, System.Object[] args) <0x39ec5e0 + 0x00047> in <filename unknown>:0
    at NUnit.Framework.CollectionAssert.IsEmpty (IEnumerable collection, System.String message) <0x39ec5b0 + 0x0001f> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.BCL (System.String path) <0x39ea8a8 + 0x003f3> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.iOS_Classic () <0x39ea808 + 0x0001b> in <filename unknown>:0

    2) Test Failure : Xamarin.Linker.SdkTest.iOS_Unified
         BCL
      Expected: <empty>
      But was:  < "System.Net.Http.WinHttpHandler", "System.Numerics.Vectors", "System.Reflection.Context", "System.Reflection.DispatchProxy", "System.Runtime.InteropServices.RuntimeInformation", "System.Security", "System.Xml.XPath.XmlDocument" >

    at NUnit.Framework.CollectionAssert.IsEmpty (IEnumerable collection, System.String message, System.Object[] args) <0x39ec5e0 + 0x00047> in <filename unknown>:0
    at NUnit.Framework.CollectionAssert.IsEmpty (IEnumerable collection, System.String message) <0x39ec5b0 + 0x0001f> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.BCL (System.String path) <0x39ea8a8 + 0x003f3> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.iOS_Unified () <0x39ede58 + 0x0001b> in <filename unknown>:0

    3) Test Failure : Xamarin.Linker.SdkTest.tvOS
         BCL
      Expected: <empty>
      But was:  < "System.Net.Http.WinHttpHandler", "System.Numerics.Vectors", "System.Reflection.Context", "System.Reflection.DispatchProxy", "System.Runtime.InteropServices.RuntimeInformation", "System.Security", "System.Xml.XPath.XmlDocument" >

    at NUnit.Framework.CollectionAssert.IsEmpty (IEnumerable collection, System.String message, System.Object[] args) <0x39ec5e0 + 0x00047> in <filename unknown>:0
    at NUnit.Framework.CollectionAssert.IsEmpty (IEnumerable collection, System.String message) <0x39ec5b0 + 0x0001f> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.BCL (System.String path) <0x39ea8a8 + 0x003f3> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.tvOS () <0x39eded8 + 0x0001b> in <filename unknown>:0

    4) Test Failure : Xamarin.Linker.SdkTest.watchOS
         BCL
      Expected: <empty>
      But was:  < "System.Net.Http.WinHttpHandler", "System.Numerics.Vectors", "System.Reflection.Context", "System.Reflection.DispatchProxy", "System.Runtime.InteropServices.RuntimeInformation", "System.Security", "System.Xml.XPath.XmlDocument" >

    at NUnit.Framework.CollectionAssert.IsEmpty (IEnumerable collection, System.String message, System.Object[] args) <0x39ec5e0 + 0x00047> in <filename unknown>:0
    at NUnit.Framework.CollectionAssert.IsEmpty (IEnumerable collection, System.String message) <0x39ec5b0 + 0x0001f> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.BCL (System.String path) <0x39ea8a8 + 0x003f3> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.watchOS () <0x39edf58 + 0x0001b> in <filename unknown>:0
2016-07-25 08:19:58 -04:00
Rolf Bjarne Kvinge 8f685cba8f [mtouch tests] Improve Sdk tests to list all failing assemblies instead of failing on the first one. (#474) 2016-07-25 08:18:49 -04:00
Rolf Bjarne Kvinge 59aae5425f [registrar] Make sure we include the headers for NS[U]Integer / CGFloat to compile. Fixes #42673. (#465)
https://bugzilla.xamarin.com/show_bug.cgi?id=42673
2016-07-22 19:11:09 +02:00
Rolf Bjarne Kvinge 9b3c97042d Add System.Security.Cryptography.[Algorithms|Primitives] to the list of known SDK assemblies. (#445) (#462)
Fixes the Sdk test:

    Errors and Failures:
    1) Test Failure : Xamarin.Linker.SdkTest.iOS_Classic
         System.Security.Cryptography.Algorithms
      Expected: True
      But was:  False

    at Xamarin.Linker.SdkTest.Facades (System.String path) <0x30d4640 + 0x0006f> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.iOS_Classic () <0x30d2808 + 0x0004b> in <filename unknown>:0

    2) Test Failure : Xamarin.Linker.SdkTest.iOS_Unified
         System.Security.Cryptography.Algorithms
      Expected: True
      But was:  False

    at Xamarin.Linker.SdkTest.Facades (System.String path) <0x30d4640 + 0x0006f> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.iOS_Unified () <0x30d5558 + 0x0004b> in <filename unknown>:0

    3) Test Failure : Xamarin.Linker.SdkTest.tvOS
         System.Security.Cryptography.Algorithms
      Expected: True
      But was:  False

    at Xamarin.Linker.SdkTest.Facades (System.String path) <0x30d4640 + 0x0006f> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.tvOS () <0x30d55d8 + 0x0004b> in <filename unknown>:0

    4) Test Failure : Xamarin.Linker.SdkTest.watchOS
         System.Security.Cryptography.Algorithms
      Expected: True
      But was:  False

    at Xamarin.Linker.SdkTest.Facades (System.String path) <0x30d4640 + 0x0006f> in <filename unknown>:0
    at Xamarin.Linker.SdkTest.watchOS () <0x30d5658 + 0x0004b> in <filename unknown>:0
2016-07-22 08:04:58 -04:00
Sebastien Pouliot 72d0658344 [security][tvos] Remove SecSharedCredential API (#457)
Xcode8 SDK (for tvOS 10) marked those API with __TVOS_UNAVAILABLE making
them only available on iOS.

Since the API are not yet released in stable (C8) so we can removing
them  proactively. It will be easier to add them back later (if the
situation change) than removing/obsoleting them.
2016-07-21 11:37:28 -04:00
Chris Hamons 900d13c13f Build System.Security for XM Mobile (#451)
- Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=42692
2016-07-21 09:05:57 -05:00
Aleksey Kliger (λgeek) 276d4de9a9 Bump watch-mono (#436)
To include mono/mono@f1417d0c92

Fixes bugzilla 42625 for Cycle 8
2016-07-20 09:49:26 +02:00
Rolf Bjarne Kvinge 40137dcfb6 [xharness] Don't use variables (isSimulator) before they've been initialized. (#433)
Fixes an issue where we would try to fetch crash logs from device when
running in the simulator.
2016-07-19 14:16:02 -04:00
Alexander Köplinger c50322f4dc [build] Update list of installed assemblies (#430)
(cherry picked from commit 1edab27b38)
2016-07-19 18:53:32 +02:00
Sebastien Pouliot 1a58afb47d Fix FetchString change from PR335, other (wrong) cases and reduce code duplication (#389)
PR335 [1] caused a leak and, upon verification, the same pattern was used
elsewhere too. There were also other (good) cases that now share the same
code.

[1] https://github.com/xamarin/xamarin-macios/pull/335
2016-07-19 08:44:59 -04:00
Rolf Bjarne Kvinge ef0c82b741 [src] Make sure dlls have their timestamps updated after attempting to build them. (#426)
This tries to work around a make bug where make gets confused and ends
up in an infinite loop if a executing a target (because one of the dependencies
changed) does not actually change the timestamp of the target (while this is logically
unsound, it can certainly happen when invoking submakes to build stuff because
the supermake does not have a complete knowledge about all the dependencies
(because our makefiles aren't perfect)).
2016-07-19 13:52:12 +02:00
Rolf Bjarne Kvinge f1f233a6e7 [src] Tell make how to install System.Drawing.Primitives.dll for XM. (#427)
Otherwise there's a matching pattern target that will create a symlink to nowhere.
2016-07-19 13:51:40 +02:00
Rolf Bjarne Kvinge fed6b450e4 [builds] Fix symlinks from Unified facades to Classic facades. (#424)
Instead of having a symlink of the entire Facades directory for
Unified, we must now create a real directory and symlink each Facade
assembly, because there's one Facade assembly that can't be shared
between Unified and Classic (System.Drawing.Primitives.dll) because
it references monotouch.dll/Xamarin.iOS.dll.
2016-07-19 11:12:00 +02:00
Manuel de la Pena 53e2129230 [Fix] Ensure that symbolication contains the aotid subdirs that will contain the msym files. 2016-07-18 18:19:25 +02:00
Marek Safar 2835ad61e4 Merge pull request #413 from xamarin/hamons_xm_drawprim
[build] Fixes System.Drawing.Primitives facades to be proxy for appropriate profiles. Fixes #42557
2016-07-18 15:15:04 +02:00
Chris Hamons e8de72c7fe Remove xm45 custom System.Drawing.Primitives.dll since normal magic works for it 2016-07-15 18:14:12 -05:00
Chris Hamons 3e8ab20f8a Fix XM bits of System.Drawing.Primitives.dll changes 2016-07-15 17:07:13 -05:00
Marek Safar 945ce0bb3a Bump mono 2016-07-15 21:19:37 +02:00
Vincent Dondain b62ecd5348 [xtro-sharpie] Use default mono in Makefile (#407) 2016-07-15 13:52:40 -04:00
Marek Safar 5bded52bc3 Bump mono 2016-07-15 18:56:55 +02:00
Marek Safar 7517e622b1 [build] Fixes System.Drawing.Primitives facades to be proxy for appropriate profiles. Fixes #42557 2016-07-15 17:43:50 +02:00
Rolf Bjarne Kvinge 724308cb0d [registrar] Forward-declare ObjC classes. Fixes #42454. (#395)
There can be circular dependencies between Objective-C classes,
so make sure we don't fail compilation when that occurs by
forward declaring any Objective-C classes/protocols.

The test case in question does not contain a circular dependency,
but the same issue occurs due to types not being generated in the
correct order (a correct order could be constructed for the test
case, but there's no general solution since circular dependencies
can exist).

https://bugzilla.xamarin.com/show_bug.cgi?id=42454
2016-07-14 15:28:57 -04:00
Rolf Bjarne Kvinge ddfad1bc88 [registrar] Use the correct parameters when generating category methods. Fixes #42489. (#396)
Category methods are exposed like extension methods, and the first parameter
specifies the class, which means we need to skip the first type when generating
the ObjC signature.

https://bugzilla.xamarin.com/show_bug.cgi?id=42489
2016-07-14 18:42:30 +02:00
Rolf Bjarne Kvinge e6fc5a15d0 [runtime] Parse unions in objc encodings correctly. Fixes #42452. (#394)
Unions are defined as follows:

    (name=type...)

and we were not correctly parsing the 'name=' part.

https://bugzilla.xamarin.com/show_bug.cgi?id=42452
2016-07-14 18:03:02 +02:00
Marek Safar e95841dfe2 Merge pull request #390 from marek-safar/cycle8
Bump mono for netstandard 1.6 updates
2016-07-14 16:29:40 +02:00
Marek Safar a48b3001ab [build] Update facades script to include correct names 2016-07-14 14:54:23 +02:00
Marek Safar c95b256d8d Bump mono for netstandard 1.6 updates 2016-07-14 14:09:12 +02:00
Sebastien Pouliot f085b17b36 [tests] Add missing version check on AUViewController tests. Fixes #42440 (#393)
Type was introduced in iOS 9, so it fails on earlier versions.

https://bugzilla.xamarin.com/show_bug.cgi?id=42440
2016-07-13 23:10:35 -04:00
Sebastien Pouliot 90259562d1 Switch maccore to cycle8 branch 2016-07-12 16:46:37 -04:00
Sebastien Pouliot b0d0479681 Bump mono and watch-mono to the head of mono-4.6.0-branch 2016-07-12 13:20:16 -04:00
Sebastien Pouliot 0622ee8a74 Switch mono branch to 4.6.0 (#355) 2016-07-07 16:47:24 -04:00
Rolf Bjarne Kvinge 01775dfd2e [mtouch] Make sure to reference mono_profiler_startup_log so that the native linker doesn't remove the symbol. Fixes #41666. (#340)
https://bugzilla.xamarin.com/show_bug.cgi?id=41666
2016-07-04 13:26:12 -04:00
Sebastien Pouliot a479bda742 Bump XI/XM versions and branch information for C8 2016-07-04 10:02:00 -04:00
Aleksey Kliger (λgeek) fad331ff76 [mmp] Preserve TransparentProxy::LoadRemoteFieldNew (#339)
This fixes an assert that `tp_load != NULL` on osx when xamarin-macios is built
with mono master after mono/mono@787e34ae2d
2016-07-01 09:57:25 -04:00
Jeffrey Stedfast b604792a3e [msbuild] Replaced uses of $(_IpaOutputDir) with $(IpaPackageDir) (#336)
* [msbuild] Replaced uses of $(_IpaOutputDir) with $(IpaPackageDir)

Fixes the unit tests

* [msbuild] Define IpaPackageDir/Name based on IpaPackagePath if defined
2016-06-30 21:22:41 -07:00
Sebastien Pouliot b417592947 [coregraphics] Remove some code duplication in CGFont (#335)
and avoid creating a non-required instance of CFString
2016-06-30 13:38:25 -04:00
Rolf Bjarne Kvinge 81a8e7aee7 [Foundation] NSUbiquitousKeyValueStore is not available on watchOS. (#333)
* [Foundation] NSUbiquitousKeyValueStore is not available on watchOS.

Fixes an issue found by the introspection tests when running on a
watchOS device.

* [monotouch-test] Fix watchOS build with regards to NSUbiquitousKeyValueStore changes.
2016-06-30 03:47:13 -07:00
Rolf Bjarne Kvinge cf2d43e85c [xharness] Create a file if it doesn't exist when creating a writer for a log file. (#332) 2016-06-30 02:39:33 -07:00
Rolf Bjarne Kvinge 27ee956142 [link sdk] Update tests to work on watchOS. Fixes #41538. (#331)
* [link sdk] Ignore tests that uses our networking stack for watchOS. Partially fixes #41538.

https://bugzilla.xamarin.com/show_bug.cgi?id=41538

* [link sdk] Update LinkSdkRegressionTest.SpecialFolder to work on watchOS. Fixes #41538.

https://bugzilla.xamarin.com/show_bug.cgi?id=41538
2016-06-30 02:35:07 -07:00
Rolf Bjarne Kvinge fc74f195bf [tests] Set LSUIElement in the mac tests' Info.plist so that they don't show an icon in the dock. (#329) 2016-06-30 01:01:11 -07:00
Rolf Bjarne Kvinge 6c2208734d [link all] Ignore tests that uses our networking stack for watchOS. Fixes #41539. (#330)
https://bugzilla.xamarin.com/show_bug.cgi?id=41539
2016-06-30 01:00:03 -07:00
Zoltan Varga 3abb02ee87 Bump watch mono to pick up the fix for #41747. (#326) 2016-06-29 20:30:04 -04:00
Rolf Bjarne Kvinge e2cd699b27 [registrar] Don't return from trampolines without going through proper state handling code. (#322)
Fixes a COOP crash due to invalid state.
2016-06-29 15:10:24 -04:00