mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-18 20:36:04 +00:00
Do not show review on GitHub release
This commit is contained in:
1 parent
d01e1d7c34
commit
026ebc33db
3 files changed
+10
-4
No files matched your search
@@ -69,7 +69,12 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
|
|||||||
iapManager = IAPManager.sharedInstance
|
iapManager = IAPManager.sharedInstance
|
||||||
iapManager?.startObserving()
|
iapManager?.startObserving()
|
||||||
|
|
||||||
log("[AppDelegate] Downloaded directly: \(DistributionDetector.isDirectDistributionEnabled)")
|
if DistributionDetector.isDirectDistributionEnabled {
|
||||||
|
log("[AppDelegate] Downloaded from GitHub.")
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
log("[AppDelegate] Downloaded from App Store.")
|
||||||
|
}
|
||||||
|
|
||||||
// app did not lauch before
|
// app did not lauch before
|
||||||
if !Settings.shared.appLaunchedBefore {
|
if !Settings.shared.appLaunchedBefore {
|
||||||
|
|||||||
@@ -103,8 +103,8 @@ class ErrorAlertHandler {
|
|||||||
self.isAlertShown = false
|
self.isAlertShown = false
|
||||||
|
|
||||||
if result == .alertFirstButtonReturn {
|
if result == .alertFirstButtonReturn {
|
||||||
log("Sending logging string")
|
//log("Sending logging string")
|
||||||
sendLoggingString()
|
//sendLoggingString()
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
showAlert(title: title, message: description)
|
showAlert(title: title, message: description)
|
||||||
|
|||||||
@@ -214,7 +214,8 @@ class ReceiveModel: ObservableObject, InboundAppDelegate {
|
|||||||
let currentCount = Settings.shared.incomingTransmissionCount
|
let currentCount = Settings.shared.incomingTransmissionCount
|
||||||
|
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
if currentCount == 0 {
|
// If distributed directly, do not request review here as it does not work
|
||||||
|
if currentCount == 0 && !DistributionDetector.isDirectDistributionEnabled {
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
||||||
SKStoreReviewController.requestReview()
|
SKStoreReviewController.requestReview()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user