Index: libadblockplus-android/build.xml |
diff --git a/libadblockplus-android/build.xml b/libadblockplus-android/build.xml |
index c41390f90787663c05fb2519b73246b3b625ad60..67c08ea74b4eb0e9d98576f378cb5ef10f0efd81 100644 |
--- a/libadblockplus-android/build.xml |
+++ b/libadblockplus-android/build.xml |
@@ -71,6 +71,21 @@ |
In all cases you must update the value of version-tag below to read 'custom' instead of an integer, |
in order to avoid having your file be overridden by tools such as "android update project" |
--> |
+ |
+ <!-- |
+ Walaround for the issue: ant does not copy assets from libraries by default |
+ http://stackoverflow.com/questions/5889833/android-library-assets-folder-doesnt-get-copied |
+ --> |
+ <target name="-post-compile" if="${project.is.library}"> |
+ <echo>Post Compile: add assests from ${asset.absolute.dir} to ${out.library.jar.file}</echo> |
+ <jar destfile="${out.library.jar.file}" update="true"> |
+ <zipfileset |
+ dir="${asset.absolute.dir}" |
+ prefix="assets" |
+ excludes="**/*.java ${android.package.excludes}"/> |
+ </jar> |
+ </target> |
+ |
<!-- version-tag: custom --> |
<import file="${sdk.dir}/tools/ant/build.xml" /> |