-
Notifications
You must be signed in to change notification settings - Fork 777
Home
Jacksgong edited this page Apr 27, 2018
·
15 revisions
Welcome to the okdownload wiki!
In fact, OkDownload is FileDownloader2 which extends all preponderance from FileDownloader and beyond.
If you import component library it would be enabled by default, such as you import
okhttp
withimplementation "com.liulishuo.okdownload.okhttp:1.0.1"
on the gradle file, then okdownload will find it and enable okhttp as default for okdownload.
// core
com.liulishuo.okdownload:okdownload:{latest_version}
// provide sqlite to store breakpoints
com.liulishuo.okdownload:sqlite:{latest_version}
// provide okhttp to connect to backend
// and then please import okhttp dependencies by yourself
com.liulishuo.okdownload:okhttp:{latest_version}
Snapshots of the development version are available in Sonatype's snapshots
repository, you can include on your gradle project through:
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
// core
com.liulishuo.okdownload:okdownload:1.0.3-SNAPSHOT
// provide sqlite to store breakpoints
com.liulishuo.okdownload:sqlite:1.0.3-SNAPSHOT
// provide okhttp to connect to backend
com.liulishuo.okdownload:okhttp:1.0.3-SNAPSHOT