Configure reviewer event count in AppConstants

This commit is contained in:
Davide De Rosa 2018-12-10 12:53:01 +01:00
parent d2186678de
commit 323807cfbf
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -234,4 +234,8 @@ class AppConstants {
)
]
}
struct Rating {
static let eventCount = 3
}
}