{"id":21389848,"url":"https://github.com/tryzealot/zealot-android","last_synced_at":"2026-01-05T17:48:51.184Z","repository":{"id":103299603,"uuid":"232556719","full_name":"tryzealot/zealot-android","owner":"tryzealot","description":"Zealot SDK for Android","archived":false,"fork":false,"pushed_at":"2024-05-28T04:02:48.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T14:42:52.736Z","etag":null,"topics":["android-sdk","jitpack","version-check","zealot"],"latest_commit_sha":null,"homepage":"https://zealot.ews.im","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tryzealot.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}},"created_at":"2020-01-08T12:19:01.000Z","updated_at":"2024-05-28T04:02:52.000Z","dependencies_parsed_at":"2024-01-23T20:19:57.045Z","dependency_job_id":null,"html_url":"https://github.com/tryzealot/zealot-android","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryzealot%2Fzealot-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryzealot%2Fzealot-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryzealot%2Fzealot-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryzealot%2Fzealot-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tryzealot","download_url":"https://codeload.github.com/tryzealot/zealot-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245659024,"owners_count":20651526,"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-sdk","jitpack","version-check","zealot"],"created_at":"2024-11-22T13:13:16.657Z","updated_at":"2026-01-05T17:48:46.151Z","avatar_url":"https://github.com/tryzealot.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zealot Android SDK\n\nAndroid 组件提供为 Zealot 检查新版本和安装的服务，支持 Kotlin 和 Java。\n\n## 安装\n\n### JitPack\n\n使用 [jitpack](https://jitpack.io) 安装，先需要添加 maven 仓库：\n\n```groovy\nallprojects {\n  repositories {\n    ...\n    maven { url 'https://jitpack.io' }\n  }\n}\n```\n\n之后在主 app 项目的 `build.gradle` 添加 zealot：\n\n```groovy\ndependencies {\n  implementation 'com.github.tryzealot:zealot-android:master-SNAPSHOT'\n}\n```\n\n## 使用\n\n在你的 `Application` 文件的 `onCreate` 方法添加启动代码：\n\n```kotlin\n// Kotlin\n\n// 单个渠道\nZealot.create(getActivity())\n      .setEndpoint(\"https://zealot.com\")\n      .setChannelKey(\"...\")\n      .setBuildType(BuildConfig.BUILD_TYPE)\n      .launch()\n\n// 多个渠道，比如测试版本，内测版本\nZealot.create(getActivity())\n      .setEndpoint(\"https://zealot.com\")\n      .setChannelKey(\"xxxxxxx\", \"beta\")\n      .setCHannelKey(\"yyyyyyy\", \"test\")\n      .setBuildType(BuildConfig.BUILD_TYPE)\n      .launch()\n```\n\n```java\n// Java\n\n// 单个渠道\nZealot.create(getActivity())\n      .setEndpoint(\"https://zealot.com\")\n      .setChannelKey(\"...\")\n      .setBuildType(BuildConfig.BUILD_TYPE)\n      .launch();\n\n// 多个渠道，比如测试版本，内测版本\nZealot.create(getActivity())\n      .setEndpoint(\"https://zealot.com\")\n      .setChannelKey(\"xxxxxxx\", \"beta\")\n      .setCHannelKey(\"yyyyyyy\", \"test\")\n      .setBuildType(BuildConfig.BUILD_TYPE)\n      .launch();\n```\n\n## 注意\n\n使用 Zealot SDK 需要开启网络权限\n\n```xml\n\u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n```\n\n## Author\n\nicyleaf, icyleaf.cn@gmail.com\n\n## License\n\nZealot is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryzealot%2Fzealot-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftryzealot%2Fzealot-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryzealot%2Fzealot-android/lists"}