A basic app for me to track my expenses
-
AlertDialog's don’t seem to behave well with Robolectric and so any tests involving those should useandroidTest -
Entities in the UI layer and DB layer are suffixed with
UiandDbrespectively -
Instrumented tests are suffixed with
InstrumentedTest -
./datafor the main app files,./draftfor theAddDetailedTransactionscreen, under each of them,./imagesfor all images,./documentsfor all documents -
Tests that open other activities should use
androidTest: robolectric/robolectric#5104 -
For RxJava, generally,
subscribeOnshould be called in Repositories for consistency -
I did something similar to this to run uiautomatorviewer:
set swt_path=<appdatapath>Local\Android\Sdk\tools\lib\x86_64 "C:\Program Files\Java\jdk1.8.0_341\bin\java.exe" "-Djava.ext.dirs=..\lib\x86_64;..\lib" "-Dcom.android.uiautomator.bindir=<appdatapath>\Local\Android\Sdk\tools" -jar <appdatapath>\Local\Android\Sdk\tools\lib\uiautomatorviewer-26.0.0-dev.jar
-
Extend
AppCompatActivityto maintain the new app theme -
It seems that using
ActivityScenarioRulewon’t work with this project because it causes the Activity’sonCreateto be called before the database initialization method,tempInit