You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Uses [Jetpack Compose](https://developer.android.com/jetpack/compose) for UI
19
+
* Uses Kotlin [Coroutines](https://kotlinlang.org/docs/reference/coroutines/coroutines-guide.html) and [StateFlow](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/) for reactive state management
21
20
* Uses MVVM Architecture by [Architecture Components](https://developer.android.com/topic/libraries/architecture/). Room, ViewModel, Paging
22
21
* Uses [Hilt Android](https://developer.android.com/training/dependency-injection/hilt-android) with [Dagger](https://dagger.dev/) for dependency injection
22
+
* Uses [KSP](https://developer.android.com/build/migrate-to-ksp) for annotation processing
23
23
* Unit Testing by [Mockito](https://github.com/mockito/mockito)
24
24
* Tests Coroutines and architecture components like ViewModel
25
-
* UI Test by [Espresso](https://developer.android.com/training/testing/espresso) based on [Robot Pattern](https://academy.realm.io/posts/kau-jake-wharton-testing-robots/)
25
+
* UI Test by [Compose Testing](https://developer.android.com/jetpack/compose/testing)
26
26
* Uses [Kotlin Coroutines Test](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/) to unit test Kotlin Coroutines
27
-
* Uses [StateFlow](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/) as a replacement over LiveData as a state-holder observable
28
27
* Uses [Firebase Remote Config](https://firebase.google.com/products/remote-config) for experimentation and feature rollout
29
28
* Uses [Firebase App Distribution](https://firebase.google.com/products/app-distribution) for internal distribution and quality testing
30
-
31
-
## Further Reading
32
-
33
-
There are several articles written on this repository which state the design and architecture.
34
-
35
-
### Kotlin Everywhere. Coroutines, Tests, Robots and much more…
36
-
37
-
The TvFlix complete repository has been re-written in Kotlin with Coroutines covering
38
-
Unit Tests across ViewModels and UI tests for the app.
39
-
Know more:
40
-
[Kotlin Everywhere. Coroutines, Tests, Robots and much more…](https://proandroiddev.com/kotlin-everywhere-coroutines-tests-robots-and-much-more-b02030206cc9)
41
-
42
-
### MVVM using Android Architecture Components
43
-
44
-
The codebase tries to follow Uncle Bob Clean Code Architecture with [SOLID principles](https://en.wikipedia.org/wiki/SOLID).
45
-
Know more:
46
-
[Migration from MVP to MVVM using Android Architecture Components](https://medium.com/@kumarashwini/migration-from-mvp-to-mvvm-using-android-architecture-components-4bc058a1f73c)
47
-
48
-
### Pagination using Paging Library
49
-
50
-
The Shows screen displays the list of shows fetched from TvMaze API using [Paging3](https://developer.android.com/topic/libraries/architecture/paging/v3-overview) of Android Architecture Components. It also handles the retry if any network error occurred. Recently the repository has been [migrated to use Paging3](https://github.com/reactivedroid/TvFlix/pull/14).
51
-
Paging3 is in heavy development, and if you want to catch up with stable library(Paging 2), then check out this blog
52
-
[Pagination using Paging Library with RxJava and Dagger](https://medium.com/@kumarashwini/pagination-using-paging-library-with-rxjava-and-dagger-d9d05dbd8eac)
53
-
54
-
### Room Persistence Library
55
-
56
-
The Favourites screen displays the list of shows marked favourites from the Home screen. The user can add/remove from
57
-
the favorites as and when required. The implementation of the favorites is done using `Room` Persistence Library with RxJava and Dagger.
58
-
Know more:
59
-
[Room with RxJava and Dagger](https://medium.com/@kumarashwini/room-with-rxjava-and-dagger-2722f4420651)
60
-
61
-
### Static Code Analysis
62
-
63
-
TvFlix has Static Code Analysis tools like FindBugs, PMD and Checkstyle integrated. These tools help in finding potential bugs that would have been missed and help in making the codebase clean.
64
-
Know more:
65
-
[Static Code Analysis for Android Using FindBugs, PMD and CheckStyle](https://blog.mindorks.com/static-code-analysis-for-android-using-findbugs-pmd-and-checkstyle-3a2861834c6a)
29
+
* Uses [Paging3](https://developer.android.com/topic/libraries/architecture/paging/v3-overview) for paginated show listing
66
30
67
31
## Contributions
68
32
69
33
If you have found an issue in this sample, please file it.
70
34
Better yet, if you want to contribute to the repository, go ahead, any kind of patches are encouraged,
71
-
and may be submitted by forking this project and submitting a pull request.
35
+
and may be submitted by forking this project and submitting a pull request.
72
36
If you have something big in mind, or any architectural change, please raise an issue first to discuss it.
73
37
74
38
## License
@@ -93,4 +57,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
93
57
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
94
58
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0 commit comments