| 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 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 This will generate *.aar library artifact in the 'libadblockplus-android/build/o
utputs/aar/' directory. | 84 This will generate *.aar library artifact in the 'libadblockplus-android/build/o
utputs/aar/' directory. |
| 85 | 85 |
| 86 **Android permissions note** | 86 **Android permissions note** |
| 87 | 87 |
| 88 An app that uses the library have to add the following permissions to `AndroidMa
nifest.xml`: | 88 An app that uses the library have to add the following permissions to `AndroidMa
nifest.xml`: |
| 89 * `<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>` | 89 * `<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>` |
| 90 * `<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>` | 90 * `<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>` |
| 91 | 91 |
| 92 (added automatically if building with Gradle or should be added manually otherwi
se). | 92 (added automatically if building with Gradle or should be added manually otherwi
se). |
| 93 | 93 |
| 94 ### Building with prebuilt shared V8 |
| 95 |
| 96 This can be desired to use product's V8 (let's say Chromium) instead of libadblo
ckplus built-in V8. |
| 97 Put prebuilt shared V8 library file in ARCH directories and set `SHARED_V8_LIB_F
ILENAME` |
| 98 environment variable before building. Libadblockplus is required to be linked wi
th that library file. |
| 99 |
| 100 For example (build with Gradle): |
| 101 |
| 102 SHARED_V8_LIB_FILENAME=libswev8.so ./gradlew clean assemble |
| 103 |
| 104 Note `[Configuration] Linking dynamically with shared v8 library ./libadblockplu
s-binaries/android_armeabi-v7a/libv8.cr.so` |
| 105 output while building native library. |
| 106 |
| 94 ## Library tests | 107 ## Library tests |
| 95 | 108 |
| 96 Android tests for the library. | 109 Android tests for the library. |
| 97 You can find them in the 'libadblockplus-android-tests' directory. | 110 You can find them in the 'libadblockplus-android-tests' directory. |
| 98 | 111 |
| 99 ### Requirements | 112 ### Requirements |
| 100 | 113 |
| 101 Make sure _Library_ requirements are present. | 114 Make sure _Library_ requirements are present. |
| 102 | 115 |
| 103 ### Building with Ant | 116 ### Building with Ant |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 311 |
| 299 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo
ry. | 312 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo
ry. |
| 300 | 313 |
| 301 #### Building with Gradle | 314 #### Building with Gradle |
| 302 | 315 |
| 303 In the project root directory run: | 316 In the project root directory run: |
| 304 | 317 |
| 305 ./gradlew assemble | 318 ./gradlew assemble |
| 306 | 319 |
| 307 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs
/apk/' directory. | 320 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs
/apk/' directory. |
| OLD | NEW |