Revision 39d9ba19
ID | 39d9ba19ca493f130a4a3966365cd01717afbfe5 |
Parent | 7d600a1e |
Child | 6dc76c6d |
Testing setup with Spoon + Espresso
Note : There are two blocking issues together affecting all Android versions :/
Android 5 and Espresso:
https://code.google.com/p/android-test-kit/issues/detail?id=84
Below Android 5 a packaging issue exists with sqlcipher.
AndroidRuntime E FATAL EXCEPTION: main
E Process: org.storymaker.app, PID: 1135
E java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
E at net.sqlcipher.database.SQLiteDatabase.<init>(SQLiteDatabase.java:353)
E at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:901)
E at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:944)
E at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:107)
E at org.storymaker.app.db.ProjectsProvider.getDB(ProjectsProvider.java:138)
E at org.storymaker.app.db.ProjectsProvider.query(ProjectsProvider.java:172)
E at android.content.ContentProvider.query(ContentProvider.java:857)
E at android.content.ContentProvider$Transport.query(ContentProvider.java:200)
E at android.content.ContentResolver.query(ContentResolver.java:461)
E at android.content.ContentResolver.query(ContentResolver.java:404)
E at org.storymaker.app.model.AuthTable.getAuthsAsCursor(AuthTable.java:74)
E at org.storymaker.app.model.AuthTable.getAuthsAsList(AuthTable.java:87)
E at org.storymaker.app.model.AuthTable.getAuthDefault(AuthTable.java:164)
E at org.storymaker.app.server.ServerManager.hasCreds(ServerManager.java:78)
E at org.storymaker.app.BaseActivity.updateSlidingMenuWithUserState(BaseActivity.java:263)
E at org.storymaker.app.BaseActivity.setupDrawerLayout(BaseActivity.java:96)
E at org.storymaker.app.BaseActivity.setContentView(BaseActivity.java:314)
E at org.storymaker.app.HomeActivity.onCreate(HomeActivity.java:86)
E at android.app.Activity.performCreate(Activity.java:5231)
E at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E at com.google.android.apps.common.testing.testrunner.GoogleInstrumentation.callActivityOnCreate(GoogleInstrumentation.java:428)
E at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
E at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E at android.app.ActivityThread.access$800(ActivityThread.java:135)
E at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E at android.os.Handler.dispatchMessage(Handler.java:102)
E at android.os.Looper.loop(Looper.java:136)
E at android.app.ActivityThread.main(ActivityThread.java:5017)
E at java.lang.reflect.Method.invokeNative(Native Method)
E at java.lang.reflect.Method.invoke(Method.java:515)
E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E at dalvik.system.NativeStart.main(Native Method)
To resolve the above we may have to create a script to auto-generate modified class files which don't use the sqlcipher imports
Files
- added
- modified
- copied
- renamed
- deleted