Closed deinlandel closed 4 years ago
Allow to use generic context without the need to hold reference to an activity
Added additional method Dexter.withContext(Context context). Method Dexter.withActivity(...) is retained for backwards compatibility.
I added test named testWithLooperAndAppContext to DexterTest. It uses application context to run the same scenario as testWithLooper
@Serchinastico Done!
There is a failing style check in Travis but I'll merge it and solve it in master directly. Thanks for your contribution!
:pushpin: References
:tophat: What is the goal?
Allow to use generic context without the need to hold reference to an activity
:memo: How is it being implemented?
Added additional method Dexter.withContext(Context context). Method Dexter.withActivity(...) is retained for backwards compatibility.
:robot: How can it be tested?
I added test named testWithLooperAndAppContext to DexterTest. It uses application context to run the same scenario as testWithLooper