OLD | NEW |
1 Adblock Plus Library for Android | 1 Adblock Plus Library for Android |
2 ================================ | 2 ================================ |
3 | 3 |
4 An Android library project, tests and demo application for AdblockWebView widget
. | 4 An Android library project, tests and demo application for AdblockWebView widget
. |
5 | 5 |
6 ## Updating the dependencies | 6 ## Updating the dependencies |
7 | 7 |
8 Adblock Plus for Android has dependencies that aren't in this repository. | 8 Adblock Plus for Android has dependencies that aren't in this repository. |
9 To update those, call: | 9 To update those, call: |
10 | 10 |
11 ./ensure_dependencies.py | 11 ./ensure_dependencies.py |
12 | 12 |
13 ## Library | 13 ## Library |
14 | 14 |
15 An Android library that provides the core functionality of Adblock Plus. | 15 An Android library that provides the core functionality of Adblock Plus. |
16 You can find it in the 'libadblockplus-android' directory. | 16 You can find it in the 'libadblockplus-android' directory. |
17 | 17 |
18 ### Building | 18 ### Building |
19 | 19 |
20 #### Requirements | 20 #### Requirements |
21 | 21 |
22 * [The Android SDK](https://developer.android.com/sdk) | 22 * [The Android SDK](https://developer.android.com/sdk) |
23 * Android SDK Build tools 25.0.0 | 23 * Android SDK Build tools 25.0.0 |
24 * [The Android NDK, 16b](https://developer.android.com/ndk) | 24 * [The Android NDK, 16b](https://developer.android.com/ndk) |
25 | 25 |
26 Edit 'buildToolsVersion' in 'build.gradle' files if necessary. | 26 Edit 'buildToolsVersion' in 'build.gradle' files if necessary. |
27 | 27 |
| 28 #### Building of libadblockplus |
| 29 |
| 30 First, we need to build `V8` required for `libadblockplus`. |
| 31 See `libadblockplus/README` or V8 documentation on how to build V8 or |
| 32 fetch precompiled one. Run in 'libadblockplus' directory: |
| 33 |
| 34 make TARGET_OS=android TARGET_ARCH=arm Configuration=release get-prebuilt-v8 |
| 35 |
| 36 Then we can build `libadblockplus`: |
| 37 |
| 38 make TARGET_OS=android TARGET_ARCH=arm Configuration=release |
| 39 |
28 #### Building from command-line | 40 #### Building from command-line |
29 | 41 |
30 In the project root directory create the file _local.properties_ and set | 42 In the project root directory create the file _local.properties_ and set |
31 _sdk.dir_ and _ndk.dir_ to where you installed it, e.g.: | 43 _sdk.dir_ and _ndk.dir_ to where you installed it, e.g.: |
32 | 44 |
33 sdk.dir = /some/where/sdk | 45 sdk.dir = /some/where/sdk |
34 ndk.dir = /some/where/ndk | 46 ndk.dir = /some/where/ndk |
35 | 47 |
36 In the project root directory run: | 48 In the project root directory run: |
37 | 49 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 274 |
263 ### Building | 275 ### Building |
264 | 276 |
265 Make sure _Library_ requirements are present. | 277 Make sure _Library_ requirements are present. |
266 | 278 |
267 In the project root directory run: | 279 In the project root directory run: |
268 | 280 |
269 ./gradlew assemble | 281 ./gradlew assemble |
270 | 282 |
271 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs
/apk/' directory. | 283 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs
/apk/' directory. |
OLD | NEW |