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

1781 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot ca3016b5b0 [macos][appkit] Fix typo in NSSpellCheckerCan[d]idates
Wrench bots missed it as typo test is OS version dependent, i.e.
the dictionary is updated on each new OS release - making it difficult
not to introduce failures in earlier versions.
2016-12-13 19:54:47 -05:00
Sebastien Pouliot 0c65506145 Fix Xcode 8.2 (to final) 2016-12-13 19:38:39 -05:00
Vincent Dondain bde2d58de9 Bump MAX_XAMARIN_STUDIO_VERSION 2016-12-13 16:52:54 -05:00
Chris Hamons 10bb6b1f1b [XM] Fix isysroot with new fixed SDKVersion 2016-12-13 15:12:50 -06:00
Chris Hamons 5a6c205739 Fix d02c112176 to work when no sdk passed in 2016-12-13 13:47:24 -06:00
Chris Hamons d02c112176 [XM] Fix static registrar to handle frameworks added in point releases
- Move hack from StaticRegistrar to mmp driver so we set SDKVersion correctly for point releases
- Clean up a bit of duplicate while we are there
2016-12-13 12:20:47 -06:00
Chris Hamons 5cb1b1eee8 [XM] Fix static registrar with Xcode 8.2
- Another brick in the wall of GetSDKVersion hacks
2016-12-13 08:44:54 -06:00
Vincent Dondain 445877c159 [Versions-ios.plist] watchOS started at 1.0 (#1328)
- The WatchKit App on a watchOS 1 project has a version of 1.0 (the IDE needs that).
- We still have a watchOS 1 template.
- Use MIN_WATCH_OS_VERSION instead of MIN_WATCHOS_SDK_VERSION.
- iOS com.apple.watchkit is 8.2 not 8.0
- Added watchOS com.apple.watchkit (2.0).
- Fixed typo in versions-check.csharp.
2016-12-13 10:52:58 +01:00
Sebastien Pouliot e7a290c4a6 Add new versions to the .plist 2016-12-12 21:40:18 -05:00
Sebastien Pouliot b5632f9c2f merge xcode8.2 into master 2016-12-12 21:26:23 -05:00
Chris Hamons 79ee0c08bc [XM] Add missing NullAllowed in webkit (#1338) 2016-12-12 13:42:37 -06:00
Rolf Bjarne Kvinge 318a7dfbe1 TargetFramework: add support for profile. (#1337)
Add support for specifying the profile with the target framework,
and support using "Version=" before the version:

    Xamarin.Mac,Version=v2.0,Profile=Mobile.
2016-12-12 17:01:10 +01:00
Rolf Bjarne Kvinge 6f42a71d4b [mtouch] Don't quote paths until they're passed to external commands. Fixes #49255. (#1334)
https://bugzilla.xamarin.com/show_bug.cgi?id=49255
2016-12-12 14:03:45 +01:00
Rolf Bjarne Kvinge b4e458739d Bump maccore to get fix for #48830. (#1333)
https://bugzilla.xamarin.com/show_bug.cgi?id=48830
2016-12-12 13:23:16 +01:00
Rolf Bjarne Kvinge a8a995ade7 [src] Remove unused parameter from make template. (#1331)
The MAC_TARGETS_template's 2nd argument was never used in the template, so
remove it (and re-number every other argument).
2016-12-12 12:28:12 +01:00
Vincent Dondain 887a410fe2 [msbuild] Add error codes for PropertyListEditorTaskBase (#1325)
* [msbuild] Add error codes for PropertyListEditorTaskBase

* [msbuild] Add task names in all errors' descriptions
2016-12-12 10:30:42 +01:00
Jeffrey Stedfast b16265593c [msbuild] Added support Simulator-specific builds (#1326) 2016-12-09 11:55:25 -05:00
Rolf Bjarne Kvinge 0b6e73581f TargetFramework: be case-insensitive for the identifier when computing the hash code. (#1323)
Be case-insensitive for the identifier when computing the hash code,
since we compare the identifier case-insensitively in Equals.
2016-12-09 09:16:26 -05:00
Sebastien Pouliot 9e528354f8 [security] Remove port number from TLS Server Name Identification (SNI). Fixes #45994 (#1327)
The port number should not be included along the host name. Otherwise
the server will refuse the connection (and we'll throw). This is a
problem when servers are not using the default (443) SSL/TLS port.

ref: https://bugzilla.xamarin.com/show_bug.cgi?id=45994

Another PR [1] was made to fix MonoTLS in mono/master [2]. While
disable in C19 (master) we'll need this fixed when backporting to C9

[1] https://github.com/mono/mono/pull/4120
[2] https://bugzilla.xamarin.com/show_bug.cgi?id=46549
2016-12-09 08:11:07 -05:00
Rolf Bjarne Kvinge 27541f055b [xharness] Add Jenkins support for mac binding project tests. (#1320)
* [xharness] Add Jenkins support for mac binding project tests.

* [jenkins] Rework how mac binding projects are tested.

Facts:

* The wrench-mac-binding-project target will clean itself when done: [1]
* The mac-msbuild tests depend on mac-binding-project build artifacts (but
  will build those artifacts automatically if they don't exist when the mac-
  msbuild tests are built).
* Jenkins runs tests in parallel.

Result:

* The mac-msbuild tests may fail if the mac-binding-project tests are run
  concurrently and delete its build artifacts.

Fix:

* Don't call the wrench-mac-binding-project target (which will clean itself),
  instead just run the tests (without cleaning).

[1]: d99212a712/tests/Makefile (L280-L282)
2016-12-08 19:12:52 +01:00
Rolf Bjarne Kvinge 7842a0b506 [mtouch] Remove deprecated Classic commmand-line arguments. (#1319)
* [mtouch] Remove deprecated Classic commmand-line arguments.

* [mtouch docs] Document MT0022's death.
2016-12-08 18:59:04 +01:00
Vincent Dondain 901b94d6e1 Merge pull request #1237 from VincentDondain/msbuild-mt-errors
[msbuild] Add msbuild error code logic
2016-12-08 12:50:58 -05:00
Vincent Dondain 9fe8dca4a8 [msbuild] Remove TLSProvider option (#1238)
* AppleTLS is the default since C7 and support up to TLS 1.2.

* MonoTLS is limited to SSLv3 and TLSv1: both are being deprecated.

* Note: C9 release notes already mention MonoTLS is deprecated and that it will be removed in the future.
2016-12-08 11:56:44 -05:00
Rolf Bjarne Kvinge d99212a712 Pass StringComparison to string.StartsWith / EndsWith. (#1316) 2016-12-08 16:54:10 +01:00
Rolf Bjarne Kvinge 30bac18e10 [mtouch] Fix BundleId. (#1315)
The BundleId property is used by the code that generates the mSYM directory,
but its value was always the default value 'com.yourcompany.sample' instead of
looked up in the app's Info.plist.

So fix the BundleId property to do the expected.

Also fix the mSYM test (SymbolicationData) to actually test mSYM stuff (it was
partially disabled when we disabled automatic mSYM generation for C8, and
never re-enabled), and port it to the new and better test syntax, and add a
few more asserts to check the manifest.xml generation.
2016-12-08 16:05:47 +01:00
Rolf Bjarne Kvinge 7cc039cd13 [xharness] Add support for running btouch tests. (#1314) 2016-12-08 15:47:36 +01:00
Rolf Bjarne Kvinge 8de0d43799 [mtouch] -lsqlite3 is a linker flag, not a file to be linked with, so treat it accordingly. Fixes #49220. (#1313)
-lsqlite3 is a linker flag, not a file to be linked with, so when
automatically determining that we need to pass -lsqlite3 we need to put it in
the right list of linker information.

Otherwise we may end up passing `-force_load -lsqlite3` to the linker (if the
assembly's ForceLoad flag is set), which won't compile.

https://bugzilla.xamarin.com/show_bug.cgi?id=49220
2016-12-08 15:42:30 +01:00
Rolf Bjarne Kvinge 7dedd1bb4f [tests] Give tests that build for device a bit more time. (#1312)
dontlink/64-bit release times out on our Sierra bots, so try to bump the
timeout to see if this is working on other bots because those other bots are
faster.
2016-12-08 14:11:51 +01:00
Chris Hamons 364fe874cd [XM] Fix Argument Semantics on NSTextContainer.TextView (#1309)
- https://bugzilla.xamarin.com/show_bug.cgi?id=43236
- In Xcode 8b3, Apple changed this property to depend on the deployment target
  for weak/strong'ness

  +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
   @property (nullable, strong) NSTextView *textView;
   +#else
   +@property (nullable, weak) NSTextView *textView;
   +#endif
    @end
- We could parse the MacO headers to get this and change
 strong/weak'ness but:
- It is easier to default to weak, the "safe" option. It introduces a possible
 leak but you can null it out in that rare case.
- If Apple does this more regularly, we may have to readdress
2016-12-08 12:28:30 +01:00
Vincent Dondain 3d0e140f3c [xi-errors] Add headers for error code ranges 2016-12-07 16:33:34 -05:00
Chris Hamons 2f8136a3d4 [XM] Add NSLayoutConstraint.identifier (#1311)
- https://bugzilla.xamarin.com/show_bug.cgi?id=41356
- Was added as a catagory and we missed it. Looked for other
  missing identifier selectors
2016-12-07 10:19:20 -06:00
Chris Hamons 6a57f45f39 Add a number of missing [Flags] in various enums (#1310)
- https://bugzilla.xamarin.com/show_bug.cgi?id=39789
- I looked for every enum with bit shifting in AppKit/Foundation, then
  checked the documentation hints. Was conservative in places.
2016-12-07 09:35:22 -06:00
Timothy Risi 0b540402bf [Mac] Fix introspection (#1189) 2016-12-06 09:55:47 -09:00
Chris Hamons 73bb8aa876 [XM] Fix XM bindings to include Notifications and update test (#1307)
- Teach test to check SkipNotification since a number of corrections require XAMCORE_4_0
2016-12-06 12:29:50 -06:00
Jeffrey Stedfast 1e41bc3750 [msbuild] Added a PropertyListEditor task which works like PlistBuddy (#1306)
* [msbuild] Added a PropertyListEditor task which works like PlistBuddy

This is a convenience Task for customers and isn't currently used
by the core MSBuild targets.

* [msbuild] The PropertyListEditor task does not need a SessionId property

* [msbuild] Added support for non-container root plist elements

* [msbuild] Catch & log exceptions loading plist document
2016-12-06 13:29:31 -05:00
Emanuel 7dac4dfe58 Copy watchOS app dll to output directory (#1271)
If the watchOS dll app is not copied to the output directory, the watchOS app project will be outdated for VS and it'll be built all the time. That will also cause the iOS app project to be built.
2016-12-05 17:21:48 -05:00
Chris Hamons 1c7429e864 [XM] Add disable switch to partial static registrar in mmp (#1303)
- Rework with state now RegistrarMode.PartialStatic
- Don't default RegistrarMode.PartialStatic if system mono (fixes mmp regression test on wrench)
2016-12-05 14:16:03 -06:00
Rolf Bjarne Kvinge 6b5f50802c AddressBook isn't in Xamarin.Mac. (#1304) 2016-12-05 19:40:47 +01:00
Rolf Bjarne Kvinge 7a5f5d0499 [generator] Replace ifdef with normal code condition. (#1305) 2016-12-05 19:39:14 +01:00
Chris Hamons c25ccd4237 [XM] Fall back to side by side loading of libxammac.dylib (#1264)
- https://bugzilla.xamarin.com/show_bug.cgi?id=43932
2016-12-05 12:21:43 -06:00
Rolf Bjarne Kvinge 39d903ab66 [tests] Fix framework-test to actually work. (#1297)
* [tests] Fix framework-test to actually work.

* [xharness] Properly replace 'ios' with corresponding platform for paths to our test frameworks as well.

* [framework-test] Fix watchOS build.
2016-12-05 18:35:53 +01:00
Rolf Bjarne Kvinge 8dc6b88bbf [mtouch] Only check for iOS min deployment target when building for iOS. (#1302) 2016-12-05 18:34:41 +01:00
Rolf Bjarne Kvinge 056d1ea8b4 [msbuild] Extensions can contain frameworks too. (#1301) 2016-12-05 18:21:46 +01:00
Rolf Bjarne Kvinge 33e778bd66 Bump maccore to get new mlaunch. (#1296)
* Bump maccore to get new mlaunch.

A new mlaunch that:

* Should have fewer random failures when launching watchOS apps.
* Supports launching extensions on device.
* Supports uninstalling apps from devices.
2016-12-03 01:53:36 +01:00
Rolf Bjarne Kvinge a4dde7de39 [jenkins] Automatically detect mono bumps and enable device build. (#1298)
* [jenkins] Automatically detect mono bumps and enable device build.

And do this before fetching labels, so that we can skip fetching labels if we
know we're already enabling the device build.

* [tests] Bumping LLVM merits enabling device build and running mtouch + BCL tests.
2016-12-03 01:52:24 +01:00
Sebastien Pouliot 08e8233f39 [test][harness] Fix exception when running tests more than once (#1299)
e.g. running twice

> make run-ios-sim32-introspection

results in

Unhandled Exception:
System.AggregateException: One or more errors occurred. ---> System.IO.IOException: /Users/poupou/git/master/xamarin-macios/tests/logs/exec-ios-sim32-introspection/iPhone 5.log already exists
  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x001bd] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/File.cs:109
  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName) [0x00000] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/File.cs:69
  at xharness.CaptureLog.StopCapture () [0x00019] in /Users/poupou/git/master/xamarin-macios/tests/xharness/Log.cs:252
2016-12-03 01:51:00 +01:00
Sebastien Pouliot 16c2200804 [tests][intro] Add checks for [Field] that should have [Notification] attributes (#1289)
Also:

* some refactoring to reduce the reflection usage for each field-based
  introspection tests;

* some fixes for existing bindings, mostly missing [Notification]

* removal of `unsafe` in the notification binding generation (not needed)

* Ignore the new test on XM until the API have been fixed
2016-12-02 12:05:05 -05:00
Rolf Bjarne Kvinge 33b677b763 [mtouch] Exec the binary in the script. (#1295)
This way the mtouch process is killed if the parent process kills the process
it spawned.
2016-12-02 17:41:38 +01:00
Rolf Bjarne Kvinge 37874bdfef [generator] Simplify a few XAMCORE_2_0 ifdefs. (#1294) 2016-12-02 16:14:35 +01:00
Rolf Bjarne Kvinge cbe3652621 Add comments for reviewed usage of pinned GCHandles. (#1290) 2016-12-02 14:13:59 +01:00