LEFT | RIGHT |
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 |
(...skipping 14 matching lines...) Expand all Loading... |
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 | 28 #### Building of libadblockplus |
29 | 29 |
30 First, we need to build `V8` required for `libadblockplus`. | 30 First, we need to build `V8` required for `libadblockplus`. |
31 See `libadblockplus/README` or V8 documentation on how to build V8 or | 31 See `libadblockplus/README` or V8 documentation on how to build V8 or |
32 fetch precompiled one. Run in 'libadblockplus' directory: | 32 fetch precompiled one. Run in 'libadblockplus' directory: |
33 | 33 |
34 make TARGET_OS=android TARGET_ARCH=arm Configuration=release get-prebuilt-v8 | 34 make TARGET_OS=android TARGET_ARCH=arm Configuration=release get-prebuilt-v8 |
| 35 make TARGET_OS=android TARGET_ARCH=ia32 Configuration=release get-prebuilt-v
8 |
35 | 36 |
36 Then we can build `libadblockplus`: | 37 Then we can build `libadblockplus`: |
37 | 38 |
38 make TARGET_OS=android TARGET_ARCH=arm Configuration=release | 39 make TARGET_OS=android TARGET_ARCH=arm SUB_ACTION=libadblockplus Configurati
on=release |
| 40 make TARGET_OS=android TARGET_ARCH=ia32 SUB_ACTION=libadblockplus Configurat
ion=release |
39 | 41 |
40 #### Building from command-line | 42 #### Building from command-line |
41 | 43 |
42 In the project root directory create the file _local.properties_ and set | 44 In the project root directory create the file _local.properties_ and set |
43 _sdk.dir_ and _ndk.dir_ to where you installed it, e.g.: | 45 _sdk.dir_ and _ndk.dir_ to where you installed it, e.g.: |
44 | 46 |
45 sdk.dir = /some/where/sdk | 47 sdk.dir = /some/where/sdk |
46 ndk.dir = /some/where/ndk | 48 ndk.dir = /some/where/ndk |
47 | 49 |
48 In the project root directory run: | 50 In the project root directory run: |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 274 |
273 ### Building | 275 ### Building |
274 | 276 |
275 Make sure _Library_ requirements are present. | 277 Make sure _Library_ requirements are present. |
276 | 278 |
277 In the project root directory run: | 279 In the project root directory run: |
278 | 280 |
279 ./gradlew assemble | 281 ./gradlew assemble |
280 | 282 |
281 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. |
LEFT | RIGHT |