This is a sample app for browsing github using jetpack.
Write the github access token in local.properties
.
api_token=xxxxxxxxxxxx
- Kotlin
- Jetpack
- Modularization
- SingleActivity
- DarkTheme
- MVVM
- Kotlin Coroutines
- Lifecycle
- LiveData
- ViewModel
- DataBinding
- Navigation
- MotionLayout
- KTX
- Dagger2
- Retrofit
- Mockk
- KotlinTest
- AndroidJunit5
Day | Night |
---|---|
![]() |
![]() |
- app
- There are MainActivity class and Application class.
- The app module injects dependencies into each module.
- It holds AppComopnent and refers to Dagger's Module defined in each module.
- feature
- It is a module for each feature.
- There are Fragment, ViewModel and Adapter related to feature.
- component
- There are custom views and resources.
- BindingAdapter is also defined here.
- data
- There are classes related to repository and api.
- model
- There is business logic and Entity.
- coreandroid
- There is a class used for each feature.
- There are ViewModelFactory and Dagger's ViewModel scope.
- If circular reference occurs in each feature module, place an interface in this module and inject dependencies from the app to solve it.
- Linkage of Navigation and BottomNavigationView
- Fragment is regenerated each time you switch items
MIT License
Copyright (c) 2019 Keiju Matsumoto
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.