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:
@@ -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.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user