Couchbase lite and proguard

373 views
Skip to first unread message

Geoffrey Marizy

unread,
Oct 31, 2014, 6:09:40 PM10/31/14
to mobile-c...@googlegroups.com
Hi,

Couchbase mobile for android didn't worked out of the box with Proguard for me. The doc advice here to disable it and I didn't find a lot about this topic, except this. I empirically get those rules, which may interest some :
-keepnames class org.codehaus.jackson.** { *; }
-dontwarn org.codehaus.jackson.map.ext.**

-keep class com.couchbase.touchdb.TDCollateJSON { *; }
-keep class com.couchbase.lite.android.AndroidLogger { *; }
-keep class com.couchbase.lite.android.AndroidSQLiteStorageEngine { *; }

Does someone have a bullet-proof Proguard config ?

Jeff

Traun Leyden

unread,
Nov 4, 2014, 1:32:28 PM11/4/14
to mobile-c...@googlegroups.com
Are you saying you cannot (or don't want to) disable Proguard?

I remember when Google enabled Proguard by default at some point, I spent a chunk of time writing a Proguard file that would work with Couchbase Lite.  I don't remember if I ever got it fully working, but I think I discovered the ability to disable Proguard completely, and so I threw away what I had come up with.

Did your Proguard config work for you, and you are just looking to enhance it?  Or did you get errors?
 

--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/7fa4a4fb-5e29-4ad6-a3f4-7278b2bc163b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Geoffrey Marizy

unread,
Nov 5, 2014, 4:46:33 PM11/5/14
to mobile-c...@googlegroups.com
It's work for me, and wanted to share. I was also curious to know if it could be improved.

Jeff
Reply all
Reply to author
Forward
0 new messages