This is a small module (Android library only) that allows to download and manage an aria2 executable. It is used in Aria2Android and Aria2App.
This also depends on CommonUtils and MaterialPreferences. You can find how to include it there, but it is pretty similar to what comes below.
- Add as Git submodule in your project (
git submodule add https://github.com/devgianlu/aria2lib
) - Add the Gradle module to your
settings.gradle
:
include ':aria2lib', ':MaterialPreferences', ':LovelyMaterialPreferences', ...
project(':MaterialPreferences').projectDir = new File('./MaterialPreferences/library')
project(':LovelyMaterialPreferences').projectDir = new File('./MaterialPreferences/lovelyinput')
project(':aria2lib').projectDir = new File('./aria2lib')
- Add it as a dependency:
dependencies {
api project(':aria2lib')
...
}