Issue #70: Fix Berlin vegan black screen issue

This commit actually does not fix the issue, it is just
a (not yet working) suggestion for fixing it:

The Berlin vegan guide needs a preparation phase, which inlucdes
copying some JS files and resources and stuff like that. This
preperation is done via

    ant prod.android

in the very root of the Berlin vegan guide git repository.

As you can see in the build.xml file in the root of the repo, the
target prod.android depends on the target prod, which in turn depends
on the target js.minify:

>     <target name="js.minify" depends="js.concatenate">
>
>         <apply executable="java" parallel="false">
>
>             <fileset dir="${build.dir}" includes="index.js"/>
>             <arg line="-jar"/>
>             <arg path="lib/tools/ycompressor.jar"/>
>             <srcfile/>
>             <arg line="-o"/>
>             <mapper type="glob" from="*.js"
>             to="${build.dir}/*-min.js"/>
>             <targetfile/>
>
>         </apply>
>         <delete file="${build.dir}/index.js"/>
>
>     </target>
>
> </project>

In the js.minify phase, the ycompressor.jar tool is used to compress
the java script files for mobile use.

By removing all the jar files in the prebuild phase, ycompressor.jar
gets removed, as well. Thus, the ant prod.android step does not work
properly.

I already managed to build this YUI compressor tool by hand from the sources.
But I could not figure out how to correctly add this external (non-Android)
host tool as dependency for this package.

Do you have any hint?

If I do it like this (in this commit) the build fails with:

> Running 'prebuild' commands in build/org.berlin_vegan.bvapp/platforms/android
> Cleaning subproject ../../../srclib/Cordova/framework
> Could not build app org.berlin_vegan.bvapp due to BuildException: Failed to update project at ../../../srclib/YUICompressor
> ==== detail begin ====
> Error: ../../../srclib/YUICompressor is not a valid project (AndroidManifest.xml not found).
This commit is contained in:
micu 2015-03-26 14:01:24 +01:00
parent fc66c97b75
commit 6259891a4b
2 changed files with 3 additions and 2 deletions

View file

@ -37,10 +37,9 @@ Repo Type:git
Repo:https://github.com/smeir/Berlin-Vegan-Guide Repo:https://github.com/smeir/Berlin-Vegan-Guide
Build:1.6,18 Build:1.6,18
disable=builds,install,starts but not working
commit=14cb40f2597e0c5fec66ef0b65b7c2be51e19daf commit=14cb40f2597e0c5fec66ef0b65b7c2be51e19daf
subdir=platforms/android subdir=platforms/android
srclibs=1:Cordova@3.2.0 srclibs=1:Cordova@3.2.0,2:YUICompressor@v2.4.8
rm=lib/tools/ycompressor.jar,platforms/android/libs/cordova*jar,platforms/android/libs/phonegap*jar,platforms/android/local.properties,platforms/android/build.properties,platforms/android/default.properties,platforms/android/build.xml rm=lib/tools/ycompressor.jar,platforms/android/libs/cordova*jar,platforms/android/libs/phonegap*jar,platforms/android/local.properties,platforms/android/build.properties,platforms/android/default.properties,platforms/android/build.xml
prebuild=cd ../../ && \ prebuild=cd ../../ && \
ant prod.android ant prod.android

View file

@ -0,0 +1,2 @@
Repo Type:git
Repo:https://github.com/yui/yuicompressor.git