{"id":26223304,"url":"https://github.com/rxreader/wechat_kit","last_synced_at":"2026-02-19T23:36:16.061Z","repository":{"id":37754254,"uuid":"162974899","full_name":"RxReader/wechat_kit","owner":"RxReader","description":"Flutter 版微信登录/分享/支付 SDK","archived":false,"fork":false,"pushed_at":"2024-11-21T15:07:38.000Z","size":48059,"stargazers_count":755,"open_issues_count":38,"forks_count":131,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-14T22:09:05.755Z","etag":null,"topics":["flutter","login","pay","share","wechat","weixin"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/wechat_kit","language":"Dart","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/RxReader.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-12-24T09:38:58.000Z","updated_at":"2025-05-13T14:42:11.000Z","dependencies_parsed_at":"2024-06-18T20:03:39.681Z","dependency_job_id":"2d67503a-ebdf-45ea-9b5d-9669f2f8c9d5","html_url":"https://github.com/RxReader/wechat_kit","commit_stats":{"total_commits":325,"total_committers":10,"mean_commits":32.5,"dds":0.09230769230769231,"last_synced_commit":"9066a47f86998ae9723e48d9c37841b34fb2ccbf"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RxReader%2Fwechat_kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RxReader%2Fwechat_kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RxReader%2Fwechat_kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RxReader%2Fwechat_kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RxReader","download_url":"https://codeload.github.com/RxReader/wechat_kit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235701,"owners_count":22036964,"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":["flutter","login","pay","share","wechat","weixin"],"created_at":"2025-03-12T17:30:47.928Z","updated_at":"2026-01-11T04:06:37.206Z","avatar_url":"https://github.com/RxReader.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wechat_kit\n\n[![Pub Package](https://img.shields.io/pub/v/wechat_kit.svg)](https://pub.dev/packages/wechat_kit)\n[![License](https://img.shields.io/github/license/RxReader/wechat_kit)](https://github.com/RxReader/wechat_kit/blob/master/LICENSE)\n\nFlutter 版微信登录/分享/支付 SDK。\n\n若需使用 API 接口方法，请使用 [wechat_kit_extension](https://pub.flutter-io.cn/packages/wechat_kit_extension) 。\n\n## 相关工具\n\n* [Flutter版微信SDK](https://github.com/RxReader/wechat_kit)\n* [Flutter版腾讯(QQ)SDK](https://github.com/RxReader/tencent_kit)\n* [Flutter版新浪微博SDK](https://github.com/RxReader/weibo_kit)\n* [Flutter版支付宝SDK](https://github.com/RxReader/alipay_kit)\n* [Flutter版深度链接](https://github.com/RxReader/link_kit)\n* [Flutter版walle渠道打包工具](https://github.com/RxReader/walle_kit)\n\n## Dart/Flutter Pub 私服\n\n* [simple_pub_server](https://github.com/RxReader/simple_pub_server)\n\n## 相关文档\n\n* [微信开放平台](https://open.weixin.qq.com/)\n* [微信登录](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list\u0026t=resource/res_list\u0026verify=1\u0026id=open1419317851\u0026token=\u0026lang=zh_CN)\n* [扫码登录](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list\u0026t=resource/res_list\u0026verify=1\u0026id=215238808828h4XN\u0026token=\u0026lang=zh_CN)\n* [微信支付](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list\u0026t=resource/res_list\u0026verify=1\u0026id=open1419317780\u0026token=\u0026lang=zh_CN)\n* [Universal Links](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content)\n\n## 开始使用\n\n### Android\n\n```\n# 不需要做任何额外接入工作\n# 混淆已打入 Library，随 Library 引用，自动添加到 apk 打包混淆\n```\n\n* 获取 Android 签名信息\n\n```groovy\n// android/app/build.gradle\n// 1. 执行 flutter run/build ，即可获得签名信息\n// 2. shell 执行 pushd android \u0026\u0026 ./gradlew :app:${variant}SigningConfig \u0026\u0026 popd (variant: debug/release/profile、flavorDebug/flavorRelease/flavorProfile)，即可获得签名信息\napply from: \"${project(\":wechat_kit\").projectDir}/key-store.gradle\"\n// 或\napply from: project(\":wechat_kit\").file(\"key-store.gradle\")\n```\n\n```diff\n--- KeyStore ---\nAlias name: dev\nCreation date: Fri May 24 17:26:21 CST 2019\nOwner: CN=lin\nIssuer: CN=lin\nSerial number: 77dcb7d8\nValid from: Fri May 24 17:26:21 CST 2019 until: Sun Apr 30 17:26:21 CST 2119\nCertificate fingerprints:\nMD5: 28:42:41:30:A4:41:6D:51:9E:00:94:66:51:D5:3A:46\nSHA1: C9:A9:3A:28:6D:1A:8A:0A:F1:5A:DB:76:45:97:6F:C6:30:8A:FA:B9\nSHA256: EA:3A:9B:EE:3C:8B:6C:96:31:5F:B9:09:52:58:52:05:75:E2:2A:6D:5A:C2:C0:7F:07:4F:EA:90:31:DB:58:D8\nCertificate digest:\nMD5: 28424130a4416d519e00946651d53a46\nSHA1: c9a93a286d1a8a0af15adb7645976fc6308afab9\nSHA256: ea3a9bee3c8b6c96315fb9095258520575e22a6d5ac2c07f074fea9031db58d8\n+ Certificate Third-part:\n+ Wechat/Weibo/Alipay MD5 HEX: 28424130a4416d519e00946651d53a46\n+ Firebase SHA1 HEX: C9:A9:3A:28:6D:1A:8A:0A:F1:5A:DB:76:45:97:6F:C6:30:8A:FA:B9\n+ Facebook SHA1 BASE64: yak6KG0aigrxWtt2RZdvxjCK+rk=\n--- KeyStore ---\n```\n\n### iOS\n\n\u003e 暂不支持 SceneDelegate，详见文档 [微信-iOS接入指南](https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html)\n\n```\n# 不需要做任何额外接入工作\n# 配置已集成到脚本里\n```\n\n* Universal Links\n\napple-app-site-association - 通过 https://${your applinks domain}/.well-known/apple-app-site-association 链接可访问\n\n示例: \n\nhttps://${your applinks domain}/universal_link/${example_app}/wechat/\n\n```json\n{\n  \"applinks\": {\n    \"apps\": [],\n    \"details\": [\n      {\n        \"appID\": \"${your team id}.${your app bundle id}\",\n        \"paths\": [\n          \"/universal_link/${example_app}/wechat/*\"\n        ]\n      }\n    ]\n  }\n}\n```\n\n\u003e ⚠️ 很多 SDK 都会用到 universal_link，可为不同 SDK 分配不同的 path 以作区分\n\n### OpenHarmony / HarmonyOS\n\n\u003e 当前 OpenHarmony 的微信 SDK 仅支持部分 API, 使用过程中请自行查阅文档\n\n为了检查是否安装了微信，请在项目的 module.json5 文件中添加以下 scheme\n\n```json5\n{\n  \"module\": {\n    \"querySchemes\": [\n      \"weixin\"\n    ],\n  }\n}\n```\n\n### Flutter\n\n* 配置\n\n```yaml\ndependencies:\n  wechat_kit: ^${latestTag}\n#  wechat_kit:\n#    git:\n#      url: https://github.com/RxReader/wechat_kit.git\n\nwechat_kit:\n#  ios: no_pay # 默认 pay\n  app_id: ${your wechat app id}\n  universal_link: https://${your applinks domain}/universal_link/${example_app}/wechat/\n```\n\n若需要不包含支付的 iOS SDK\n\n```diff\nwechat_kit:\n+  ios: no_pay # 默认 pay\n```\n\n* 安装（仅iOS）\n\n```shell\n# step.1 安装必要依赖\nsudo gem install plist\n# step.2 切换工作目录，插件里为 example/ios/，普通项目为 ios/\ncd example/ios/\n# step.3 执行脚本\npod install\n```\n\n## 示例\n\n[示例](./example/lib/main.dart)\n\n## Star History\n\n![stars](https://starchart.cc/rxreader/wechat_kit.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxreader%2Fwechat_kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxreader%2Fwechat_kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxreader%2Fwechat_kit/lists"}