| LEFT | RIGHT |
| 1 Adblock Plus Library for Android | 1 Adblock Plus Library for Android |
| 2 ======================== | 2 ======================== |
| 3 | 3 |
| 4 An Android library project that runs a proxy to block ads. | 4 An Android library project that runs a proxy to block ads. |
| 5 | 5 |
| 6 Updating the dependencies | 6 Updating the dependencies |
| 7 ------------------------- | 7 ------------------------- |
| 8 | 8 |
| 9 Adblock Plus Library for Android has dependencies that aren't in this repository
. | 9 Adblock Plus Library for Android has dependencies that aren't in this repository
. |
| 10 To update those, call: | 10 To update those, call: |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 In the project root directory create the file _local.properties_ and set | 68 In the project root directory create the file _local.properties_ and set |
| 69 _sdk.dir_ and _ndk.dir_ to where you installed it, e.g.: | 69 _sdk.dir_ and _ndk.dir_ to where you installed it, e.g.: |
| 70 | 70 |
| 71 sdk.dir = /some/where/sdk | 71 sdk.dir = /some/where/sdk |
| 72 ndk.dir = /some/where/ndk | 72 ndk.dir = /some/where/ndk |
| 73 | 73 |
| 74 In the project root directory run: | 74 In the project root directory run: |
| 75 | 75 |
| 76 ./gradlew assembleDebug | 76 ./gradlew assembleDebug |
| 77 | 77 |
| 78 This will generate *.aar library artifact in 'libadblockplus-android/build/outpu
ts/aar/' directory. | 78 This will generate *.aar library artifact in the 'libadblockplus-android/build/o
utputs/aar/' directory. |
| 79 | 79 |
| 80 ## Library tests | 80 ## Library tests |
| 81 | 81 |
| 82 ### Requirements | 82 ### Requirements |
| 83 | 83 |
| 84 Make sure _Library_ requirements are present. | 84 Make sure _Library_ requirements are present. |
| 85 | 85 |
| 86 ### Building with Ant | 86 ### Building with Ant |
| 87 | 87 |
| 88 Set ANDROID_HOME environment variable to your Android SDK directory. | 88 Set ANDROID_HOME environment variable to your Android SDK directory. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 115 To run specific **test method** run: | 115 To run specific **test method** run: |
| 116 | 116 |
| 117 ant testOnly -DtestClass=full.test.class.name#testMethod | 117 ant testOnly -DtestClass=full.test.class.name#testMethod |
| 118 | 118 |
| 119 For example: | 119 For example: |
| 120 | 120 |
| 121 ant testOnly -DtestClass=org.adblockplus.libadblockplus.tests.NotificationTe
st#testAddNotification | 121 ant testOnly -DtestClass=org.adblockplus.libadblockplus.tests.NotificationTe
st#testAddNotification |
| 122 | 122 |
| 123 ### Building with Gradle/Android Studio | 123 ### Building with Gradle/Android Studio |
| 124 | 124 |
| 125 Make sure you've created _local.properties_ file to build the library (see above
). | 125 Make sure you've created the _local.properties_ file to build the library (see a
bove). |
| 126 In the project root directory run: | 126 In the project root directory run: |
| 127 | 127 |
| 128 ./gradlew assembleDebugAndroidTest | 128 ./gradlew assembleDebugAndroidTest |
| 129 | 129 |
| 130 This will generate *.apk in 'libadblockplus-android-tests/build/outputs/apk/' di
rectory. | 130 This will generate *.apk in the 'libadblockplus-android-tests/build/outputs/apk/
' directory. |
| 131 | 131 |
| 132 ### Testing with Gradle/Android Studio | 132 ### Testing with Gradle/Android Studio |
| 133 | 133 |
| 134 You can select test class/method and click 'Run ..Test'. The library and test ap
p will be | 134 You can select test class/method and click 'Run ..Test'. The library and test ap
p will be |
| 135 compiled, installed to emuator/device and launched automatically. | 135 compiled, installed to emulator/device and launched automatically. |
| LEFT | RIGHT |