Do not show review on GitHub release

This commit is contained in:
Leon Böttger committed 2025-11-08 09:49:22 +01:00
1 parent d01e1d7c34
commit 026ebc33db
3 files changed
+10 -4

No files matched your search

+6 -1
View File
@@ -69,7 +69,12 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
iapManager = IAPManager.sharedInstance
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
if !Settings.shared.appLaunchedBefore {
+2 -2
View File
@@ -103,8 +103,8 @@ class ErrorAlertHandler {
self.isAlertShown = false
if result == .alertFirstButtonReturn {
log("Sending logging string")
sendLoggingString()
//log("Sending logging string")
//sendLoggingString()
}
#else
showAlert(title: title, message: description)
+2 -1
View File
@@ -214,7 +214,8 @@ class ReceiveModel: ObservableObject, InboundAppDelegate {
let currentCount = Settings.shared.incomingTransmissionCount
#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) {
SKStoreReviewController.requestReview()
}