Created
October 28, 2017 11:20
-
-
Save kubode/2ced300175a7c2418370a28309c39c0e to your computer and use it in GitHub Desktop.
InstrumentationTestでRxIdlerを使おうとしたがダメだった ref: http://qiita.com/kubode/items/7cfc0767dcc560498725
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
android { | |
buildTypes { | |
release { | |
multiDexKeepProguard 'multidex-config.pro' | |
... | |
} | |
} | |
} |
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
'com.android.tools.build:gradle:3.0.0' | |
'com.android.support.test.espresso:espresso-core:3.0.1' | |
'com.android.support.test:runner:1.0.1' | |
'com.squareup.rx.idler:rx1-idler:0.9.0' |
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
class MyTestRunner : AndroidJUnitRunner() { | |
override fun onStart() { | |
RxJavaPlugins.getInstance().registerSchedulersHook(RxIdler.hooks()) | |
super.onStart() | |
} | |
} |
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
-keep class rx.functions.Action0 | |
-keep class rx.plugins.RxJavaPlugins | |
-keep class com.squareup.rx.idler.RxIdler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment