# viewModelFactory **Repository Path**: chen-chen/viewModelFactory ## Basic Information - **Project Name**: viewModelFactory - **Description**: viewModelFactory - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-03-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # viewModelFactory [![](https://jitpack.io/v/com.gitee.chen-chen/viewModelFactory.svg)](https://jitpack.io/#com.gitee.chen-chen/viewModelFactory) ### 通过依赖注入,自动生成viewModelFactory,去除 viewmodel 手动生成代码的不便 #### 使用方法: 继承 android.arch.lifecycle.AndroidViewModel,添加类 注解 @BindViewModel #### implementation "com.gitee.chen-chen.viewModelFactory:viewModelAnnotation:$lastVersion" #### annotationProcessor "com.gitee.chen-chen.viewModelFactory:viewModelCompiler:$lastVersion"