I want to use a library in my android app but want this library to be optional to the users.
To make it optional, I want to distribute the library separate from the apk. So that:
Users who intend to use this option can download the lib from within the app
And those who don't wish to use this get a smaller apk file.
I want to ask, Is it possible to distribute a library separately from the apk?.
I've seen some games downloading files after their installation. So, I feel this might be achievable but don't know how to achieve this.
Note: Please keep in mind the following:
The classes or methods would only be used in case the library has been downloaded by the user and would not be used in the other case.
Do not confuse distribution of library with distribution of resources. So please keep in mind that I want to separately distribute a library and not resources.