Skip to content

Proguard

Jacksgong edited this page Apr 8, 2018 · 7 revisions

If you only use com.liulishuo.okdownload:okdownload

there aren't any proguard rules required.

If you are using com.liulishuo.okdownload:okhttp and okhttp3

First of all, please don't forget to add okhttp proguard rules first, and then add following proguard rules:

-keepnames class com.liulishuo.okdownload.core.connection.DownloadOkHttp3Connection

If you are using com.liulishuo.okdownload:sqlite

Please add following proguard rules:

-keep class com.liulishuo.okdownload.core.breakpoint.BreakpointStoreOnSQLite {
        public com.liulishuo.okdownload.core.breakpoint.DownloadStore createRemitSelf();
        public com.liulishuo.okdownload.core.breakpoint.BreakpointStoreOnSQLite(android.content.Context);
}

P.S. We provide sample on sample project with its proguard rules

Clone this wiki locally