Skip to content

Commit d5abb01

Browse files
committed
Improve README
1 parent 12da9b8 commit d5abb01

File tree

1 file changed

+29
-44
lines changed

1 file changed

+29
-44
lines changed

README.md

Lines changed: 29 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,42 @@
11
# wechat_kit
22

3-
[![GitHub Tag](https://img.shields.io/github/tag/rxreader/wechat_kit.svg)](https://github.com/rxreader/wechat_kit/releases)
4-
[![Pub Package](https://img.shields.io/pub/v/wechat_kit.svg)](https://pub.dartlang.org/packages/wechat_kit)
5-
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/rxreader/wechat_kit/blob/master/LICENSE)
3+
[![Pub Package](https://img.shields.io/pub/v/wechat_kit.svg)](https://pub.flutter-io.cn/packages/wechat_kit)
4+
[![License](https://img.shields.io/github/license/RxReader/wechat_kit)](https://github.com/rxreader/wechat_kit/blob/master/LICENSE)
65

7-
flutter版微信SDK
6+
Flutter 版微信登录/分享/支付 SDK。
87

9-
## flutter toolkit
8+
若需使用 API 接口方法,请使用 [wechat_kit_extension](https://pub.flutter-io.cn/packages/wechat_kit_extension)
9+
10+
## 相关工具
1011

1112
* [flutter版微信SDK](https://github.com/rxreader/wechat_kit)
1213
* [flutter版腾讯(QQ)SDK](https://github.com/rxreader/tencent_kit)
1314
* [flutter版新浪微博SDK](https://github.com/rxreader/weibo_kit)
1415
* [flutter版支付宝SDK](https://github.com/rxreader/alipay_kit)
1516
* [flutter版walle渠道打包工具](https://github.com/rxreader/walle_kit)
1617

17-
## dart/flutter 私服
18+
## Dart/Flutter Pub 私服
1819

1920
* [simple_pub_server](https://github.com/rxreader/simple_pub_server)
2021

21-
## docs
22+
## 相关文档
2223

2324
* [微信开放平台](https://open.weixin.qq.com/)
2425
* [微信登录](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317851&token=&lang=zh_CN)
2526
* [扫码登录](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=215238808828h4XN&token=&lang=zh_CN)
2627
* [微信支付](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317780&token=&lang=zh_CN)
2728
* [Universal Links](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content)
2829

29-
## android
30+
## 开始使用
3031

31-
```groovy
32-
buildscript {
33-
dependencies {
34-
// 3.5.4/3.6.4/4.x.x
35-
classpath 'com.android.tools.build:gradle:3.5.4'
36-
}
37-
}
38-
```
32+
### Android
3933

4034
```
4135
# 不需要做任何额外接入工作
4236
# 混淆已打入 Library,随 Library 引用,自动添加到 apk 打包混淆
4337
```
4438

45-
#### 获取 android 微信签名信息
39+
#### 获取 Android 微信签名信息
4640

4741
非官方方法 -> 反编译 Gen_Signature_Android2.apk 所得
4842

@@ -56,26 +50,23 @@ keytool -list -v -keystore ${your_keystore_path} -storepass ${your_keystore_pass
5650

5751
```shell
5852
keytool -list -v -keystore example/android/app/infos/dev.jks -storepass 123456 2>/dev/null | grep -p 'MD5:.*' -o | sed 's/MD5://' | sed 's/ //g' | sed 's/://g' | awk '{print tolower($0)}'
53+
> 28424130a4416d519e00946651d53a46
5954
```
6055

61-
```shell
62-
28424130a4416d519e00946651d53a46
63-
```
56+
### iOS
6457

65-
## ios
58+
> 暂不支持 SceneDelegate,详见文档 [微信-iOS接入指南](https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html)
6659
67-
> 暂不支持 SceneDelegate 见文档[微信-iOS接入指南](https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html)
60+
在Xcode中,选择你的工程设置项,选中「TARGETS」一栏,在「info」标签栏的「URL type」添加「URL scheme」为你所注册的应用程序 id。
6861

6962
```
70-
在Xcode中,选择你的工程设置项,选中“TARGETS”一栏,在“info”标签栏的“URL type“添加“URL scheme”为你所注册的应用程序id
71-
7263
URL Types
7364
weixin: identifier=weixin schemes=${appId}
7465
```
7566

76-
```
7767
iOS 9系统策略更新,限制了http协议的访问,此外应用需要在“Info.plist”中将要使用的URL Schemes列为白名单,才可正常检查其他应用是否安装。
7868

69+
```plist
7970
<key>LSApplicationQueriesSchemes</key>
8071
<array>
8172
<string>weixin</string>
@@ -88,45 +79,39 @@ iOS 9系统策略更新,限制了http协议的访问,此外应用需要在
8879
</dict>
8980
```
9081

91-
```
9282
Universal Links
9383

84+
```
9485
Capabilities -> Associated Domain -> Domain -> applinks:${your applinks}
9586
```
9687

97-
## flutter
98-
99-
* break change
100-
* 3.0.0:
101-
* Flutter实现重构,合并多个 StreamController,简化类名,并支持微信回调 onReq
102-
* Android实现重构,使用 startActivity 替换 Broadcast,兼容微信回调 onReq/onResp
103-
* iOS实现,支持微信回调 onReq
104-
* 2.2.0: Wechat 单例
105-
* 2.1.0: nullsafety & 不再支持 Android embedding v1
88+
### Flutter
10689

107-
* snapshot
90+
* 已发布的 pub 版本
10891

10992
```
11093
dependencies:
111-
wechat_kit:
112-
git:
113-
url: https://github.com/rxreader/wechat_kit.git
94+
wechat_kit: ^${latestTag}
11495
```
11596

116-
* release
97+
或使用不包含 iOS 支付的版本:
11798

11899
```
119100
dependencies:
120-
wechat_kit: ^${latestTag}
101+
# 请不要加 ^
102+
wechat_kit: ${latestTag}-iOS-NoPay
121103
```
122104

105+
* snapshot
106+
123107
```
124108
dependencies:
125-
# 请不要加 ^
126-
wechat_kit: ${latestTag}-iOS-NoPay
109+
wechat_kit:
110+
git:
111+
url: https://github.com/rxreader/wechat_kit.git
127112
```
128113

129-
* example
114+
## 示例
130115

131116
[示例](./example/lib/main.dart)
132117

0 commit comments

Comments
 (0)