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

1924 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 697481bda5 [jenkins] Put failed tests at the top of the html report. 2017-01-09 17:03:24 +01:00
Rolf Bjarne Kvinge 6141528f52 [mtouch tests] Add missing file to csproj. 2017-01-09 17:03:05 +01:00
Vincent Dondain ded6d2f129 [mtouch] Update MT0091 message (#1453)
Fixes bug #40835: Improve enable managed linker error message
(https://bugzilla.xamarin.com/show_bug.cgi?id=40835)
2017-01-09 16:34:58 +01:00
Sebastien Pouliot 72b735466d [generator] Remove internal *Wrapper.ctor(IntPtr) constructors (#1446)
The registrar code looks for `.ctor(IntPtr,bool)` so we end up with
unneeded extra code and metadata.

	Xamarin.iOS.dll before	12656640
	Xamarin.iOS.dll after	12643840

Saves 12.5kb (25kb for iOS 32/64) + native code. Final result will vary
(linker).
2017-01-09 08:09:19 -05:00
Sebastien Pouliot 77a92500a5 [foundation] Fix possible abort when using NSUrlSessionHandler. Fix #50891 (#1451) (#1452)
PR 1435 did not fix bug #50891. The default (native) implementation till
get called and abort the process. The right way to solve this is to
override the members (easier now that it's not internal anymore) and
return `false` (or `null`) so the caller (the OS) knows it's not
supported (that's fine)

references:
* https://bugzilla.xamarin.com/show_bug.cgi?id=50891
* https://github.com/xamarin/xamarin-macios/pull/1435
2017-01-08 15:31:47 -05:00
Sebastien Pouliot 7e461645dc [mono][aot] Bump for fixing #51206 (master) (#1449)
commit e0baa814b0cacfece4c615255c67c4300db4a8b1
Author: Zoltan Varga <vargaz@gmail.com>
Date:   Thu Jan 5 19:44:42 2017 -0500

    [aot] Avoid a crash in the aot compiler if a delegate doesn't have a BeginInvoke ()/EndInvoke () method. Fixes #51206.

https://bugzilla.xamarin.com/show_bug.cgi?id=51206
2017-01-08 11:07:04 -05:00
Jeffrey Stedfast 6014967891 [msbuild] Make sure to use the *actual* filename generated by ibtool (#1442)
* [msbuild] Make sure to use the *actual* filename generated by ibtool

The problem is that since the Mac file system is case-insensitive,
File.Exists() will match "file~ipad.nib" even if the actual name
is "file~iPad.nib", so the only way to get the *actual* file name
is to scan the directory and do manual matching.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44811

* Check that the dir exists before allocating other local variables
2017-01-06 13:34:21 -05:00
Manuel de la Pena 4777b80784 [Foundation] Provide a public version of the get and set property methods for the NSStream (#1435)
* [Foundation] Provide a public version of the get and set property
methods for the NSStream.

This fixes bug 50891 where the handler crashes because the methods are
protected. Also, we add the AbstractAttribute to those methods in the
base class for whenever we are allowed to change the API to ensue that
the inheritors do provide the required methods as per Apple
documentation.

* Make the methods protected rather than public so that users don't access them over the indexer yet the apple internal classes can use them.

* Ensure methods will be Protected in Xam4.
2017-01-05 16:39:40 -05:00
Jeffrey Stedfast 3103153349 [msbuild] Fixed the Inputs for the _CodesignAppBundle target (#1438)
* [msbuild] Fixed the Inputs for the _CodesignAppBundle target

The Inputs need to include the Info.plist, embedded.mobileprovision,
and the native libs/frameworks since those files also get included
in the _CodeSignature/CodeResources.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=50791

* [msbuild] Added unit test to make sure _CodesignAppBundle logic works
2017-01-05 11:29:48 -05:00
Rolf Bjarne Kvinge 8d220b46d7 [src] Make project templates MSBuild-compatible.
MSBuild wants to copy from IntermediateOutputPath to OutputPath, even if the
assembly doesn't exist in IntermediateOutputPath (and it already exists in
OutputPath). So just set IntermediateOutputPath=OutputPath, which seems to
work fine.

Also make these project files build correctly without custom scripts (custom-
make.sh), since that makes it easier to transform these project files in
xharness (copy them to a different directory).
2017-01-05 13:09:29 +01:00
Rolf Bjarne Kvinge 8391a3ca39 [xharness] Major rewrite (add server mode, add device support, add today extension support).
* Add a server mode, which launches a web server (and a web page) that can be
  used to interactively run tests and view their results.

* Add support for running test assemblies in a today extension (generating a
  new set of projects, similar to how we generate tvOS/watchOS projects based
  on the iOS project, we now generate a today extension project in addition to
  the tvOS and watchOS projects).

* Load all the different tests (and show them in the html report, although
  they show up as 'ignored'), even for disabled/ignored tests. This makes
  disabled/ignored tests more visible, and also makes it possible to actually
  run them using the embedded web server.

* Add support for running tests on device. Tests will be executed on multiple
  devices simulatenously (any connected devices will be used).
2017-01-05 13:08:48 +01:00
Rolf Bjarne Kvinge 39cb42961d [mtouch tests] Add Cache. 2017-01-05 10:43:55 +01:00
Rolf Bjarne Kvinge 321ac19918 [tests] Move a few template test files around. 2017-01-05 10:42:36 +01:00
Rolf Bjarne Kvinge 1852ff7d4b [tests] Test libraries must build to bitcode to be usable on watchOS. (#1440) 2017-01-04 17:05:14 -05:00
Rolf Bjarne Kvinge c30614cd67 [xharness] Find config files based on the given root directory, and not the current directory. (#1441)
Xamarin Studio does funny things with the current directory sometimes when
launching executables, so this makes the behavior more consistent.
2017-01-04 17:05:04 -05:00
Sebastien Pouliot 03a7042d17 Bump mono to the head of mono-4.8.0-branch (same as c9) (#1437)
* [apidiff] Update XML references to match C8SR2 (10.3.1)

* Bump mono to the head of mono-4.8.0-branch (same as c9)
2017-01-04 17:03:04 -05:00
Rolf Bjarne Kvinge 2d3a990acf [mtouch tests] Minor refactoring to make a few nested classes non-nested. (#1433) 2017-01-04 19:33:57 +01:00
Rolf Bjarne Kvinge a520c5077a [runtime] Use safer versions of strncpy/strncat/strcat. (#1434)
The length argument for `strncpy` specifies how many characters to copy, not
the length of the target string, which makes our usage incorrect.

Fix our usage, and use the `strlcpy` variant instead, which takes the length
of the target string.

And use `strlcat` instead of `strcat`.
2017-01-04 18:10:47 +01:00
Vincent Dondain 10d7858c4f [docs] Fix binding_types_reference_guide typo 2017-01-04 15:58:49 +01:00
Rolf Bjarne Kvinge b3d2b50dca [mtouch] Auto-install locally after building in the IDE. (#1432)
Auto-install locally after building in the IDE, so that running mtouch tests
after running the mtouch project doesn't require switching to the command
line.
2017-01-03 16:34:33 -05:00
Rolf Bjarne Kvinge d3e974e2bc [mtouch tests] Build the registrar tests for the simulator. (#1431)
It's *much* faster.
2017-01-03 19:40:33 +01:00
Sebastien Pouliot dea2dde259 [linker] Update mscorlib.xml to preserve generic collection interfaces. Fixes #50290 (#1384) (#1427)
The `generic_icollection_class` condition (in class.c) does not match the mscorlib.xml descriptor file.

+ IEnumerator`1
+ IReadOnlyList`1
+ IReadOnlyCollection`1

reference:
https://bugzilla.xamarin.com/show_bug.cgi?id=50290
2017-01-03 13:03:29 -05:00
Rolf Bjarne Kvinge 5b4bc02f72 [generator] Hardcode the XamCore version instead of using ifdefs. (#1422) 2017-01-03 15:15:04 +01:00
Rolf Bjarne Kvinge d7ecfc3a14 [mtouch/mmp] Make Cache a non-static class. (#1425)
So that there can be multiple caches in the same process (which we'll have
once mtouch can compile extensions and the container app in the same process).
2017-01-03 15:14:47 +01:00
Rolf Bjarne Kvinge 4b82398c62 [xharness] Add Jenkins support for mmp regression tests. (#1426) 2017-01-02 19:36:21 +01:00
Rolf Bjarne Kvinge 9e8b43a594 [jenkins] Make jenkins non-parallel to see if it fixes #46097. (#1324)
* [jenkins] Make jenkins non-parellel to see if it fixes #46097.

* [jenkins] Limit serialization to watchos builds.

* [jenkins] Only allow Mac builds to be paralellized.
2017-01-02 16:39:43 +01:00
Rolf Bjarne Kvinge 53de436529 [tests] Update gitignore. (#1423) 2017-01-02 12:27:03 +01:00
Rolf Bjarne Kvinge 358c16caf0 [generator] Drop support for /Developer/MonoTouch. (#1421) 2017-01-02 12:01:07 +01:00
Rolf Bjarne Kvinge 3d4ad53253 [mtouch] Fix infinite recursion after d1102c80. (#1420)
Fixes this test failure:

    Xamarin.Registrar.MT4161 : Unexpected error/warning with --registrar:static:
	    error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
2017-01-02 11:05:01 +01:00
Rolf Bjarne Kvinge 4639052153 [ContactsUI] Unify ContactsUI.Mac into ContactsUI. (#1409)
It's the only framework that uses a different api definition (and makefile
name), so merge these to make upcoming code that automatically generates the
list of frameworks per platform (based on the makefiles) simpler.
2017-01-02 09:01:13 +01:00
Rolf Bjarne Kvinge e8fa0a7251 [tests] Add a few more resources to test. (#1412) 2017-01-02 09:00:47 +01:00
Rolf Bjarne Kvinge ab21da1b85 [xharness] Add support for uninstalling apps from device. (#1413)
The new error message / number is used in mlaunch.
2017-01-02 08:58:46 +01:00
Rolf Bjarne Kvinge 0d0a1f59eb [xharness] Don't hit the network to load xml files. (#1415) 2017-01-02 08:58:14 +01:00
Rolf Bjarne Kvinge 8aff9997c7 [tests] It's not necessary to set XS environment variables anymore. (#1416) 2017-01-02 08:57:34 +01:00
Chris Hamons b1040cb8a8 Add NSToolbarItemGroup binding (#1386) 2016-12-29 10:37:15 -06:00
Chris Hamons a59dc46fcc Fix some 10.12.2 APIs marked as 10.12.1 (#1419) 2016-12-28 08:50:10 -06:00
Chris Hamons cdf3915704 Fix EveryFrameworkSmokeTests test with MediaPlayerLibrary (#1418) 2016-12-28 08:46:46 -06:00
Rolf Bjarne Kvinge ab2548a115 [mtouch] Automatically create the output directory if it doesn't exist. (#1414) 2016-12-24 10:57:08 -05:00
Rolf Bjarne Kvinge 281f1bbe07 [xharness] Clear XCODE_DEVELOPER_DIR_PATH from the environment. (#1417) 2016-12-24 10:55:51 -05:00
Sebastien Pouliot a562ac513a [apidiff] Update XML references to match C8SR2 (10.3.1) (#1411) 2016-12-23 13:13:24 -05:00
Rolf Bjarne Kvinge d1102c800e [mtouch] Remove most static state and put it on an instance. (#1398)
* [mtouch] Remove most static state and put it on an instance.

Remove most static state, and put it on an instance (of Application) instead.

Soon we'll build multiple apps (app extensions) in the same process, and we
need to make sure we're not inadvertedly (and incorrectly) sharing state
between apps, so remove as much static state as possible to avoid any
problems.

* [mtouch] Rename GetIsUsingClang -> IsUsingClang.
2016-12-23 18:50:35 +01:00
Rolf Bjarne Kvinge 737f0d5739 [generator] Move the attributes to their own file. (#1408)
An IKVM-based generator will have the attributes in a separate assembly,
so they need to be in a different file.
2016-12-23 17:13:55 +01:00
Rolf Bjarne Kvinge 3ec3f39089 [mtouch] Always require a SDK version when building. (#1407)
* [mtouch] Always require a SDK version when building.

Technically it was required before too, but the error messages were non-optimal:
it could for instance complain that the user is using an iOS framework that
was introduced in iOS 2.0.

* [mtouch tests] Rewrite MT0060 and MT0061 tests to use MTouchTool.

This makes sure we pass --sdk to mtouch (which MTouchTool does by default), so
that we don't run into MT0025 before the errors we're testing for.
2016-12-23 17:09:39 +01:00
Rolf Bjarne Kvinge c5cc47f545 [tests] Specify ordinal string comparison for a few string operations. (#1406) 2016-12-23 17:07:18 +01:00
Rolf Bjarne Kvinge 76951ae511 [generator] Avoid propagating boolean values if we can look them up instead. (#1399) 2016-12-23 07:36:29 +01:00
Rolf Bjarne Kvinge ee5b450174 [mtouch] Remove deprecated comment. (#1402) 2016-12-23 07:35:36 +01:00
Alex Soto c71c7b93fe Merge pull request #1404 from rolfbjarne/homekit-fix-compiler-warning
[HomeKit] Fix compiler warning.
2016-12-22 23:25:11 -06:00
Vincent Dondain 064a747de3 [Doc] Introduce xamarin-analysis-doc-tool (#1374)
* [Doc] Introduce xamarin-analysis-doc-tool

This tool is responsible of producing the xamarin-analysis.md file which is
our Xamarin.Analysis rules documentation.

It will always override the content of the previous xamarin-analysis.md file.

We generate the documentation based on the existing rules in xamarin-analysis/shared/Xamarin.Analysis/Xamarin.iOS.Analysis.targets
2016-12-22 15:06:35 -05:00
Rolf Bjarne Kvinge 3f9599d3f4 [mtouch/mmp] Add better help for the --marshal-[managed|objectivec]-exceptions arguments. (#1403) 2016-12-22 20:11:50 +01:00
Rolf Bjarne Kvinge 2489f2e757 [HomeKit] Fix compiler warning.
Fix this compiler warning:

	src/HomeKit/HMEnums.cs(979,22): warning CS0618: `HomeKit.HMAccessoryCategoryType.DoorOpener' is obsolete: `Use GarageDoorOpener instead'

by rearranging fields a bit.
2016-12-22 19:20:12 +01:00