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

5217 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 4b69b19664 [linker] Add new Facade (System.Threading.Tasks.Extensions).
Fixes these MTouch test failures:

    1. Xamarin.Linker.SdkTest.iOS_Unified :   Facades
      Expected:
      But was:  < "System.Threading.Tasks.Extensions" >

    2. Xamarin.Linker.SdkTest.tvOS :   Facades
      Expected:
      But was:  < "System.Threading.Tasks.Extensions" >

    3. Xamarin.Linker.SdkTest.watchOS :   Facades
      Expected:
      But was:  < "System.Threading.Tasks.Extensions" >
2018-08-31 12:41:19 +02:00
Rolf Bjarne Kvinge bd1ddd5b9d Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-08-31 12:40:37 +02:00
Rolf Bjarne Kvinge f69a8fc169 [linker] Add new Facade (System.Threading.Tasks.Extensions).
Fixes these MTouch test failures:

    1. Xamarin.Linker.SdkTest.iOS_Unified :   Facades
      Expected:
      But was:  < "System.Threading.Tasks.Extensions" >

    2. Xamarin.Linker.SdkTest.tvOS :   Facades
      Expected:
      But was:  < "System.Threading.Tasks.Extensions" >

    3. Xamarin.Linker.SdkTest.watchOS :   Facades
      Expected:
      But was:  < "System.Threading.Tasks.Extensions" >
2018-08-30 15:01:44 +02:00
Vlad Brezae d491fd46b6 Assembly.LoadFile accepts only absolute path 2018-08-30 09:24:06 +02:00
Rolf Bjarne Kvinge dc0ccb33fd [jenkins] Don't give VSTS a fake branch. (#4667)
Something in VSTS changed, and now fake branch names don't work anymore.

