Awesome
ZLGithubClient
基于 Github REST V3 API 和 Github GraphQL V4 API 开发的Github iOS客户端
安装
基本功能
- 搜索开源仓库和开发者
- 支持浏览每日/周/月开源仓库和开发者趋势榜单
- 支持浏览开源仓库的基本信息,包括code,commits,issues,pull requests等等
- 支持fork,watch,star开源仓库
- 支持浏览登录用户的公开及私有仓库
- 浏览开发者的基本信息,follow开发者
- 支持查看follow的开发者和watch的开源repository的最新动态
- 简单查阅通知
- 在工作台固定收藏的仓库
- 在工作台查阅登录用户的issue和pull request
Github OAuth login and Access Token login
<div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/001.jpeg"/> </div>Workboard
<div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/002.jpeg"/> </div>Notification
<div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/003.jpeg"/> </div>Trending
<div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/004.jpeg"/> </div>Profile
<div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/005.jpeg"/> </div>Search
<div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/006.jpeg"/> </div>User Info
<div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/007.jpeg"/> </div>Repository Info
<div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/008.jpeg"/> </div>View markdown and code
<div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/009.jpeg"/> </div> <div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/010.jpeg"/> </div>开始项目
-
准备开发环境
- xcode
- ruby
- git
-
安装bundle
gem install bundle
-
下载项目源码
git clone https://github.com/ExistOrLive/GithubClient.git
-
切换至
ZLGithubClient/ZLGithubClient
目录下,执行bundle install
,安装依赖的ruby工具,如 cocoapods ,fastlane 等cd ZLGithubClient/ZLGithubClient bundle install
-
执行
bundle exec pod install
<div align="left"> <img src="https://gitee.com/zxhubs/git-hub-client-material/raw/master/GitHubClientMaterial/pod_install.jpg" width="450"/> </div>bundle exec pod install
-
在使用源码前,需要 Github 的账户下创建一个 OAuth Application,具体请参考官方文档 Creating an OAuth App; 创建 OAuth Application 后,获得
Client ID
和Client Secret
-
ZLGithubClient 使用 Bugly 和 Firebase 作为分析工具,因此需要创建对应应用并获取
Bugly App Id
和GoogleService-Info.plist
-
将
<div align="left"> <img src="https://github.com/ExistOrLive/existorlivepic/raw/master/202204050025208.png" width="450"/> </div> <div align="left"> <img src="https://github.com/ExistOrLive/existorlivepic/raw/master/202204050026633.png" width="200"/> </div>GoogleService-Info.plist
拷贝到项目对应目录下;创建ZLGithubAppKey.h
文件,提供宏定义 ,并拷贝到对应的目录下 -
构建工程
常见问题解答
贡献者 ✨
Thanks goes to these wonderful people (emoji key):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tr> <td align="center"><a href="https://github.com/ExistOrLive"><img src="https://avatars.githubusercontent.com/u/18443373?v=4?s=100" width="100px;" alt=""/><br /><sub><b>朱猛</b></sub></a><br /><a href="https://github.com/MengAndJie/GithubClient/commits?author=ExistOrLive" title="Code">💻</a></td> <td align="center"><a href="https://github.com/longxiaochi"><img src="https://avatars.githubusercontent.com/u/18322377?v=4?s=100" width="100px;" alt=""/><br /><sub><b>longxiaochi</b></sub></a><br /><a href="https://github.com/MengAndJie/GithubClient/commits?author=longxiaochi" title="Code">💻</a></td> <td align="center"><a href="https://github.com/ZXHubs"><img src="https://avatars.githubusercontent.com/u/53455473?v=4?s=100" width="100px;" alt=""/><br /><sub><b>ZXHubs</b></sub></a><br /><a href="https://github.com/MengAndJie/GithubClient/commits?author=ZXHubs" title="Code">💻</a></td> </tr> </table> <!-- markdownlint-restore --> <!-- prettier-ignore-end --> <!-- ALL-CONTRIBUTORS-LIST:END -->This project follows the all-contributors specification. Contributions of any kind welcome!
结语
普通的代码千篇一律,优秀的代码万里挑一。开源就如星星之火正在燎原,本项目是开源世界中小小一隅,如果有感兴趣的开发者欢迎加入, 若有意请联系<a src="2068531506@qq.com">2068531506@qq.com</a>.