This file contains hidden or 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
@Test | |
fun `hot observable to single with firstOrError`() { | |
val observable = Observable.fromIterable<Int>((1..5).toList()) | |
.doOnNext { println("Source observable emitting $it") } | |
.publish() | |
val single = observable.firstOrError() | |
.doOnSuccess { println("Single succeeded with value: $it") } | |
val testObserver = single.test() |
This file contains hidden or 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
Source observable emitting 1 | |
Single succeeded with value: 1 |
This file contains hidden or 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
@Test | |
fun `observable to single with firstOrError`() { | |
val observable = Observable.fromIterable<Int>((1..5).toList()) | |
.doOnNext { println("Source observable emitting $it") } | |
val single = observable.firstOrError() | |
.doOnSuccess { println("Single succeeded with value: $it") } | |
val testObserver = single.test().await() |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="FlavorTheme" parent="FlavorThemeCompat.V27" /> | |
<style name="FlavorThemeCompat.V27" parent="FlavorThemeCompat.V23"> | |
<item name="android:windowLightNavigationBar">true</item> | |
<item name="android:navigationBarColor">@color/flavorPrimaryDarkColor</item> | |
</style> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="FlavorTheme" parent="FlavorThemeCompat.V23" /> | |
<style name="FlavorThemeCompat.V23"> | |
<item name="android:windowLightStatusBar">true</item> | |
</style> | |
</resources> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="FlavorTheme" parent="FlavorThemeCompat"> | |
<!-- this should be empty, just a reference to FlavorThemeCompat --> | |
<style/> | |
<style name="FlavorThemeCompat" parent="@style/Theme.AppCompat.Light"> | |
<!-- Add any common attributes for all versions here --> | |
</style> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="flavorPrimaryDarkColor">#eeeeee</color> | |
</resources> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="flavorPrimaryColor">@android:color/white</color> | |
<color name="flavorPrimaryDarkColor">#cccccc</color> | |
<color name="flavorAccentColor">#E64A19</color> | |
</resources> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="flavorPrimaryColor">@android:color/white</color> | |
<color name="flavorPrimaryDarkColor">#eeeeee</color> | |
<color name="flavorAccentColor">#E64A19</color> | |
</resources> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="flavorPrimaryColor">#37474F</color> | |
<color name="flavorPrimaryDarkColor">#212121</color> | |
<color name="flavorAccentColor">#673AB7</color> | |
</resources> |