Fastlane – Badge for iOS

The Badge plugin for Fastlane allows you to offer version numbers, release type, etc.

On the MacOS collector, install the dependencies:

brew install librsvg
brew install imagemagick
brew install graphicsmagick

Add a line to the project Gemfile:

gem 'fastlane-plugin-badge'

Add a block related to the badge to Fastfile and add the version number via a variable.

jenkinsVersionNumber = ENV["APP_VERSION"]

...

lane :adhoc do
  add_badge(
    alpha: true,
    dark: true,
    shield: "Version-#{jenkinsVersionNumber}-orange",
    grayscale: true
  )

...
end

 

0 0 vote
Article Rating

Tagged: Tags

Подписаться
Уведомление о
guest
0 Comments
Inline Feedbacks
View all comments