Improve logging

This commit is contained in:
Leon Böttger committed 2025-09-05 18:52:11 +02:00
1 parent d4d214f062
commit e698ce9143
4 files changed
+10 -7

No files matched your search

+2 -2
View File
@@ -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;
+8 -3
View File
@@ -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")
}
}
@@ -19,7 +19,6 @@ class DistributionDetector {
let result = isDirectDistribution()
self._directDistributionCached = result
log("[DistributionDetector] isDirectDistribution: \(result)")
return result
#else
-1
View File
@@ -10,7 +10,6 @@ import UniformTypeIdentifiers
struct WelcomeScreen: View {
@AppStorage(UserDefaultsKeys.plusVersion.rawValue) var isPlusVersion = false
@Environment(\.colorScheme) var colorScheme
let openPlusScreen: () -> Void