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

5217 Коммитов

Автор SHA1 Сообщение Дата
Marek Safar 7a4ee2e135 [linker] Updates SDKs facades list 2018-09-13 10:21:15 +02:00
Marek Safar aa6b803262 Bump Mono 2018-09-13 10:20:45 +02:00
Sebastien Pouliot d3decb2117
[ios][coretelephony] Update for GM (#4803) 2018-09-13 03:56:20 -04:00
Chris Hamons c248d05c56 AppKit for Xcode 10 GM (#4795) 2018-09-13 02:45:47 -04:00
Chris Hamons fc70e46947 Add AVFoundation from Xcode 10 GM (#4796) 2018-09-13 01:38:55 -04:00
Vincent Dondain 68f28f680e [metal] Update for Xcode 10 GM (#4802) 2018-09-13 00:37:59 -04:00
Sebastien Pouliot 2be5eec4bf
[macos][adsupport] Update for GM (#4800) 2018-09-13 00:37:33 -04:00
Sebastien Pouliot ae064b89fe
[watchos][watchkit] Update for GM (#4799) 2018-09-12 23:03:19 -04:00
Vincent Dondain 024b3c6639 [coreml] Update for Xcode 10 GM (#4798) 2018-09-12 22:14:19 -04:00
Vincent Dondain 535a1f39c6 [arkit] Update for Xcode 10 GM (#4797) 2018-09-12 22:14:00 -04:00
Sebastien Pouliot aa622c481a
Bump for Xcode10 GM (#4794)
Note that it included 173 new API so xtro files were updated to
- include new API in .todo
- add some backlog to .ignore files
2018-09-12 19:27:11 -04:00
Manuel de la Pena bed3770bae [Tests] Add missing tests for NWProtocolStack and fix NWParameters tests. (#4793) 2018-09-12 19:15:33 -04:00
Sebastien Pouliot 2c8f882896
[security] SecProtocolMetadata update and tests (#4792)
* Avoid `ArgumentNullException` in default/empty `SecProtocolMetadata.PeerPublicKey`
* Add two `SecProtocolMetadata.CreateSecret` API - disabled as the current tests (incomplete?) crash in unit tests
* Add basic unit tests for `[Sec|NW]ProtocolMetadata`
* Update xtro
2018-09-12 13:07:10 -04:00
Rolf Bjarne Kvinge 239d9031d6 [HealthKit] Use generated NSString-backed enums. Fixes #4183. (#4786)
This means less (duplicated) manual code, which means less errors, which also
means we're now getting some new members that previously weren't duplicated
correctly.

Fixes https://github.com/xamarin/xamarin-macios/issues/4183.
2018-09-12 11:23:02 -04:00
Manuel de la Pena e43ca080c7
[Tests] Add missing tests for NWPath. (#4765) 2018-09-12 12:35:40 +02:00
Sebastien Pouliot 6af77f3fbe
[security] Add new SecCertificateCopyKey and SecTrustEvaluateWithError API with unit tests (#4784) 2018-09-11 12:08:05 -04:00
Sebastien Pouliot 46fb26efc8
[security] Fix 'SecCertificate2.Certificate' call and add some tests (#4783) 2018-09-11 08:41:38 -04:00
Sebastien Pouliot 0841238e29
[naturallanguage] Fix helper API for `NLTagger.GetTag` and cleanup/fix other API. Fixes #4774 (#4782)
* Move `NLTag` to static class (instead of enum) since it's not used in API, except along NSString. Fixes https://github.com/xamarin/xamarin-macios/issues/4774
* Add new member to `NLLanguage` to avoid `ArgumentNullException` when it has not been evaludated (API returns `null`), see unit tests;
* Add `[Params]` to `NLTagger` constructors so they are easier to use (no need to create the array in source);
* Fix `GetTag` so it returns (`out`) the `NSRange`, it's natively a `NSRangePointer`;
* Fix `GetTag[s]` API with changes to `NLTag` de-enumification;
* Add unit tests
2018-09-11 08:40:42 -04:00
Bernhard Urban cdbf1227d2 [mtouch] add mixed-mode support (#4751)
* [mtouch] add --interp-mixed option

When enabling this option, mtouch will AOT compile `mscorlib.dll`.  At
runtime that means every method that wasn't AOT'd will be executed by
the runtime interpreter.

* [mtouch] Add support to --interpreter to list the assemblies to (not) interpret.

* [msbuild] Simplify interpreter code to use a single variable.

* Fix whitespace.

* [mtouch] Move mtouch-specific code to mtouch-specific file.

* [msbuild] An empty string is a valid value for 'Interpreter', so make it a non-required property.

* [mtouch] Add sanity check for aot-compiling interpreted assemblies.
2018-09-11 14:06:53 +02:00
Rolf Bjarne Kvinge 93c672fbf1 Disable the GC pump by default. Fixes #4772. (#4781)
Fixes https://github.com/xamarin/xamarin-macios/issues/4772
2018-09-10 16:42:42 -04:00
Vincent Dondain e8e1d4293b Bump Xamarin.MacDev (#4776) 2018-09-10 08:29:38 -04:00
Sebastien Pouliot f9cc0ec6d6
[msbuild] Set 'CopyNuGetImplementations' to true for app extensions. Fixes #4235 and #4237. (#4512) (#4648) (#4773)
In Xamarin.iOS.Common.targets, just before the _CompileToNative target, we
modify the mtouch references to ensure that we get the lib assemblies for
nugets, and not the ref references:

9e31d07ecc/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets (L784-L791)

This logic removes nuget references, and then re-adds any copy-local dll
references.

This works fine in executable projects, but not in library projects (aka
extensions), because nugets aren't copied for library projects:

cf4b0a12cf/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets (L86)

So we need to set the CopyNuGetImplementations variable to 'true' for our
library projects.

Fixes https://github.com/xamarin/xamarin-macios/issues/4235.
Fixes https://github.com/xamarin/xamarin-macios/issues/4237.

* [tests] Redirect MSBuildExtensionsPath to MSBuildExtensionsPathFallbackPathsOverride when running msbuild for package reference tests.

This fixes a problem where nuget restore would fail for projects with
PackageReferences, because a variable would be empty and msbould would try to
write to /:

    nuget restore ../MyAppWithPackageReference/MyAppWithPackageReference.csproj
    MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/msbuild/15.0/bin/'.
    Restoring packages for /Users/builder/jenkins/workspace/xamarin-macios-pr-builder/msbuild/tests/MyAppWithPackageReference/MyAppWithPackageReference.csproj...
    Committing restore...
    Generating MSBuild file /MyAppWithPackageReference.csproj.nuget.g.props.
    Path / is a directory

This will become unnecessary when PR #4111 is merged.

* Add Xamarin.Mac test showing that fix is not needed (?!?)

* Add AppExtension test with packagereference

* Make extension actually have json code generated

* Fix ProjectTypeGuids of checked in extension projects, as they were not openable in VSfM

* XM extension test now correctly fails

* Now that we have a failing test, fix XM same as rest of platforms

* Disable XM tests due to msbuild redirect sadness

* Disable iOS tests as well due to #4110

* Disable iOS tests by using the Ignore attribute.

Disable tests by using the Ignore attribute, because just commenting out the
TestCase attributes makes the test fail:

    1) NotRunnable : Xamarin.iOS.Tasks.ProjectReferenceTests.BasicTest
       No suitable constructor was found
2018-09-10 08:29:23 -04:00
Rolf Bjarne Kvinge 385592b128
[runtime] Throw a managed exception instead of trying to call a null function pointer if the runtime tries to call a function that has been linked away. (#4770)
* [runtime] Throw a managed exception instead of trying to call a null function pointer if the runtime tries to call a function that has been linked away.

* [tests] Add new file for Xamarin.Mac tests.

* Direct people to file issues in github.
2018-09-10 10:56:02 +02:00
Sebastien Pouliot ce207d263f
Order additional arguments after response file (#4607) (#4612) (#4769)
- https://github.com/xamarin/xamarin-macios/issues/4594
- There were being adding _before_ the response file which meant options that were overriding defaults were not being honored
2018-09-07 08:52:38 -04:00
Rolf Bjarne Kvinge 72c3b33284
[registrar] Ignore availability warnings from clang. Fixes #4255. (#4768)
Fixes https://github.com/xamarin/xamarin-macios/issues/4255.
2018-09-07 07:20:04 +02:00
Rolf Bjarne Kvinge 28347f9167 Merge remote-tracking branch 'origin/master' into mono-2018-06 2018-09-06 16:37:37 +02:00
Vincent Dondain f4277dcf89 [metal] Fix 'indirectRenderCommandAtIndex' binding (#4759)
`CreateIndirectRenderCommand` implies we're creating the command while this API "returns the CPU-based indirect render command at the given index of the indirect command buffer". Moving to `GetCommand` which is more accurate.
2018-09-06 10:27:06 -04:00
Rolf Bjarne Kvinge bd32b74347
Add support for delegates as return values in protocol members. Fixes #4102. (#4758)
* Add support for delegates as return values in protocol members. Fixes #4102.

This required a few changes:

* The generator now emits the DelegateProxy attribute for property getters in
  protocol interfaces.
* The generator now emits the DelegateProxy attribute in ProtocolMember
  attributes (and the ProtocolMember attribute has been extended with
  additional properties for this purpose).
* The generator now emits the BlockProxy attribute for the parameter in
  property setters.
* The generator now emits the BlockProxy attribute in ProtocolMember
  attributes for property setters.
* The static registrar now emits the metadata token for the
  DelegateProxy.DelegateType property into the generated code so that the
  DelegateProxy attribute itself isn't needed at runtime. This is required
  when the dynamic registrar has been optimized away.

Fixes https://github.com/xamarin/xamarin-macios/issues/4102.

* [tests] Update MX4105 test to expect new warnings.
2018-09-06 16:20:23 +02:00
Rolf Bjarne Kvinge 5a75130899
[xharness] Implement getting a reader for captured logs. (#4764)
Fixes an exception that might occur if the code that generates the html report
tries to process such logs (by trying to read them).
2018-09-06 16:13:49 +02:00
Rolf Bjarne Kvinge adf70f5b87
[src] Strip reference assemblies now that the generator doesn't need to load them anymore. (#4737)
* [src] Strip reference assemblies now that the generator doesn't need them anymore.

* [src] Xamarin.TVOS.dll is a 64-bit library, so put it in the correct directory.

This way mtouch will find the non-reference assembly.
2018-09-06 16:13:17 +02:00
Manuel de la Pena 136f994470
[Security] Add missing SecProtocolMetadata missing API. (#4727)
* [Security] Add missing SecProtocolMetadata missing API.

This is a partial commit that contains most of the missing methods for
the handlers API on SecProtocolMetadata. The not added ones are more
complicated and will be added in a later commit.
2018-09-06 12:17:00 +02:00
Rolf Bjarne Kvinge bbb8a41ef8
[xharness] Automatically pass -Os to the native linker when building watchOS extensions with the linker disabled. (#4757)
This works around https://github.com/xamarin/xamarin-macios/issues/4689 for our own unit tests.

This also requires bumping the build timeout, because unfortunately using -Os
makes builds *much, much* slower.
2018-09-06 10:16:53 +02:00
Sebastien Pouliot cb3e87331e
[coregraphics] Rename enum value to 'Xyz' like other members, e.g. 'CreateGenericXyz', are already named. (#4755) 2018-09-05 14:27:27 -04:00
Sebastien Pouliot 0057b7c58e
[imageio] Add availability attributes to `Maker*Dictionary` fields (#4753)
and remove custom test that introspection already cover (based on
the availability attributes)
2018-09-05 13:27:46 -04:00
Sebastien Pouliot d3cf710e15
[coremidi] Enable some API for iOS (only for macOS right now) and simplity xtro files (#4752) 2018-09-05 11:52:04 -04:00
Sebastien Pouliot e3ec568dec
[avfoundation] Fix obsoleted GetAvailableEmbeddedThumbnailPhotoCodecTypes API to be identical (not 'virtual'). (#4748) 2018-09-05 08:08:33 -04:00
Sebastien Pouliot 051599fdb2
[network] Remove some (already) generated code and add attributes to enums (#4747)
The generator already generate the `Handle` code *when* there are fields,
which we now have (recent commit) so the manual code is no longer needed.

Added availability attributes to enums to help documentation generation.
2018-09-05 08:08:09 -04:00
Manuel de la Pena fb9ae90937 [Network] Small change in NWParameters to use a property for RequiredInterface. (#4742)
Added missing tests. Also modified the Interface property in
NWParameters and fix a small typo in NWProtocolMetadata.
2018-09-05 08:07:10 -04:00
Marek Safar a285ec72bc Bump Mono 2018-09-05 13:56:56 +02:00
Rolf Bjarne Kvinge e5ee9606f0
[tests] Ignore RuntimeTest.MainThreadDeallocationTest if all optimizations are enabled and not linking everything. Fixes #4566. (#4744)
This test contains code that requires the dynamic registrar unless the code is
optimized, and it's only optimized if the assembly is linked, which only
happens if linking all assemblies.

So disable the test if dynamic registrar is removed (which happens when all
optimizations are enabled) and the assembly isn't linked.

Fixes https://github.com/xamarin/xamarin-macios/issues/4566.
2018-09-05 12:47:52 +02:00
Sebastien Pouliot 747ae953e7
[imageio] Fix breaking change for 'ExifCFAPattern' field (#4746) 2018-09-04 21:52:58 -04:00
Sebastien Pouliot 47fa99d425
[msbuild] pass --target-platform=<platform> to copySceneKitAssets (#4630) (#4660) (#4743)
The copySceneKitAssets program has a poor command-line options
parser that cannot handle --target-platform and its argument
being 2 separate arguments, they have to be combined with an '='.

Fixes https://github.com/xamarin/xamarin-macios/issues/4467
2018-09-04 13:50:38 -04:00
Don Syme af4f0f9a70 Allow Xamarin.Mac.FSharp.targets top find Microsoft.FSharp.targets on Windows (#4341) 2018-09-04 08:35:28 -04:00
Vincent Dondain 982074c42c [tests] Fix System.Net.Http and link sdk tests (#4731)
* [bcl-test] Fix System.Net.Http tests after new NSUrlSession default

The tests did not like the new HttpClient default option. See: 6cfc8b5a60

* [link-sdk] Use https for AsyncTest

Potential fix for https://github.com/xamarin/maccore/issues/977.
2018-09-03 11:08:35 +02:00
Rolf Bjarne Kvinge 1a6e382ee9
[tests] Skip LinkSdkRegressionTest.ForeignKey_650402 on watchOS because it uses features not supported with bitcode. (#4738) 2018-09-03 08:05:30 +02:00
Rolf Bjarne Kvinge f0ac7594a8
[xharness] Add project configurations to run & debug Makefile generation. (#4739)
This also required a minor fix to allow relative directories as the root
directory.
2018-09-03 07:56:44 +02:00
Ludovic Henry c7654a0457
[mono-sdks] Necessary changes to unify the LLVM provisioning for both iOS and Android. (#4732) 2018-09-02 15:24:44 -04:00
Rolf Bjarne Kvinge ce5331f2c9 Merge remote-tracking branch 'origin/master' into mono-2018-06 2018-08-31 17:26:03 +02:00
Rolf Bjarne Kvinge 0a456544b6 [tests] Reference GuiUnit_Net_4_5 using a project reference.
This makes sure GuiUnit is built when the main project is built.
2018-08-31 14:48:15 +02:00
Rolf Bjarne Kvinge 985547bd1e
[jenkins] Bump the keychain lock timeout from 2h to 6h. Fixes maccore#973. (#4733)
Our tests can take quite a while to run sometimes, and this makes sure we
don't get random failures when the tests that access the keychain are executed
at the end of the test run.

Bump maccore to get the same fix there.

Fixes https://github.com/xamarin/maccore/issues/973.

Commit diff for maccore bump: 9937926f56...07fde84362
2018-08-31 14:39:42 +02:00