From 69b90e3c41c20966f13aa4c772464664b83b6972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charle=CC=80ne=20Hoareau?= Date: Fri, 1 Mar 2024 15:13:45 +0100 Subject: [PATCH] fix: Remove openingBeforeLaunch add readyForPreview and feedback --- kDrive/AppDelegate+Launch.swift | 2 ++ kDriveCore/DI/FactoryService.swift | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kDrive/AppDelegate+Launch.swift b/kDrive/AppDelegate+Launch.swift index 5ada1838f8..6bb6d184e7 100644 --- a/kDrive/AppDelegate+Launch.swift +++ b/kDrive/AppDelegate+Launch.swift @@ -142,6 +142,7 @@ extension AppDelegate { private func requestAppStoreReview() { MatomoUtils.track(eventWithCategory: .appReview, name: "like") + UserDefaults.shared.appReview = .readyForReview reviewManager.requestReview() } @@ -150,6 +151,7 @@ extension AppDelegate { guard let url = URL(string: KDriveResourcesStrings.Localizable.urlUserReportiOS) else { return } + UserDefaults.shared.appReview = .feedback UIApplication.shared.open(url) } diff --git a/kDriveCore/DI/FactoryService.swift b/kDriveCore/DI/FactoryService.swift index 0c5f85537b..a8ab642a52 100644 --- a/kDriveCore/DI/FactoryService.swift +++ b/kDriveCore/DI/FactoryService.swift @@ -137,7 +137,7 @@ public enum FactoryService { BackgroundTasksService() }, Factory(type: ReviewManageable.self) { _, _ in - ReviewManager(userDefaults: UserDefaults.shared, openingBeforeReview: 3) + ReviewManager(userDefaults: UserDefaults.shared) } ] return services