Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/build.xml

Issue 29351744: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Patch Set: supporting api 21 with referer and pre-21 with no referer Created Sept. 30, 2016, 1:28 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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" />

Powered by Google App Engine
This is Rietveld