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

1899 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 1fa6bf0861 [generator] Rename 'buildNewStyle' to 'Unified', and don't make its use compile-time conditional. (#1253) 2016-11-28 16:18:11 +01:00
Chris Hamons 24e041068f Merge pull request #1232 from xamarin/xm_mmp_native_lib_crash
[XM] Fix crash in mmp when native reference path matches dllimport found
2016-11-28 08:54:30 -06:00
Sebastien Pouliot f647130061 [generator] Optimize smart enums support (#1249)
* Reduce the required metadata, i.e. from one field per constant to a
  single array of `IntPtr`;

* Don't store/create the `NSString` unless required, i.e. keep `IntPtr`
  for comparison (but still compare them as `NSString`, not pointers);

* Avoid `NSString ==` as it will do a null check for the first paramater
  everytime, and there's a (single) check already in place for this;

Size						before		after
---------------------------	--------		--------
Xamarin.iOS.dll (32bits)	12507136	12502528
Xamarin.iOS.dll (64bits)	12507648	12503040
Xamarin.TVOS.dll			 8819712	 	8815104
Xamarin.WatchOS.dll		 4781568	 4773888

Not a huge difference *yet* but we're only starting to use, and replace
manual code with, smart enums.
2016-11-28 08:32:15 -05:00
Rolf Bjarne Kvinge 45fd1c3bb0 [xharness] Fix listing modified files for pull requests. (#1252)
The previous method of getting the base and head sha from the pull request
doesn't work if the pull request has been rebased.

Example: https://github.com/xamarin/xamarin-macios/pull/1238

Resulted in this [1]:

    Fetching modified files for commit range cf07825667aa444c988c82b7e29cefc5f8ba7bcd..6aa2b9517ac35374dfa4ded41d1e2ff52778da07
    git diff-tree --no-commit-id --name-only -r cf07825667aa444c988c82b7e29cefc5f8ba7bcd..6aa2b9517ac35374dfa4ded41d1e2ff52778da07
    Found 20 modified file(s) in the pull request #1238.
        Makefile
        Versions-ios.plist.in
        Versions-mac.plist.in
        external/llvm
        external/mono
        msbuild/Xamarin.Mac.Tasks.Core/Tasks/MmpTaskBase.cs
        msbuild/Xamarin.Mac.Tasks/Xamarin.Mac.Common.props
        msbuild/Xamarin.Mac.Tasks/Xamarin.Mac.Common.targets
        msbuild/Xamarin.iOS.Tasks.Core/Tasks/MTouchTaskBase.cs
        msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.props
        msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets
        src/Makefile
        src/UIKit/UIScreen.cs
        src/appkit.cs
        src/generator-diff.mk
        tests/introspection/ApiTypoTest.cs
        tests/introspection/Mac/MacApiTypoTest.cs
        tests/introspection/Mac/introspection-mac.csproj
        tests/xharness/Harness.cs
        versions-check.csharp

which is listing way too many files.

[1]: https://jenkins.mono-project.com/job/xamarin-macios-pr-builder/2118/Test_Report/Harness.log
2016-11-28 13:44:12 +01:00
Marek Safar 16809581e9 Merge pull request #1250 from marek-safar/watch-fixes
Add missing watch drawing sources
2016-11-28 13:40:39 +01:00
Rolf Bjarne Kvinge 083f5ad850 [generator] Add a CurrentPlatform field to BindingTouch. (#1247)
This allows us to remove a few ifdefs, which is a required step
in order to create an ikvm-based generator.
2016-11-28 12:34:12 +01:00
Marek Safar df5e8d4c35 Add missing watch drawing sources 2016-11-28 11:11:31 +01:00
Alex Soto 0d966e8802 [CoreMedia] Fix a null check in CMBlockBuffer ReplaceDataBytes (#1231) 2016-11-27 16:38:21 -06:00
Sebastien Pouliot fb7cb19459 [avfoundation] Fix availability/visibility for AVAssetExportSessionPreset enum (#1248)
1. it's not available from watchOS

references (watchos.unclassified):
!unknown-field! AVAssetExportPreset1280x720 bound
!unknown-field! AVAssetExportPreset1920x1080 bound
!unknown-field! AVAssetExportPreset3840x2160 bound
!unknown-field! AVAssetExportPreset640x480 bound
!unknown-field! AVAssetExportPreset960x540 bound
!unknown-field! AVAssetExportPresetAppleM4A bound
!unknown-field! AVAssetExportPresetHighestQuality bound
!unknown-field! AVAssetExportPresetLowQuality bound
!unknown-field! AVAssetExportPresetMediumQuality bound
!unknown-field! AVAssetExportPresetPassthrough bound

2. AVAssetExportPreset3840x2160 was decorated with [Mac (10,10)] but
   inside a `#if !MONOMAC`

reference:
osx.unclassified:!missing-field! AVAssetExportPreset3840x2160 not bound
2016-11-27 09:37:26 -05:00
Sebastien Pouliot 44f14cf768 [generator] Support [Sealed] on types. Fixes #43995 (#1227)
* Add `sealed` on types decorated with `[Sealed]` as it's already a valid
  target for the attribute [1];

* Do not generated `protected .ctor (NSObjectFlag)` on sealed types;

* Do not generate virtual methods inside sealed types, which simplifies
  their implementation [2]

* Add [Sealed] for RPScreenRecorder (mentioned in bug report) under
  `XAMCORE_4_0`

[1] `AVPictureInPictureController` was already using `[Sealed]` even if
it was **not** supported so this has been moved under `XAMCORE_4_0`.

[2] Some of the advantages (reduced ize and registrar time) might not be
very visible as the linker/optimizer already does the same (in most cases)

References
* https://bugzilla.xamarin.com/show_bug.cgi?id=43995
2016-11-25 13:21:31 -05:00
Rolf Bjarne Kvinge 43e6f82803 [xharness] Look for mlaunch next to mtouch. (#1243) 2016-11-25 12:37:02 +01:00
Rolf Bjarne Kvinge 7535eae204 [xharness] Fix mlaunch download if extraction dir already exists. (#1241) 2016-11-25 11:27:08 +01:00
Christian Resma Helle cf07825667 Improve UIScreen Capture() support for complex views (#1235)
Use DrawViewHierarchy to capture a snapshot of the current screen
2016-11-24 16:30:33 +01:00
Vincent Dondain 8ea1509dec [msbuild] Add msbuild error code logic
- `LoggingExtensions` has a new `MTError` extension method that helps generate
  an msbuild error with the proper MTxxx format.
- Added error codes for 44 msbuild errors.
- Updated `docs/website/mtouch-errors.md` and `tools/mtouch/error.cs` accordingly.
- MT7001 contains some extra documentation (troubleshooting steps).
2016-11-24 15:24:30 +01:00
Rolf Bjarne Kvinge 77d4769f54 [xharness] Make sure DownloadMlaunch isn't run multiple times simultaneously. (#1236) 2016-11-24 15:12:51 +01:00
Chris Hamons ce464cacc3 [XM] Fix crash in mmp when native reference path matches dllimport found
- When native_libs.Add (nr, null) was hit above and then we later matched
 we would call methods.AddRange (kvp.Value) on an empty methods
2016-11-23 14:00:01 -06:00
Rolf Bjarne Kvinge 6d8421e966 Bump mono to get fix for #45140. (#1228)
https://bugzilla.xamarin.com/show_bug.cgi?id=45140
2016-11-23 16:31:10 +01:00
Zoltan Varga f0640443a9 Bump llvm to the tip of the 'master' branch. (#1225) 2016-11-23 07:30:31 -05:00
Rolf Bjarne Kvinge 30cf039f63 [src] Add makefile targets to calculate a diff of generated source code. (#1230) 2016-11-23 12:29:44 +01:00
Rolf Bjarne Kvinge 3a771eaf09 Add and ship file that lists the SDK versions XI/XM supports. (#1162)
* Add and ship file that lists the SDK versions XI supports.

Add and ship a file that lists the SDK versions of the various SDKs XI supports.

Also list the minimum SDK version for each extension.

And add a script that verifies that the current SDK version is in this file,
which should ensure every SDK version bump ends up in the file.

* [mtouch] Remove generated file from source control.

* [SdkVersions] Remove versions not in master yet.

* [SdkVersions] Improve detection script to verify that versions are between min and max, and that both min and max are in the list.

* Move things around a bit and add macOS support.

* Update Versions-mac.plist.in with extension info
2016-11-22 14:41:50 +01:00
Timothy Risi 23221f92f3 Fix test failure (#1223) 2016-11-21 16:38:01 -05:00
Timothy Risi 2dcace0c7a [Mac] Add ApiTypoTest (#1190) 2016-11-21 16:35:57 -05:00
Vincent Dondain 42775bac58 Update reference to maccore
Includes xamarin-analysis bump with rule XIA0003.
2016-11-21 16:14:09 +01:00
Rolf Bjarne Kvinge c00dbbb30c [runtime] Assert instead of exiting with a printf. (#1222)
Asserting produces a potentially useful crash report, while just exiting doesn't.
2016-11-21 14:39:16 +01:00
Rolf Bjarne Kvinge ea24c1d3b4 [runtime] Remove unused variable. (#1221) 2016-11-21 14:38:14 +01:00
Manuel de la Pena 576563fa0a Revert "[tests] Disable the docs tests until the documentation process is fixed. (#965)" (#1220)
Test have been fixed in
maccore/master/7284688c05cd1420274858a57b7c7616dfbe1d0b

This reverts commit 0a0503a6e9.
2016-11-21 13:09:54 +01:00
iain 94e47a09b4 [CoreMidi] Make FindByUniqueId public (#1218) 2016-11-21 10:30:56 +01:00
Rolf Bjarne Kvinge 657d603b03 [runtime] Fix signature for mono_thread_detach_if_exiting. (#1217) 2016-11-18 20:42:31 +01:00
Rolf Bjarne Kvinge 3cf0eb89d1 [builds] Rely on the mono repo automatically cloning the binaries for the offset tool. (#1215) 2016-11-18 12:32:51 +01:00
Rolf Bjarne Kvinge 3ac54f01a4 Bump mono to get fix for #45369. (#1212) 2016-11-18 10:17:10 +01:00
Rolf Bjarne Kvinge db00a33848 [xharness] Add support for [skip|run]-all-tests labels. (#1208) 2016-11-18 07:11:14 +01:00
Zoltan Varga 4c8898f3ee [mtouch] Convert .file directives containing backslashes correctly. Fixes #44733. (#1211) 2016-11-18 07:02:41 +01:00
Rolf Bjarne Kvinge fad320462c [apitest] Skip IKPictureTaker. Fixes #46624. (#1209)
https://bugzilla.xamarin.com/show_bug.cgi?id=46624
2016-11-17 19:23:13 +01:00
Rolf Bjarne Kvinge 077b0d3343 [tests] Update README. (#1207) 2016-11-17 14:18:39 +01:00
Rolf Bjarne Kvinge 66f82d1f94 [jenkins] Add support for enabling device builds using labels. (#1184)
* [jenkins] Add support for enabling device builds using labels.

* [xharness] Give the iOS MSBuild tests 30 minutes to finish.

* [mtouch tests] Give the BuildTestProject 10 minutes to compile each test case.

Wrench bots build the dontlink test in ~3m40, but that's apparently not enough
for the Jenkins bots (slower bots?), which time out the test after 5 minutes.

So double the timeout to 10 minutes, which will hopefully give the Jenkins
bots enough time to run the test to completion.
2016-11-17 10:22:26 +01:00
Rolf Bjarne Kvinge 89757e6f60 [xharness] Capture entire log files on wrench. (#1206) 2016-11-17 08:07:09 +01:00
Martin Baulig 80fb556c30 [AppleTls]: Fix AppleTlsContext.PeerDomainName and include it in MonoTlsConnectionInfo.PeerDomainName. (#1205)
SSLGetPeerDomainName() may sometimes include a trailing \0 character,
which we need to remove.

We now also set MonoTlsConnectionInfo.PeerDomainName.
2016-11-17 07:36:51 +01:00
Vincent Dondain 011bb14212 [msbuild/tests] Add watch-companion test (#1187) 2016-11-16 16:51:33 -05:00
Jeffrey Stedfast 19ae097f79 [msbuild] Log warnings and errors for the ibtool --link stage as well (#1188)
* [msbuild] Log warnings and errors for the ibtool --link stage as well

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

* [msbuild] Only need to log warnings and errors when ibtool returns error in --link phase

* [msbuild] Don't log empty errors from ibtool

* [msbuild] Moved LogWarningsAndErrors() logic into XcodeCompilerToolTask.Compile()

* [msbuild] Tweak minor glitches

- rc is not needed anymore since we don't *yet* do anything with the error code.
- copy&paste issue on the LogError.
2016-11-16 16:20:51 -05:00
Rolf Bjarne Kvinge c83fa8a9bb [xharness] Fix target selection for simulators on wrench. (#1204) 2016-11-16 19:06:26 +01:00
Rolf Bjarne Kvinge 15b1204874 [xharness] Unify simulator selection code between Jenkins and Wrench and automatically create device pairs if none applicable is found. (#1202)
* [xharness] Don't crash if we can't find a simulator.

* [xharness] Create a device pair if none applicable is found.

* [xharness] Use an enum instead of string values for the target.

* [xharness] Unify the simulator selection code between Jenkins and Wrench.
2016-11-16 15:23:11 +01:00
Rolf Bjarne Kvinge a2570c6b84 [xharness] Improve cleaning by removing saved simulator state and the CoreSimulatorService. (#1203)
Also do this at the very start, to make sure no stale CoreSimulatorService is
around at build time. This will hopefully fix bug #[46097][1].

[1]: https://bugzilla.xamarin.com/show_bug.cgi?id=46097
2016-11-16 15:21:20 +01:00
Rolf Bjarne Kvinge d646d522f3 [xharness] When finding watchos device types, only find the ones that are in available device pairs. (#1198) 2016-11-15 20:20:36 +01:00
Manuel de la Pena aa38ab68ac [Jenkins] Add nuint xml logs (#883)
* [Jenkins] Make test to write output as an xml file so that it can be parsed by the jenkins bot.

* Point to the correct Touvh.Unit repo.

* Use the available property to determine if we are being ran in Jenkins.

* Log where are test results stored.

* Add @MonkeyWrench: prefix.

* Ensure that we do set the build env in jenkins/run-tests.sh

* Do not mix Wrench with Jenkins. The reports in jenkins can be Xml, in Wrench we prefer the old style.

* Ensure that the main node of the unit tests does contain the target, that will improve the tests results reporting.

* Revert "Fix binding project LinkWithAttributes generation to prevent rebuilds" (#1018)

* Added xslt to be used to keep the old Test Reports until we move to only Jenkins reports.

* Add an extra log for the xslt transformation.

* Point to the correcto dir in jenkins.

* Deal with the xslt once we have finished rather than in a batch.

* Remove noise.

* Readd case removed in rebase.

* Fix indentation.

* Skip lock keychain.
2016-11-15 19:04:37 +01:00
Rolf Bjarne Kvinge 7233468538 Bump maccore to get license update. (#1194) 2016-11-15 11:19:47 +01:00
Chris Hamons 441ae8c4ec Merge pull request #1178 from xamarin/xm_fix_touchbar_mess
Re-add touchbar APIs to master, this time with the correct StaticRegistar fix...
2016-11-14 10:59:51 -06:00
Chris Hamons 7004944a6b Fix mmp rebuild logic to detect mmp failures and rebuild (#1149)
- https://bugzilla.xamarin.com/show_bug.cgi?id=46508

Since we were previously looking for the .exe instead of the launcher, mmp
failures would come back as good and we wouldn't rebuild. What we want
to do is look for the native launcher, which we perviously were doing wrong.
2016-11-14 10:58:50 -06:00
Rolf Bjarne Kvinge af08a229e9 [xharness] Show better log names. (#1185) 2016-11-14 16:29:46 +01:00
Rolf Bjarne Kvinge 9979cb1b82 [mtouch] Don't copy mdb files if they haven't changed. (#1182)
This fixes an mtouch test:

```
1) Failed : Xamarin.MTouch.RebuildTest("debug","-sdkroot {2} -v -v -v -v --dev {0} -sdk {3} --targetver 6.0 {1} -r:{4} --cache={5}/cache --debug")
  debug-rebuilt
/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/tmp3fef2cc4.tmp/testApp.app/.monotouch-32/System.dll.mdb is modified, timestamp: 11/12/2016 1:17:59 AM
/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/tmp3fef2cc4.tmp/testApp.app/.monotouch-32/Xamarin.iOS.dll.mdb is modified, timestamp: 11/12/2016 1:17:59 AM
/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/tmp3fef2cc4.tmp/testApp.app/.monotouch-32/mscorlib.dll.mdb is modified, timestamp: 11/12/2016 1:17:59 AM
```
2016-11-14 14:50:08 +01:00
Rolf Bjarne Kvinge 37e0ff839e Merge pull request #1181 from rolfbjarne/mtouch-rebuild-typo
[mtouch] Fix typo in PreBuild directory name.
2016-11-14 14:49:03 +01:00