<commit_before>#!/bin/sh
#
# Compile image resources (images and splashscreens) from assets/img/ to assets/img/res/ dasrectory.

if test ! -d "hooks"; then
  echo "You must run it in main directory of cordova project."
  exit 1
fi

LOGO="assets/img/logo-square.svg"
PORTRAIT_SPLASH="assets/img/splash-portrait.png"
LANDSCAPE_SPLASH="assets/img/splash-landscape.png"

if test -d "platforms/android"; then
  convert $LOGO -resize "96x96" "platforms/android/res/drawable/icon.png"
  convert $LOGO -resize "36x36" "platforms/android/res/drawable-ldpi/icon.png"
  convert $LOGO -resize "48x48" "platforms/android/res/drawable-mdpi/icon.png"
  convert $LOGO -resize "72x72" "platforms/android/res/drawable-hdpi/icon.png"
  convert $LOGO -resize "96x96" "platforms/android/res/drawable-xhdpi/icon.png"

  convert $PORTRAIT_SPLASH -resize "720x1280^" \
    -gravity center -crop 720x1280+0+0 +repage\<commit_msg>Fix link to logo-square in generate_res_assets hook<commit_after>#!/bin/sh
#
# Compile image resources (images and splashscreens) from assets/img/ to assets/img/res/ dasrectory.

if test ! -d "hooks"; then
  echo "You must run it in main directory of cordova project."
  exit 1
fi

LOGO="assets/img/logo-square.png"
PORTRAIT_SPLASH="assets/img/splash-portrait.png"
LANDSCAPE_SPLASH="assets/img/splash-landscape.png"

if test -d "platforms/android"; then
  convert $LOGO -resize "96x96" "platforms/android/res/drawable/icon.png"
  convert $LOGO -resize "36x36" "platforms/android/res/drawable-ldpi/icon.png"
  convert $LOGO -resize "48x48" "platforms/android/res/drawable-mdpi/icon.png"
  convert $LOGO -resize "72x72" "platforms/android/res/drawable-hdpi/icon.png"
  convert $LOGO -resize "96x96" "platforms/android/res/drawable-xhdpi/icon.png"

  convert $PORTRAIT_SPLASH -resize "720x1280^" \
    -gravity center -crop 720x1280+0+0 +repage\
{'fraction_non_alphanumeric': 0.13271939328277357, 'fraction_numerical': 0.04008667388949079, 'mean_word_length': 4.529940119760479, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6978454', 'n_tokens_mistral': 751, 'n_tokens_neox': 685, 'n_words': 151}