android - Understand OkHttp publicsuffixes.gz -
i'm doing small android application, apk has 382kb, , i'm using okhttp, looking inside apk, okhttp inserts file publicsuffixes.gz has 33kb (8~9% of total apk size).
if exclude file follow code application crashes, necessary, question is, function of file , possible replace or modify reduce size?
the exclude code:
android { ... packagingoptions { exclude "publicsuffixes.gz" } }
firstly, shouldn't fail if don't configure client support cookies. can provide stacktrace of failing?
if need cookies don't care security (yolo!) suspect hack modifying https://github.com/square/okhttp/blob/9bfe575960af8e7bb164642f2f513b5ccb39ff4f/okhttp/src/test/java/okhttp3/internal/publicsuffix/publicsuffixlistgenerator.java
to have empty file. seems bad idea, caveat emptor. break security around cookie handling, may or may not acceptable you.
Comments
Post a Comment