mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-20 13:26:03 +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;
|
MTL_FAST_MATH = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SHARED_BUILD = 63;
|
SHARED_BUILD = 68;
|
||||||
SHARED_VERSION = 2.2.1;
|
SHARED_VERSION = 2.2.1;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
@@ -1303,7 +1303,7 @@
|
|||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SHARED_BUILD = 63;
|
SHARED_BUILD = 68;
|
||||||
SHARED_VERSION = 2.2.1;
|
SHARED_VERSION = 2.2.1;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
|
|||||||
@@ -66,10 +66,12 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
|
|||||||
|
|
||||||
iapManager = IAPManager.sharedInstance
|
iapManager = IAPManager.sharedInstance
|
||||||
iapManager?.startObserving()
|
iapManager?.startObserving()
|
||||||
|
|
||||||
|
log("[AppDelegate] Downloaded directly: \(DistributionDetector.isDirectDistributionEnabled)")
|
||||||
|
|
||||||
// app did not lauch before
|
// app did not lauch before
|
||||||
if !UserDefaults.standard.bool(forKey: UserDefaultsKeys.appLaunchedBefore.rawValue) {
|
if !UserDefaults.standard.bool(forKey: UserDefaultsKeys.appLaunchedBefore.rawValue) {
|
||||||
log("Opening Welcome Screen")
|
log("[AppDelegate] Opening Welcome Screen")
|
||||||
// open welcome screen
|
// open welcome screen
|
||||||
openWelcomeScreen()
|
openWelcomeScreen()
|
||||||
UserDefaults.standard.set(true, forKey: UserDefaultsKeys.appLaunchedBefore.rawValue)
|
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
|
// user installed the app before the IAP was implemented, grant the plus version
|
||||||
if !UserDefaults.standard.bool(forKey: UserDefaultsKeys.isEligibleForIap.rawValue) {
|
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)
|
UserDefaults.standard.set(true, forKey: UserDefaultsKeys.plusVersion.rawValue)
|
||||||
} else {
|
} else {
|
||||||
if !isPlusVersion() {
|
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()
|
let result = isDirectDistribution()
|
||||||
self._directDistributionCached = result
|
self._directDistributionCached = result
|
||||||
log("[DistributionDetector] isDirectDistribution: \(result)")
|
|
||||||
|
|
||||||
return result
|
return result
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import UniformTypeIdentifiers
|
|||||||
|
|
||||||
struct WelcomeScreen: View {
|
struct WelcomeScreen: View {
|
||||||
|
|
||||||
@AppStorage(UserDefaultsKeys.plusVersion.rawValue) var isPlusVersion = false
|
|
||||||
@Environment(\.colorScheme) var colorScheme
|
@Environment(\.colorScheme) var colorScheme
|
||||||
|
|
||||||
let openPlusScreen: () -> Void
|
let openPlusScreen: () -> Void
|
||||||
|
|||||||
Reference in new issue
Block a user