From 813aec2b4283bbc335ef680433173a7e2a370b88 Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Sun, 30 Jan 2022 19:32:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20Disable=20message=20in=20beta=20?= =?UTF-8?q?builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PHP Monitor.xcodeproj/project.pbxproj | 4 ++-- phpmon/Domain/Preferences/Stats.swift | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/PHP Monitor.xcodeproj/project.pbxproj b/PHP Monitor.xcodeproj/project.pbxproj index 1a0f7b6..7373159 100644 --- a/PHP Monitor.xcodeproj/project.pbxproj +++ b/PHP Monitor.xcodeproj/project.pbxproj @@ -1218,7 +1218,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 551; + CURRENT_PROJECT_VERSION = 552; DEVELOPMENT_TEAM = 8M54J5J787; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = phpmon/Info.plist; @@ -1243,7 +1243,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 551; + CURRENT_PROJECT_VERSION = 552; DEVELOPMENT_TEAM = 8M54J5J787; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = phpmon/Info.plist; diff --git a/phpmon/Domain/Preferences/Stats.swift b/phpmon/Domain/Preferences/Stats.swift index 77ff36e..ef24e86 100644 --- a/phpmon/Domain/Preferences/Stats.swift +++ b/phpmon/Domain/Preferences/Stats.swift @@ -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.") }