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

Side by Side Diff: README.md

Issue 29375826: Issue 4903 - Allow to specify file system root (Closed)
Patch Set: updated README Created March 13, 2017, 9: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
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 Library for Android has dependencies that aren't in this repository . 8 Adblock Plus Library for Android has dependencies that aren't in this repository .
9 To update those, call: 9 To update those, call:
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 You can find adblock fragments in the 'libadblockplus-android-settings' director y: 142 You can find adblock fragments in the 'libadblockplus-android-settings' director y:
143 * GeneralSettingsFragment - main fragment 143 * GeneralSettingsFragment - main fragment
144 * WhitelistedDomainsSettingsFragment - whitelisted domains fragment 144 * WhitelistedDomainsSettingsFragment - whitelisted domains fragment
145 145
146 ### Usage 146 ### Usage
147 147
148 Create `AdblockEngine` instance with factory methods and `AdblockSettingsStorage ` instance. 148 Create `AdblockEngine` instance with factory methods and `AdblockSettingsStorage ` instance.
149 You can use `SharedPrefsStorage` implementation to store settings in `SharedPref erences`. 149 You can use `SharedPrefsStorage` implementation to store settings in `SharedPref erences`.
150 Or you can use AdblockHelper: 150 Or you can use AdblockHelper:
151 151
152 AdblockHelper.get().init(this, true, AdblockHelper.PREFERENCE_NAME); 152 AdblockHelper.get().init(this, getFilesDir().getAbsolutePath(), true, Adbloc kHelper.PREFERENCE_NAME);
153 153
154 Implement the following interfaces in your settings activity: 154 Implement the following interfaces in your settings activity:
155 155
156 * `BaseSettingsFragment.Provider` 156 * `BaseSettingsFragment.Provider`
157 * `GeneralSettingsFragment.Listener` 157 * `GeneralSettingsFragment.Listener`
158 * `WhitelistedDomainsSettingsFragment.Listener` 158 * `WhitelistedDomainsSettingsFragment.Listener`
159 159
160 and return created instance or AdblockHelper instances: 160 and return created instance or AdblockHelper instances:
161 161
162 AdblockHelper.get().getEngine(); // engine 162 AdblockHelper.get().getEngine(); // engine
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo ry. 311 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo ry.
312 312
313 #### Building with Gradle 313 #### Building with Gradle
314 314
315 In the project root directory run: 315 In the project root directory run:
316 316
317 ./gradlew assemble 317 ./gradlew assemble
318 318
319 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs /apk/' directory. 319 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs /apk/' directory.
OLDNEW

Powered by Google App Engine
This is Rietveld