| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 sdk.dir = /some/where/sdk | 77 sdk.dir = /some/where/sdk |
| 78 ndk.dir = /some/where/ndk | 78 ndk.dir = /some/where/ndk |
| 79 | 79 |
| 80 In the project root directory run: | 80 In the project root directory run: |
| 81 | 81 |
| 82 ./gradlew assembleDebug | 82 ./gradlew assembleDebug |
| 83 | 83 |
| 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** |
| 87 |
| 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"/>` |
| 90 * `<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>` |
| 91 |
| 92 (added automatically if building with Gradle or should be added manually otherwi
se). |
| 93 |
| 86 ## Library tests | 94 ## Library tests |
| 87 | 95 |
| 88 Android tests for the library. | 96 Android tests for the library. |
| 89 You can find them in the 'libadblockplus-android-tests' directory. | 97 You can find them in the 'libadblockplus-android-tests' directory. |
| 90 | 98 |
| 91 ### Requirements | 99 ### Requirements |
| 92 | 100 |
| 93 Make sure _Library_ requirements are present. | 101 Make sure _Library_ requirements are present. |
| 94 | 102 |
| 95 ### Building with Ant | 103 ### Building with Ant |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 295 |
| 288 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo
ry. | 296 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo
ry. |
| 289 | 297 |
| 290 #### Building with Gradle | 298 #### Building with Gradle |
| 291 | 299 |
| 292 In the project root directory run: | 300 In the project root directory run: |
| 293 | 301 |
| 294 ./gradlew assemble | 302 ./gradlew assemble |
| 295 | 303 |
| 296 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs
/apk/' directory. | 304 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs
/apk/' directory. |
| OLD | NEW |