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

Delta Between Two Patch Sets: README.md

Issue 29375826: Issue 4903 - Allow to specify file system root (Closed)
Left Patch Set: Created Feb. 16, 2017, 11:41 a.m.
Right Patch Set: removed init(), added doc Created March 17, 2017, 7:36 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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.
LEFTRIGHT

Powered by Google App Engine
This is Rietveld