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

 

Tagged: Tags

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments