Director of Engineering, Vienna, Sentry
hazat / badge Goto Github PK
View Code? Open in Web Editor NEWAdd a badge to your app icon
License: MIT License
Add a badge to your app icon
License: MIT License
Director of Engineering, Vienna, Sentry
Got this error while using:
badge --shield "Version-$buildVersion \"$buildNumber\"-green" --dark --shield_geometry "+0+0" --shield_scale 1
It seems to be linked with change in rsvg?
I use badge with fastlane for Android, couldn't make it work, what's the right way?
badge(dark: true, glob:"#{Dir.pwd}/../app/src/main/res/drawable-xxhdpi/launcher_icon.png")
When tried the last sample to badge and shield
badge --shield "Version-0.0.3-blue" --dark --shield_no_resize --verbose --shield_io_timeout 60
I am getting the message below in verbose mode.
INFO [2017-01-15 11:15:04.38]: Start adding badges...
DEBUG [2017-01-15 11:15:04.38]: Trying to load image from shield.io. Timeout: 10s
DEBUG [2017-01-15 11:15:04.38]: URL: https://img.shields.io/badge/Version-0.0.3-blue.png
ERROR [2017-01-15 11:15:14.38]: Error loading image from shield.io timeout reached. Skipping Shield. Use --verbose for more info
When I tried the url https://img.shields.io/badge/Version-0.0.3-blue.png on browser, was able to see the image load.
version : badge 0.7.1
I'm getting the following error
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:176:in `split': [!] bad URI(is not URI?): https://img.shields.io/badge/3.9.0-726 (URI::InvalidURIError)
-green.png
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:211:in `parse'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:747:in `parse'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:33:in `open'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.2/lib/badge/runner.rb:114:in `block in load_shield'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.2/lib/badge/runner.rb:112:in `tap'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.2/lib/badge/runner.rb:112:in `load_shield'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.2/lib/badge/runner.rb:31:in `block in run'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.2/lib/badge/runner.rb:30:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/actions/badge.rb:19:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/runner.rb:197:in `block (2 levels) in execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/runner.rb:182:in `block in execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/runner.rb:181:in `chdir'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/runner.rb:181:in `execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/runner.rb:107:in `trigger_action_by_name'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/fast_file.rb:140:in `method_missing'
from Fastfile:89:in `block (2 levels) in parsing_binding'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/lane.rb:33:in `call'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/lane.rb:33:in `call'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/runner.rb:50:in `block in execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/runner.rb:46:in `chdir'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/runner.rb:46:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/command_line_handler.rb:30:in `handle'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/commands_generator.rb:51:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.46.3/lib/fastlane_core/ui/fastlane_runner.rb:26:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/commands_generator.rb:239:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/commands_generator.rb:20:in `start'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/lib/fastlane/cli_tools_distributor.rb:47:in `take_off'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.95.0/bin/fastlane:5:in `<top (required)>'
from /usr/local/bin/fastlane:23:in `load'
from /usr/local/bin/fastlane:23:in `<main>'
Getting a failure using a fastlane lane with badge
Run `fastlane env` to append the fastlane environment to your issue
/usr/local/lib/ruby/gems/2.3.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:204:in `rescue in validate!': [!] `identify /var/folders/4r/d2tshrd541367x4qhrscv8mm0000gn/T/mini_magick20170413-77505-2q8xwh.png20170413-77505-4qigd0` failed with error: (MiniMagick::Invalid)
identify: no decode delegate for this image format `PNG20170413-77505-4QIGD0' @ error/constitute.c/ReadImage/501.
from /usr/local/lib/ruby/gems/2.3.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:202:in `validate!'
from /usr/local/lib/ruby/gems/2.3.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:113:in `block in create'
from /usr/local/lib/ruby/gems/2.3.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:112:in `tap'
from /usr/local/lib/ruby/gems/2.3.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:112:in `create'
from /usr/local/lib/ruby/gems/2.3.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:34:in `read'
from /usr/local/lib/ruby/gems/2.3.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:90:in `block in open'
from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/open-uri.rb:37:in `open'
from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/open-uri.rb:37:in `open'
from /usr/local/lib/ruby/gems/2.3.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:89:in `open'
from /usr/local/lib/ruby/gems/2.3.0/gems/badge-0.4.1/lib/badge/runner.rb:86:in `add_shield'
from /usr/local/lib/ruby/gems/2.3.0/gems/badge-0.4.1/lib/badge/runner.rb:63:in `block in run'
from /usr/local/lib/ruby/gems/2.3.0/gems/badge-0.4.1/lib/badge/runner.rb:52:in `each'
from /usr/local/lib/ruby/gems/2.3.0/gems/badge-0.4.1/lib/badge/runner.rb:52:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/actions/badge.rb:19:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/runner.rb:252:in `block (2 levels) in execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/runner.rb:230:in `block in execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/runner.rb:226:in `chdir'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/runner.rb:226:in `execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/runner.rb:148:in `trigger_action_by_name'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
from Fastfile:98:in `add_badge'
from Fastfile:49:in `build_alpha'
from Fastfile:249:in `block (2 levels) in parsing_binding'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/lane.rb:33:in `call'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/commands_generator.rb:104:in `block (2 levels) in run'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in `call'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:153:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-fastlane-4.4.4/lib/commander/runner.rb:476:in `run_active_command'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-fastlane-4.4.4/lib/commander/delegates.rb:15:in `run!'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/commands_generator.rb:303:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/fastlane/lib/fastlane/cli_tools_distributor.rb:65:in `take_off'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.26.1/bin/fastlane:20:in `<top (required)>'
from /usr/local/bin/fastlane:23:in `load'
from /usr/local/bin/fastlane:23:in `<main>'
I then tried updating and that failed ImageMagick
. Any ideas?
iMac:Zorts Anthony$ brew install imagemagick
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Error: imagemagick-6.9.3-7 already installed
To install this version, first `brew unlink imagemagick`
iMac:Zorts Anthony$ brew unlink imagemagick
Unlinking /usr/local/Cellar/imagemagick/6.9.3-7... 71 symlinks removed
iMac:Zorts Anthony$ brew install imagemagick
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
==> Installing dependencies for imagemagick: libtiff
==> Installing imagemagick dependency: libtiff
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.6.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ocf.berkeley.edu/debian/pool/main/t/tiff/tiff_4.0.6-1.debian.tar.xz
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.6-1.debian.tar.xz
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "libtiff--patch"
Download failed: https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.6-1.debian.tar.xz
When tried the last sample to badge and shield with a timeout,
badge --shield "Version-0.0.3-blue" --dark --shield_no_resize --verbose --shield_io_timeout 120
I am getting the message below in verbose mode.
INFO [2017-01-15 11:15:04.38]: Start adding badges...
DEBUG [2017-01-15 11:15:04.38]: Trying to load image from shield.io. Timeout: 10s
DEBUG [2017-01-15 11:15:04.38]: URL: https://img.shields.io/badge/Version-0.0.3-blue.png
ERROR [2017-01-15 11:15:14.38]: Error loading image from shield.io timeout reached. Skipping Shield. Use --verbose for more info
version : badge 0.7.1
I discoved that the quality of the app icon gets bad when adding the beta badge to it.
Instead of using "Foobar-1.0.0-blue" to create a badge that looks like this: "Foobar 1.0.0"
I want to get rid of the text/area on the right side: It doesn't seem to be documented or possible.
Currently I am using "Foobar--blue" as a workaround, which leads to a blue area without text in it on the right side. I want to get rid of this part.
Is this possible?
Crashes each time for me. Crash report number 7bf081fcf3dafd4e362e04059805b00f
/Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.4/lib/mini_magick/image.rb:200:in `rescue in validate!': [!] ImageMagick/GraphicsMagick is not installed (MiniMagick::Invalid)
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.4/lib/mini_magick/image.rb:198:in `validate!'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.4/lib/mini_magick/image.rb:113:in `block in create'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.4/lib/mini_magick/image.rb:112:in `tap'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.4/lib/mini_magick/image.rb:112:in `create'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.4/lib/mini_magick/image.rb:34:in `read'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.4/lib/mini_magick/image.rb:90:in `block in open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:36:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:36:in `open'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.4/lib/mini_magick/image.rb:89:in `open'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.1.1/lib/badge/runner.rb:78:in `add_badge'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.1.1/lib/badge/runner.rb:31:in `block in run'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.1.1/lib/badge/runner.rb:25:in `each'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.1.1/lib/badge/runner.rb:25:in `run'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.1.1/bin/badge:43:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.36.2/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.1.1/bin/badge:47:in `run'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.1.1/bin/badge:53:in `<top (required)>'
from /usr/bin/badge:23:in `load'
from /usr/bin/badge:23:in `<main>
The badge is not reflecting changes in configuration even if the generated images are deleted. Seems like the configuration from fastlane is being cached somehow.
2.54.3
0.8.2
Also getting two warnings.
Plugin 'Badge' overwrites already loaded action 'badge'
badge
action:==========================================
This action (badge) is deprecated
==========================================
Redacted log of a complete run:
$ bundle exec fastlane ios develop
[18:13:24]: Plugin 'Badge' overwrites already loaded action 'badge'
+----------------------------+---------+-------------------------------------+
| Used plugins |
+----------------------------+---------+-------------------------------------+
| Plugin | Version | Action |
+----------------------------+---------+-------------------------------------+
| fastlane-plugin-versioning | 0.2.7 | get_app_store_version_number |
| | | get_build_number_from_plist |
| | | get_info_plist_path |
| | | get_version_number_from_git_branch |
| | | get_version_number_from_plist |
| | | increment_build_number_in_plist |
| | | increment_version_number_in_plist |
| fastlane-plugin-badge | 0.8.2 | badge |
+----------------------------+---------+-------------------------------------+
[18:13:25]: -----------------------------
[18:13:25]: --- Step: update_fastlane ---
[18:13:25]: -----------------------------
[18:13:25]: Looking for updates for fastlane...
[18:13:27]: Nothing to update ✅
[18:13:27]:
[18:13:27]: Please help us test early releases of fastlane by opting into nightly builds 🌃
[18:13:27]: Just replace your `update_fastlane` call with
[18:13:27]:
[18:13:27]: ▸ update_fastlane(nightly: true)
[18:13:27]:
[18:13:27]: Nightly builds are reviewed and tested just like the public releases 🚂
[18:13:27]:
[18:13:27]: -------------------------------------------------
[18:13:27]: --- Step: Verifying required fastlane version ---
[18:13:27]: -------------------------------------------------
[18:13:27]: Your fastlane version 2.54.3 matches the minimum requirement of 2.51.0 ✅
[18:13:27]: Driving the lane 'ios develop' 🚀
[18:13:27]: --------------------------------
[18:13:27]: --- Step: clear_derived_data ---
[18:13:27]: --------------------------------
<snip>
[18:13:27]: -------------------------------------------
[18:13:27]: --- Step: get_version_number_from_plist ---
[18:13:27]: -------------------------------------------
<snip>
[18:13:29]: -------------------
[18:13:29]: --- Step: is_ci ---
[18:13:29]: -------------------
[18:13:29]: -----------------------------
[18:13:29]: --- Step: last_git_commit ---
[18:13:29]: -----------------------------
<snip>
[18:13:29]: ---------------------------------------------
[18:13:29]: --- Step: increment_build_number_in_plist ---
[18:13:29]: ---------------------------------------------
<snip>
[18:13:31]: -------------------
[18:13:31]: --- Step: is_ci ---
[18:13:31]: -------------------
<snip>
[18:13:31]: -----------------------------
[18:13:31]: --- Step: create_keychain ---
[18:13:31]: -----------------------------
<snip>
[18:13:31]: --------------------------------
[18:13:31]: --- Step: import_certificate ---
[18:13:31]: --------------------------------
<snip>
[18:13:32]: --------------------------------
[18:13:32]: --- Step: import_certificate ---
[18:13:32]: --------------------------------
[18:13:32]: ------------------
[18:13:32]: --- Step: sigh ---
[18:13:32]: ------------------
+-------------------------------------+---------------------------------+
| Summary for sigh 2.54.3 |
+-------------------------------------+---------------------------------+
<snip>
+-------------------------------------+---------------------------------+
<snip>
[18:13:35]: -------------------
[18:13:35]: --- Step: badge ---
[18:13:35]: -------------------
==========================================
This action (badge) is deprecated
==========================================
[18:13:36]: Start adding badges...
<snip>
[18:13:46]: Badged \o/!
After updating badge to 0.8.0 we get the following error at Jenkins:
fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
/Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:204:in rescue in validate!': [!]
identify /var/folders/w1/cs2bv4md13s7ksh38yvc7crw000088/T/mini_magick20170314-30338-zm1o7x.pngfailed with error: (MiniMagick::Invalid) identify: improper image header
/var/folders/w1/cs2bv4md13s7ksh38yvc7crw000088/T/mini_magick20170314-30338-zm1o7x.png' @ error/png.c/ReadPNGImage/4364.
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:202:in `validate!'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:113:in `block in create'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:112:in `tap'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:112:in `create'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:34:in `read'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:90:in `block in open'
from /Users/Jenkins/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/open-uri.rb:36:in `open'
from /Users/Jenkins/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/open-uri.rb:36:in `open'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:89:in `open'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/badge-0.8.1/lib/badge/runner.rb:99:in `add_shield'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/badge-0.8.1/lib/badge/runner.rb:65:in `block in run'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/badge-0.8.1/lib/badge/runner.rb:54:in `each'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/badge-0.8.1/lib/badge/runner.rb:54:in `run'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/actions/badge.rb:19:in `run'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/runner.rb:243:in `block (2 levels) in execute_action'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/runner.rb:221:in `block in execute_action'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/runner.rb:217:in `chdir'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/runner.rb:217:in `execute_action'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/runner.rb:139:in `trigger_action_by_name'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
from Fastfile:53:in `block (2 levels) in parsing_binding'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/commands_generator.rb:105:in `block (2 levels) in run'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/commander-4.4.3/lib/commander/command.rb:153:in `run'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/commander-4.4.3/lib/commander/runner.rb:446:in `run_active_command'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/commander-4.4.3/lib/commander/delegates.rb:15:in `run!'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/commands_generator.rb:302:in `run'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/fastlane/lib/fastlane/cli_tools_distributor.rb:65:in `take_off'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/gems/fastlane-2.19.3/bin/fastlane:15:in `<top (required)>'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/bin/fastlane:23:in `load'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/bin/fastlane:23:in `<main>'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/Jenkins/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Did i miss an updated dependency?
Crashes with the error below. Works when I delete the problem files from the checkouts folder.
Would be great if I could scope the Fastlane plugin to only change a defined assets folder
[14:06:24]: `identify -format %m %w %h %b ./Carthage/Checkouts/facebook-ios-sdk/samples/Scrumptious/scrumptious/Images.xcassets/AppIcon.appiconset/Icon-29.png[0]` failed with error:
identify: CgBI: unhandled critical chunk `./Carthage/Checkouts/facebook-ios-sdk/samples/Scrumptious/scrumptious/Images.xcassets/AppIcon.appiconset/Icon-29.png' @ error/png.c/MagickPNGErrorHandler/1711.
It only happens while using badge
. I don't know if this is a problem with badge
. If not then please say so 😅
> badge --dark
/Users/ricardopereira/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:2288:in `raise_if_conflicts': Unable to activate fastlane-2.50.1, because mini_magick-4.8.0 conflicts with mini_magick (~> 4.5.1) (Gem::ConflictError)
from /Users/ricardopereira/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1408:in `activate'
from /Users/ricardopereira/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems.rb:208:in `rescue in try_activate'
from /Users/ricardopereira/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems.rb:201:in `try_activate'
from /Users/ricardopereira/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:125:in `rescue in require'
from /Users/ricardopereira/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from /Users/ricardopereira/.gem/ruby/2.2.0/gems/badge-0.8.4/lib/badge/options.rb:1:in `<top (required)>'
from /Users/ricardopereira/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/ricardopereira/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/ricardopereira/.gem/ruby/2.2.0/gems/badge-0.8.4/lib/badge.rb:3:in `<top (required)>'
from /Users/ricardopereira/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/ricardopereira/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/ricardopereira/.gem/ruby/2.2.0/gems/badge-0.8.4/bin/badge:4:in `<top (required)>'
from /Users/ricardopereira/.gem/ruby/2.2.0/bin/badge:22:in `load'
from /Users/ricardopereira/.gem/ruby/2.2.0/bin/badge:22:in `<main>'
I uninstalled the mini_magick v4.8.0 and now it works.
> gem uninstall mini_magick --version 4.8.0
Successfully uninstalled mini_magick-4.8.0
Does badge
need any sort of dependencies update?
I updated fastlane to 1.84, and I'm getting the following error now.
[10:52:52]: �[32m-------------------�[0m
[10:52:52]: �[32m--- Step: badge ---�[0m
[10:52:52]: �[32m-------------------�[0m
/usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2284:in `raise_if_conflicts': Unable to activate badge-0.4.0, because mini_magick-4.5.1 conflicts with mini_magick (~> 4.0.2) (Gem::ConflictError)
I just have a lane with a badge step inside.
After updating to v0.4.1 to get rid of the thrown 520 errors, they are in fact gone but now my lanes don't finish up properly. Fastlane just silently ends the lane execution.
Print out:
[16:13:24]: -------------------
[16:13:24]: --- Step: badge ---
[16:13:24]: -------------------
#######################################################################
Trying to use badge. Getting the following error:
/usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/fileutils.rb:229:in `mkdir': [!] Permission denied @ dir_s_mkdir - /usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0/curb-0.9.3 (Errno::EACCES)
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/fileutils.rb:229:in `fu_mkdir'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/fileutils.rb:207:in `block (2 levels) in mkdir_p'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/fileutils.rb:205:in `reverse_each'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/fileutils.rb:205:in `block in mkdir_p'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/fileutils.rb:191:in `each'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/fileutils.rb:191:in `mkdir_p'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/ext/builder.rb:213:in `write_gem_make_out'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/ext/builder.rb:135:in `build_error'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/ext/builder.rb:174:in `rescue in build_extension'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/ext/builder.rb:159:in `build_extension'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/ext/builder.rb:201:in `block in build_extensions'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/ext/builder.rb:198:in `each'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/ext/builder.rb:198:in `build_extensions'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/installer.rb:752:in `build_extensions'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/installer.rb:304:in `install'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/resolver/specification.rb:97:in `install'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/request_set.rb:166:in `block in install'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/request_set.rb:156:in `each'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/request_set.rb:156:in `install'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/commands/install_command.rb:205:in `install_gem'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/fastlane_require.rb:36:in `install_gem_if_needed'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/helper/gem_helper.rb:7:in `verify_gem!'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/actions/badge.rb:5:in `run'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/runner.rb:252:in `block (2 levels) in execute_action'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/runner.rb:230:in `block in execute_action'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/runner.rb:226:in `chdir'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/runner.rb:226:in `execute_action'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/runner.rb:148:in `trigger_action_by_name'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
from Fastfile:101:in `add_badge'
from Fastfile:49:in `build_alpha'
from Fastfile:252:in `block (2 levels) in parsing_binding'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/lane.rb:33:in `call'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/commands_generator.rb:104:in `block (2 levels) in run'
from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in `call'
from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:153:in `run'
from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.4/lib/commander/runner.rb:476:in `run_active_command'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.4/lib/commander/delegates.rb:15:in `run!'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/commands_generator.rb:303:in `run'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/fastlane/lib/fastlane/cli_tools_distributor.rb:66:in `take_off'
from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.35.1/bin/fastlane:20:in `<top (required)>'
from /usr/local/bin/fastlane:22:in `load'
from /usr/local/bin/fastlane:22:in `<main>'
Hi, I noticed Badge now requires librsvg to proceed, which makes using it bit complicated for us. We're running Fastlane with Badge on Bitrise CI which unfortunately don't have librsvg pre-installed. We could enforce installing it from brew on each build but this takes a great deal of time and significantly prolonging our build time.
Would it be possible to use Badge even if librsvg is not present, as it was previously?
Thanks!
Hi, I was wondering what should you do on your production lane, since this gem modifies the original icon, wouldn't it be better if it modified a copy of the icon o something like that?
I use it in my React Native project with fastlane. It works fine on IOS but android.
Console output:
DEBUG [2018-04-18 11:16:42.08]: Parameters: {:dark=>true, :glob=>"/android/app/src/main/res/mipmap-*/ic_launcher.png", :alpha=>nil, :alpha_channel=>nil, :custom=>nil, :no_badge=>nil, :badge_gravity=>nil, :shield=>nil, :shield_io_timeout=>nil, :shield_geometry=>nil, :shield_gravity=>nil, :shield_scale=>nil, :shield_no_resize=>nil, :grayscale=>false}
ERROR [2018-04-18 11:16:42.08]: Could not find any app icons...
The same result with or without glob option.
--glob "/android/app/src/main/res/mipmap-*/ic_launcher.png"
These files exist in my app:
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Fastlane crashes when running with latest badge
gem. See this issue: fastlane/fastlane#1260
Hi, I'm trying to use badge
with fastlane
(1.68.0) and I keep getting the same SSL error:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:918:in `connect': [!] SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: sslv3 alert handshake failure (OpenSSL::SSL::SSLError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:918:in `block in connect'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:918:in `connect'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:851:in `start'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:313:in `open_http'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:709:in `buffer_open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `catch'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:689:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:34:in `open'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/lib/badge/runner.rb:98:in `block in load_shield'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/lib/badge/runner.rb:96:in `tap'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/lib/badge/runner.rb:96:in `load_shield'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/lib/badge/runner.rb:29:in `block in run'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/lib/badge/runner.rb:28:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/actions/badge.rb:19:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/runner.rb:143:in `block (2 levels) in execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/runner.rb:129:in `block in execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/runner.rb:128:in `chdir'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/runner.rb:128:in `execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/fast_file.rb:149:in `method_missing'
from Fastfile:36:in `block (2 levels) in parsing_binding'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/lane.rb:36:in `call'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/lane.rb:36:in `call'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/runner.rb:52:in `block in execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/runner.rb:46:in `chdir'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/runner.rb:46:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/lib/fastlane/command_line_handler.rb:30:in `handle'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/bin/fastlane:38:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.39.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/bin/fastlane:156:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.68.0/bin/fastlane:162:in `<top (required)>'
from /usr/bin/fastlane:23:in `load'
from /usr/bin/fastlane:23:in `<main>'
Any thoughts on how to solve it? I'm running fastlane/badge on OS X Yosemite 10.10.5 with stock ruby 2.0 (rvm
is not installed).
Thank you! 👏
Hello I tried to change the badge gravity and it always fail:
Here is the input:
badge --badge_gravity "South" --verbose
Output:
Error setting value 'South' for option 'badge_gravity'
'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.89.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:222:inrescue in valid?': [!] wrong number of arguments (given 0, expected 1) (FastlaneCore::Interface::FastlaneError) from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.89.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:218:in
valid?'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.89.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:180:inverify!' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.89.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:87:in
block in verify_value_exists'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.89.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:82:ineach' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.89.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:82:in
verify_value_exists'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.89.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:66:ininitialize' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.89.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in
new'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.89.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:increate' from /Library/Ruby/Gems/2.3.0/gems/badge-0.9.0/lib/badge/commands_generator.rb:33:in
block (2 levels) in run'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:incall' from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in
run'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:inrun_active_command' from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.89.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:75:in
run!'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:inrun!' from /Library/Ruby/Gems/2.3.0/gems/badge-0.9.0/lib/badge/commands_generator.rb:39:in
run'
from /Library/Ruby/Gems/2.3.0/gems/badge-0.9.0/lib/badge/commands_generator.rb:11:instart' from /Library/Ruby/Gems/2.3.0/gems/badge-0.9.0/bin/badge:7:in
<top (required)>'
from /usr/local/bin/badge:22:inload' from /usr/local/bin/badge:22:in
The same always happens with any gravity orientation.
Fastlane Version: fastlane-plugin-badge | 1.1.0 | add_badge
Badge version: 0.9.0
Hiyas
I'm kind new to this, so I apologize in advance if I ask a stupid question here, but to be able to use badge with --shield over a proxy, what would I need to do so that fetching from shield.io works over the proxy?
how about support for an ALPHA badge as well as beta?
Is it possible to have it be bigger on big icons like for iphone 6 plus ?
Great project btw :)
Is it possible to change only the files for a specific assets folder, or a specific target, or even just a folder?
It seems like Helper.log
no longer exists.
/usr/local/lib/ruby/gems/2.2.0/gems/badge-0.4.1/lib/badge/runner.rb:23:in `run': [!] undefined method `log' for FastlaneCore::Helper:Module (NoMethodError)
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/actions/badge.rb:19:in `run'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:177:in `block (2 levels) in execute_action'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:162:in `block in execute_action'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:161:in `chdir'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:161:in `execute_action'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:109:in `trigger_action_by_name'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/fast_file.rb:140:in `method_missing'
from Fastfile:50:in `block (2 levels) in parsing_binding'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/lane.rb:33:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/lane.rb:33:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:138:in `try_switch_to_lane'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:101:in `rescue in trigger_action_by_name'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:96:in `trigger_action_by_name'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/fast_file.rb:140:in `method_missing'
from Fastfile:84:in `block (2 levels) in parsing_binding'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/lane.rb:33:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/lane.rb:33:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:50:in `block in execute'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:46:in `chdir'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/runner.rb:46:in `execute'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/command_line_handler.rb:30:in `handle'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/commands_generator.rb:42:in `block (2 levels) in run'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane_core-0.44.0/lib/fastlane_core/ui/fastlane_runner.rb:26:in `run!'
from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/commands_generator.rb:175:in `run'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/commands_generator.rb:13:in `start'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/lib/fastlane/cli_tools_distributor.rb:47:in `take_off'
from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.89.0/bin/fastlane:5:in `<top (required)>'
from /usr/local/bin/fastlane:23:in `load'
from /usr/local/bin/fastlane:23:in `<main>'
Hi,
when I run badge through fastlane, I've got this error :
Something went wrong while running badge: `identify /var/folders/62/dklrzf_d1z79pwbykyv57kdc0000gp/T/mini_magick20170728-84089-1iz3pf1.png` failed with error:
identify: improper image header `/var/folders/62/dklrzf_d1z79pwbykyv57kdc0000gp/T/mini_magick20170728-84089-1iz3pf1.png' @ error/png.c/ReadPNGImage/4126.
On my fastfile i've got this :
badge(shield:get_version_number + “-” + get_build_number + “-blue”, custom: “fastlane/badge/black/dev.png”, shield_no_resize:true)
Don't know what to do. Thank's for helping.
Hi,
First of all, thanks for this great tool. But it would be nice If this tool could add badge to any image from any place, not only app icon. I thought, if you can add path
parameter which will be a path to the image, or list / array of paths to images. Or maybe path to directory with images to replace.
README.md claims badge works for tvOS projects, but if I run badge in my tvOS project directory, all I get is a Could not find any app icons...
message.
The dependencies for badge cannot currently be resolved against the fastlane 2.0 dependencies.
A gemfile with the following:
gem 'badge', '~> 0.6'
gem 'fastlane', '~> 2.0'
Produces the dependency error:
Bundler could not find compatible versions for gem "commander":
In Gemfile:
fastlane (~> 2.0) was resolved to 2.0.1, which depends on
xcode-install (~> 2.0.0) was resolved to 2.0.9, which depends on
spaceship (< 1.0.0, >= 0.25.1) was resolved to 0.39.0, which depends on
credentials_manager (>= 0.16.0) was resolved to 0.16.2, which depends on
commander (>= 4.3.5)
fastlane (~> 2.0) was resolved to 2.0.1, which depends on
commander (< 5.0.0, >= 4.4.0)
badge (~> 0.6) was resolved to 0.6.0, which depends on
fastlane_core (< 1.0.0, >= 0.44.0) was resolved to 0.44.0, which depends on
commander (= 4.3.5)
Bundler could not find compatible versions for gem "rubyzip":
In Gemfile:
fastlane (~> 2.0) was resolved to 2.0.1, which depends on
rubyzip (< 2.0.0, >= 1.2.0)
badge (~> 0.6) was resolved to 0.6.0, which depends on
fastlane_core (< 1.0.0, >= 0.44.0) was resolved to 0.50.2, which depends on
rubyzip (~> 1.1.6)
Mac OS, iOS test project.
I've installed the gem:
sudo gem install badge
Navigated to a folder of a test ios project and executed a command:
badge
Got an error:
[19:53:39]: Start adding badges...
[19:53:39]: './gitlab-ci-test/Images.xcassets/AppIcon.appiconset/1.png'
😨 An error occured. Please enable crash reports using fastlane enable_crash_reporting.
👍 This makes resolving issues much easier and helps improve fastlane.
🔒 The reports will be stored securely on getsentry.com.🙊 More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3
/Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.2/lib/mini_magick/image.rb:200:in rescue in validate!': [!] ImageMagick/GraphicsMagick is not installed (MiniMagick::Invalid)
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.2/lib/mini_magick/image.rb:198:in validate!'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.2/lib/mini_magick/image.rb:113:in block in create'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.2/lib/mini_magick/image.rb:112:in tap'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.2/lib/mini_magick/image.rb:112:in create'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.2/lib/mini_magick/image.rb:34:in read'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.2/lib/mini_magick/image.rb:90:in block in open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:36:in open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:36:in open'
from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.0.2/lib/mini_magick/image.rb:89:in open'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/lib/badge/runner.rb:112:in add_badge'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/lib/badge/runner.rb:43:in block in run'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/lib/badge/runner.rb:36:in each'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/lib/badge/runner.rb:36:in run'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/bin/badge:53:in block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.42.1/lib/fastlane_core/ui/fastlane_runner.rb:23:in run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in run!'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/bin/badge:57:in run'
from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.0/bin/badge:63:in top (required)'
from /usr/local/bin/badge:23:in load'
from /usr/local/bin/badge:23:in main
Tried to install ImageMagick and GraphicsMagick:
sudo gem install image_magick
Fetching: image_magick-0.1.9.gem (100%)
Successfully installed image_magick-0.1.9
Parsing documentation for image_magick-0.1.9
Installing ri documentation for image_magick-0.1.9
Done installing documentation for image_magick after 0 seconds
1 gem installed
sudo gem install graphicsmagick
Fetching: graphicsmagick-1.0.5.gem (100%)
Successfully installed graphicsmagick-1.0.5
Parsing documentation for graphicsmagick-1.0.5
Installing ri documentation for graphicsmagick-1.0.5
Done installing documentation for graphicsmagick after 0 seconds
1 gem installed
The error still the same.
What am I doing wrong?
no sure if and how I'm at fault, but even though fastlane is in my path, the script tries to find it through rubygems.
$ badge --shield "Version-0.0.3-blue" --dark --verbose
/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:308:in `to_specs': Could not find 'fastlane' (>= 2.0) among 140 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/xxx/.gem/ruby/2.0.0:/Library/Ruby/Gems/2.0.0:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0', execute `gem env` for more information
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1439:in `block in activate_dependencies'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1428:in `each'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1428:in `activate_dependencies'
from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1410:in `activate'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:68:in `block in gem'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:67:in `synchronize'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:67:in `gem'
from /usr/local/bin/badge:22:in `<main>'
$ fastlane --version
fastlane installation at path:
/Users/xxx/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.29.0/bin/fastlane
-----------------------------
fastlane 2.29.0
[app] echo $PATH
/Users/xxx/.fastlane/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
Hello,
It would be very useful if we can pass custom params for generating the shield:
?label=healthinesses | Override the default left-hand-side text (URL-Encoding needed for spaces or special characters!)
?logo=appveyor | Insert one of the named logos
?logo=data:image/png;base64,… | Insert custom logo image (≥ 14px high)
?logoWidth=40 | Set the horizontal space to give to the logo
?link=http://left&link=http://right | Specify what clicking on the left/right of a badge should do (esp. for social badge style)
?colorA=abcdef | Set background of the left part (hex color only)
?colorB=fedcba | Set background of the right part (hex color only)
?maxAge=3600 | Set the HTTP cache lifetime in secs
Reference: http://shields.io
Thanks!
Couple of issues:
Please Help! Thanks
Here is the output from Fastlane:
Something went wrong while running badge: uninitialized constant Fastlane::Badge::Runner
--
| Did you mean? Fastlane::Runner
$ LANG=en_US.UTF-8 bundle exec fastlane ios ConsumerAppLive
--
| +-----------------------+---------+-----------+
| \| Used plugins \|
| +-----------------------+---------+-----------+
| \| Plugin \| Version \| Action \|
| +-----------------------+---------+-----------+
| \| fastlane-plugin-badge \| 1.0.0 \| add_badge \|
| +-----------------------+---------+-----------+
|
| [21:15:59]: ------------------------------
| [21:15:59]: --- Step: default_platform ---
| [21:15:59]: ------------------------------
| [21:15:59]: Driving the lane 'ios ConsumerAppLive' 🚀
| [21:15:59]: --------------------------------
| [21:15:59]: --- Step: clear_derived_data ---
| [21:15:59]: --------------------------------
| [21:15:59]: Derived Data path located at: /Users/Rewardle/Library/Developer/Xcode/DerivedData
| [21:15:59]: Successfully cleared Derived Data ♻️
| [21:15:59]: ----------------------------------
| [21:15:59]: --- Step: get_info_plist_value ---
| [21:15:59]: ----------------------------------
| [21:15:59]: ----------------------------------
| [21:15:59]: --- Step: get_info_plist_value ---
| [21:15:59]: ----------------------------------
| [21:15:59]: -------------------
| [21:15:59]: --- Step: badge ---
| [21:15:59]: -------------------
| ==========================================
| This action (badge) is deprecated
| ==========================================
|
| [21:15:59]: The badge action has been deprecated,
| [21:15:59]: please checkout the badge plugin here:
| [21:15:59]: https://github.com/HazAT/fastlane-plugin-badge
| +-----------------------------------+---------------------+
| \| Lane Context \|
| +-----------------------------------+---------------------+
| \| DEFAULT_PLATFORM \| ios \|
| \| PLATFORM_NAME \| ios \|
| \| LANE_NAME \| ios ConsumerAppLive \|
| \| GET_INFO_PLIST_VALUE_CUSTOM_VALUE \| 171005 \|
| +-----------------------------------+---------------------+
| [21:16:01]: Something went wrong while running badge: uninitialized constant Fastlane::Badge::Runner
| Did you mean? Fastlane::Runner
|
| +------+----------------------+-------------+
| \| fastlane summary \|
| +------+----------------------+-------------+
| \| Step \| Action \| Time (in s) \|
| +------+----------------------+-------------+
| \| 1 \| default_platform \| 0 \|
| \| 2 \| clear_derived_data \| 0 \|
| \| 3 \| get_info_plist_value \| 0 \|
| \| 4 \| get_info_plist_value \| 0 \|
| \| 💥 \| badge \| 0 \|
| +------+----------------------+-------------+
|
| [21:16:01]: fastlane finished with errors
|
| [!] Something went wrong while running badge: uninitialized constant Fastlane::Badge::Runner
| Did you mean? Fastlane::Runner
Somehow it still prints "BETA" on the icon, even if I call the options:
badge --dark --custom "DEV"
Sometimes, but not everytime, the .png created from shield.io is corrupt and un openable. I can see the shield .png before its applied to my icons and they can not be opened by my mac.
I get the following output:
`/Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:204:in rescue in validate!': �
[31m[!] identify /var/folders/t0/11ltw64s0jq64t1lbqnk9gw800007x/T/mini_magick20170526-7364-1eogi8k.png failed with error: (MiniMagick::Invalid)
15:29:56 identify: improper image header /var/folders/t0/11ltw64s0jq64t1lbqnk9gw800007x/T/mini_magick20170526-7364-1eogi8k.png' @ error/png.c/ReadPNGImage/4358.
15:29:56 �[0m
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:202:in validate!'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:113:in block in create'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:112:in tap'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:112:in create'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:34:in read'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:90:in block in open'
15:29:56 from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:36:in open'
15:29:56 from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:36:in open'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:89:in open'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/badge-0.8.4/lib/badge/runner.rb:106:in add_shield'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/badge-0.8.4/lib/badge/runner.rb:66:in block in run'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/badge-0.8.4/lib/badge/runner.rb:55:in each'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/badge-0.8.4/lib/badge/runner.rb:55:in run'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/badge-0.8.4/lib/badge/commands_generator.rb:34:in block (2 levels) in run'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in call'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in call'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:153:in run'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/commander-fastlane-4.4.4/lib/commander/runner.rb:476:in run_active_command'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.26.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:38:in run!'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/commander-fastlane-4.4.4/lib/commander/delegates.rb:15:in run!'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/badge-0.8.4/lib/badge/commands_generator.rb:39:in run'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/badge-0.8.4/lib/badge/commands_generator.rb:11:in start'
15:29:56 from /Library/Ruby/Gems/2.0.0/gems/badge-0.8.4/bin/badge:7:in <top (required)>'
15:29:56 from /usr/local/bin/badge:23:in load'
15:29:56 from /usr/local/bin/badge:23:in
This seems to happen for no clear reason, and I can run just the command over and over and see different results each time.
I have my icons in the folder res/ios/beta/Appicon/*
, however badge doesn't find them with the glob option:
Benjamins-MBP:trade-ionic ben$ ls res/ios/beta/Appicon/*
res/ios/beta/Appicon/[email protected] res/ios/beta/Appicon/[email protected] res/ios/beta/Appicon/[email protected] res/ios/beta/Appicon/Icon-72.png res/ios/beta/Appicon/[email protected]
res/ios/beta/Appicon/[email protected] res/ios/beta/Appicon/Icon-50.png res/ios/beta/Appicon/Icon-60.png res/ios/beta/Appicon/[email protected] res/ios/beta/Appicon/icon-29.png
res/ios/beta/Appicon/Icon-40.png res/ios/beta/Appicon/[email protected] res/ios/beta/Appicon/[email protected] res/ios/beta/Appicon/Icon-76.png
res/ios/beta/Appicon/[email protected] res/ios/beta/Appicon/Icon-57.png res/ios/beta/Appicon/[email protected] res/ios/beta/Appicon/[email protected]
Benjamins-MBP:trade-ionic ben$ badge --verbose --glob "res/ios/beta/Appicon/*"
DEBUG [2017-06-16 11:24:32.50]: Verbose active... VERSION: 0.8.4
DEBUG [2017-06-16 11:24:32.50]: Parameters: {:glob=>"res/ios/beta/Appicon/*", :dark=>nil, :alpha=>nil, :alpha_channel=>nil, :custom=>nil, :no_badge=>nil, :badge_gravity=>nil, :shield=>nil, :shield_io_timeout=>nil, :shield_geometry=>nil, :shield_gravity=>nil, :shield_scale=>nil, :shield_no_resize=>nil}
ERROR [2017-06-16 11:24:32.50]: Could not find any app icons...
Why is --glob
not working here?
running on jenkins
/usr/local/bin/badge --shield "0.2.3-156"
crash report c53836f88f90e92fb2a6aad1530badd5
I've triple checked that ImageMagick(6.9.3-0) and GraphicsMagick(1.3.23) ARE installed
/usr/local/lib/ruby/gems/2.2.0/gems/mini_magick-4.0.4/lib/mini_magick/image.rb:200:in `rescue in validate!': [!] ImageMagick/GraphicsMagick is not installed (MiniMagick::Invalid)
I tried to run badge with different params.
I created a lane for fastlane and specify the path to png file in field "path". But have no luck.
How to make a badge for specific png file? (or for android project?)
badge(glob: "/app/src/main/res/mipmap-*dpi/*.{png,PNG}",
shield: "Version-#{value}-blue",
no_badge: true)
I'm trying to add a badge in Android project. My setup looks like this:
badge(dark: true, glob:"/app/src/debug/res/mipmap-*/ic_launcher.png")
Build log shows:
[07:39:54]: -------------------
[07:39:54]: --- Step: badge ---
[07:39:54]: -------------------
[07:39:55]: Start adding badges...
[07:39:55]: './app/src/main/res/mipmap-hdpi/ic_launcher.png'
[07:39:55]: './app/src/main/res/mipmap-mdpi/ic_launcher.png'
[07:39:55]: './app/src/main/res/mipmap-xhdpi/ic_launcher.png'
[07:39:55]: './app/src/main/res/mipmap-xxhdpi/ic_launcher.png'
[07:39:56]: './app/src/main/res/mipmap-xxxhdpi/ic_launcher.png'
[07:39:56]: Badged \o/!
So it seems like everything went ok. But badges are not present on my icons. Adding verbose: true
doesn't print anything more than above. Any ideas?
Seems like a problem with CI server, because it adds badges when I run it locally.
I have installed librsvg
with brew.
I am running badge from fastlane in jenkins and I keep getting this error.
+----------------------------+---------------------------------------------------------------------+
| Lane Context |
+----------------------------+---------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios dev |
| SCAN_DERIVED_DATA_PATH | /Users/cashyt/jenkins/workspace/job/derivedData |
| SCAN_GENERATED_PLIST_FILES | [] |
| SCAN_GENERATED_PLIST_FILE | |
| BUILD_NUMBER | 1013 |
+----------------------------+---------------------------------------------------------------------+
[17:21:45]: no implicit conversion of nil into String
Not sure what I am mussing here
see @ fastlane/fastlane#1127
This is a great tool! How hard would it be to save the original icons somewhere (preferably hidden, so does not mess with git repo), and then add a command like badge --revert
to go back to the original icon?
I'm always getting a timeout when loading the images from shield.io. After changing the shield_io_timeout
in the following file it started working for me. It would be nice to have a parameter to set this timeout for people that doesn't have a good network connection.
When using badge with a custom shield without a beta badge, I am getting an error thrown randomly.
It's very sporadic, but errors my lane quite often.
The error thrown is 520 Origin Error
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.