xamarin-macios/tests/monotouch-test
Sebastien Pouliot 54e6940cbe
[foundation] Add custom trust/certificate validation to NSUrlSessionHandler. Fix #4170 (#6103)
Basic application (size) for doing an `HttpClient.GetAsync`, release/llvm, 64bits only

- NSUrlSessionHandler (master): 6.4 MB
- NSUrlSessionHandler (PR#5936): 7.7 MB
- NSUrlSessionHandler (this PR): 6.4 MB

The size increase occurs because of the reference to .net `X509*` types.
This brings a lot of additional code, including managed cryptographic
code, inside the application - even when the feature is **not** used.

The solution is to expose an API that only use native (OS) types, which
are mostly already part of the application. This has a very low impact
on existing applications.

It's still possible to hook back to .NET validation if needed (it should
not in most cases) but, in this case, the extra price will only be
_paid_ if used (and can be lower if the code is needed by something else
from the application).

In comparison using other `HttpClient` handler produce app sizes of

- HttpClientHandler (managed): 10.4 MB
- CFNetworkHandler: 6.8 MB

Based on/supersede https://github.com/xamarin/xamarin-macios/pull/5733
Fix https://github.com/xamarin/xamarin-macios/issues/4170
2019-05-23 08:09:10 -04:00
..
ARKit [monotouch-test] ARImageTrackingConfiguration is iOS 12+, so protect accordingly. (#5594) 2019-02-13 13:49:17 +01:00
AVFoundation [AVFAudio] Xcode 10.2 Beta 2 (#5554) 2019-02-06 16:48:10 -05:00
AVKit [tests] Re-enable AVPlayerViewController.PrepareForPrerollAds test (broken in early betas) (#4656) 2018-08-20 21:15:58 -04:00
AdSupport [monotouch-test] Remove Classic tests and any version checks for versions earlier than the minimum deploymnent target. 2018-07-03 20:47:14 +02:00
AddressBook [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
AddressBookUI [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
Assets.xcassets/AppIcons.appiconset [tests] Import 2016-05-26 15:06:52 +02:00
AudioToolbox [Tests] Fix failing tests on iOS 8. Fixes #4437 (#4592) 2018-08-08 16:14:04 +02:00
AudioUnit [monotouch-test] Fix versions checks. 2018-07-03 20:47:14 +02:00
CloudKit [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
Compression [Compression] Ensure we use the correct linking flags for older versions. Fixes #4129. (#4169) (#4184) 2018-06-05 14:56:49 -04:00
Contacts [monotouch-test] Fix ContactStoreTest for watchOS (#3006) 2017-11-14 16:10:19 -05:00
CoreAnimation Remove private API (#5915) 2019-04-25 10:16:22 -04:00
CoreAudioKit [tests] Add missing version check on AUViewController tests. Fixes #42440 (#393) 2016-07-13 23:10:35 -04:00
CoreBluetooth [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
CoreData [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
CoreFoundation [corefoundation] Add missing CFStringTransform API. Fixes #5705 (#5712) 2019-03-06 08:04:17 -05:00
CoreGraphics [CoreGraphics] Make CGPattern inherit from NativeObject, and add a CGPattern test. (#5734) 2019-03-07 16:49:12 +01:00
CoreImage [coreimage] Add generator support for CIVector[] and enable it in CIMeshGenerator. Fix #4226 (#4715) 2018-08-29 13:29:34 -04:00
CoreLocation [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
CoreML Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
CoreMedia [coremedia] Update for xcode 10.2 beta 1 (#5513) 2019-01-30 16:51:26 -05:00
CoreMidi [Backport 15-7][monotouch-test] Stop MidiThruConnectionTests.FindTest from randomly failing (#3702) 2018-03-09 12:49:33 -06:00
CoreMotion [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
CoreServices [CoreFoundation] Fix ownership of objects returned from CFHTTPMessageCreate* P/Invokes. (#6091) 2019-05-22 22:52:46 -07:00
CoreText [coretext] Update CTRunDelegate to work on 64 bits. Fixes #5132 (#5302) 2018-12-21 08:57:32 -05:00
CoreVideo [tests] Adjust new tests to build on XM too 2017-11-03 15:30:04 -04:00
EventKit [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
ExternalAccessory [monotouch-test] Remove Classic tests and any version checks for versions earlier than the minimum deploymnent target. 2018-07-03 20:47:14 +02:00
FileProvider Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
Foundation [Foundation] Improve/fix NSRegularExpression and NSDataDetector bindings. Fixes #5881. (#5882) 2019-04-10 15:12:24 +02:00
GLKit [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
GameController Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
GameKit [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
GameplayKit [monotouch-test] Fix versions checks. 2018-07-03 20:47:14 +02:00
HealthKit [healthkit] Update for Xcode 10.2 beta 1 (#5497) 2019-01-29 13:07:48 -05:00
HomeKit Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
HttpClient [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
ImageIO [imageio] Add availability attributes to `Maker*Dictionary` fields (#4753) 2018-09-05 13:27:46 -04:00
Intents Bump to use Xcode 10 beta 1 (#4179) 2018-06-08 18:45:24 -07:00
JavascriptCore [monotouch-test] Fix versions checks. 2018-07-03 20:47:14 +02:00
MapKit [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
MediaAccessibility [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
MediaPlayer [tests] Add missing availability attribute and adjust tests to run on iOS 7 devices. Fix #4437 (#4719) 2018-08-29 09:09:43 -04:00
MediaToolbox [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
MessageUI [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
Messages [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
Metal [Metal] Fixe the size of structures. Fixes #4611 (#4838) 2018-09-21 09:33:27 -04:00
MetalPerformanceShaders [MetalPerformanceShaders] MPSImageNormalizedHistogram isn't available in iOS 11 as the headers claim. (#5942) 2019-04-24 06:38:10 +01:00
MobileCoreServices [coreservices] Update up to beta 5 (#4590) 2018-08-08 12:38:03 -04:00
ModelIO [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
MultipeerConnectivity [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
NaturalLanguage Merge xcode10.1 into d15-9 (#5063) 2018-10-31 17:30:44 -04:00
Network [Tests] Remove IPV6 flaky test with an ignore. (#4815) 2018-09-14 10:05:17 -04:00
NetworkExtension [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
ObjCRuntime [monotouch-test] Adjust for arm64_32 abi. 2019-05-10 11:28:22 +02:00
OpenGLES [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
PassKit [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
PdfKit Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
Photos [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
PushKit [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
QuickLook [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
ReplayKit Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
Resources [foundation] Add NSBundle.GetLocalizedString returning an NSString. Fixes #41292 (#3266) 2018-01-20 14:00:01 -05:00
SafariServices Merge branch 'xcode10' 2018-09-18 14:12:39 -04:00
SceneKit [monotouch-test] Require iOS 9+ for the ActionTest.TimingFunction_* tests. (#5194) 2018-11-28 15:09:03 +01:00
Security [security] Update for Xcode 10.2 beta 1 (#5481) 2019-01-25 15:00:56 -05:00
Simd Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
SpriteKit [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
StoreKit [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
System.Net.Http [foundation] Add custom trust/certificate validation to NSUrlSessionHandler. Fix #4170 (#6103) 2019-05-23 08:09:10 -04:00
SystemConfiguration [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
UIKit [UIKit] Don't crash if UIGestureRecognizer.Dispose is called multiple times. Fixes #5899. (#5921) 2019-04-22 15:52:06 -05:00
VideoToolbox [monotouch-test] Improve VTDecompressionSessionTests asserts to print better info in case of failure. (#5083) 2018-11-06 09:53:59 +01:00
Vision [Vision] Update bindings to Xcode 10 beta 1, nothing in beta 2 (#4321) 2018-08-01 10:50:13 -04:00
iAd [iAd] Xcode 10 beta 3 support. (#4425) 2018-07-13 16:23:44 +02:00
mono [monotouch-test] Don't go completely overboard when trying to fill the GC's nursery. 2019-05-20 18:00:18 +02:00
AppDelegate.cs [CoreGraphics] Make CGPattern inherit from NativeObject, and add a CGPattern test. (#5734) 2019-03-07 16:49:12 +01:00
Asserts.cs [MetalPerformanceShaders] Xcode 9 bindings (#3005) 2017-11-28 14:29:05 -06:00
BoardingPass.pkpass [tests] Import 2016-05-26 15:06:52 +02:00
EmptyNib.xib [tests] Import 2016-05-26 15:06:52 +02:00
Entitlements.plist [tests] Import 2016-05-26 15:06:52 +02:00
Hand.wav [tests] Import 2016-05-26 15:06:52 +02:00
Info.plist [tests] Remove Classic test projects, and make the Unified test projects the master projects. (#858) 2016-09-21 22:55:10 +02:00
LL-171A-B-B797E457-16AB-C708-1E0F-32C19DBD47B5.icc [tests] Import 2016-05-26 15:06:52 +02:00
LaunchScreen.storyboard [tests] Import 2016-05-26 15:06:52 +02:00
Main.cs [CoreGraphics] Make CGPattern inherit from NativeObject, and add a CGPattern test. (#5734) 2019-03-07 16:49:12 +01:00
Makefile [tests] Import 2016-05-26 15:06:52 +02:00
Model3.arobject [arkit] Update to Xcode 10 beta 3 (#4406) 2018-07-05 22:36:33 -04:00
NativeTypesTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
Pacifico.ttf [tests] Import 2016-05-26 15:06:52 +02:00
Tamarin.pdf [tests] Import 2016-05-26 15:06:52 +02:00
app.config [monotouch-test] Add test to ensure config files are properly bundled in apps. (#1291) 2016-12-02 14:13:25 +01:00
basn3p08.png [tests] Import 2016-05-26 15:06:52 +02:00
compressed_lz4 [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
compressed_lze [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
compressed_lzma [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
compressed_zip [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
drum01.mp3 [tests] Import 2016-05-26 15:06:52 +02:00
monotouch-test.csproj [msbuild] Add reference to `System.Drawing.Common.dll` to XI projects. (#6011) 2019-05-10 01:20:52 +02:00
uncompressed.txt [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
xamvideotest.mp4 [tests] Import 2016-05-26 15:06:52 +02:00