diff --git a/samples/TestJavascript/proj.android/ant.properties b/samples/TestJavascript/proj.android/ant.properties index f8af38bfb4..ce44c76b37 100644 --- a/samples/TestJavascript/proj.android/ant.properties +++ b/samples/TestJavascript/proj.android/ant.properties @@ -1 +1 @@ -aapt.ignore.assets="!*.pvr.gz:!*.gz:!.svn:!.git:.*:_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" +aapt.ignore.assets="!*.pvr.gz:!*.gz:!Images:!Fonts:!.svn:!.git:.*:_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" diff --git a/samples/TestJavascript/proj.android/build_native.sh b/samples/TestJavascript/proj.android/build_native.sh index 76f0f0c203..432f9caa01 100755 --- a/samples/TestJavascript/proj.android/build_native.sh +++ b/samples/TestJavascript/proj.android/build_native.sh @@ -65,6 +65,29 @@ if [ -f "$file" ]; then fi done +# extra magic to deal with Images and Fonts for android +for file in "$APP_ROOT"/Resources/Images/* +do +if [ -d "$file" ]; then + cp -rf "$file" "$APP_ANDROID_ROOT"/assets +fi + +if [ -f "$file" ]; then + cp "$file" "$APP_ANDROID_ROOT"/assets +fi +done + +for file in "$APP_ROOT"/Resources/Fonts/* +do +if [ -d "$file" ]; then + cp -rf "$file" "$APP_ANDROID_ROOT"/assets +fi + +if [ -f "$file" ]; then + cp "$file" "$APP_ANDROID_ROOT"/assets +fi +done + # copy js if [ -d "$APP_ROOT/js" ]; then cp -rf "$APP_ROOT/js" "$APP_ANDROID_ROOT"/assets