Lane: setup_app_badge
Description
This will automatically (when build
lane with parameter should_add_badge: true
called, default value is false
) add a badge with the environment, build version and build number to application icon. The gem 'fastlane-plugin-badge'
is required.
Available
fastlane_configurations ~> 2.9.4
Example
Add gem 'fastlane-plugin-badge'
to Gemfile in your project. Run bundle install
. You can use it as separate lane by calling setup_app_badge
with parameters or by setting up build
lane parameter should_add_badge
to true.
Usage
Separate usage:
setup_app_badge(target: "YourTarget", build_number: "222")
1
Usage as build parameter:
build(
app_store: false,
app_name: app_name,
scheme: scheme,
target: app_info[:target],
clean: false,
include_bitcode: true,
should_add_badge: true
)
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
Lane Parameters
Key | Description |
---|---|
target | Specify a specific target if you have multiple per project, optional. If not specified, @scheme will be used. |
build_number | Build number for badge. If not specified, 1 will be used. |