From 219f6b6e1ee0ab6e65c8804cdca4b0d622c15253 Mon Sep 17 00:00:00 2001 From: olegoid Date: Thu, 10 Sep 2015 13:33:54 -0300 Subject: [PATCH] [ThreadedCoreData] Disable app transport security --- .../ThreadedCoreData/APLViewController.cs | 16 ++++------------ ThreadedCoreData/ThreadedCoreData/Info.plist | 7 +++++++ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/ThreadedCoreData/ThreadedCoreData/APLViewController.cs b/ThreadedCoreData/ThreadedCoreData/APLViewController.cs index 7fe04a94..12a05bb6 100644 --- a/ThreadedCoreData/ThreadedCoreData/APLViewController.cs +++ b/ThreadedCoreData/ThreadedCoreData/APLViewController.cs @@ -1,13 +1,9 @@ // This file has been autogenerated from a class added in the UI designer. using System; -using System.Collections.Generic; -using MonoTouch; -using Foundation; -using UIKit; using CoreData; +using Foundation; using ObjCRuntime; -using System.Text; -using System.Reflection; +using UIKit; namespace ThreadedCoreData { @@ -24,12 +20,8 @@ namespace ThreadedCoreData string ApplicationDocumentsDirectory { get { string[] directories = NSSearchPath.GetDirectories (NSSearchPathDirectory.DocumentDirectory, - NSSearchPathDomain.User, true); - if (directories.Length != 0) { - return directories [directories.Length - 1]; - } else { - return string.Empty; - } + NSSearchPathDomain.User, true); + return directories.Length != 0 ? directories [directories.Length - 1] : string.Empty; } } diff --git a/ThreadedCoreData/ThreadedCoreData/Info.plist b/ThreadedCoreData/ThreadedCoreData/Info.plist index 0e727541..0e90885a 100644 --- a/ThreadedCoreData/ThreadedCoreData/Info.plist +++ b/ThreadedCoreData/ThreadedCoreData/Info.plist @@ -27,5 +27,12 @@ Icon-Small@2x Icon-Small-50 + CFBundleIdentifier + com.xamarin.ThrdCoreData + NSAppTransportSecurity + + NSAllowsArbitraryLoads + +