Improve README

This commit is contained in:
Alex Li
2021-09-16 13:44:25 +08:00
parent 12da9b81d5
commit d5abb0146c

View File

@ -1,12 +1,13 @@
# wechat_kit # wechat_kit
[![GitHub Tag](https://img.shields.io/github/tag/rxreader/wechat_kit.svg)](https://github.com/rxreader/wechat_kit/releases) [![Pub Package](https://img.shields.io/pub/v/wechat_kit.svg)](https://pub.flutter-io.cn/packages/wechat_kit)
[![Pub Package](https://img.shields.io/pub/v/wechat_kit.svg)](https://pub.dartlang.org/packages/wechat_kit) [![License](https://img.shields.io/github/license/RxReader/wechat_kit)](https://github.com/rxreader/wechat_kit/blob/master/LICENSE)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/rxreader/wechat_kit/blob/master/LICENSE)
flutter版微信SDK Flutter // SDK
## flutter toolkit 使 API 使 [wechat_kit_extension](https://pub.flutter-io.cn/packages/wechat_kit_extension) 。
##
* [flutter版微信SDK](https://github.com/rxreader/wechat_kit) * [flutter版微信SDK](https://github.com/rxreader/wechat_kit)
* [flutter版腾讯(QQ)SDK](https://github.com/rxreader/tencent_kit) * [flutter版腾讯(QQ)SDK](https://github.com/rxreader/tencent_kit)
@ -14,11 +15,11 @@ flutter版微信SDK
* [flutter版支付宝SDK](https://github.com/rxreader/alipay_kit) * [flutter版支付宝SDK](https://github.com/rxreader/alipay_kit)
* [flutter版walle渠道打包工具](https://github.com/rxreader/walle_kit) * [flutter版walle渠道打包工具](https://github.com/rxreader/walle_kit)
## dart/flutter ## Dart/Flutter Pub
* [simple_pub_server](https://github.com/rxreader/simple_pub_server) * [simple_pub_server](https://github.com/rxreader/simple_pub_server)
## docs ##
* [](https://open.weixin.qq.com/) * [](https://open.weixin.qq.com/)
* [](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317851&token=&lang=zh_CN) * [](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317851&token=&lang=zh_CN)
@ -26,23 +27,16 @@ flutter版微信SDK
* [](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317780&token=&lang=zh_CN) * [](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317780&token=&lang=zh_CN)
* [Universal Links](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content) * [Universal Links](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content)
## android ## 使
```groovy ### Android
buildscript {
dependencies {
// 3.5.4/3.6.4/4.x.x
classpath 'com.android.tools.build:gradle:3.5.4'
}
}
```
``` ```
# #
# Library Library apk # Library Library apk
``` ```
#### android #### Android
-> Gen_Signature_Android2.apk -> Gen_Signature_Android2.apk
@ -56,26 +50,23 @@ keytool -list -v -keystore ${your_keystore_path} -storepass ${your_keystore_pass
```shell ```shell
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)}' 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)}'
> 28424130a4416d519e00946651d53a46
``` ```
```shell ### iOS
28424130a4416d519e00946651d53a46
```
## ios > SceneDelegate [-iOS接入指南](https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html)
> SceneDelegate [-iOS接入指南](https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html) Xcode中TARGETSinfoURL typeURL scheme id
``` ```
Xcode中TARGETSinfoURL typeURL schemeid
URL Types URL Types
weixin: identifier=weixin schemes=${appId} weixin: identifier=weixin schemes=${appId}
``` ```
```
iOS 9http协议的访问Info.plist使URL Schemes列为白名单 iOS 9http协议的访问Info.plist使URL Schemes列为白名单
```plist
<key>LSApplicationQueriesSchemes</key> <key>LSApplicationQueriesSchemes</key>
<array> <array>
<string>weixin</string> <string>weixin</string>
@ -88,21 +79,28 @@ iOS 9系统策略更新限制了http协议的访问此外应用需要在
</dict> </dict>
``` ```
```
Universal Links Universal Links
```
Capabilities -> Associated Domain -> Domain -> applinks:${your applinks} Capabilities -> Associated Domain -> Domain -> applinks:${your applinks}
``` ```
## flutter ### Flutter
* break change * pub
* 3.0.0:
* Flutter实现重构 StreamController onReq ```
* Android实现重构使 startActivity Broadcast onReq/onResp dependencies:
* iOS实现 onReq wechat_kit: ^${latestTag}
* 2.2.0: Wechat ```
* 2.1.0: nullsafety & Android embedding v1
使 iOS
```
dependencies:
# ^
wechat_kit: ${latestTag}-iOS-NoPay
```
* snapshot * snapshot
@ -113,20 +111,7 @@ dependencies:
url: https://github.com/rxreader/wechat_kit.git url: https://github.com/rxreader/wechat_kit.git
``` ```
* release ##
```
dependencies:
wechat_kit: ^${latestTag}
```
```
dependencies:
# ^
wechat_kit: ${latestTag}-iOS-NoPay
```
* example
[](./example/lib/main.dart) [](./example/lib/main.dart)