From 323807cfbf5677cb14045de4799442170f6c0460 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 10 Dec 2018 12:53:01 +0100 Subject: [PATCH] Configure reviewer event count in AppConstants --- Passepartout-iOS/AppDelegate.swift | 1 + Passepartout/Sources/AppConstants.swift | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Passepartout-iOS/AppDelegate.swift b/Passepartout-iOS/AppDelegate.swift index 714c60d4..21fea37f 100644 --- a/Passepartout-iOS/AppDelegate.swift +++ b/Passepartout-iOS/AppDelegate.swift @@ -39,6 +39,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { InfrastructureFactory.shared.loadCache() Theme.current.applyAppearance() + Reviewer.shared.eventCountBeforeRating = AppConstants.Rating.eventCount // Override point for customization after application launch. let splitViewController = window!.rootViewController as! UISplitViewController diff --git a/Passepartout/Sources/AppConstants.swift b/Passepartout/Sources/AppConstants.swift index e14cbf0d..328214bd 100644 --- a/Passepartout/Sources/AppConstants.swift +++ b/Passepartout/Sources/AppConstants.swift @@ -234,4 +234,8 @@ class AppConstants { ) ] } + + struct Rating { + static let eventCount = 3 + } }