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

5094 Коммитов

Автор SHA1 Сообщение Дата
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
Xamarin Jenkins User 2ef6340ad2 Bump Mono (#4787)
Fixes #4761
2018-09-11 20:49:44 -04: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
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
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
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
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
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 f428a8b8fb
Allow Xamarin.Mac.FSharp.targets top find Microsoft.FSharp.targets on Windows (#4341) (#4745) 2018-09-05 14:12:58 -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
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
Manuel de la Pena b1ebb89222
[Security] Fix some of the new availability attrs. (#4728) 2018-08-29 23:33:09 +02:00
Vincent Dondain 9754d505ff [ObjCRuntime] Add missing .ctor to 'Class' (#4726)
- Fixes #4441: [generator] Binding with return value of Class [] do not do the right thing
  (https://github.com/xamarin/xamarin-macios/issues/4441)
- Turns out the logic to put INativeObjects into NSArrays was already in place. We simply needed to add the missing (IntPtr handle, bool owns) overload to `Class`.
- Uncommented AppKit `registeredImageRepClasses` since it was using `Class []`. Tested locally and it works fine.
- Reimplemented `Foundation`'s `NSSecureUnarchiveFromDataTransformer` and its test which were also using `Class []`.
2018-08-29 16:23:36 -04:00
Manuel de la Pena bae5a202b4 [Network] Add missing handlers on NWPathMonitor. (#4722) 2018-08-29 14:20:32 -04:00
Sebastien Pouliot 807efadf38
[coreimage] Add generator support for CIVector[] and enable it in CIMeshGenerator. Fix #4226 (#4715) 2018-08-29 13:29:34 -04:00
Rolf Bjarne Kvinge e83a994fe0
Make the bgen build respect the BUILD_DIR variable. Fixes maccore#959. (#4700) (#4724)
* [src] Fix bgen build to support custom output directory for api comparison. Fixes maccore#959.

This broke in 87c27e0c3f, which made bgen
compile using a project file (I forgot to verify that it wouldn't affect the
API comparison, and the PR build didn't complain because problems with the API
comparison typically show up in subsequent PRs).

https://github.com/xamarin/maccore/issues/959

* [src] Fix response file usage to use BUILD_DIR, so that API comparison can redirect as expected.

* [src] Fix generation of generator.csproj's dependency file to use BUILD_DIR, so that API comparison can redirect as expected.

* [src] Fix bgen.exe's dependencies.

* Use full paths to create-makefile-fragment.sh.
2018-08-29 17:41:55 +02:00
Sebastien Pouliot c1593fbd1f
[tests][intro] Adjust introspection to run without failure on iOS 6.1.6 (#4720) 2018-08-29 09:10:03 -04:00
Sebastien Pouliot bc2dfe335f
[tests] Add missing availability attribute and adjust tests to run on iOS 7 devices. Fix #4437 (#4719)
Fix https://github.com/xamarin/xamarin-macios/issues/4437 where the Mac check
always returns `true` on iOS so the `||` condition was always `true`.
2018-08-29 09:09:43 -04:00
Rolf Bjarne Kvinge 401f587c96
[system-dependencies] Use 'xcodebuild -runFirstLaunch' to install first-launch packages instead of manually installing each package. (#4707) (#4710)
This is more future-proof, since the list of packages may change, or there may
be other tasks that need doing in addition to installing packages.

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

This is a backport of the PRs #4662 and #4681.
2018-08-29 13:54:18 +02:00
Sebastien Pouliot 79c9e86e56
[intro] Fix missing availability attributes that triggers failures on iOS9 (and lower) (#4717) 2018-08-28 21:25:41 -04:00
Sebastien Pouliot 5457d7f61b
Bump mono to head of 2018-04 (#4709)
Commit list for mono/mono:

* mono/mono@82b313a29e [sdb] Disable an assert to avoid breaking debugging. (#10313)
* mono/mono@cedb9d921d [2018-04] Add pipeline to convert managed exception into telemetry format (#10248)
* mono/mono@e613a64b4f [sdks] Fix typo (#10308)
* mono/mono@e2018ed1e7 [2018-04] [sdks] Fix llvm local variable names (#10300)

Diff: d092c53b97...82b313a29e
2018-08-28 17:31:40 -04:00
Manuel de la Pena 2838b988b9 [Network] Update to Xcode 10 beta 3. (#4686)
Adds the new functions added in beta 3 and cleans some of the xtro
files.
2018-08-28 15:11:25 -04:00
Vincent Dondain 20edb3561c
[makefile] Fix 'buildinfo' branch name on jenkins (#4703)
- Jenkins knows the branch name $(BRANCH_NAME) which Wrench didn't.
- Fixes #4674: [Makefile] Incorrect 'HEAD' word used as branch for xcode10 pkg.
  (https://github.com/xamarin/xamarin-macios/issues/4674)
2018-08-28 11:08:36 -04:00
Sebastien Pouliot e407a403d2
Merge pull request #4672 from spouliot/xcode10-xtro-fix-4407
[xtro] Fix xtro to report some missing API. Fix #4407
2018-08-28 10:16:30 -04:00
Sebastien Pouliot 8ee3bfd915
Bump mono to head of 2018-02 (#4705)
Commit list for mono/mono:

* mono/mono@c5b8988d22 [sdb] Disable an assert to avoid breaking debugging. (#10315)
* mono/mono@15eab7066c [2018-02] Add pipeline to convert managed exception into telemetry format  (#10249)
* mono/mono@e0e035e3b1 Bump xunit-binaries

Diff: 4e0a2ac0dd...c5b8988d22
2018-08-28 08:31:34 -04:00
Rolf Bjarne Kvinge bf4015bfbd
[xharness] Detect another scenario where failing to pair devices, and try again with a new watch device. Fixes maccore#961. (#4702)
Fixes https://github.com/xamarin/maccore/issues/961.
2018-08-28 07:41:22 +02:00
Sebastien Pouliot 115f6fbaa7 [xtro] Update API information for Intents 2018-08-27 14:34:34 -04:00
Rolf Bjarne Kvinge 144ebda1e6
[tests] Update MT4134 with new iOS 12 frameworks. Fixes maccore#954. (#4701)
Fixes https://github.com/xamarin/maccore/issues/954.
2018-08-27 16:44:20 +02:00
Vincent Dondain f6c7a506f9
[foundation/usernotifications] Use NSString to preserve localization (#4697)
- Fixes #4694: NSString.GetLocalizedUserNotificationString not working with .stringsdict files
  (https://github.com/xamarin/xamarin-macios/issues/4694)
- Updated `UNNotificationCategory.FromIdentifier`'s iOS 12 overload to take a `NSString` category format to preserve localization.
- Change `GetLocalizedUserNotificationString` to only use NSString to preserve localization (similar fix to https://github.com/xamarin/xamarin-macios/pull/3266).
2018-08-27 10:07:36 -04:00
Sebastien Pouliot 0f888f0c66 [xtro][foundation] Ignore 'new' missing API found by xtro 2018-08-27 08:51:51 -04:00
Sebastien Pouliot 45221e68e3 [xtro][macos] Ignore, at least temporarily, some missing API found by (fixed) xtro 2018-08-27 08:42:13 -04:00
Sebastien Pouliot bd81f1c333
Bump mono 2018-04 to head (#4693)
Commit list for mono/mono:

* mono/mono@d092c53b97 [eglib] Fix URI to file name conversion
* mono/mono@582f242d47 Bump xunit-binaries
* mono/mono@ad910039be Bump nunitlite to get NUnit2 xml output fix and failure on file not found fix (#10188)
* mono/mono@172a5333ba [System.Xml.Linq] Fix namespace conflict with new Xamarin.Mac namespace in test code. (#10184)
* mono/mono@f3a2216b65 backport #9800 to 2018-04
* mono/mono@07ac089735 Bump msbuild to track mono-2018-04 (#9834)

Diff: d31dbe843a...d092c53b97
2018-08-24 16:39:29 -04:00
Sebastien Pouliot c244b5cafb [mediaplayer] Add missing API found by xtro 2018-08-24 16:05:43 -04:00
Sebastien Pouliot 9697898932 [xtro][notificationcenter] Annotate missing API found by xtro 2018-08-24 14:44:37 -04:00