├── .gitignore ├── LiveDataUtils ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── funnywolf │ │ └── livedatautils │ │ ├── AsEventBus.java │ │ ├── EventMediatorLiveData.java │ │ ├── EventMutableLiveData.java │ │ ├── LiveDataBus.java │ │ ├── LiveDataUtils.java │ │ ├── LiveEventObserver.java │ │ ├── ResponseUtils.java │ │ ├── Runner.kt │ │ ├── RxLiveData.java │ │ ├── StateData.java │ │ └── StateManager.kt │ └── res │ └── values │ └── strings.xml ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── example │ │ └── mvvmdemo │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── mvvmdemo │ │ │ ├── MainActivity.java │ │ │ ├── fragment │ │ │ ├── ActionFragment.java │ │ │ └── DisplayFragment.java │ │ │ ├── repositories │ │ │ └── RandomNumberRepository.java │ │ │ ├── utils │ │ │ └── RxUtils.java │ │ │ └── viewmodels │ │ │ └── RandomNumberViewModel.java │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── layout_fragment_action.xml │ │ └── layout_fragment_display.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── example │ └── mvvmdemo │ └── ExampleUnitTest.java ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/.gitignore -------------------------------------------------------------------------------- /LiveDataUtils/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /LiveDataUtils/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/build.gradle -------------------------------------------------------------------------------- /LiveDataUtils/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/proguard-rules.pro -------------------------------------------------------------------------------- /LiveDataUtils/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/AsEventBus.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/AsEventBus.java -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/EventMediatorLiveData.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/EventMediatorLiveData.java -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/EventMutableLiveData.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/EventMutableLiveData.java -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/LiveDataBus.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/LiveDataBus.java -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/LiveDataUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/LiveDataUtils.java -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/LiveEventObserver.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/LiveEventObserver.java -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/ResponseUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/ResponseUtils.java -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/Runner.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/Runner.kt -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/RxLiveData.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/RxLiveData.java -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/StateData.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/StateData.java -------------------------------------------------------------------------------- /LiveDataUtils/src/main/java/com/funnywolf/livedatautils/StateManager.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/java/com/funnywolf/livedatautils/StateManager.kt -------------------------------------------------------------------------------- /LiveDataUtils/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/LiveDataUtils/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/README.md -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/build.gradle -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/proguard-rules.pro -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/mvvmdemo/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/androidTest/java/com/example/mvvmdemo/ExampleInstrumentedTest.java -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /app/src/main/java/com/example/mvvmdemo/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/java/com/example/mvvmdemo/MainActivity.java -------------------------------------------------------------------------------- /app/src/main/java/com/example/mvvmdemo/fragment/ActionFragment.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/java/com/example/mvvmdemo/fragment/ActionFragment.java -------------------------------------------------------------------------------- /app/src/main/java/com/example/mvvmdemo/fragment/DisplayFragment.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/java/com/example/mvvmdemo/fragment/DisplayFragment.java -------------------------------------------------------------------------------- /app/src/main/java/com/example/mvvmdemo/repositories/RandomNumberRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/java/com/example/mvvmdemo/repositories/RandomNumberRepository.java -------------------------------------------------------------------------------- /app/src/main/java/com/example/mvvmdemo/utils/RxUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/java/com/example/mvvmdemo/utils/RxUtils.java -------------------------------------------------------------------------------- /app/src/main/java/com/example/mvvmdemo/viewmodels/RandomNumberViewModel.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/java/com/example/mvvmdemo/viewmodels/RandomNumberViewModel.java -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/drawable-v24/ic_launcher_foreground.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/drawable/ic_launcher_background.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/layout/activity_main.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_fragment_action.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/layout/layout_fragment_action.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_fragment_display.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/layout/layout_fragment_display.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/values/colors.xml -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /app/src/test/java/com/example/mvvmdemo/ExampleUnitTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/app/src/test/java/com/example/mvvmdemo/ExampleUnitTest.java -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funnywolfdadada/LiveDataUtils/HEAD/gradlew.bat -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':LiveDataUtils' 2 | --------------------------------------------------------------------------------