OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <project name="Adblock Plus Library" default="help"> | 2 <project name="Adblock Plus Library" default="help"> |
3 | 3 |
4 <!-- The local.properties file is created and updated by the 'android' tool. | 4 <!-- The local.properties file is created and updated by the 'android' tool. |
5 It contains the path to the SDK. It should *NOT* be checked into | 5 It contains the path to the SDK. It should *NOT* be checked into |
6 Version Control Systems. --> | 6 Version Control Systems. --> |
7 <property file="local.properties" /> | 7 <property file="local.properties" /> |
8 | 8 |
9 <!-- The ant.properties file can be created by you. It is only edited by the | 9 <!-- The ant.properties file can be created by you. It is only edited by the |
10 'android' tool to add properties to it. | 10 'android' tool to add properties to it. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 - copy/paste the content of the rules files (minus the top node) | 64 - copy/paste the content of the rules files (minus the top node) |
65 into this file, replacing the <import> task. | 65 into this file, replacing the <import> task. |
66 - customize to your needs. | 66 - customize to your needs. |
67 | 67 |
68 *********************** | 68 *********************** |
69 ****** IMPORTANT ****** | 69 ****** IMPORTANT ****** |
70 *********************** | 70 *********************** |
71 In all cases you must update the value of version-tag below to read 'cu
stom' instead of an integer, | 71 In all cases you must update the value of version-tag below to read 'cu
stom' instead of an integer, |
72 in order to avoid having your file be overridden by tools such as "andr
oid update project" | 72 in order to avoid having your file be overridden by tools such as "andr
oid update project" |
73 --> | 73 --> |
| 74 |
| 75 <!-- |
| 76 Walaround for the issue: ant does not copy assets from libraries by defa
ult |
| 77 http://stackoverflow.com/questions/5889833/android-library-assets-folder
-doesnt-get-copied |
| 78 --> |
| 79 <target name="-post-compile" if="${project.is.library}"> |
| 80 <echo>Post Compile: add assests from ${asset.absolute.dir} to ${out.libr
ary.jar.file}</echo> |
| 81 <jar destfile="${out.library.jar.file}" update="true"> |
| 82 <zipfileset |
| 83 dir="${asset.absolute.dir}" |
| 84 prefix="assets" |
| 85 excludes="**/*.java ${android.package.excludes}"/> |
| 86 </jar> |
| 87 </target> |
| 88 |
74 <!-- version-tag: custom --> | 89 <!-- version-tag: custom --> |
75 <import file="${sdk.dir}/tools/ant/build.xml" /> | 90 <import file="${sdk.dir}/tools/ant/build.xml" /> |
76 | 91 |
77 </project> | 92 </project> |
OLD | NEW |