1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-11-09 05:40:07 +01:00

👌 Disable message in beta builds

This commit is contained in:
2022-01-30 19:32:32 +01:00
parent f2452bbc70
commit 813aec2b42
2 changed files with 6 additions and 2 deletions

View File

@@ -71,6 +71,10 @@ class Stats {
}
public static func evaluateSponsorMessageShouldBeDisplayed() {
if Bundle.main.bundleIdentifier?.contains("beta") ?? false {
return Log.info("Sponsor messages never apply to beta builds.")
}
if Stats.didSeeSponsorEncouragement {
return Log.info("Awesome, the user has already seen the sponsor message.")
}