Simple app built on top of Dagger 2 & other best practices like MVVM, Navigation, RxJava, Room, Databinding, Offline Caching.
Same project is available on top of
Dagger Hilt
in this repository.
Splash | Home |
- Loads data from rest api
- Play Videos from youtube
- Android Studio Bumblebee | 2021.1.1 The latest version can be downloaded from here
- Build gradle 3.6.4
- Android SDK 32
- Kotlin Version 1.6.20
- Dagger 2
- RxJava
- RxAndroid
- RxKotlin
- Navigation
- ViewModel
- LiveData
- Data Binding
- RoomDB
- Retrofit
- OkHttp
- Glide
- Material Design
Go to the following link to download the app.
The app uses MVVM [Model-View-ViewModel] architecture to have a unidirectional flow of data, separation of concern and a lot more.
The following is a high level overview of relevant files and folders.
easyt3ch
└── dagger2
├── App.kt
├── core
│ ├── Constants.kt
│ ├── DataBindingAdapter.kt
│ └── base
│ ├── BaseActivity.kt
│ ├── BaseAdapter.kt
│ ├── BaseFragment.kt
│ ├── BaseViewHolder.kt
│ └── BaseViewModel.kt
├── db
│ ├── AppDatabase.kt
│ └── dao
│ └── HomeVideoDao.kt
├── di
│ ├── AppInjector.kt
│ ├── Injectable.kt
│ ├── ViewModelFactory.kt
│ ├── component
│ │ └── ApplicationComponent.kt
│ ├── key
│ │ ├── ActivityKey.kt
│ │ └── ViewModelKey.kt
│ ├── modules
│ │ ├── ActivityModule.kt
│ │ ├── ApplicationModule.kt
│ │ ├── DatabaseModule.kt
│ │ ├── FragmentBuildersModule.kt
│ │ ├── NetModule.kt
│ │ └── ViewModelModule.kt
│ └── scope
│ └── ActivityScope.kt
├── domain
│ ├── VideoPostApi.kt
│ ├── datasource
│ │ ├── HomeVideoLocalDataSource.kt
│ │ └── HomeVideoRemoteDataSource.kt
│ ├── model
│ │ ├── Image.kt
│ │ ├── Post.kt
│ │ ├── VideoDetails.kt
│ │ └── VideoList.kt
│ └── usecase
│ └── HomeVideoUseCase.kt
├── repos
│ ├── HomeVideoRepository.kt
│ └── NetworkBoundResource.kt
├── ui
│ ├── home
│ │ ├── HomeFragment.kt
│ │ ├── HomeViewModel.kt
│ │ ├── HomeViewState.kt
│ │ └── result
│ │ ├── PostResultAdapter.kt
│ │ └── PostResultViewModel.kt
│ ├── main
│ │ ├── MainActivity.kt
│ │ └── MainActivityViewModel.kt
│ └── splash
│ ├── SplashFragment.kt
│ └── SplashViewModel.kt
└── utils
├── AppDebugTree.kt
├── AppGlideModule.kt
├── ContextExt.kt
├── UseCaseLiveData.kt
├── callbacks
│ └── ActivityResultCallback.kt
├── domain
│ ├── RateLimiter.kt
│ ├── Resource.kt
│ └── Status.kt
└── extensions
├── GlideExt.kt
├── LiveDataExt.kt
└── ViewExt.kt
MIT License
Copyright (c) 2022 Shakil Ahmed Shaj
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.