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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 // optional - provide preloaded subscription files in app resoruces | 230 // optional - provide preloaded subscription files in app resoruces |
231 .preloadSubscriptions(AdblockHelper.PRELOAD_PREFERENCE_NAME, map); | 231 .preloadSubscriptions(AdblockHelper.PRELOAD_PREFERENCE_NAME, map); |
232 | 232 |
233 Sometimes it's desired to initialize or deinitialize FilterEngine instance | 233 Sometimes it's desired to initialize or deinitialize FilterEngine instance |
234 when created: | 234 when created: |
235 | 235 |
236 AdblockHelper | 236 AdblockHelper |
237 .get() | 237 .get() |
238 .init(...) | 238 .init(...) |
239 .addEngineCreatedCallback(onAdblockEngineCreated) | 239 .addEngineCreatedListener(engineCreatedListener) |
240 | 240 |
241 or disposed: | 241 or disposed: |
242 | 242 |
243 AdblockHelper | 243 AdblockHelper |
244 .get() | 244 .get() |
245 .init(...) | 245 .init(...) |
246 .addEngineDisposedCallback(onAdblockEngineDisposed) | 246 .addEngineDisposedListener(engineDisposedListener) |
247 | 247 |
248 Implement the following interfaces in your settings activity: | 248 Implement the following interfaces in your settings activity: |
249 | 249 |
250 * `BaseSettingsFragment.Provider` | 250 * `BaseSettingsFragment.Provider` |
251 * `GeneralSettingsFragment.Listener` | 251 * `GeneralSettingsFragment.Listener` |
252 * `WhitelistedDomainsSettingsFragment.Listener` | 252 * `WhitelistedDomainsSettingsFragment.Listener` |
253 | 253 |
254 and return created instance or AdblockHelper instances: | 254 and return created instance or AdblockHelper instances: |
255 | 255 |
256 AdblockHelper.get().getProvider().getEngine(); // engine | 256 AdblockHelper.get().getProvider().getEngine(); // engine |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 | 378 |
379 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo
ry. | 379 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo
ry. |
380 | 380 |
381 #### Building with Gradle | 381 #### Building with Gradle |
382 | 382 |
383 In the project root directory run: | 383 In the project root directory run: |
384 | 384 |
385 ./gradlew assemble | 385 ./gradlew assemble |
386 | 386 |
387 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs
/apk/' directory. | 387 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs
/apk/' directory. |
LEFT | RIGHT |