forked from organicmaps/organicmaps
[android] APKs with fonts and mwm for Samsung and Amazon
This commit is contained in:
parent
a31c59f6d1
commit
76fa559164
12 changed files with 13 additions and 32 deletions
|
@ -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 {
|
||||
|
|
1
android/flavors/mwm-ttf-assets/01_dejavusans.ttf
Symbolic link
1
android/flavors/mwm-ttf-assets/01_dejavusans.ttf
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../data/01_dejavusans.ttf
|
1
android/flavors/mwm-ttf-assets/02_wqy-microhei.ttf
Symbolic link
1
android/flavors/mwm-ttf-assets/02_wqy-microhei.ttf
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../data/02_wqy-microhei.ttf
|
1
android/flavors/mwm-ttf-assets/03_jomolhari-id-a3d.ttf
Symbolic link
1
android/flavors/mwm-ttf-assets/03_jomolhari-id-a3d.ttf
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../data/03_jomolhari-id-a3d.ttf
|
1
android/flavors/mwm-ttf-assets/04_padauk.ttf
Symbolic link
1
android/flavors/mwm-ttf-assets/04_padauk.ttf
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../data/04_padauk.ttf
|
1
android/flavors/mwm-ttf-assets/05_khmeros.ttf
Symbolic link
1
android/flavors/mwm-ttf-assets/05_khmeros.ttf
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../data/05_khmeros.ttf
|
1
android/flavors/mwm-ttf-assets/06_code2000.ttf
Symbolic link
1
android/flavors/mwm-ttf-assets/06_code2000.ttf
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../data/06_code2000.ttf
|
1
android/flavors/mwm-ttf-assets/World.mwm
Symbolic link
1
android/flavors/mwm-ttf-assets/World.mwm
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../data/World.mwm
|
1
android/flavors/mwm-ttf-assets/WorldCoasts.mwm
Symbolic link
1
android/flavors/mwm-ttf-assets/WorldCoasts.mwm
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../data/WorldCoasts.mwm
|
|
@ -1,2 +1,2 @@
|
|||
./update_assets_for_version.sh ../../android/assets
|
||||
./update_flags.sh
|
||||
./add_assets_mwm-ttf.sh ../../android/flavors/mwm-ttf-assets
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
Loading…
Add table
Reference in a new issue