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

3262 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 7759aa579c [src] Add a Release-bitcode configuration to project files. 2016-05-26 17:47:10 +02:00
Zoltan Varga 5270b63cee [runtime] Use the same coop gc macro names as mono master does. 2016-05-26 17:47:10 +02:00
Zoltan Varga 88dd823e40 Add a --enable-bitcode-on-ios configure option to enable bitcode support in the ios/tvos runtimes. 2016-05-26 17:47:10 +02:00
Zoltan Varga bcf86f4ff2 [mtouch] Link non-bitcode ios apps with -lc++ if ENABLE_BITCODE_ON_IOS is set, since the mono libs require it. 2016-05-26 17:47:10 +02:00
Zoltan Varga 8b59d42144 Make the sdb send/receive functions run in gc safe mode. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 13b7c6dd11 [runtime] Make sure to switch to GC SAFE before calling xamarin_switch_gchandle. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge ac8d493581 [runtime] Attach the current thread in xamarin_invoke_trampoline.
It's entirely possible to call xamarin_invoke_trampoline on a
thread we've never heard about before.
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 4a5ce42b48 [runtime] Add a MONO_ASSERT_GC_SAFE_OR_DETACHED.
Since MONO_ASSERT_GC_SAFE asserts when executed on a detached thread,
and yet it's clearly safe for the GC to run when a thread is detached.
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge d7bdc5d126 [runtime] mono_set_pending_exception expects to be in GC Unsafe mode. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge af0d01c93a Initial review pass for COOP for watchOS. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 16824dd40f [builds] Enable checked builds for watchOS for now, to make it easier to track down failures. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge ac5ff5e321 [runtime] Replace xamarin_try_get_nsobject with xamarin_has_nsobject.
Removes one usage of ObjectWrapper, since we don't actually need
the return value, we just need to know if an object exists.
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge fc0f656a53 [runtime] Make xamarin_[create|release]_managed_ref icalls.
This way we can pass pointers to managed objects to the native objects
without the coop GC interfering (since icalls won't automatically
switch to "gc safe" mode).
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 297b6a24f3 [runtime] Ignore SIGPIPE for watchOS.
Usually mono does this for other apps, but not for watchOS (where mono doesn't
use signals at all).

