Keep annotated class in Proguard
ProGuard is based on a java-like configuration with wild-cards. It does require fully qualified class names. This should work: -keep @com.google.inject.Singleton public class *
ProGuard is based on a java-like configuration with wild-cards. It does require fully qualified class names. This should work: -keep @com.google.inject.Singleton public class *
The Android platform provides a common set of design patterns, and with the limited hardware resources you get compared to Web-apps it is still often best to stick with using these directly in production code. There are other frameworks that sort of “wrap” the base platform; these are worth looking into if you have a … Read more
I am running robolectric-2.0-alpha-3. What worked for me was to set in the setUp method of my test the stream to stdout Something like: @Before public void setUp() throws Exception { ShadowLog.stream = System.out; //you other setup here } With this version of robolectric I had no success doing the same (ShadowLog.stream = System.out) in … Read more
Unfortunately, if there’s an issue with the setup steps for RoboGuice & unit testing, you can get this sort of error. No magic short answer, but rather a set of steps to follow exactly. BTW, you’re using RoboGuice 1.1 – AbstractAndroidModule & RoboUnitTest no longer exist in RoboGuice 2.0. RoboGuice 1.1 is deprecated, so best … Read more