Skip to content

Commit

Permalink
Merge branch 'pr/663'
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Nov 11, 2019
2 parents eb76883 + 6b0b34d commit 8d04598
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 214 deletions.
3 changes: 3 additions & 0 deletions docs/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ Within the Docker dev environment, build the Android App: `make android`
The Android Sdk is assumed to be in `/opt/android-sdk`. Use `make android ANDROID_SDK_ROOT=...` to
use a different Sdk location.

To update the app icon, execute `frontends/android/mkicon.sh`.
The script isn't run during `make android` build.

Build artifacts:
* `frontends/android/BitBox/app/build/outputs/apk/*`

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions frontends/android/mkicon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# This script requires convert tool from ImageMagick and optipng.
# The output is nondeterministic.
set -e

thisdir=$(dirname ${0})
source=${thisdir}/../qt/resources/app_icon_source.png
res=${thisdir}/BitBox/app/src/main/res

convert -resize 48x48 ${source} ${res}/mipmap-mdpi/ic_launcher.png
convert -resize 72x72 ${source} ${res}/mipmap-hdpi/ic_launcher.png
convert -resize 96x96 ${source} ${res}/mipmap-xhdpi/ic_launcher.png
convert -resize 144x144 ${source} ${res}/mipmap-xxhdpi/ic_launcher.png
convert -resize 192x192 ${source} ${res}/mipmap-xxxhdpi/ic_launcher.png

find ${res} -name ic_launcher.png -exec optipng -quiet {} \;

0 comments on commit 8d04598

Please sign in to comment.