mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
Improve logging
This commit is contained in:
1 parent
d4d214f062
commit
e698ce9143
4 files changed
+10
-7
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -10,7 +10,6 @@ import UniformTypeIdentifiers
|
||||
|
||||
struct WelcomeScreen: View {
|
||||
|
||||
@AppStorage(UserDefaultsKeys.plusVersion.rawValue) var isPlusVersion = false
|
||||
@Environment(\.colorScheme) var colorScheme
|
||||
|
||||
let openPlusScreen: () -> Void
|
||||
|
||||
Reference in new issue
Block a user