Skip to content

Instantly share code, notes, and snippets.

Building Coinverse's Android app

AdamHurwitz AdamSHurwitz

Building Coinverse's Android app
View GitHub Profile
Zhuinden / ApplicationComponent.kt
Last active Mar 14, 2021
Dagger + ViewModel + SavedStateHandle
View ApplicationComponent.kt
@Component(modules = [AssistedInjectionModule::class])
interface ApplicationComponent {
fun mySavedStateViewModelFactory(): MySavedStateViewModel.Factory
kakai248 / Example.kt
Created Feb 24, 2020
Example on how to to inject SavedStateHandle into ViewModel's
View Example.kt
// ViewModel factory
inline fun <reified VM : ViewModel> ComponentActivity.viewModel(
noinline provider: (SavedStateHandle) -> VM
) = createLazyViewModel(
viewModelClass = VM::class,
savedStateRegistryOwnerProducer = { this },
viewModelStoreOwnerProducer = { this },
viewModelProvider = provider
cdmunoz /
Last active Feb 12, 2020
Carlos Daniel Muñoz and Android Community

Community Impact: Carlos Daniel Munoz Idarraga


Impact Description Total
Direct Impact Meetups, confs and talks +1.1k
Indirect Impact Articles, Stack overflow +135k
People Trained Workshops +60
CristinaSolana / gist:1885435
Created Feb 22, 2012
Keeping a fork up to date
View gist:1885435

1. Clone your fork:

git clone

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://
git fetch upstream