{"id":22746429,"url":"https://github.com/zhujiaming/get_config","last_synced_at":"2025-03-30T05:21:19.232Z","repository":{"id":120627171,"uuid":"444040965","full_name":"zhujiaming/get_config","owner":"zhujiaming","description":"更轻量化下发配置文件到C端的安卓小插件","archived":false,"fork":false,"pushed_at":"2022-01-07T15:06:03.000Z","size":141,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T07:28:22.966Z","etag":null,"topics":["android-library"],"latest_commit_sha":null,"homepage":"","language":"Java","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/zhujiaming.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-03T11:45:12.000Z","updated_at":"2022-03-20T13:41:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6ce08b2-8fdd-4059-a6f1-e41a21c1a734","html_url":"https://github.com/zhujiaming/get_config","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhujiaming%2Fget_config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhujiaming%2Fget_config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhujiaming%2Fget_config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhujiaming%2Fget_config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhujiaming","download_url":"https://codeload.github.com/zhujiaming/get_config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246278772,"owners_count":20751827,"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-library"],"created_at":"2024-12-11T02:13:17.377Z","updated_at":"2025-03-30T05:21:19.226Z","avatar_url":"https://github.com/zhujiaming.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 定义\n`get_config`可以实现在没有服务器资源的情况，借助第三方分享平台帮助应用获取配置信息或者其他数据的工具封装。\n\n### 使用\n1. 在某个内容分享平台分享自己想获取的文本内容并产生网页链接\n2. 导入aar\n3. 引入代码\n\n```kotlin\nvar getC = GetConfig(context)\nvar requestTask = GecTaskBuilder().apply {\n            // 设置目标网页\n            targetUrl = \"http://xxx.xxx\"\n            // 设置解析脚本\n            script = ScriptSource.xxx\n            // 超时时间（默认5s）\n            timeout = 15000\n            // 注册结果监听\n            resultCallback = object :\n                GecResultCallback {\n                override fun onResult(result: String?) {\n                    Log.i(\"oh\", \"result ===\u003e$result\")\n                }\n                override fun onError(error: String?) {\n                    Log.i(\"oh\", \"onError ===\u003e$error\")\n                }\n            }\n        }\ngetC.process(requestTask)\n```\n\n### 示例\n可以参考sample实现\n\n### 示例效果\n![](https://upload-images.jianshu.io/upload_images/1948083-e418c9b24c573590.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/200)\n\n\n### 存在的意义\n1. 学习与好玩\n2. 自己弄个服务器每次自己修改配置生效貌似比较麻烦？（不太熟）\n3. 分享的平台资源免费、稳定？\n4. ???\n\n### todo features:\n- 其他方式实现请求\n- 并发请求\n\n### 其他\n该实现仅用于日常技术学习探讨，欢迎联系批评指教。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhujiaming%2Fget_config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhujiaming%2Fget_config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhujiaming%2Fget_config/lists"}