OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 ------------------- | 38 ------------------- |
39 | 39 |
40 ### Requirements | 40 ### Requirements |
41 | 41 |
42 All 'Building with Ant' requirements and additional requirements: | 42 All 'Building with Ant' requirements and additional requirements: |
43 | 43 |
44 * [Maven](https://maven.apache.org) | 44 * [Maven](https://maven.apache.org) |
45 | 45 |
46 ### Building | 46 ### Building |
47 | 47 |
| 48 Go to android sdk directory '/platforms/android-19' and run: |
| 49 |
| 50 mvn install:install-file -Dfile=./android.jar -DgroupId=com.google.android -
DartifactId=android -Dversion=4.4 -Dpackaging=jar -DgeneratePom=true |
| 51 |
48 Set environment variable ANDROID_HOME to your Android SDK directory or pass it i
n command-line (below). | 52 Set environment variable ANDROID_HOME to your Android SDK directory or pass it i
n command-line (below). |
49 In the 'libadblockplus-android' directory run: | 53 In the 'libadblockplus-android' directory run: |
50 | 54 |
51 mvn clean install [-Dandroid.sdk.path=/some/where/sdk] | 55 mvn clean install [-Dandroid.sdk.path=/some/where/sdk] |
52 | 56 |
53 This will generate *.aar library artifact in the 'target' directory. | 57 This will generate *.aar library artifact in the 'target' directory. |
54 | 58 |
55 Building with Gradle/Android Studio | 59 Building with Gradle/Android Studio |
56 ----------------------------------- | 60 ----------------------------------- |
57 | 61 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 In the project root directory run: | 130 In the project root directory run: |
127 | 131 |
128 ./gradlew assembleDebugAndroidTest | 132 ./gradlew assembleDebugAndroidTest |
129 | 133 |
130 This will generate *.apk in 'libadblockplus-android-tests/build/outputs/apk/' di
rectory. | 134 This will generate *.apk in 'libadblockplus-android-tests/build/outputs/apk/' di
rectory. |
131 | 135 |
132 ### Testing with Gradle/Android Studio | 136 ### Testing with Gradle/Android Studio |
133 | 137 |
134 You can select test class/method and click 'Run ..Test'. The library and test ap
p will be | 138 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. | 139 compiled, installed to emuator/device and launched automatically. |
OLD | NEW |