如何使用lift-json配置proguard以保持案例类的使用?

时间:2013-01-29 02:04:52

标签: android json scala lift proguard

我想在Android上使用lift-json来处理JSON对象。

以下代码:

case class Msg(a:Int, s:Int)

implicit val formats = DefaultFormats
val msg = Msg(1, 1)
val jv = Extraction.decompose(m)
println(compact(render(jv))) // this print {}

我的proguard配置是:

"-dontoptimize",
"-printseeds keep.log", "-printmapping obf.log",
"-keepparameternames",
"-dontskipnonpubliclibraryclasses",
"-dontskipnonpubliclibraryclassmembers",
"-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod",
"-dontobfuscate",
"-keepclassmembers class * { ** MODULE$; }",
"-keep public class scala.ScalaObject",
"-keep public class scala.Function*",
"-keep public class scala.Tuple2",
"-keep public class scala.Tuple4",
"-keep class my.pkg.**",
"-keep interface my.pkg.**",
"-keepclasseswithmembers class my.pkg.** { *; }"

我需要使用lift-json lib保留哪些元素?

0 个答案:

没有答案