eclipse - How to use Akka project under Android -
i'm little bit desperate @ moment. i'm trying use akka project (written in scala) under android (in eclipse), whatever try, can't make work.
simplicity created 2 projects: 1 akka project, created using sbt eclipse , imported eclipse, , 1 standard android project using project creation wizard. can reference akka-code android code, @ runtime noclassdeffounderror
.
appreciate if point out i'm doing wrong or in general use akka project in android app.
i feel pain. spent hours trying sbt, proguard, scala, akka work, , recommend take @ project/build.scala here:
https://github.com/fehguy/swagger-for-the-home/tree/master/android
specifically proguard
options:
proguardoption in android := """ |-dontwarn scala.** |-keepclassmembers class * { | ** module$; |} |-keep class scala.collection.seqlike { | public protected *; |} |-keep public class * extends android.app.activity |-keep public class * extends android.app.application |-keep public class * extends android.app.service |-keep public class * extends android.content.broadcastreceiver |-keep public class * extends android.content.contentprovider |-keep public class * extends android.app.backup.backupagenthelper |-keep public class * extends android.preference.preference |-keep public class com.android.vending.licensing.ilicensingservice |-keep public class org.eatbacon.sfth.analogupdateactivity |-keep public class org.eatbacon.sfth.updatedatatask |-keep public class org.eatbacon.sfth.showchartactivity | |-keepclasseswithmembernames class * { | native <methods>; |} | |-keepclasseswithmembernames class * { | public <init>(android.content.context, android.util.attributeset); |} | |-keepclasseswithmembernames class * { | public <init>(android.content.context, android.util.attributeset, int); |} | |-keepclassmembers enum * { | public static **[] values(); | public static ** valueof(java.lang.string); |} | |-keep class * implements android.os.parcelable { | public static final android.os.parcelable$creator *; |} """.stripmargin
)
Comments
Post a Comment