Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: README.md

Issue 29389555: Issue 5010 - Allow to preload subscription files (Closed)
Patch Set: diego's suggestions 2 Created March 30, 2017, 10:26 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 * WhitelistedDomainsSettingsFragment - whitelisted domains fragment 151 * WhitelistedDomainsSettingsFragment - whitelisted domains fragment
152 152
153 ### Usage 153 ### Usage
154 154
155 Create `AdblockEngine` instance with factory methods and `AdblockSettingsStorage ` instance. 155 Create `AdblockEngine` instance with factory methods and `AdblockSettingsStorage ` instance.
156 You can use `SharedPrefsStorage` implementation to store settings in `SharedPref erences`. 156 You can use `SharedPrefsStorage` implementation to store settings in `SharedPref erences`.
157 Or you can use AdblockHelper: 157 Or you can use AdblockHelper:
158 158
159 AdblockHelper.get().init(this, true, AdblockHelper.PREFERENCE_NAME); 159 AdblockHelper.get().init(this, true, AdblockHelper.PREFERENCE_NAME);
160 160
161 // optional - provide preloaded subscription files in app resoruces
162 AdblockHelper.get().preloadSubscriptions(AdblockHelper.PRELOAD_PREFERENCE_NA ME, map);
163
161 Implement the following interfaces in your settings activity: 164 Implement the following interfaces in your settings activity:
162 165
163 * `BaseSettingsFragment.Provider` 166 * `BaseSettingsFragment.Provider`
164 * `GeneralSettingsFragment.Listener` 167 * `GeneralSettingsFragment.Listener`
165 * `WhitelistedDomainsSettingsFragment.Listener` 168 * `WhitelistedDomainsSettingsFragment.Listener`
166 169
167 and return created instance or AdblockHelper instances: 170 and return created instance or AdblockHelper instances:
168 171
169 AdblockHelper.get().getEngine(); // engine 172 AdblockHelper.get().getEngine(); // engine
170 AdblockHelper.get().getStorage(); // storage 173 AdblockHelper.get().getStorage(); // storage
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 290
288 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo ry. 291 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo ry.
289 292
290 #### Building with Gradle 293 #### Building with Gradle
291 294
292 In the project root directory run: 295 In the project root directory run:
293 296
294 ./gradlew assemble 297 ./gradlew assemble
295 298
296 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs /apk/' directory. 299 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs /apk/' directory.
OLDNEW
« no previous file with comments | « no previous file | libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld