Is it possible to use the type "apklib" for an Ivy dependency?
In my project I'm using the ActionBarSherlock lib and I want to use Ivy for retrieving the dependency.
Here is my not working xml:
<dependency
name="actionbarsherlock"
conf="binaries"
org="com.actionbarsherlock"
rev="4.2.0"
transitive="true"
type="apklib" />
Thank you for your help!
In this case, all that's needed is a simple dependency declaration as follows:
Why? This Maven module is special, the Maven POM has been configured with a packaging set to the value "apklib". This means the module's main file is "actionbarsherlock-4.2.0.apklib" instead of the default .jar file.
What's confusing is that there is also a jar file published.......To retrieve this, you can add the special artifact tag:
To see all the files published by this module I'd recommend Maven search.
You can have for example in ivy.xml:
Then if you use ant, in build.xml you could have a target which prepares these "apklib" files for you:
Now you have src/, res/, etc of the library project in apklibs/action-bar-sherlock.
Here is a full build.xml example of how to build an APK of an Android app which depends on multiple Android library projects: