[android] APKs with fonts and mwm for Samsung and Amazon

This commit is contained in:
Alex Zolotarev 2014-10-20 16:09:59 -07:00 committed by Alex Zolotarev
parent a31c59f6d1
commit 76fa559164
12 changed files with 13 additions and 32 deletions

View file

@ -76,7 +76,7 @@ android {
buildConfigField 'String', 'PRO_URL', '"samsungapps://ProductDetail/com.mapswithme.maps.pro"'
buildConfigField 'String', 'REVIEW_URL', '"samsungapps://ProductDetail/com.mapswithme.maps.pro"'
android.sourceSets.samsungPro.setRoot('flavors/pro')
android.sourceSets.samsungPro.assets.srcDirs = ['flavors/guides-assets']
android.sourceSets.samsungPro.assets.srcDirs = ['flavors/guides-assets', 'flavors/mwm-ttf-assets']
}
samsungLite {
@ -85,7 +85,7 @@ android {
buildConfigField 'String', 'PRO_URL', '"samsungapps://ProductDetail/com.mapswithme.maps.pro"'
buildConfigField 'String', 'REVIEW_URL', '"samsungapps://ProductDetail/com.mapswithme.maps.samsung"'
android.sourceSets.samsungLite.setRoot('flavors/lite')
android.sourceSets.samsungLite.assets.srcDirs = ['flavors/guides-assets']
android.sourceSets.samsungLite.assets.srcDirs = ['flavors/guides-assets', 'flavors/mwm-ttf-assets']
}
amazonPro {
@ -95,6 +95,7 @@ android {
buildConfigField 'String', 'REVIEW_URL', '"amzn://apps/android?p=com.mapswithme.maps.pro"'
android.sourceSets.amazonPro.setRoot('flavors/pro')
// Do not include guides assets for Amazon, they don't like GP apps ads
android.sourceSets.amazonPro.assets.srcDirs = ['flavors/mwm-ttf-assets']
}
amazonLite {
@ -104,6 +105,7 @@ android {
buildConfigField 'String', 'REVIEW_URL', '"amzn://apps/android?p=com.mapswithme.maps"'
android.sourceSets.amazonLite.setRoot('flavors/lite')
// Do not include guides assets for Amazon, they don't like GP apps ads
android.sourceSets.amazonLite.assets.srcDirs = ['flavors/mwm-ttf-assets']
}
androidpitPro {

View file

@ -0,0 +1 @@
../../../data/01_dejavusans.ttf

View file

@ -0,0 +1 @@
../../../data/02_wqy-microhei.ttf

View file

@ -0,0 +1 @@
../../../data/03_jomolhari-id-a3d.ttf

View file

@ -0,0 +1 @@
../../../data/04_padauk.ttf

View file

@ -0,0 +1 @@
../../../data/05_khmeros.ttf

View file

@ -0,0 +1 @@
../../../data/06_code2000.ttf

View file

@ -0,0 +1 @@
../../../data/World.mwm

View file

@ -0,0 +1 @@
../../../data/WorldCoasts.mwm

View file

@ -1,2 +1,2 @@
./update_assets_for_version.sh ../../android/assets
./update_flags.sh
./add_assets_mwm-ttf.sh ../../android/flavors/mwm-ttf-assets

View file

@ -17,4 +17,3 @@ rm -rf $DST/resources-xhdpi
rm -rf $DST/resources-xxhdpi
ln -s $SRC/resources-yota $DST/resources-mdpi
./update_flags.sh

View file

@ -1,28 +0,0 @@
#!/bin/bash
set -x -u
SRC=../../data/flags
DST=../../android/res
# *@2x.png
sobakaPos=7
for file in $SRC/*.png;
do
filename=$(basename "$file")
if [[ "$file" == *\@2x.png ]]; then
strLen=${#filename}
prefixName=${filename:0:`expr $strLen - $sobakaPos`}
rm "$DST/drawable-xhdpi/${prefixName}.png"
ln -s "../$SRC/$filename" "$DST/drawable-xhdpi/${prefixName}.png"
else
rm "$DST/drawable-mdpi/$filename"
ln -s "../$SRC/$filename" "$DST/drawable-mdpi/$filename"
fi
done
# rename do.png because of aapt - it doesn't support resource name "do"
mv "$DST/drawable-xhdpi/do.png" "$DST/drawable-xhdpi/do_hack.png"
mv "$DST/drawable-mdpi/do.png" "$DST/drawable-mdpi/do_hack.png"