From 8502c4879b8c536ed2669e8ca0c97ba3e89706aa Mon Sep 17 00:00:00 2001 From: DashaGitHub Date: Tue, 24 Sep 2019 11:29:29 +0300 Subject: [PATCH] Added bange for icon --- xcode/commonFastfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 950187ae..8c3110ec 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -94,6 +94,7 @@ private_lane :buildConfiguration do |options| options[:workspace] = "./#{appName}.xcworkspace" installDependencies(options) + addBadge(options) if !(options[:uploadToFabric] || options[:uploadToAppStore]) options = merge_options_with_config_file(options) @@ -185,6 +186,12 @@ lane :syncCodeSigning do |options| ) end +lane :addBadge do |options| + versionNumber = options[:versionNumber] + buildNumber = options[:buildNumber] + add_badge(shield: "#{versionNumber}-#{buildNumber}-blue", dark: false) +end + private_lane :openKeychain do |options| if is_ci? # workaround to avoid duplication problem