Where i can find proguard setting for couchbase lite android?

when i was running with minifyenabled = true its not allowing me to build the application, is there any pro-guard setting we need to include in pro-guard-rules.text file.


Hi @rahul.a

Please refer following comment?


1 Like

it says build with minifyenabled flag as false but if it increase the apk
size, so any other solution ?

-keep public class com.couchbase.lite.** { *; }
-dontwarn com.couchbase.lite.**
-keep public class com.fasterxml.jackson.** { *; }
-dontwarn com.fasterxml.jackson.**

-keep class com.couchbase.touchdb.TDCollateJSON { ; }
-dontwarn com.couchbase.touchdb.TDCollateJSON.

-keep class com.couchbase.lite.*{ ; }
-dontwarn com.couchbase.lite.

-keep class com.couchbase.lite.util.*{ ; }
-dontwarn com.couchbase.lite.util.

-keep class com.couchbase.lite.store.*{ ; }
-dontwarn com.couchbase.lite.store.

-keep class com.couchbase.lite.Manager.*{ ; }
-dontwarn com.couchbase.lite.Manager.

-keep class com.couchbase.lite.Database.*{ ; }
-dontwarn com.couchbase.lite.Database.

-keep class com.couchbase.cbforest.*{ ; }
-dontwarn com.couchbase.cbforest.

-keep class couchbase.lite.listener.*{ ; }
-dontwarn couchbase.lite.listener.

-keep class Acme.Serve.Serve.*{ ; }
-dontwarn Acme.Serve.Serve.

-keep class Acme.Serve.SimpleAcceptor.*{ ; }
-dontwarn Acme.Serve.SimpleAcceptor.

-keep class com.couchbase.lite.listener.LiteServer.serve.*{ ; }
-dontwarn com.couchbase.lite.listener.LiteServer.serve.

-keep class Acme.Serve.*{ ; }
-dontwarn Acme.Serve.

These saved my life…many redundant but needed…

1 Like

Thanks for the advice. I tried your solution but it did not work for me. I had to turn off minifyEnabled property because of too many problems proguard related with cblite 2.6 while deploying. Hope other guys have better luck.

Anyone has the right proguard settings for android couchbase lite 2.7.x?