From 4eecc46c1455f12f1958c89687ae15447cfacf6a Mon Sep 17 00:00:00 2001 From: Justin Swart Date: Wed, 19 Jun 2019 17:24:38 -0700 Subject: [PATCH 1/2] Disable Facebook event and advertiser ID collection flags --- Kickstarter-iOS/Info.plist | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Kickstarter-iOS/Info.plist b/Kickstarter-iOS/Info.plist index 15ba1f652d..0fb8db3389 100644 --- a/Kickstarter-iOS/Info.plist +++ b/Kickstarter-iOS/Info.plist @@ -61,8 +61,12 @@ + FacebookAdvertiserIDCollectionEnabled + FacebookAppID 69103156693 + FacebookAutoLogAppEventsEnabled + FacebookDisplayName Kickstarter ITSAppUsesNonExemptEncryption From 95a63c00098ad0f6a5a83dd410c06bb610f1ee03 Mon Sep 17 00:00:00 2001 From: Justin Swart Date: Thu, 20 Jun 2019 09:24:11 -0700 Subject: [PATCH 2/2] Add Settings.shouldLimitEventAndDataUsage = true --- Kickstarter-iOS/AppDelegate.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kickstarter-iOS/AppDelegate.swift b/Kickstarter-iOS/AppDelegate.swift index 49b2275f95..959aa1d306 100644 --- a/Kickstarter-iOS/AppDelegate.swift +++ b/Kickstarter-iOS/AppDelegate.swift @@ -30,7 +30,9 @@ internal final class AppDelegate: UIResponder, UIApplicationDelegate { _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { + // FBSDK initialization ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions) + Settings.shouldLimitEventAndDataUsage = true UIView.doBadSwizzleStuff() UIViewController.doBadSwizzleStuff() @@ -236,7 +238,7 @@ internal final class AppDelegate: UIResponder, UIApplicationDelegate { open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:] ) -> Bool { - // if this is not a Facebook login call, handle the potential deep-link + // If this is not a Facebook login call, handle the potential deep-link guard !ApplicationDelegate.shared.application(app, open: url, options: options) else { return true }