Skip to content

Instantly share code, notes, and snippets.

@Audhil
Last active July 27, 2019 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Audhil/b082f57b9887dbdb0ab2a93735047b5e to your computer and use it in GitHub Desktop.
Save Audhil/b082f57b9887dbdb0ab2a93735047b5e to your computer and use it in GitHub Desktop.
open class UiRunner : AndroidJUnitRunner() {
override fun onCreate(arguments: Bundle?) {
StrictMode.setThreadPolicy(StrictMode.ThreadPolicy.Builder().permitAll().build())
super.onCreate(arguments)
}
override fun newApplication(cl: ClassLoader?, className: String?, context: Context?): Application {
return super.newApplication(cl, UiGitHubDelegate::class.java.name, context)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment