{"id":19904297,"url":"https://github.com/coding-dream/autoupdate","last_synced_at":"2026-05-14T03:32:19.043Z","repository":{"id":179904063,"uuid":"75363820","full_name":"coding-dream/AutoUpdate","owner":"coding-dream","description":"git modules 项目共用核心模块(core)","archived":false,"fork":false,"pushed_at":"2017-10-22T12:42:16.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T07:27:27.944Z","etag":null,"topics":["autoupdate","checkupdate"],"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/coding-dream.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":"2016-12-02T05:30:32.000Z","updated_at":"2017-10-22T09:55:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"20aacb72-0131-4656-9088-2da2ea2b1c0f","html_url":"https://github.com/coding-dream/AutoUpdate","commit_stats":null,"previous_names":["coding-dream/autoupdate"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/coding-dream/AutoUpdate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-dream%2FAutoUpdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-dream%2FAutoUpdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-dream%2FAutoUpdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-dream%2FAutoUpdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coding-dream","download_url":"https://codeload.github.com/coding-dream/AutoUpdate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-dream%2FAutoUpdate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33009479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["autoupdate","checkupdate"],"created_at":"2024-11-12T20:27:46.703Z","updated_at":"2026-05-14T03:32:19.020Z","avatar_url":"https://github.com/coding-dream.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Android自动更新库\n\n服务器url返回的的内容类似如下\n\n```\n{\n \"versionName\":\"v1.0\",\n \"versionCode\":\"2\",\n \"downUrl\":\"https://git.oschina.net/need88.com/TempFile/raw/master/test.apk\",   //apk的下载地址\n \"updateInfo\":\"1.更新xxx\\n2.update bugs\\n3.update fixs\"\n}\n\n```\n\n## 方式一\n\n```\n UpdateAgent.init(Constants.SERVER_URL);\n UpdateAgent.update(this); //默认\n //UpdateAgent.forceUpdate(this);//强制\n //UpdateAgent.silentUpdate(this);//静默\n\n```\n\n\n## 方式二\n\n```\nString jsonStr = getStrFromServer();\nUpdateAgent.updateByStr(this,jsonStr, UpdateAgent.Type.defaultType); // UpdateAgent.Type.silentType,  UpdateAgent.Type.forceType\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-dream%2Fautoupdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoding-dream%2Fautoupdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-dream%2Fautoupdate/lists"}