Go to file
micu 6259891a4b 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).
2015-03-26 14:36:33 +01:00
build Removed unused v7-appcompat md5 file 2015-01-16 17:04:36 +01:00
hooks Use full paths when installing hooks, safer strings 2014-05-28 09:26:04 +02:00
metadata Issue #70: Fix Berlin vegan black screen issue 2015-03-26 14:36:33 +01:00
srclibs Issue #70: Fix Berlin vegan black screen issue 2015-03-26 14:36:33 +01:00
stats Update known apks 2015-03-26 09:20:22 +00:00
tools
.gitignore Add *.apk to .gitignore to ignore apk symlinks 2014-12-30 23:36:02 +01:00
CONTRIBUTING.md Add link to "Apps to update" page. 2014-08-18 00:08:09 +02:00
COPYING
fdroid-icon.png