Merge pull request #191 from TouchInstinct/build_badge

Build badge
This commit is contained in:
Vitaliy Salnikov 2020-05-21 15:49:52 +03:00 committed by GitHub
commit ea14358a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -85,6 +85,20 @@ private_lane :uploadToAppStore do |options|
)
end
private_lane :addShield do |options|
buildNumber = options[:buildNumber]
buildDescription = options[:xcconfig_name].scan(/\p{Upper}/)[1..2].join
begin
add_badge(
shield: "#{buildDescription}-#{buildNumber}-green",
no_badge: true
)
rescue => error
UI.error(error)
end
end
private_lane :buildConfiguration do |options|
appName = options[:appName] || $appName
@ -129,6 +143,7 @@ private_lane :buildConfiguration do |options|
if options[:uploadToFabric]
syncCodeSigning(options)
addShield(options)
buildArchive(options)
uploadToFirebase(options)