So instead use real branch names (and for pull requests I've created a
'pull-request' branch we can use).
2018-08-30 07:32:46 +02: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
Vincent Dondain 6cfc8b5a60
[msbuild] Change MtouchHttpClientHandler default (#4172)
If the Http Client value isn't set in the csproj, we should default to `NSUrlSessionHandler` which is also what the Xamarin.iOS Analysis rules try to enforce.
2018-08-29 15:16:19 -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
Curtis Wensley 3ec40cbb1d Add NullAllowed for GetContentSizeForFrame and GetFrameSizeForContent parameters (#4714)
- From https://developer.apple.com/documentation/appkit/nsscrollview/1403471-contentsizeforframesize:
> horizontalScrollerClass: The class used as the horizontal scroller. A value of nil specifies that no horizontal scroller is used.
2018-08-29 12:25:01 -05:00
Rolf Bjarne Kvinge 6f686a7729
[xharness] Don't try to run aggregated tasks when none of the contained tasks built successfully. (#4706)
Fixes this HarnessException when all simulator tasks for an aggregated run
simulator task fails to build (i.e. there is nothing to run):

    Harness exception for 'Tests for iOS_Unified32': System.InvalidOperationException: Sequence contains no elements
        at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0000b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-04/external/bockbuild/builds/mono-x64/external/corefx/src/System.Linq/src/System/Linq/First.cs:16
        at xharness.AggregatedRunSimulatorTask+<ExecuteAsync>d__9.MoveNext () [0x00312] in /work/maccore/master/xamarin-macios/tests/xharness/Jenkins.cs:3582
        --- End of stack trace from previous location where exception was thrown ---
        at xharness.TestTask+<RunInternalAsync>d__92.MoveNext () [0x00113] in /work/maccore/master/xamarin-macios/tests/xharness/Jenkins.cs:2352
2018-08-29 17:42:28 +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
Marek Safar c844903be5 Merge remote-tracking branch 'origin/master' into mono-2018-06 2018-08-29 14:52:33 +02:00
Marek Safar b3245a6930 Bump mono 2018-08-29 14:47:19 +02:00
Rolf Bjarne Kvinge 33c1db4b68
Store the minimum mono version for Xamarin.Mac in one place only (Make.config) and bump it to 5.14. Fixes #4120. (#4695)
* Store the minimum mono version for Xamarin.Mac in one place only (Make.config) and bump it to 5.14. Fixes #4120.

I've verified that we fail at launch of running on 5.12, while 5.14 works fine
(to launch at least), so the minimum system mono version is _at least_ 5.14.

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

* [mmp] Load mono's version file instead of using pkg-config to get mono's version.

pkg-config will only get three parts of the version, while the version file
has all four parts.

This is important, since we're now verifying the four parts of the version
file, and without loading those four from the system, we'll fail builds like
this:

    error MM0001: This version of Xamarin.Mac requires Mono 5.14.0.136 (the current Mono version is 5.14.0).

because the three part version's fourth number is assumed to be 0.

* Only verify mono runtime version when running with system/dynamic mono.

There should be no need to verify the mono runtime version when embedding mono:

* If it's a mono we're shipping, something very bad happened in our
  build/package for it to be an invalid mono.
* If it's a system mono that's being embedded, then we verify in mmp at build
  time.

In the first scenario (a mono we're shipping), the problem is that the mono
we've built does not report back the full version number (with four parts) [1],
which means we'll fail any check whose requirements are identical for the
first three parts, and non-zero for the last.

[1] The fourth part of the version number is created/calculated when packaging
mono, and we're not packaging it.
2018-08-29 14:28:56 +02:00
Vlad Brezae 6fdcb8d036 Assembly.LoadFile accepts only absolute path 2018-08-29 12:28:42 +03: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
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
Sebastien Pouliot 2ee29f38ce
Bump mono to head of 2018-04 (#4711)
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)
* 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...82b313a29e
2018-08-28 15:10:04 -04:00
Rolf Bjarne Kvinge 41c719d2ab
[xharness] Fix failure message when nunit test times out. (#4708)
Fixes an issue where MTouch test would seemingly fail immediately:

    Failure: Execution timed out after 0 minutes.

when it's just saying that it failed out after [2 hours and] 0 minutes.

Fix it by showing the total number of minutes in the failure message.
2018-08-28 17:18:02 +02: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
Rolf Bjarne Kvinge 0159abd45b
[system-dependencies] Use 'xcodebuild -runFirstLaunch' to install first-launch packages instead of manually installing each package. (#4707)
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-28 15:19:24 +02: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 9f0d2f52f5
[apidiff] Update XML references with 15.8 as the new base (master) (#4673) 2018-08-27 18:29:44 -04:00
Sebastien Pouliot 115f6fbaa7 [xtro] Update API information for Intents 2018-08-27 14:34:34 -04:00
Rolf Bjarne Kvinge 7e8ffdf2ec
Document how to run API comparison locally. (#4699) 2018-08-27 16:46:22 +02:00
Rolf Bjarne Kvinge 3e661ae5f2
Make the bgen build respect the BUILD_DIR variable. Fixes maccore#959. (#4700)
* [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-27 16:46:01 +02: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 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
Rolf Bjarne Kvinge e51c2af9f8 [mmp] Set DEVELOPER_DIR to our Xcode. (#4691)
This makes it possible to build mmp (the partial static registrar code) with
the wrong system Xcode (which is not supported, but that doesn't mean we can't
try to make it mostly work to ease our lives).
2018-08-24 14:14:53 -04:00
Sebastien Pouliot b6f2058a13 [watchkit] Comment missing API found by xtro 2018-08-24 11:25:43 -04:00
Sebastien Pouliot 8dd288925b [uikit] Fix/comment missing API reported by xtro 2018-08-24 11:24:47 -04:00
Sebastien Pouliot 19173951d0
[apidiff] Update XML references to the new 15.8 stable release (#4687) 2018-08-24 08:25:14 -04:00
Rolf Bjarne Kvinge 5da88bfbc7
[mmp] Show an error if trying to build a 32-bit app with Xcode 10. Fixes #4569. (#4684)
Fixes https://github.com/xamarin/xamarin-macios/issues/4569.
2018-08-24 12:28:10 +02:00
Vlad Brezae 279fea8123 Bump mono 2018-08-24 11:41:08 +03:00
Sebastien Pouliot b2677889ca [xtro][vision] Ignore VNRequest::init since it's an abstract type and not a designated initializer 2018-08-23 15:51:27 -04:00
Sebastien Pouliot e970cd75b4 [xtro][modelio] Ignore a deprecated API (not needed) 2018-08-23 15:28:52 -04:00
Sebastien Pouliot 707334f95e [spritekit] Enable missing API in watchOS (found by xtro) 2018-08-23 15:26:44 -04:00
Sebastien Pouliot 0e785e3668 [coredata] NSCoreDataCoreSpotlightDelegate is 64bits only
causing
```
Introspection.MacApiCtorInitTest.ApiCtorInitTest.DefaultCtorAllowed: 1 potential errors found in 925 default ctor validated:
Default constructor not allowed for CoreData.NSCoreDataCoreSpotlightDelegate : Could not create an native instance of the type 'CoreData.NSCoreDataCoreSpotlightDelegate': the native class hasn't been loaded.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
```
when running intro for mac unified 32 bits
2018-08-23 15:23:26 -04:00
Rolf Bjarne Kvinge 87c27e0c3f
Merge pull request #4683 from rolfbjarne/issue-4384
[mtouch/mmp/generator] Build using project file instead of manually creating compiler command line. Fixes #4384.
2018-08-23 17:32:06 +02:00
Manuel de la Pena c60397c984
[Gamekit] Re-enable introspection tests in the skipped selectors. (#4682) 2018-08-23 17:16:12 +02:00
Sebastien Pouliot ffaa5d61ce [xtro][mapkit][watchos] Ignore MKErrorDomain since the enum for errors is not available 2018-08-23 10:59:13 -04:00