diff --git a/.travis.yml b/.travis.yml index a82dba3bf..536cfc28c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,7 @@ install: before_script: - bash scripts/prep-key.sh + - bash scripts/check-screenshots.sh script: - ./gradlew spotlessCheck diff --git a/README.md b/README.md index 7419fe6b6..bd0704f67 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,9 @@ There are a number of devices with Bluetooth on the market. As far as we can tel | | | | |-------------|-------------|-------------| -| | | | +| | | | | | | | -| | | | +| | | | ## Reverse-Engineering Bluetooth LE Devices diff --git a/docs/images/screen-1.png b/docs/images/screen-1.png new file mode 100644 index 000000000..f21bdecfd Binary files /dev/null and b/docs/images/screen-1.png differ diff --git a/docs/images/screen-2.png b/docs/images/screen-2.png new file mode 100644 index 000000000..d12f5c016 Binary files /dev/null and b/docs/images/screen-2.png differ diff --git a/docs/images/screen-3.png b/docs/images/screen-3.png new file mode 100644 index 000000000..6fb782d12 Binary files /dev/null and b/docs/images/screen-3.png differ diff --git a/docs/images/screen-4.png b/docs/images/screen-4.png new file mode 100644 index 000000000..3e7fa5a01 Binary files /dev/null and b/docs/images/screen-4.png differ diff --git a/docs/images/screen-5.png b/docs/images/screen-5.png new file mode 100644 index 000000000..804974c2c Binary files /dev/null and b/docs/images/screen-5.png differ diff --git a/docs/images/screen-6.png b/docs/images/screen-6.png new file mode 100644 index 000000000..83686afb2 Binary files /dev/null and b/docs/images/screen-6.png differ diff --git a/scripts/check-screenshots.sh b/scripts/check-screenshots.sh new file mode 100644 index 000000000..d41750d6d --- /dev/null +++ b/scripts/check-screenshots.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +FILES_DIFF=$(diff <(find docs/images -type f -name "screen-?.png" -exec md5sum {} + | sort -k 2 | sed 's/ .*\// /') <(find fastlane/metadata/android/en-US/images/phoneScreenshots -type f -exec md5sum {} + | sort -k 2 | sed 's/ .*\// /')) +if [[ $FILES_DIFF ]]; then + echo -e "\033[0;31mScreenshots in docs/images and fastlane/metadata/android/en-US/images/phoneScreenshots are not same\033[0m" >&2 + exit 1; +fi