NoHttp ProGuard rules

NoHttp – is an Android Http standard protocol framework to support the cache, proxy and redirect.

ProGuard rules for NoHttp

ProGuard detects and removes unused classes, and attributes, fields and methods. ProGuard obfuscates classes, fields, and methods with short names. You have to specify the next rules in your ProGuard proguard-rules.pro file.

#################################### NoHttp ####################################
-dontwarn com.yanzhenjie.nohttp.**
-keep class com.yanzhenjie.nohttp.**{*;}

Add the following rules if you use okhttp version.

#################################### NoHttp ####################################
-dontwarn com.yanzhenjie.nohttp.**
-keep class com.yanzhenjie.nohttp.**{*;}

// okhttp
-dontwarn okhttp3.**
-keep class okhttp3.** {*;} 
-dontwarn okio.**
-keep class okio.** {*;} 

For more information about NoHttp please see the website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules