My name is Umesh Singh and I was an...
Using Add-On Modules
In order to reduce the number of external dependencies on the application being tested, Robolectric’s shadows are split into various add-on packages. Only shadows for classes provided in the base Android SDK are provided by the main Robolectric module. Additional shadows for things like appcompat or the support library are provided by add-on modules. The table below lists the available add-on shadow packages:
|SDK Package||Robolectric Add-On Package|
The above artifact names are in use since Robolectric 3.5+. Robolectric 3.4.x drops
shadows- prefix from artifact names. Prior to 3.4, all artifact names are the same as latest, except that
org.robolectric:shadows-supportv4 was deprecated at Robolectric 4.8, and will be removed at Robolectric 4.9.