Required tools:
- JDK 1.6
- Android SDK (with platforms 15, 19, 21 installed)
- IntelliJ IDEA 14.0+
- Maven
- Gradle
1. Firstly, make a clone of Anko repository:
git clone git@github.com:yanex/anko.git && cd anko
2. Then get all required dependencies (this could take minute or two):
ant -f update_dependencies.xml
3. Now it's time to open Anko project in IntelliJ IDEA (both Community and Ultimate editions are ok).
Execute a run configuration named Collect android.jar
and then Generate
.
🐧 |
ANDROID_HOME variable must be set before launching Collect android.jar .
|
4. After doing this a number of directories with generated sources must be present in workdir/gen
directory. You can build them all together by launching a build-jar.sh
script. Script publishes all Anko versions in the local Maven repository and creates a zip files in workdir/gen/zip
directory.