Skip to content

Instantly share code, notes, and snippets.

@operando
Last active March 4, 2021 05:24
Show Gist options
  • Save operando/6a0892efe9c91c2972edafc0bf632b93 to your computer and use it in GitHub Desktop.
Save operando/6a0892efe9c91c2972edafc0bf632b93 to your computer and use it in GitHub Desktop.
[Android] resにPNG画像が追加されたら、WebP or SVGに変更できないか検討してみよう!って言うDanger
png_files = (git.modified_files + git.added_files).uniq.select { |file| file.include?("res/") && file.end_with?('.png') && !file.end_with?('.9.png') }
png_files.each do |filename|
warn("該当のPNG画像をWebP or SVGに変更できないか検討してみましょう", file: filename, line: 0)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment