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. 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', ':CommonUtils' ...
project(':CommonUtils').projectDir = new File('./CommonUtils')
project(':aria2lib').projectDir = new File('./aria2lib')
- Add it as a dependency:
dependencies {
implementation project(':aria2lib')
...
}
This repository already includes the necessary executables to run aria2, but if you want to build them yourself with ./gradlew compileAria2 -Pforce
.
The task will simply delete the current executables (because of the force
flag) and execute the ./build_aria2c.sh <tag/commit/branch>
script.
If executing it directly, you have to specify a reference to devgianlu/aria2-android.