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

1053 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot e4ce16e989 Update branch name (#882)
* Update branch name

* Update SDK version for iOS and watchOS (but not tvOS)

* [xharness] Add support for watchOS Series 2 simulators. (#812)

* [xharness] Add Jenkins support for watchOS Series 2 simulators. (#885)
2016-09-23 11:50:02 -04:00
Sebastien Pouliot d7d3c82d1d Bump Xcode to 8.1 beta 1 2016-09-22 14:40:29 -04:00
Chris Hamons 191f81a3cf Merge pull request #866 from xamarin/xm_registrar_pick
Fix registrar spam in xcode8
2016-09-21 09:51:55 -05:00
Chris Hamons a2b5985f85 [XM] Add XM specific test for eb37363 (#849) 2016-09-21 08:36:40 -05:00
Rolf Bjarne Kvinge a4920078ff [registrar] Look up the right type when getting the constrained type for a generic type. Fixes #44309. (#848)
https://bugzilla.xamarin.com/show_bug.cgi?id=44309
2016-09-21 08:36:34 -05:00
Chris Hamons ee7c0cbd26 [maccos][coreimage] Enable some existing/additional API for macOS (#829) (#860) 2016-09-20 13:57:06 -05:00
Chris Hamons a1df2c1cd1 Merge pull request #854 from xamarin/xcode8-xm-picks
Xamarin.Mac fixes for Xcode8 branch
2016-09-20 12:44:48 -05:00
Chris Hamons 9c16d4df14 Additional public removal changes similar to 97ba00f 2016-09-20 10:05:51 -05:00
Chris Hamons 4d4bc37ea8 [XM] Fix poorly named binding 2016-09-20 09:20:25 -05:00
Chris Hamons 6d5156573d [XM] Enable macOS specific CloudKit APIs now that they are bound
- Action<Action<>> broke the generated code
2016-09-20 09:20:19 -05:00
Chris Hamons 97ba00f0a0 Remove unnecessary public from binding definition files
- Was causing conflicts between {App,UI}Kit and CloudKit
2016-09-20 09:20:06 -05:00
Chris Hamons bc34a64250 [XM] Enable System.Numerics.Vector assembly (#850) 2016-09-20 09:18:51 -05:00
Sebastien Pouliot 36870ebdd0 Stay on 10.0.1.x for SR1 2016-09-19 10:03:50 -04:00
Rolf Bjarne Kvinge d7ad918c0b Bump mono to get fix for #42395. (#845)
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.

This is a backport of PR #810.

http://bugzilla.xamarin.com/show_bug.cgi?id=42395
2016-09-16 14:13:53 -04:00
Sebastien Pouliot 031c9503ca Bump XM version to 3.0.0 for beta 2016-09-16 13:25:27 -04:00
Sebastien Pouliot f1804cce67 Merge branch 'cycle8' into xcode8 2016-09-16 13:24:24 -04:00
Jeffrey Stedfast 9ba3bf77a0 Cycle8 msbuild codesign simulator no cert (#835)
* [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.

* [msbuild] Allow codesigning Simulator builds w/o the need of a developer cert (#833)
2016-09-16 13:17:52 -04:00
Jeffrey Stedfast fca8a0c397 Cycle8 msbuild codesign simulator no cert (#835)
* [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.

* [msbuild] Allow codesigning Simulator builds w/o the need of a developer cert (#833)
2016-09-16 13:16:09 -04:00
Sebastien Pouliot 9b29b6c8ed [videotoolbox] VTCompressionOutputCallback allows a null CMSampleBufferRef. Fixes #44073 (#827)
https://bugzilla.xamarin.com/show_bug.cgi?id=44073
2016-09-16 11:10:22 -04:00
Sebastien Pouliot 5540514a51 [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-16 11:08:56 -04:00
Sebastien Pouliot 702682a1c1 Bump version for SR1 and update the XML for apidiff 2016-09-16 11:07:16 -04: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
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
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
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
Jeffrey Stedfast c1e5fa0150 Cycle8 msbuild mmp fixes (#796)
* [msbuild] Fixed the mmp task to make sure the MonoBundle dir exists before enumerating its files (#787)

* [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.

* [msbuild] Check that ExtraArgs is not null before parsing

* [msbuild] FIxed accidental typo in last commit
2016-09-07 14:19:32 -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
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
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
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
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
Vincent Dondain 562b9564f1 [msbuild] Show proper build error when monotouch.dll doesn't exist (#750)
Due to the deprecation of classic we needed to provide a better and single error message
rather than the countless msbuild errors you'd have because you'd be missing monotouch.dll

* Migrate MySingleView & MyLibrary to Unified
2016-09-06 14:50:54 -04:00