Skip to content

Commit

Permalink
#57 refine the proguard settings. The TrieMap disappears as I think S…
Browse files Browse the repository at this point in the history
…cala selects implementations at runtime and I assume proguard can't predict that and removes stuff too aggressively. Similarly, http4s is doing something clever and out smarts proguard giving empty JSON for live connections (affecting the connections and log pages)
  • Loading branch information
tobyweston committed Apr 20, 2018
1 parent d1f49c1 commit e5912af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions proguard.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ proguardOptions in Proguard ++= Seq(
"-keep class bad.robot.** { *; }",
"-keep class org.apache.logging.** { *; }",
"-keep class org.slf4j.** { *; }",
"-keep class scala.collection.** { *; }", // the TreiMap (MapLike) will disappear without this
"-keep class org.http4s.** { *; }", // no connections/logs show up without this
// "-keep class cats.** { *; }",
// "-keep class shapeless.** { *; }",
// "-keep class scalaz.** { *; }",
// "-keep class fs2.io.** { *; }",
// "-keep class org.rrd4j.** { *; }",
// "-keep class io.circe.** { *; }",
// "-keep class scala.** { *; }",
// "-keep class ** { *; }",
"-keep class scala.Symbol { *; }",
"-keep enum ** { *; }",
"-keepclassmembers class * { ** MODULE$; }"
Expand Down

0 comments on commit e5912af

Please sign in to comment.