{"id":15016754,"url":"https://github.com/shuirong/gakki","last_synced_at":"2025-04-12T10:41:46.524Z","repository":{"id":85980742,"uuid":"161802190","full_name":"shuiRong/Gakki","owner":"shuiRong","description":"🌼🌸 A React Native App for Mastodon.  一个由React Native编写的长毛象客户端App🦋","archived":false,"fork":false,"pushed_at":"2021-11-03T02:14:19.000Z","size":12928,"stargazers_count":142,"open_issues_count":10,"forks_count":16,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-05-23T04:44:56.967Z","etag":null,"topics":["android","android-app","android-application","app","mastodon","mastodon-app","mastodon-client","mobx","mobx-react","nativebase","react","react-components","react-native","reactjs","teaset"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shuiRong.png","metadata":{"files":{"readme":"README.ZH.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}},"created_at":"2018-12-14T15:15:02.000Z","updated_at":"2024-04-27T07:07:34.000Z","dependencies_parsed_at":"2023-09-24T12:53:14.729Z","dependency_job_id":null,"html_url":"https://github.com/shuiRong/Gakki","commit_stats":{"total_commits":188,"total_committers":2,"mean_commits":94.0,"dds":"0.021276595744680882","last_synced_commit":"362911f0b109bcb783b87e047c6233b9fcd82279"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuiRong%2FGakki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuiRong%2FGakki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuiRong%2FGakki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuiRong%2FGakki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuiRong","download_url":"https://codeload.github.com/shuiRong/Gakki/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248556885,"owners_count":21124156,"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","android-app","android-application","app","mastodon","mastodon-app","mastodon-client","mobx","mobx-react","nativebase","react","react-components","react-native","reactjs","teaset"],"created_at":"2024-09-24T19:49:20.147Z","updated_at":"2025-04-12T10:41:46.501Z","avatar_url":"https://github.com/shuiRong.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gakki\n\n\u003e 这是一个用`React Native`写的 [Mastodon](https://joinmastodon.org/) 客户端（近期只考虑 Android）\n\u003e\n\n[English](./README.md)\n\n**[直接下载APK](https://github.com/shuiRong/Gakki/releases)**\n\n[\u003cimg src=\"https://i.imgur.com/fTum3oy.png\" alt=\"Get it on F-Droid\" height=\"80\" /\u003e](https://apt.izzysoft.de/fdroid/index/apk/com.gakki)\n\n\u003e Gakki开发系列文章/教程正在紧张的书写中.\n\n\n#### 特性\n\n---\n\n* 沉浸式设计\n* 实现Mastodon稳定版大多数功能\n* 多账户支持\n* 白天、夜间双模式支持\n* 草莓县（cmx.im）自定义表情包支持；\n* 代码完全开源\n* 无必须权限（拍照和上传图片自行开启权限）\n\n\n\n\n\n#### 本地运行：\n\n---\n\n**首先**确保你本地有 ReactNative 项目所需环境（不考虑 iOS 环境），官方文档 [英文教程](https://facebook.github.io/react-native/docs/getting-started) [中文教程](https://reactnative.cn/docs/0.51/getting-started/)\n\n**下载项目：**\n\n```bash\ngit clone https://github.com/shuiRong/Gakki\ncd ./Gakki\nyarn // or npm i\n```\n\n**添加配置文件：**\n\n新建`src/utils/config.js`，内容如下：\n\n```javascript\nexport const token = 'Bearer xxxxxxxx'  // 必须。\nexport const version = '1.0' // 当前应用的版本，会用在About页面，必须\n```\n\n其中`xxxxxxxxx`为你申请的实例`token`，申请方法如下：\n\n1. 打开你所在实例的**设置页面**，比如草莓县的：https://cmx.im/settings/applications\n2. 在 开发-你的应用 中**创建新应用**：应用名称随便填写，应用网站任意网站，比如：`https://google.com`， 重定向 URI 不必修改，权限范围根据需要选择（建议全部勾选），最后**提交**\n3. 点击查看你刚创建的应用详情，上方**你的访问令牌**即为你需要添加到`config.js`中的值（注意`Bearer` 后面有个空格哦～）\n\n\n\n**[签名 APK](https://reactnative.cn/docs/signed-apk-android):**\n\n首先输入这条命令: `keytool -genkeypair -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000`\n\n然后：\n\n1. 把`my-release-key.keystore`文件放到你工程中的`android/app`文件夹下。\n2. 编辑`~/.gradle/gradle.properties`（全局配置，对所有项目有效）或是`项目目录/android/gradle.properties`（项目配置，只对所在项目有效）。如果没有`gradle.properties`文件你就自己创建一个，添加如下的代码（注意把其中的`****`替换为相应密码）\n\n```bash\nMYAPP_RELEASE_STORE_FILE=my-release-key.keystore\nMYAPP_RELEASE_KEY_ALIAS=my-key-alias\nMYAPP_RELEASE_STORE_PASSWORD=*****\nMYAPP_RELEASE_KEY_PASSWORD=*****\n```\n\n\n\n**运行项目前**需要通过 USB 将手机连接到电脑上，遵循[官方教程](https://facebook.github.io/react-native/docs/running-on-device) [中文教程](https://reactnative.cn/docs/0.51/getting-started/)或者自行 Google 教程\n\n然后运行项目：\n\n```bash\nreact-native run-android\n```\n\nP.S. 如果遇到任何项目上的问题都可以在[issue](https://github.com/shuiRong/Gakki/issues)区提出。\n\n\n\n\n#### 效果预览\n\n---\n| ![gakki](./preview/1.png) | ![gakki](./preview/2.png) |![gakki](./preview/3.png)  |\n|-|-|-|\n|  ![gakki](./preview/4.png)   |   ![gakki](./preview/5.png)   |   ![gakki](./preview/6.png)   |\n|   ![gakki](./preview/7.png)   | ![gakki](./preview/8.png)     |   ![gakki](./preview/9.png)    |\n|  ![gakki](./preview/10.png)    |  ![gakki](./preview/11.png)    |      |\n\n\n\n\n#### 待办事项\n\n---\n\n[功能管理](https://github.com/shuiRong/Gakki/projects/2)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuirong%2Fgakki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuirong%2Fgakki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuirong%2Fgakki/lists"}