After reading the comment about the bonus, I realized that the OP is really asking for something more than a simple “Yes / No” answer, so I'm going to extend my comment to the answer. Generally speaking, a properly developed proguard.cfg and project structure are sufficient to prevent this dilemma.
proguard (. 7. Android ) , Android , Activity, View .. . , , Acticity.onCreate(), , , . , proguard.cfg .
... ...
-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.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}
... ...
, Android Android ( ), .. , POJO, Android API, , POJO - , . junit POJO java, junit maven (, zipaligned). , OO POJO , .. .
app/
src/main/java/
src/test/java/ <-- intermediate POJO tests put here.
AndroidManifest.xml
... ...
app-test/
src/main/java <-- Android component tests put here.
AndroidManifest.xml
... ...
POJO junit Android, , apk, proguard.cfg POJO , .