satorufujiwara / Kotlin Architecture Components
This is a sample app that uses Android Architecture Components with Kotlin and Dagger 2.
Stars: ✭ 296
Programming Languages
kotlin
9241 projects
Projects that are alternatives of or similar to Kotlin Architecture Components
Star Wars Shop
Simple project with clean architecture and android lifecycle
Stars: ✭ 37 (-87.5%)
Mutual labels: architecture-components, dagger
Androidkotlincomponents
Boilerplates for Android Components Architecture with Rx, Dagger & Realm written in Kotlin
Stars: ✭ 79 (-73.31%)
Mutual labels: architecture-components, dagger
Catchup
An app for catching up on things.
Stars: ✭ 1,690 (+470.95%)
Mutual labels: architecture-components, dagger
TheMovieDB
TheMovieDB is an android app based on TMDB api.
Stars: ✭ 16 (-94.59%)
Mutual labels: architecture-components
Cardme
Don't be constantly asking for card numbers from friends, just store them!
Stars: ✭ 19 (-93.58%)
Mutual labels: architecture-components
mvp with dagger
How presenters survive Activity recreations on configuration changes with Dagger2
Stars: ✭ 29 (-90.2%)
Mutual labels: dagger
Kotlin Android Mvvm Starter
Android Kotlin Starter is a starter project which implements MVVM Pattern.
Stars: ✭ 276 (-6.76%)
Mutual labels: architecture-components
data aggregation
This repository contains the code for the CVPR 2020 paper "Exploring Data Aggregation in Policy Learning for Vision-based Urban Autonomous Driving"
Stars: ✭ 26 (-91.22%)
Mutual labels: dagger
Dagger Browser
Simple tool for browsing Dagger graphs generated via an SPI plugin
Stars: ✭ 256 (-13.51%)
Mutual labels: dagger
LifecycleCells
An Android library that provides a Lifecycle to any ViewHolder through the implementation of the LifecycleOwner interface, allowing it to interact with a Lifecycle-Aware Component.
Stars: ✭ 19 (-93.58%)
Mutual labels: architecture-components
dagger-track
Gradle plugin to add clock trackings to your dagger components and subcomponents
Stars: ✭ 59 (-80.07%)
Mutual labels: dagger
ProxerAndroid
The official Android App of Proxer.Me
Stars: ✭ 105 (-64.53%)
Mutual labels: architecture-components
AndroidMVPArchitecture
Android MVP architecture sample project with or without RxJava and Dagger2 and Kotlin
Stars: ✭ 78 (-73.65%)
Mutual labels: dagger
Architecturecomponentsdemo
Kotlin demo project that uses some Android Architecture Components (ViewModel and LiveData) with Dagger 2 and Coroutines
Stars: ✭ 269 (-9.12%)
Mutual labels: architecture-components
Paging-3-Sample
This app is created as a sample app which loads movies from Tmdb api and uses Paging 3 library to show it in a Recycler view.
Stars: ✭ 96 (-67.57%)
Mutual labels: architecture-components
Daggerandroidmvvm
Demonstrates using Dagger 2.11+ in MVVM app with Android Architecture Components, Clean Architecture, RxJava
Stars: ✭ 255 (-13.85%)
Mutual labels: architecture-components
paybill-manager
Your personal finance manager
Stars: ✭ 46 (-84.46%)
Mutual labels: architecture-components
ReactiveLiveData
Transformation functions for LiveData
Stars: ✭ 80 (-72.97%)
Mutual labels: architecture-components
searchi
Demo of PagedListAdapter, PageKeyedDataSource, LiveData, ViewModel in Kotlin
Stars: ✭ 13 (-95.61%)
Mutual labels: dagger
kotlin-architecture-components
This is a sample app that uses Android Architecture Components with Kotlin and Dagger 2.
Architecture Components
Architecture Components version is 1.1.*
Kotlin
Kotlin version is 1.2.*
Dagger2
Dagger version is 2.15.*
Using dagger.android.
Other Libraries
- DataBinding - https://developer.android.com/topic/libraries/data-binding/index.html
- OkHttp - http://square.github.io/okhttp
- Retrofit - http://square.github.io/retrofit
- Moshi - https://medium.com/square-corner-blog/kotlins-a-great-language-for-json-fcd6ef99256b
- Glide - https://github.com/bumptech/glide
- RxJava - https://github.com/ReactiveX/RxJava
- RxAndroid - https://github.com/ReactiveX/RxAndroid
- Timber - http://github.com/JakeWharton/timber
Tips
Multibinding
To use Multibinding for ViewModel's injection like this,
use @JvmSuppressWildcards
for inject creators
.
class ViewModelFactory @Inject
constructor(private val creators: Map<Class<out ViewModel>, @JvmSuppressWildcards Provider<ViewModel>>)
: ViewModelProvider.Factory {
Here is all code.
DataBinding
To use DataBinding with Kotlin, use com.android.databinding:compiler
like below.
dependencies {
kapt 'com.android.databinding:compiler:3.0.0'
}
Thanks
- Android Architecture Components samples - https://github.com/googlesamples/android-architecture-components
License
Copyright 2017 Satoru Fujiwara
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].