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

1248 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot 347ed1a56a [uikit] Add missing [NullAllowed] on UIImageView ctors. Fixes #42929 (#864)
The UIImage arguments of both .ctor (single and double) can be null.

https://bugzilla.xamarin.com/show_bug.cgi?id=42929
2016-09-21 07:31:27 +02:00
Zoltan Varga 6d174b4fc1 [builds] Pass --with-llvm to the cross compile build's configure instead of adding llvm's bin directory to the PATH. (#862) 2016-09-20 20:34:05 -04:00
Chris Hamons 306f390d17 [XM] Mark CITextFeature as 64-bit only (#861)
- Behind #if __OBJC2__ and verified via
 nm --arch=i386 /System/Library/Frameworks/CoreImage.framework/CoreImage | grep CITextFeature
 nm --arch=x86_64 /System/Library/Frameworks/CoreImage.framework/CoreImage | grep CITextFeature
 00000000000eb2e2 t -[CITextFeature bottomLeft]
2016-09-20 20:33:52 -04:00
Jeffrey Stedfast 8da5e2b538 [msbuild] Require Xcode >= 7.2 in order to make use of ibtool --link (#851)
I'm not 100% sure when --link was added to ibtool, but since our
release notes say that we now require Xcode >= 7.2 anyway, might
as well make that version a requirement for ibtool --link

(Based on forum comments, we know it didn't exist in Xcode 7.0 Beta 3)
2016-09-20 12:34:03 +02:00
Chris Hamons e3863afb30 [XM] Enable System.Numerics.Vector assembly (#850)
- Bump mono to get 377041fd6e
2016-09-19 16:43:58 -04:00
Chris Hamons 1e53bed43b [XM] Add XM specific test for eb37363 (#849) 2016-09-19 15:28:37 -04:00
Rolf Bjarne Kvinge eb373635bd [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-19 14:26:30 -04:00
Rolf Bjarne Kvinge de980207c8 [tests] Add scripts to install system dependencies to the XM tests package. (#847)
* [system-dependencies] Add arguments to disable certain checks.

* [tests] Add scripts to install system dependencies to the XM tests package.
2016-09-19 10:02:10 -04:00
Chris Hamons ddc3c88572 Merge pull request #846 from xamarin/xm_cloudkit
Enable CloudKit APIs and remove all unnecessary public in bindings
2016-09-19 08:52:41 -05:00
Chris Hamons 8c4d8ef762 [XM] Fix poorly named binding 2016-09-16 15:26:20 -05:00
Chris Hamons 1126a4e72b [XM] Enable macOS specific CloudKit APIs now that they are bound
- Action<Action<>> broke the generated code
2016-09-16 14:47:08 -05:00
Chris Hamons c80d72c7d6 Remove unnecessary public from binding definition files
- Was causing conflicts between {App,UI}Kit and CloudKit
2016-09-16 14:47:08 -05:00
Emanuel 4f5fc6d263 Enables CoreCompile target for WatchOS App projects (#826)
* Enables CoreCompile target for WatchOS App projects

The iOS Designer depends on Roslyn Workspace APIs to inspect and get notified of project changes, which needs CoreCompile target to work.

Fixes Bug #41766 (https://bugzilla.xamarin.com/show_bug.cgi?id=41766)

* [msbuild] Adds empty cs file to avoid errors and warnings when building watchOS apps

Xbuild fails to build projects with no @(Compile). This change workaround it for watchOS apps.
2016-09-16 14:16:32 -04:00
Rolf Bjarne Kvinge fd47ae889f [builds] Don't install symlinks to iOS/Classic assemblies in the iOS/Unified profile. (#844)
* [builds] Don't install symlinks to iOS/Classic assemblies in the iOS/Unified profile.
* [fsharp] Don't install symlinks to iOS/Classic assemblies in the iOS/Unified profile.

The symlinks won't quite work once we remove the iOS/Classic assemblies.
2016-09-16 20:02:25 +02:00
Rolf Bjarne Kvinge eb7c2fdb64 [ObjCRuntime] Default to NSUrlSessionHandler for watchOS, since HttpClientHandler doesn't work. (#843) 2016-09-16 08:46:18 -04:00
Alex Soto 27424075eb [Security] Fix bug 44062 - SecRecord is missing a property to enable password access control (#842)
https://bugzilla.xamarin.com/show_bug.cgi?id=44062

Added missing kSecUseAuthenticationContext to our SecRecord wrapper
2016-09-16 08:45:16 -04:00
Sebastien Pouliot 3b1586f91b Merge pull request #840 from spouliot/nsrunloopmode
[foundation] Use more generated code for NSRunLoopMode and add helper API. Fixes #3817
2016-09-16 08:44:43 -04:00
Ankit Jain 4a87ccf948 [msbuild] Ensure that `BuildOnlySettings` is the first target to run for a `Build` (#841)
When building the `inspector` project with msbuild, the build fails
because of a missing `System.Runtime` reference,
-> which can be traced to the `ResolveAssemblyReferences` task not resolving dependencies.
	-> which can be traced to `$(_FindDependencies)` property being set to false
		-> which is false, because `$(BuildingProject)` is false, which should
		   have been set by the `BuildOnlySettings` target, run as a dependency of
		   `CoreBuild`.

We override `$(BuildDependsOn)` as:

  <BuildDependsOn>
     ...
     _UnpackLibraryResources;
     $(BuildDependsOn);
     ...
  </BuildDependsOn>

.. so, `_UnpackLibraryResources` runs before `BuildOnlySettings`. And
`_UnpackLibraryResources` depends on `ResolveReferences`, so the
`ResolveAssemblyReferences` task runs with the incorrect properties. And
later, during the build when `ResolveAssemblyReferences` is invoked
again, it gets skipped and the incorrect outputs get used.

`$(BuildingProject)` should be true for a project build. So,
`Xamarin.Mac.Common.targets` are fixed for that. And other similar
target files are also fixed.

Note: `Xamarin.iOS.Common.targets` already does this correctly.
Note: `$(BuildingProject)` is not used in xbuild, so this bug is seen
only when building with msbuild.
2016-09-15 21:38:55 -04:00
Sebastien Pouliot 9932c6497c Fix copy/paste typo 2016-09-15 21:28:49 -04:00
Sebastien Pouliot 6eb488a196 [generator] Do not assume all enum members fields comes from the same framework
If a `FieldAttribute.LibraryName` is specified then use it, else
default to the current framework (where the type is located).
2016-09-15 16:02:08 -04:00
Jeffrey Stedfast f9e2e18794 [msbuild] Include the CFBundleVersion in the archive manifest (#839)
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44348
2016-09-15 14:50:02 -04:00
Rolf Bjarne Kvinge 8be3807162 [runtime] Re-enable the GC pump on watchOS to help track down issues. (#838) 2016-09-15 14:24:32 -04:00
Sebastien Pouliot 9bb9b438bc [foundation] Use more generated code for NSRunLoopMode and add helper API
Use the features for the enum generator support to update NSRunLoopMode:

* remove manual convertion from enum values/NSString
* remove manual code using NSRunLoopMode, in favor of [Wrap]
* add, using [Wrap], easier overloads for using NSRunLoopMode
2016-09-15 13:27:03 -04:00
Sebastien Pouliot eaf2ef6688 [generator] Add more control over generated enums/fields (#836)
This allows us to convert some existing manual conversion code into
generated code and never miss a new constant being added [1].

The additional control comes in two forms:

* allow [Field (null)]: a null NSString constant will return this
  enum value instead of throwing an ArgumentNullException;

* a new `[DefaultEnumValue]` attribute allow marking the constant to be
  returned if the enum value is not known;

[1] Vincent found some missing in HomeKit when adding the new ones
from iOS 10.

This commits also adds documentation for the existing (missing) and
new attributes.
2016-09-15 11:35:03 -04:00
Alex Soto f546582d1a [Security] Fix bug 43430 - Obj-C Exception when accessing a SecRecord created by Flurry library. (#837)
https://bugzilla.xamarin.com/show_bug.cgi?id=43430

We used to bypass type safety on FetchString by just creating a
NSString object from the returned ptr of the underlying dictionary
and in some cases the object contained in the dictionary does not
contain what we expect just like in this bug report

I refactored similar methods to avoid the same issue from happening
now if we get a different object from what we expect we throw an
InvalidCastException instead of crashing the app due to unrecognized
selectors performed on it
2016-09-15 09:34:01 -04:00
Alex Soto 1da975dbf4 Merge pull request #834 from dalexsoto/uikit
[UIKit] re-enable the iOS 10 API that were waiting on bug 43579 fix
2016-09-14 16:04:08 -05:00
Alex Soto 5149d3f9af [UIKit] re-enable the iOS 10 API that were waiting on bug 43579 fix 2016-09-14 14:57:03 -05:00
Jeffrey Stedfast 0eda3276b7 [msbuild] Allow codesigning Simulator builds w/o the need of a developer cert (#833) 2016-09-14 15:43:25 -04:00
Alex Soto 74469876d7 [generator] Fix AmbiguousMatchException when looking for methods 2016-09-14 14:32:34 -05:00
Chris Hamons 6a5e8b87c5 [XM] Add [NullAllowed] to some NSResponder based APIs (#832)
- https://bugzilla.xamarin.com/show_bug.cgi?id=44200
2016-09-14 11:29:11 -04:00
Alex Soto e397849108 [generator] Fix bug 43579 - Generator emits invalid code when using the same method name (overload) in @delegates using events and C# delegates (#817)
* [generator] Fix bug 43579 - Generator emits invalid code when using the same method name (overload) in @delegates using events and C# delegates
https://bugzilla.xamarin.com/show_bug.cgi?id=43579

Bug Description:
Generator will emit invalid code when using the same name (overload)
in a method inside a @delegate (protocol) that is decorated
either with EventArgs or DelegateName

-----------------------------------------------------------------

This commit introduces a new attribute named DelegateApiNameAttribute
which mimics the EventNameAttribute but for delegate properties in
host classes

It is used to specify the delegate property name that will be created when
the generator creates the delegate property on the host
class that holds events and delegates.

This is really useful when you have two overload methods that makes
sense to keep them named as is but you want to expose them in the host class
with a better given name.

example:
 interface SomeDelegate {
     [Export ("foo"), DelegateApiName ("Confirmation"), DelegateName ("Func<bool>"), DefaultValue (false)]
     bool Confirm (Some source);
 }

 Generates propety in the host class:
	Func<bool> Confirmation { get; set; }

This also introduces two new BIXXXX errors:
- BI1043 Repeated overload {mi.Name} and no [DelegateApiNameAttribute]
provided to generate property name on host class.
- BI1044 Repeated name '{apiName.Name}' provided in [DelegateApiNameAttribute].

Which provides an error instead of generating invalid C# code.

Generator test included :D

* [docs] Added DelegateApiNameAttribute and IgnoredInDelegateAttribute docs

Also added Protocol where Model was used in our docs so we do not
misslead customers about it
2016-09-14 08:20:08 -04:00
Manuel de la Pena 85b519311a [CoreMedia] ClockOrTimebase should retain the pointer in the constructor that takes a handle. (#821)
This change fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=44154
2016-09-14 08:09:52 -04:00
Sebastien Pouliot eac032a0d6 [modelio] Add missing availability attributes on new API. Fixes #44192 (#831)
and ignore them when running tests on older devices, e.g. iOS 9.3.x

reference:
https://bugzilla.xamarin.com/show_bug.cgi?id=44192
2016-09-13 20:32:27 -04:00
Sebastien Pouliot 4192c577ef Bump maccore to include xcode8 merge and bump'ed iOS documentation (#830) 2016-09-13 17:47:06 -04:00
Sebastien Pouliot 675ecae885 [tests][xtro] Add a few, late, xtro data and remove comments post audit (#828) 2016-09-13 14:55:01 -04:00
Sebastien Pouliot 0ebe097ce0 [maccos][coreimage] Enable some existing/additional API for macOS (#829) 2016-09-13 12:34:30 -05:00
Sebastien Pouliot e87967876f [videotoolbox] VTCompressionOutputCallback allows a null CMSampleBufferRef. Fixes #44073 (#827)
https://bugzilla.xamarin.com/show_bug.cgi?id=44073
2016-09-13 13:01:13 -04:00
Sebastien Pouliot ea692ac1e8 [avfoundation] Add missing setters on AVAssetDownloadOptions properties. Fixes #44201 (#824)
AVAssetDownloadOptions is a strong dictionary.

https://bugzilla.xamarin.com/show_bug.cgi?id=44201
2016-09-13 12:09:43 -04:00
Rolf Bjarne Kvinge 5408c056d0 [xharness] Remove Classic logic from makefile generation. (#823) 2016-09-13 10:04:24 -04:00
Rolf Bjarne Kvinge 3eb0fdfdea [runtime] Fix compiler warning (unicode character treated as whitespace). (#822) 2016-09-13 10:04:15 -04:00
Rolf Bjarne Kvinge 468b3a39cc Bump [watch-]mono to 4.8. (#816) 2016-09-13 08:17:54 -04:00
Rolf Bjarne Kvinge 70b462439d [tests] Move the 'build-dev-bots' tests to the mtouch tests and build/test Unified instead of Classic. (#818)
This way all the tests are run even if one of them fails.
2016-09-13 12:23:35 +02:00
Rolf Bjarne Kvinge c26434d71a Update gitignore. (#819) 2016-09-13 12:23:17 +02:00
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