diff --git a/QuickDrop.xcodeproj/project.pbxproj b/QuickDrop.xcodeproj/project.pbxproj index 5c5766d..668d9b5 100644 --- a/QuickDrop.xcodeproj/project.pbxproj +++ b/QuickDrop.xcodeproj/project.pbxproj @@ -1241,7 +1241,7 @@ MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; - SHARED_BUILD = 63; + SHARED_BUILD = 68; SHARED_VERSION = 2.2.1; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_EMIT_LOC_STRINGS = YES; @@ -1303,7 +1303,7 @@ MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = macosx; - SHARED_BUILD = 63; + SHARED_BUILD = 68; SHARED_VERSION = 2.2.1; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_EMIT_LOC_STRINGS = YES; diff --git a/QuickDrop/AppDelegate.swift b/QuickDrop/AppDelegate.swift index 824cc57..4631162 100644 --- a/QuickDrop/AppDelegate.swift +++ b/QuickDrop/AppDelegate.swift @@ -66,10 +66,12 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele iapManager = IAPManager.sharedInstance iapManager?.startObserving() + + log("[AppDelegate] Downloaded directly: \(DistributionDetector.isDirectDistributionEnabled)") // app did not lauch before if !UserDefaults.standard.bool(forKey: UserDefaultsKeys.appLaunchedBefore.rawValue) { - log("Opening Welcome Screen") + log("[AppDelegate] Opening Welcome Screen") // open welcome screen openWelcomeScreen() UserDefaults.standard.set(true, forKey: UserDefaultsKeys.appLaunchedBefore.rawValue) @@ -81,11 +83,14 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele // user installed the app before the IAP was implemented, grant the plus version if !UserDefaults.standard.bool(forKey: UserDefaultsKeys.isEligibleForIap.rawValue) { - log("Granting QuickDrop+ for old user") + log("[AppDelegate] Granting QuickDrop+ for old user") UserDefaults.standard.set(true, forKey: UserDefaultsKeys.plusVersion.rawValue) } else { if !isPlusVersion() { - log("New user - QuickDrop+ not available") + log("[AppDelegate] New user - QuickDrop+ not available") + } + else { + log("[AppDelegate] QuickDrop+ available") } } diff --git a/QuickDrop/Plus/DistributionDetector.swift b/QuickDrop/Plus/DistributionDetector.swift index 2324c3b..11916b7 100644 --- a/QuickDrop/Plus/DistributionDetector.swift +++ b/QuickDrop/Plus/DistributionDetector.swift @@ -19,7 +19,6 @@ class DistributionDetector { let result = isDirectDistribution() self._directDistributionCached = result - log("[DistributionDetector] isDirectDistribution: \(result)") return result #else diff --git a/QuickDrop/View/WelcomeScreen.swift b/QuickDrop/View/WelcomeScreen.swift index e0fd570..6a875fe 100644 --- a/QuickDrop/View/WelcomeScreen.swift +++ b/QuickDrop/View/WelcomeScreen.swift @@ -10,7 +10,6 @@ import UniformTypeIdentifiers struct WelcomeScreen: View { - @AppStorage(UserDefaultsKeys.plusVersion.rawValue) var isPlusVersion = false @Environment(\.colorScheme) var colorScheme let openPlusScreen: () -> Void