Created
June 24, 2014 18:02
-
-
Save kingargyle/6ae5e98b9091a1e3b299 to your computer and use it in GitHub Desktop.
Disable Google Analytics with Robolectric
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place this in the setup method for any test that is failing to keep it from trying to start | |
ShadowApplication shadowApplication = Robolectric.shadowOf(Robolectric.application); | |
shadowApplication.declareActionUnbindable("com.google.android.gms.analytics.service.START"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment