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

1355 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge bbd6c2c3cf [tests] Update project file. (#820) 2016-09-13 12:23:12 +02:00
Sebastien Pouliot e350da93e9 [security/tls] Fix support for HTTPS server with virtual domains. Fixes #42796 and #44225 (#815)
PR 525 was never applied to master so it's not in cycle8.
https://github.com/xamarin/maccore/pull/525

references:
https://bugzilla.xamarin.com/show_bug.cgi?id=44225
https://bugzilla.xamarin.com/show_bug.cgi?id=42796
2016-09-12 22:48:52 -04:00
Sebastien Pouliot 43a87d784b Update branch name (to master) and the mininum OSX version to build (El Capitan) (#814) 2016-09-12 17:43:43 -04:00
Sebastien Pouliot e5a0cef8c8 [apidiff] Update references files to match XI 10.0 (C8) (#813) 2016-09-12 10:49:29 -04:00
Rolf Bjarne Kvinge 16e36ce163 [xharness] Add support for watchOS Series 2 simulators. (#812) 2016-09-12 10:14:55 -04:00
Rolf Bjarne Kvinge 7e3906a9c3 Bump XI/XM versions to post C8/Xcode8 versions. (#811) 2016-09-12 08:54:09 -04:00
Sebastien Pouliot 38148c718a Merge branch 'xcode8' 2016-09-09 15:29:37 -04:00
Jeffrey Stedfast b8a90fd243 [msbuild] Even iOS Simulator builds now require signing certificates (#809)
Now that dylibs and frameworks are required to be signed in order to
run on the Simulator, we cannot allow the DetectSigningIdentity task
to return success if it didn't find a codesign key.
2016-09-09 19:14:05 +02:00
Rolf Bjarne Kvinge 6c3fee4ddf [ReplayKit] Use protocols instead of models in API. (#807) 2016-09-09 11:33:01 -04:00
Rolf Bjarne Kvinge c914bbc4db [ReplayKit] Fix RPBroadcastConfiguration.VideoCompressionProperties to have the right type and provide a strongly typed version as well. (#806)
The video compression property is defined as this in the headers:

    NSDictionary <NSString *, NSObject <NSCoding, NSSecureCoding> *>

so I'm not sure how it ended up being bound as NSDictionary<NSNumber,
NSSecureCoding> (maybe something from an earlier beta?).

I'm also adding a strongly typed version of the dictionary, since the header
documentation says "AVVideoCompressionPropertiesKey in
<AVFoundation/AVVideoSettings.h> for available properties.".

The manual binding is required because the generator doesn't like generic weak
dictionaries (it generates invalid code).
2016-09-09 11:31:57 -04:00
Rolf Bjarne Kvinge 7a2baeac44 Bump mono to get fix for #42395. (#810)
commit mono/mono@2acdc49ff6
Author: Zoltan Varga <vargaz@gmail.com>
Date:   Fri Sep 9 03:14:12 2016 +0200

    [llvm] Disable llvm again for methods with large basic blocks in non-llvm-only mode, the workaround doesn't seem to work. Fixes #42395.

http://bugzilla.xamarin.com/show_bug.cgi?id=42395
2016-09-09 14:44:38 +02:00
Martin Baulig 6ef1390a5c [AppleTls]: Send server certificate and all intermediates.
(cherry picked from commit 5f063a6a2e603ea9e4384f5f2d3f22628115b014)
(cherry picked from commit bf9b64e6ec8a3b07c346db8909058ddb5e7eff81)
2016-09-09 08:42:52 -04:00
Martin Baulig 18284e9e20 [AppleTls]: Moved MobileAuthenticatedStream into System.dll.
(cherry picked from commit 7f2a02e5243956d5be71fcb8d86e07ccd44dbfac)
(cherry picked from commit 5f4c21045855c5fed5888a14a17b918fb4ec4531)
2016-09-09 08:42:29 -04:00
Rolf Bjarne Kvinge 7a87fc679f [MultipeerConnectivity] Make a few methods async. (#808) 2016-09-08 20:07:26 +02:00
Rolf Bjarne Kvinge b789deaf8e [mtouch] Require deployment target to be 8+ for incremental builds. (#805)
This is something that changed with 70f1346b: our libxamarin.dylib now
requires iOS 8+, which means the app itself must require iOS 8+ when using
libxamarin.dylib.

This fixes an msbuild failure (Xamarin.iOS.Tasks.IBToolLinking("iPhone").BuildTest):

    Process exited with code 1, command:
    /Applications/Xcode73.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -framework Foundation -framework UIKit /Users/builder/data/lanes/1381/5f73edaa/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmonosgen-2.0.dylib /Users/builder/data/lanes/1381/5f73edaa/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libxamarin-debug.dylib -lz -isysroot /Applications/Xcode73.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -Qunused-arguments -miphoneos-version-min=7.0 -arch armv7 -shared -read_only_relocs suppress -install_name @executable_path/libXamarin.iOS.dll.dylib -fapplication-extension -o /Users/builder/data/lanes/1381/5f73edaa/source/xamarin-macios/msbuild/tests/MyIBToolLinkTest/obj/iPhone/Debug/mtouch-cache/Xamarin.iOS.dll.armv7.dylib -x assembler /Users/builder/data/lanes/1381/5f73edaa/source/xamarin-macios/msbuild/tests/MyIBToolLinkTest/obj/iPhone/Debug/mtouch-cache/Xamarin.iOS.dll.armv7.s -DDEBUG
    ld: warning: embedded dylibs/frameworks only run on iOS 8 or later
    ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (@executable_path/libxamarin-debug.dylib) for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
2016-09-08 15:01:48 +02:00
Rolf Bjarne Kvinge a1306ff23c [introspection] Show what fails in error messages. (#792)
So that we're not clueless when Console.WriteLines go looking for dragons
instead of showing up somewhere we can read.
2016-09-08 13:44:43 +02:00
Rolf Bjarne Kvinge 3d086ca280 [introspection] Fix ApiPInvokeTest.Signatures to not fail when previous tests failed. (#793) 2016-09-08 13:43:26 +02:00
Alex Soto d1ee3ba2f4 [AVFoundation] Update AVFoundation to Xcode8-GM (#803) 2016-09-07 21:12:33 -05:00
Alex Soto 8aa61bd1d9 [UIKit] Update to Xcode8-GM (#802) 2016-09-07 20:25:28 -05:00
Vincent Dondain cc365e6032 [watchkit] Update for iOS 10 GM (#801) 2016-09-07 18:19:28 -04:00
Vincent Dondain 9a7f86d81a [healthkit] Update for iOS 10 GM (#800) 2016-09-07 18:19:19 -04:00
Jeffrey Stedfast 5f73edaac1 [msbuild] Check that ExtraArgs is not null before parsing (#795)
* [msbuild] Check that ExtraArgs is not null before parsing

* [msbuild] FIxed accidental typo in last commit
2016-09-07 17:42:04 -04:00
Sebastien Pouliot a2b103c317 Bump Xcode for GM, version to 10.0.x and maccore for monotouch.dll packaging (#799) 2016-09-07 17:11:05 -04:00
Rolf Bjarne Kvinge b54a6ed3e6 [mtouch] Fix compiler warning (unused variable). (#789) 2016-09-07 21:28:13 +02:00
Sebastien Pouliot 4b90fce057 [tvos] Add missing attributes to get introspection to works on tvOS 9.0, 9.1, 9.2 and 10.0 (#798) 2016-09-07 15:18:20 -04:00
Alex Soto febbc22073 [Photos] Add Abstract attributes to a couple of classes (#797)
This adds Abstract to some classes for XAMCORE_4_0
and tvOS added in 10.0
2016-09-07 14:42:35 -04:00
Rolf Bjarne Kvinge d8f1449ac7 [introspection] Fix API for introspection test for older watchOS versions. (#794)
* [introspection] Implement system version check for watchOS.

Fixes a P/Invoke test that should be skipped when running on
older OS versions.

* [tests] Add availability attributes to fix running introspection tests on older watchOS devices.
2016-09-07 13:45:36 -04:00
Vincent Dondain 5ddee0dcbf [msbuild] Update classic build error (#791)
We now want the build error to always show up.
monotouch.dll will be shipped with XI 10 to allow migration (dependent on the dll being available).
Therefore the check wasn't valid anymore because it was only applying the error if monotouch.dll wasn't there.
This was done to avoid breaking our internal tests but we should actually be fine, if not we'll update the tests.
2016-09-07 12:50:22 -04:00
Vincent Dondain df7b2a5165 [msbuild] Add missing iOS+tvOS 10 Extension points (#786) 2016-09-07 17:42:14 +02:00
Jeffrey Stedfast d079b8afcb [msbuild] Parse the mmp ExtraArgs to get the custom mono bundle dir name (#790)
The mmp utility allows users to pass -custom_bundle_name to specify
a custom directory name to use instead of MonoBundle, so we need to
parse the extra args to extract this value so that we can scan that
directory for dylibs to codesign.
2016-09-07 11:30:29 -04:00
Rolf Bjarne Kvinge 7a34f5e9bf [mtouch] Fix incremental builds when generating P/Invoke wrappers. Fixes #44048. (#788)
We need to compile the generated P/Invoke wrappers to a dylib, and link the
dylib for the product assembly (Xamarin.WatchOS.dll) with the generated
P/Invoke wrappers.

Since there might be P/Invokes in any assembly, just link in the P/Invoke
wrapper dylib for every assembly.

https://bugzilla.xamarin.com/show_bug.cgi?id=44048
2016-09-07 17:22:34 +02:00
Alex Soto 424fe9ae1e [UIKit] Remove 3 protocol members until bug 43579 is fixed (#783)
https://bugzilla.xamarin.com/show_bug.cgi?id=43579

We are removing the following 3 protocol members
- UITextFieldDelegate.EditingEnded2 (UITextField textField, UITextFieldDidEndEditingReason reason)
- UITextViewDelegate.ShouldInteractWithUrl2 (UITextView textView, NSUrl url, NSRange characterRange, UITextItemInteraction interaction)
- UITextViewDelegate.ShouldInteractWithTextAttachment2 (UITextView textView, NSTextAttachment textAttachment, NSRange characterRange, UITextItemInteraction interaction)

Reasons:
- We need to fix bug https://bugzilla.xamarin.com/show_bug.cgi?id=43579
- Bad naming, we do not want 2 suffix

Hopefully we can have this ready for C8SR0 or C8SR1
2016-09-07 10:08:43 -04:00
Jeffrey Stedfast 4d4decdad1 [msbuild] Fixed the mmp task to make sure the MonoBundle dir exists before enumerating its files (#787) 2016-09-07 09:15:40 -04:00
Rolf Bjarne Kvinge b6e7eb0d61 [HomeKit] Put availability attribute for tvOS on the type, never the member. (#785)
HomeKit was added to tvOS in tvOS 10, which means every type was
introduced in tvOS 10, which means we only need availability attributes
on the types, never the individual members.
2016-09-07 08:44:17 -04:00
Rolf Bjarne Kvinge f49a0cdb9d [UserNotifications] Rename method to have a verb. (#784)
`Trigger` can be both a verb and a noun, but according to Apple's
documentation it's a noun in these cases (the method 'Creates and returns a
trigger'), so add the verb `Create` to make the meaning clear (and follow API
guidelines that say methods should have a verb).
2016-09-07 08:22:51 -04:00
Sebastien Pouliot 5db30f619e [metal] Fix MTLHeapDescriptor and test it only on devices (#782)
It turns out `MTLHeapDescriptor` does not exists on the simulator.

```Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_MTLHeapDescriptor", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64```

A `[DisableDefaultCtor]` was used (by mistake / lack of documentation)
and this was hiding the issue (on our bots).

However on device introspection was not happy:

iOSApiSelectorTest
[FAIL] Selector not found for Metal.MTLHeapDescriptor : cpuCacheMode
[FAIL] Selector not found for Metal.MTLHeapDescriptor : setCpuCacheMode:
[FAIL] Selector not found for Metal.MTLHeapDescriptor : size
[FAIL] Selector not found for Metal.MTLHeapDescriptor : setSize:
[FAIL] Selector not found for Metal.MTLHeapDescriptor : storageMode
[FAIL] Selector not found for Metal.MTLHeapDescriptor : setStorageMode:
    [FAIL] iOSApiSelectorTest.ApiSelectorTest.InstanceMethods :   6 errors found in 18339 instance selector validated

Note that these are the properties, not the `init` that's mentioned here.

So first `init` is possible, on devices, from Xcode:

	MTLHeapDescriptor *hd = [[MTLHeapDescriptor alloc] init];
	NSLog (@"%@", [hd description]);

gives

	<MTLHeapDescriptorInternal: 0x17401da50>
	{
		cpuCacheMode = MTLCPUCacheModeDefaultCache;
		size = 0;
		storageMode = MTLStorageModePrivate;
		}

so we need to remove our `[DisableDefaultCtor]`.

That does not fix the selectors above... but note the *Internal type
returned, they are forwarded and that's generally something that
respondToSelector (that introspection uses) does not cover.

But, to be sure, we add unit tests showing all the properties are
working like expected :-)
2016-09-07 08:03:14 -04:00
Sebastien Pouliot ada20a538e [cloudkit] Some fixes after auditing (#762)
* [cloudkit] Some fixes after auditing

* Fix and simplify CKUserIdentityLookupInfo creation from email / phone#
	* Call InitializeHandle to "handle" null handles (and throw instead of
	  crashing)
	* Reduce internal metadata (and code) to create them

* CKNotificationType: Remove extra [Watch (3,0)] on member (all new in 3.0)

* CKSubscriptionType: Fix inconsistency in wrt watchOS (type not available)

* CKRecord: Remove `Record` prefix from new fields (consistency)

* Fix build
2016-09-07 00:57:25 -05:00
Sebastien Pouliot 5019115ad6 [foundation] Fix generic constraint for NSMeasurement (#781)
The generator does not currently offer flexibility for constraints.

That's made harder since binding files uses attributes, [BaseType], to
define the type hierarchy.

Here we cheat as we can add, non-decorated, interfaces in the bindings
that won't generate anything - they are only to please the compiler or,
in this case, it let us fool the generator into producing the code we
need (because it does not consider the namespace)

Based on Alex elegant attempt to fix this in:
https://github.com/xamarin/xamarin-macios/pull/780

Generated code diff:
https://gist.github.com/spouliot/eeef3491a6e08d9344a19e9bbc632848
2016-09-06 20:13:31 -05:00
Vincent Dondain e4093d5908 [msbuild] ACTool update for iMessage Extension (#778) 2016-09-07 00:59:45 +02:00
Sebastien Pouliot 0cc8b176e8 Merge branch 'cycle8' into xcode8 2016-09-06 18:46:23 -04:00
Sebastien Pouliot a06a372923 Bump mono to include fixes for bug #41961 and 41956 (#779)
references:
* https://bugzilla.xamarin.com/show_bug.cgi?id=41961
* https://bugzilla.xamarin.com/show_bug.cgi?id=41956

mono points to mono-4.6.0-branch
watch-mono points to mono-4.6.0-branch-watchos-debugging
2016-09-06 18:39:40 -04:00
Sebastien Pouliot 1db2f0167b Bump [watch]-mono (#775) 2016-09-06 17:37:32 -04:00
Rolf Bjarne Kvinge 4c5325f03b [PhotosUI] PHContentEditingController as a model is useless. (#774) 2016-09-06 16:57:51 -04:00
Rolf Bjarne Kvinge 853a690d02 [PhotosUI] PHContentEditingController as a model is useless. (#774) 2016-09-06 16:56:48 -04:00
Sebastien Pouliot 00fb925b7f [avfoundation] Audit related fixes (#776)
* Fix AVMetadataISOUserDataKeyDate constant name -> `Iso`

* Remove unneeded comments (from sharpie)

* Remove duplicated (same as type) availability attributes added on
  the previous commit (missing API)
2016-09-06 16:55:43 -04:00
Rolf Bjarne Kvinge cfb84f6e17 [runtime] Use printf on watchOS, NSLog doesn't shown up (by default) (#772)
* [runtime] Use printf on watchOS, NSLog doesn't shown up (by default).

* [runtime] Use a wrapper function for logging.

So that we can chose between printf and NSLog at runtime,
depending on where we're running.
2016-09-06 16:55:23 -04:00
Sebastien Pouliot 09386206d6 Revert "Bump F# to 4.0.1.5" (#777)
Wrench can't build it - might be related to different mono version being used on different bots (wrench/felix use mono 4.4 stable)
2016-09-06 15:53:24 -04:00
Alex Soto 494ef376a0 Merge pull request #773 from rolfbjarne/xcode8-usernotifications-review
[UserNotifications] Improve a method name a bit by removing a 'With*' suffix
2016-09-06 14:50:22 -05:00
Rolf Bjarne Kvinge d0d30a378f [VideoSubscriberAccount] Simplify method name to a name that matches the Swift name. (#771) 2016-09-06 15:34:02 -04:00
Sebastien Pouliot 645acd8f57 Bump F# to 4.0.1.5 (#419) 2016-09-06 14:57:28 -04:00