OkGo ProGuard rules

OkGo – is a library that based on the Http protocol, encapsulated OkHttp network request framework, easier to use than Retrofit, support RxJava, RxJava2, support for custom cache, support batch breakpoint download management and bulk upload management.

ProGuard configuration rules for OkGo

ProGuard optimizes the your code and and removes unused classes, fields and methods. ProGuard also optimizes the code, removes unused code instructions, and obfuscates the remaining classes, fields, and methods with short names. You have to set up a ProGuard configuration in your proguard-rules.pro file.

##################################### OkGo #####################################
#okhttp
-dontwarn okhttp3.**
-keep class okhttp3.**{*;}

#okio
-dontwarn okio.**
-keep class okio.**{*;}

#okgo
-dontwarn com.lzy.okgo.**
-keep class com.lzy.okgo.**{*;}

#okrx
-dontwarn com.lzy.okrx.**
-keep class com.lzy.okrx.**{*;}

#okrx2
-dontwarn com.lzy.okrx2.**
-keep class com.lzy.okrx2.**{*;}

#okserver
-dontwarn com.lzy.okserver.**
-keep class com.lzy.okserver.**{*;}

For more information about OkGo please see the website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules