{"id":21264811,"url":"https://github.com/hegaojian/mvvmhelper","last_synced_at":"2025-04-05T06:08:00.059Z","repository":{"id":107802652,"uuid":"318128798","full_name":"hegaojian/MvvmHelper","owner":"hegaojian","description":":chicken::basketball:这是一个快速开发的框架，Kotlin语言开发，MVVM+Jetpack架构，封装了公共头部、界面状态管理、ViewModel、LiveData、DataBinding、ViewBinding头部刷新、加载更多、沉浸式、全局通知、丰富好用的拓展函数、RxHttp网络请求等等一系列工具","archived":false,"fork":false,"pushed_at":"2024-01-15T07:35:30.000Z","size":777,"stargazers_count":444,"open_issues_count":4,"forks_count":63,"subscribers_count":8,"default_branch":"modular","last_synced_at":"2025-03-29T05:07:46.801Z","etag":null,"topics":["android","android-library","databinding","kotlin","mvvm","rxhttp","viewbinding"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hegaojian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-03T08:42:45.000Z","updated_at":"2025-03-15T10:52:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"924ca5ae-7eeb-474a-ad88-50d880c5f886","html_url":"https://github.com/hegaojian/MvvmHelper","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hegaojian%2FMvvmHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hegaojian%2FMvvmHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hegaojian%2FMvvmHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hegaojian%2FMvvmHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hegaojian","download_url":"https://codeload.github.com/hegaojian/MvvmHelper/tar.gz/refs/heads/modular","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294539,"owners_count":20915340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-library","databinding","kotlin","mvvm","rxhttp","viewbinding"],"created_at":"2024-11-21T05:02:56.910Z","updated_at":"2025-04-05T06:08:00.039Z","avatar_url":"https://github.com/hegaojian.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### :chicken::chicken::chicken: 这是一个快速开发的框架，使用Kotlin语言开发，MVVM+Jetpack架构，封装了公共头部、界面状态管理、ViewModel、LiveData、DataBinding、ViewBinding、头部刷新、加载更多、沉浸式、全局通知、丰富好用的拓展函数、RxHttp网络请求等等一系列工具\n\n\n### 更详细的文档介绍 请看 [Wiki](https://github.com/hegaojian/MvvmHelper/wiki)   [Wiki](https://github.com/hegaojian/MvvmHelper/wiki)   [Wiki](https://github.com/hegaojian/MvvmHelper/wiki)\n\nclone慢的可以用 gitee链接 https://gitee.com/hegaojian/MvvmHelper\n\n## 1.如何集成\n\n- **1.1 在root's build.gradle中加入 Jitpack 仓库 **\n\n```gradle\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n- **1.2 在app's build.gradle中添加依赖**\n\n```gradle\napply plugin: 'kotlin-kapt'\n\n...\n\ndependencies {\n  ...\n  implementation 'com.github.hegaojian:MvvmHelper:1.2.0'\n  kapt 'com.github.liujingxing.rxhttp:rxhttp-compiler:3.2.3'\n}\n```\n\n- **1.3 在app's build.gradle中，android 模块下开启DataBinding或者ViewBinding 可以自行选择**\n\n``` gradle\nAndroidStudio 4.0 以下版本------\u003e\nandroid {\n    ...\n    dataBinding {\n        enabled = true //可选 不用可以不写\n    }\n    viewBinding {\n        enabled = true //可选 不用可以不写\n    }\n}\n\nAndroidStudio 4.0及以上版本 ------\u003e\nandroid {\n    ...\n   buildFeatures {\n        dataBinding = true //可选 不用可以不写\n        viewBinding = true //可选 不用可以不写\n    }\n}\n \n```\n\n- **1.4 在Application中初始化**\n\n```kotlin\n MvvmHelper.init(this,BuildConfig.DEBUG)\n```\n\n\n## 混淆\n\n``` kotlin \n-keepclassmembers class * implements androidx.viewbinding.ViewBinding {\n  public static * inflate(android.view.LayoutInflater);\n  public static * inflate(android.view.LayoutInflater, android.view.ViewGroup, boolean);\n  public static * bind(android.view.View);\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhegaojian%2Fmvvmhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhegaojian%2Fmvvmhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhegaojian%2Fmvvmhelper/lists"}