README fixes

* Don't suggest assembleDebug for building
* Use connectedCheck for tests like the CI
* Don't split links for readability
This commit is contained in:
Daniel Martí 2015-09-03 17:07:55 -07:00
parent 9106fb1321
commit 6821254aeb

View File

@ -9,8 +9,8 @@ for Android.
Building with Gradle Building with Gradle
-------------------- --------------------
The only required tools are the [Android The only required tools are the [Android SDK](http://developer.android.com/sdk/index.html)
SDK](http://developer.android.com/sdk/index.html) and Gradle. and Gradle.
You should use a relatively new version of Gradle, such as 2.4, or use the You should use a relatively new version of Gradle, such as 2.4, or use the
gradle wrapper. gradle wrapper.
@ -23,7 +23,7 @@ Once you have checked out the version you wish to build, run:
If you would like to build from source, add `-PsourceDeps`: If you would like to build from source, add `-PsourceDeps`:
cd F-Droid cd F-Droid
gradle assembleDebug -PsourceDeps gradle assembleRelease -PsourceDeps
The resulting apk will be in `build/outputs/apk/`. The resulting apk will be in `build/outputs/apk/`.
@ -75,13 +75,12 @@ In order to run the F-Droid test suite, you will need to have either a real devi
connected via `adb`, or an emulator running. Then, execute the following from the connected via `adb`, or an emulator running. Then, execute the following from the
command line: command line:
gradle connectedAndroidTest gradle connectedCheck
This will build and install F-Droid and the test apk, then execute the entire This will build and install F-Droid and the test apk, then execute the entire
test suite on the device or emulator. test suite on the device or emulator.
See the [Android Gradle user See the [Android Gradle user guide](http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Testing)
guide](http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Testing)
for more details, including how to use Android Studio to run tests (which for more details, including how to use Android Studio to run tests (which
provides more useful feedback than the command line). provides more useful feedback than the command line).