From 6259891a4b4e90fc98088f5636aebaf294a98c52 Mon Sep 17 00:00:00 2001 From: micu Date: Thu, 26 Mar 2015 14:01:24 +0100 Subject: [PATCH] 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: > > > > > > > > > > to="${build.dir}/*-min.js"/> > > > > > > > > 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). --- metadata/org.berlin_vegan.bvapp.txt | 3 +-- srclibs/YUICompressor.txt | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 srclibs/YUICompressor.txt diff --git a/metadata/org.berlin_vegan.bvapp.txt b/metadata/org.berlin_vegan.bvapp.txt index 1e06886d0e..83aae147cb 100644 --- a/metadata/org.berlin_vegan.bvapp.txt +++ b/metadata/org.berlin_vegan.bvapp.txt @@ -37,10 +37,9 @@ Repo Type:git Repo:https://github.com/smeir/Berlin-Vegan-Guide Build:1.6,18 - disable=builds,install,starts but not working commit=14cb40f2597e0c5fec66ef0b65b7c2be51e19daf 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 prebuild=cd ../../ && \ ant prod.android diff --git a/srclibs/YUICompressor.txt b/srclibs/YUICompressor.txt new file mode 100644 index 0000000000..7394752c22 --- /dev/null +++ b/srclibs/YUICompressor.txt @@ -0,0 +1,2 @@ +Repo Type:git +Repo:https://github.com/yui/yuicompressor.git