If you're just looking to install WordPress for Android, you can find it on Google Play. If you're a developer wanting to contribute, read on.
The gradle build system will fetch all dependencies and generate files you need to build the project. You first need to generate the local.properties file and create the gradle.properties file, the easiest way is to copy our example:
$ android update project -p . --target android-14 # generate or update local.properties
$ cp gradle.properties-example gradle.properties
Note: generated build.xml
, proguard-project.txt
and project.properties
are not used and can be deleted.
After this step, you can invoke gradle to build, install and test the project:
$ ./gradlew assembleDebug # assemble the debug .apk
$ ./gradlew installDebug # assemble and install the debug .apk if you
# have an emulator or an Android device connected
$ ./gradlew cAT # assemble, install and run unit tests
Note: you can use the Android Studio IDE, import the project as a Gradle project.
Say hello on our IRC channel: #WordPress-Mobile
(freenode). Read our
Developer Handbook and Development Blog.