Skip to content

Commit

Permalink
fix: Remove openingBeforeLaunch add readyForPreview and feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
charlella committed Mar 1, 2024
1 parent d2bfe7c commit 69b90e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions kDrive/AppDelegate+Launch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ extension AppDelegate {

private func requestAppStoreReview() {
MatomoUtils.track(eventWithCategory: .appReview, name: "like")
UserDefaults.shared.appReview = .readyForReview
reviewManager.requestReview()
}

Expand All @@ -150,6 +151,7 @@ extension AppDelegate {
guard let url = URL(string: KDriveResourcesStrings.Localizable.urlUserReportiOS) else {
return
}
UserDefaults.shared.appReview = .feedback
UIApplication.shared.open(url)
}

Expand Down
2 changes: 1 addition & 1 deletion kDriveCore/DI/FactoryService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69b90e3

Please sign in to comment.