{"id":36613511,"url":"https://github.com/ooftf/mvvm-component","last_synced_at":"2026-01-12T09:03:23.622Z","repository":{"id":57721931,"uuid":"221608387","full_name":"ooftf/mvvm-component","owner":"ooftf","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-23T06:28:29.000Z","size":377,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-26T22:02:39.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ooftf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-14T04:01:45.000Z","updated_at":"2021-09-10T08:12:26.000Z","dependencies_parsed_at":"2022-09-26T21:50:27.117Z","dependency_job_id":null,"html_url":"https://github.com/ooftf/mvvm-component","commit_stats":null,"previous_names":["ooftf/http-ui-mapping"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/ooftf/mvvm-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Fmvvm-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Fmvvm-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Fmvvm-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Fmvvm-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ooftf","download_url":"https://codeload.github.com/ooftf/mvvm-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Fmvvm-component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-12T09:03:22.949Z","updated_at":"2026-01-12T09:03:23.618Z","avatar_url":"https://github.com/ooftf.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mvvm-component\n    更方便实现项目MVVM架构的MVVM框架组件  \n### http-ui-mapping\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.ooftf/http-ui-mapping/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.ooftf/http-ui-mapping)\n\n定义了网络请求和UI响应之间的联动\n#### 引用方式\n```groovy\n    mavenCentral()\n    \n    dependencies {\n        implementation 'com.github.ooftf:http-ui-mapping:1.4.1'\n    }  \n```\n#### 初始化\n```kotlin\n    HttpUiMapping.init(object : HttpUiMapping.Provider {\n                override fun toast(string: String?) {\n                    //TODO 网络错误toast\n                }\n    \n                override fun createLoadingDialog(activity: Activity): HttpUiMapping.MyDialogInterface {\n                    //TODO 创建网络加载dialog\n                }\n    \n                override fun onTokenInvalid(baseResponse: IResponse) {\n                    //TODO token 失效\n                }\n    \n            }, BuildConfig.DEBUG)\n```      \n### arch-frame-mvvm\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.ooftf/arch-frame-mvvm/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.ooftf/arch-frame-mvvm)\n\n基于http-ui-mapping，提供了BaseMvvmActivity和BaseMvvmFragment基础类\n#### 引用方式\n```groovy\n    mavenCentral()\n    dependencies {\n        implementation 'com.github.ooftf:arch-frame-mvvm:0.1.5'\n    }\n```\n### mapping-button\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.ooftf/mapping-button/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.ooftf/mapping-button)\n\n#### 引用方式\n```groovy\n    mavenCentral()\n    dependencies {\n        implementation 'com.github.ooftf:mapping-button:1.3.8'\n    }\n```\n### [mvvm脚手架](https://github.com/ooftf/MVVM-Generator-ooftf)\n    基于arch-frame-mvvm的AndroidStudio 插件，提供了一键生成Activity ViewModel Layout Fragment 功能\n        \n### 混淆\n    -keepclassmembers  class * extends androidx.lifecycle.AndroidViewModel {\n             \u003cinit\u003e(...);\n        }\n    -keepclassmembers public class * extends androidx.databinding.ViewDataBinding{\n        public static  inflate(android.view.LayoutInflater);\n        public static  inflate(android.view.LayoutInflater,android.view.ViewGroup,boolean);\n    }","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooftf%2Fmvvm-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fooftf%2Fmvvm-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooftf%2Fmvvm-component/lists"}