I’m building my first Android app and its nearly ready for release. One thing I’m still stumped on is the best way to release multiple versions of the same application. Android – multiple custom versions of the same app is a getting a bit old now and I’m wondering if the new tooling released by Google (r14) offers any new solutions. The latest Android Developer’s blog post (Changes to Library Projects in Android SDK Tools, r14) suggests that there are new ways of handling libraries. I’m not knowledge enough about libraries to understand if this presents a new solution. If so, is it a big effort to convert an app that wasn’t built with libraries in mind? Thanks!
Share
Not particularly. As the SO answer you linked to indicated, Android library projects are the preferred solution. Android library projects are getting increasingly sophisticated.
That is a bit difficult to answer in the abstract. It’s very much like asking: how difficult is it to take a monolithic Java app and create a JAR out of part of it? It all depends on what your code base looks like and whether or not there is a clean separation between components.
You did not indicate what you mean by “multiple versions of the same application”, and so it is even more difficult to tell you whether Android library projects will help you with whatever “multiple versions of the same application” means to you. To me, “multiple versions of the same application” means v0.1, v0.2, v0.3, in which case you don’t need Android library projects — that’s just
android:versionCodeandandroid:versionNamein the manifest.