Skip to content
Permalink
Browse files
Remove pasteboard usage (only used to process non-sensitive partner c…
…odes and nothing else), update whitelist
  • Loading branch information
Johnny Lin committed Jul 7, 2020
1 parent 9dce94b commit 9c1a0f3fa23c50cfcdf73e476462594a9a8a8c7b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 29 deletions.
@@ -112,6 +112,7 @@ class Auth: NSObject {
}

public static func processPartnerCode() -> String? {
/*
let pasteboard = UIPasteboard.general
if let partnerCodeData = pasteboard.data(forPasteboardType: Global.kPartnerCodePasteboardType), let partnerCode = String.init(data: partnerCodeData, encoding: .utf8)
{
@@ -130,7 +131,7 @@ class Auth: NSObject {
return output
}
}

*/
return nil
}

@@ -199,7 +199,7 @@ class Global {
static var kLastEnvironment = "lastEnvironment"
static let kPlatformiOS = "ios"
static let kPlatformMac = "mac"
static let kPartnerCodePasteboardType = "com.confirmed.tunnels.PartnerCode"
//static let kPartnerCodePasteboardType = "com.confirmed.tunnels.PartnerCode"
static let kConfirmedUniquePartnerCode = "266347633"

static let kConfirmedAPIVersion = "API-Version"
@@ -1703,7 +1703,7 @@
INFOPLIST_FILE = ConfirmediOS/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.3.9;
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = com.confirmed.tunnels;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
@@ -1740,7 +1740,7 @@
INFOPLIST_FILE = ConfirmediOS/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.3.9;
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = com.confirmed.tunnels;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
@@ -1837,7 +1837,7 @@
INFOPLIST_FILE = Today/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 1.3.9;
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = com.confirmed.tunnels.today;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
@@ -1877,7 +1877,7 @@
INFOPLIST_FILE = Today/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 1.3.9;
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = com.confirmed.tunnels.today;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
@@ -1911,7 +1911,7 @@
INFOPLIST_FILE = "Confirmed Tunnels/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 1.3.9;
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.confirmed.tunnels.Confirmed-Tunnels";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
@@ -1943,7 +1943,7 @@
INFOPLIST_FILE = "Confirmed Tunnels/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 1.3.9;
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.confirmed.tunnels.Confirmed-Tunnels";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
@@ -1970,7 +1970,7 @@
INFOPLIST_FILE = "Confirmed Blocker/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 1.3.9;
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.confirmed.tunnels.Confirmed-Blocker";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1998,7 +1998,7 @@
INFOPLIST_FILE = "Confirmed Blocker/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 1.3.9;
MARKETING_VERSION = 1.4.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.confirmed.tunnels.Confirmed-Blocker";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -195,34 +195,45 @@ class SharedUtils: NSObject {

//add default keys
//domains = Utils.addKeyToDefaults(inDomain: domains!, key: "*.ipchicken.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "api.twitter.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "apple.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "apple.news")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "apple-cloudkit.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "bamgrid.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "cdn-apple.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "confirmedvpn.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "creditkarma.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "hulu.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "huluim.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "lowes.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "netflix.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "nflxvideo.net")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "marcopolo.me")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "digicert.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "disney-plus.net")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "disneyplus.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "firstdata.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "go.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "bamgrid.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "api.twitter.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "m.twitter.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "mobile.twitter.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "twimg.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "hbc.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "hbo.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "hbomax.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "houzz.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "apple.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "icloud.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "hulu.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "huluim.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "icloud-content.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "mzstatic.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "cdn-apple.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "verisign.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "digicert.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "icloud.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "letsencrypt.org")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "apple.news")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "lowes.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "m.twitter.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "marcopolo.me")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "mobile.twitter.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "mzstatic.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "netflix.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "nflxvideo.net")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "saks.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "saksfifthavenue.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "skype.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "slickdeals.net")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "confirmedvpn.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "t.co")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "twimg.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "twitter.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "usbank.com")
domains = Utils.addKeyToDefaults(inDomain: domains!, key: "verisign.com")

domains = Utils.addKeyToDefaults(inDomain: domains!, key: "confirmedvpn.co") //deprecated API versions
defaults.set(domains, forKey: "whitelisted_domains")

0 comments on commit 9c1a0f3

Please sign in to comment.