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

Side by Side Diff: README.md

Issue 29646585: Issue 6213 - Configure building directory (Closed)
Patch Set: Created Dec. 21, 2017, 1:39 p.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 | build.gradle » ('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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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** 86 **Android permissions note**
87 87
88 An app that uses the library have to add the following permissions to `AndroidMa nifest.xml`: 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"/>` 89 * `<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>`
90 * `<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>` 90 * `<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>`
91 91
92 (added automatically if building with Gradle or should be added manually otherwi se). 92 (added automatically if building with Gradle or should be added manually otherwi se).
93 93
94 ### Build directory configuration
95
96 By default Gradle uses `build` directory to build modules, however it can be und esired
97 for some use cases like CI or building as Chromium submodule.
98 Set `GRADLE_BUILD_DIR` environment variable to configure build directory:
99
100 GRADLE_BUILD_DIR=/tmp ./gradlew clean assemble
101
102 Note
103
104 [Configuration] Building project in /tmp
105
106 output while building
107
94 ### Building with prebuilt shared V8 108 ### Building with prebuilt shared V8
95 109
96 This can be desired to use product's V8 (let's say Chromium) instead of built-in V8. 110 This can be desired to use product's V8 (let's say Chromium) instead of built-in V8.
97 Put prebuilt shared V8 library file(s) in ARCH directories and set `SHARED_V8_LI B_FILENAMES` 111 Put prebuilt shared V8 library file(s) in ARCH directories and set `SHARED_V8_LI B_FILENAMES`
98 environment variable before building. You can pass multiple filenames, separated with space. 112 environment variable before building. You can pass multiple filenames, separated with space.
99 Libadblockplus is required to be linked with that library file(s). 113 Libadblockplus is required to be linked with that library file(s).
100 114
101 For example (build with Gradle): 115 For example (build with Gradle):
102 116
103 SHARED_V8_LIB_FILENAMES=libv8.cr.so ./gradlew clean assemble 117 SHARED_V8_LIB_FILENAMES=libv8.cr.so ./gradlew clean assemble
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 338
325 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo ry. 339 This will generate *.apk in the 'libadblockplus-android-webviewapp/bin/' directo ry.
326 340
327 #### Building with Gradle 341 #### Building with Gradle
328 342
329 In the project root directory run: 343 In the project root directory run:
330 344
331 ./gradlew assemble 345 ./gradlew assemble
332 346
333 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs /apk/' directory. 347 This will generate *.apk in the 'libadblockplus-android-webviewapp/build/outputs /apk/' directory.
OLDNEW
« no previous file with comments | « no previous file | build.gradle » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld