I'm publishing my first library for Android.
Most of the guides and tutorials out there show how to publish the library as AAR
, but I came to wonder whether I need to do it this way if I don't have manifest entries, resources, etc.
My library has just two dependencies on Android SDK: android.os.Handler
and android.os.Looper
.
In this situation, can I publish it as JAR
, or the moment I have dependencies on Android I must use AAR
?
You can publish your library as JAR, if you don't need to include resources or manifest.
If your library has additional dependencies (not included in Android), then specify it in POM file