watchOS can still raise signals though, so we need to ignore at least SIGPIPE.
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 314ec50e23 [tests] Add missing file. 2016-05-26 17:42:40 +02:00
Rolf Bjarne Kvinge b1f3f6b1b7 Bump mono to get watchbcl fix. (#90)
commit mono/mono@e4d33f70d4
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date:   Wed May 18 14:21:23 2016 +0200

    [System] Throw PlatformNotSupportedException if NetworkInformation.NetworkChange is used on watchOS. (#3010)

    NetworkInformation.NetworkChange requires the SystemConfiguration framework,
    which isn't available on watchOS.
2016-05-26 17:22:11 +02:00
Rolf Bjarne Kvinge 0537fa6622 [registrar] Cope with nameless parameters. (#91) 2016-05-26 16:12:16 +02:00
Rolf Bjarne Kvinge 54976d90ce [registrar] Remove debug spew. (#89) 2016-05-26 16:03:32 +02:00
Rolf Bjarne Kvinge 04b92a91aa [src] Bump Touch.Unit dependency to get HttpTextWriter addition. (#88)
And add the new file to the build.

commit spouliot/Touch.Unit@ffe2a6dcff
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date:   Wed May 25 18:11:59 2016 +0200

    Add a HttpTextWriter that can send logs over http.

    There is no public API to create raw sockets with watchOS, so
    we can't use Tcp directly, thus the need for using Http.
2016-05-26 15:34:47 +02:00
joj b1e7cd4b23 Made tasks in Mac.Tasks.Core bases; added SessionId 2016-05-26 10:24:13 -03:00
Rolf Bjarne Kvinge 7d34d657c2 [tests] Update gitignore. 2016-05-26 15:15:21 +02:00
Rolf Bjarne Kvinge c8b35f9b6a [xharness] Fix mlaunch lookup. 2016-05-26 15:15:08 +02:00
joj 19b87f2723 Added new Mac.Tasks.Core project; moved tasks with no Core base there 2016-05-26 10:07:59 -03:00
Rolf Bjarne Kvinge ecfdea9508 [tests] Import 2016-05-26 15:06:52 +02:00
Rolf Bjarne Kvinge a082722047 [msbuild] Make sure CFBundleShortVersionString is set to something. (#86)
This prevents the watch from getting mightily confused when re-installing
watch apps/extensions.

Not having a CFBundleShortVersionString would cause the following:

* Build & install & run would work fine the first time.
* The second build & install would confuse the watch so that the
  app wouldn't launch. Removing the app and reinstalling wouldn't
  work; the potential options would be to either reboot the device,
  or add a CFBundleShortVersionString to the Info.plists and install
  that build twice.
2016-05-26 14:20:43 +02:00
Rolf Bjarne Kvinge 3a70b71a4c [msbuild] LLVM is possible for armv7k as well. (#87) 2016-05-26 13:52:21 +02:00
Rolf Bjarne Kvinge 5feea25f3c [runtime] Use xamarin_process_nsexception instead of xamarin_throw_ns_exception in our generated bindings. (#84)
This makes the generated bindings play nice with exception marshaling.
2016-05-26 13:36:56 +02:00
Rolf Bjarne Kvinge a5c7575387 [runtime] Remove debug printf I haven't figured out how to fix. (#85)
As far as I can tell there are no memory warnings on watchOS,
but I can't find any documentation saying that either.
2016-05-26 13:11:28 +02:00
Chris Hamons a5a4450726 Bump maccore for extension tests 2016-05-25 16:22:50 -05:00
Chris Hamons ca028ea150 [Mac] Add support for os x extensions (#83) 2016-05-25 17:20:33 -04:00
Chris Hamons 47dc0f26c9 Mmp readonly fix (#82)
* [XM] Teach XM's mmp tool to handle read only assemblies/native libs

- https://bugzilla.xamarin.com/show_bug.cgi?id=41037
- mmp should also promote any install_name_tool errors to "real" errors

* Bump maccore
2016-05-25 16:29:33 -04:00
Jeffrey Stedfast 0d184bb187 [msbuild] Bump task projects to use .NET 4.5 instead of 4.0 (#78)
* [msbuild] Bump task projects to use .NET 4.5 instead of 4.0

Needed so that we can reference .NET 4.5 projects/assemblies
2016-05-25 14:06:20 -04:00
Sebastien Pouliot c49a8cb211 Bump maccore to fix monotouch-test unified builds 2016-05-25 11:06:29 -04:00
Jeffrey Stedfast 88bf794559 [msbuild] Fixed logic for building WatchOS storyboards (#75)
Starting with Xcode 7, storyboards are output as
Interface.storyboardc/Interface.plist instead of Interface.plist

We can also safely link these storyboards as long as we pass
the storyboardc directory to ibtool.
2016-05-25 11:16:41 +02:00
Sebastien Pouliot 24a2060e85 Bump maccore for test updates 2016-05-24 15:10:36 -04:00
Manuel de la Pena e9f172c71e Bump maccore dependency. 2016-05-24 10:41:21 +02:00
Jeffrey Stedfast e1e358a402 Merge pull request #45 from jstedfast/ibtool-link
[msbuild] Link storyboards as part of the IBTool task if Xcode >= 7.0
2016-05-23 16:41:26 -04:00
Manuel de la Pena 16f078a960 Bump maccore dependency. 2016-05-23 22:35:58 +02:00
Manuel de la Pena 9b240474b5 Merge pull request #72 from mandel-macaque/bug-34816
[Fix] Overload the == and != operators of the NSUrl class.
2016-05-23 15:51:22 +02:00
Manuel de la Pena ed746c8a2a [Fix] Overload the == and != operators of the NSUrl class. 2016-05-23 12:54:49 +02:00
Vincent Dondain 6ca327e193 [msbuild] Remove empty UIDeviceRequiredCapabilities array (#71)
Looks like Xcode isn't generating any UIDeviceRequiredCapabilities
for watchOS 1 extensions.

It used to have UIRequiredDeviceCapabilities = 'watch-companion'
but that *might* not be required anymore.
Commit 94e35a8570 on xamarin-macios/master
comes from those same assumptions.

Now regarding bug #41204:
User is getting error "ERROR ITMS-90563: "Missing UIRequiredDeviceCapabilities value"
when publish WatchKitCatalog sample.
(https://bugzilla.xamarin.com/show_bug.cgi?id=41204)

This might happen because we're still creating an empty array for the
UIDeviceRequiredCapabilities key.

In any case there's no need to create it.
2016-05-23 10:18:34 +02:00
Sebastien Pouliot c126a6e354 [tests] Move linker tests from maccore (#69) 2016-05-20 14:07:34 -04:00
Manuel de la Pena cd02bdb4b0 Bump maccore dependency. 2016-05-20 16:54:47 +02:00
Manuel de la Pena 931968a0e1 Merge pull request #57 from mandel-macaque/bug-35012
[Fix] Add missing selectors for NSExpression and ensure properties work with the correct expression types.
2016-05-20 16:52:09 +02:00
Manuel de la Pena 5508aa32f5 [Fix] Add missing selectors for NSExpression.
Added the missing static factory methods and the missing property. In
order to give a clean API a new flag was added to the NSExpression class
to track if the Block property does return a block or a null ptr. The
idea is to avoid user from seeing an obj-c exception.

This commit fixes bug #35012:

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

The evaluation of the NSExpression and the defition of the
NSExpressionHandler have also been fixed since both should be using
NSObjects.
2016-05-19 18:03:55 +02:00
Vincent Dondain 686693ca47 [msbuild] Add AudioUnit key to ValidateAppBundleTaskBase (#68) 2016-05-19 16:53:44 +02:00
Rolf Bjarne Kvinge d48d7c2e11 [configure] Add option to disable device-related parts of the build. (#67)
And use it when building on jenkins.
2016-05-19 14:33:35 +02:00
Sebastien Pouliot 323c7f42fc [runtime] Add dummy _stret symbols for iOS/ARM64 (#66)
The `_stret` API are not included in the ARM64 version of iOS (not
needed) but the removal of `dlsym` cause build failures*

So we're providing dummy symbols, just like what we did for tvOS,
to please the native linker (so nothing is undefined) and keep the
benefits of not using dlsym.

* Xamarin.iOS.dll (or other bindings) when the linker is disabled.
Normally the linker would remove the 32bits parts of the bindings
on a 64bits slice (and that would not be noticed). However we can
not assume this will be done for all binding projects, hence this
workaround.
2016-05-18 16:51:45 -04:00
Rolf Bjarne Kvinge 48cd88ba3e [jenkins] Add initial script to execute on jenkins. (#65) 2016-05-18 20:27:59 +02:00
Rolf Bjarne Kvinge 65c50daf22 [builds] Use the mono from watch-mono repo for bwatch-mono. (#64)
* [mk] Add watch-mono to the check-versions and reset-versions targets.

* [builds] Use the mono from watch-mono repo for bwatch-mono.
2016-05-18 19:33:04 +02:00