110 lines
2.9 KiB
Dart
110 lines
2.9 KiB
Dart
# weibo_kit
|
||
|
||
[](https://pub.dev/packages/weibo_kit)
|
||
[](https://github.com/RxReader/weibo_kit/blob/master/LICENSE)
|
||
|
||
flutter版新浪微博SDK
|
||
|
||
## 相关工具
|
||
|
||
* [flutter版微信SDK](https://github.com/rxreader/wechat_kit)
|
||
* [flutter版腾讯(QQ)SDK](https://github.com/rxreader/tencent_kit)
|
||
* [flutter版新浪微博SDK](https://github.com/rxreader/weibo_kit)
|
||
* [flutter版支付宝SDK](https://github.com/rxreader/alipay_kit)
|
||
* [flutter版walle渠道打包工具](https://github.com/rxreader/walle_kit)
|
||
|
||
## dart/flutter 私服
|
||
|
||
* [simple_pub_server](https://github.com/rxreader/simple_pub_server)
|
||
|
||
## docs
|
||
|
||
* [Android 应用接入](https://open.weibo.com/wiki/Sdk/android)
|
||
* [iOS 应用接入](https://open.weibo.com/wiki/Sdk/ios)
|
||
* [Android Github](https://github.com/sinaweibosdk/weibo_android_sdk)
|
||
* [iOS Github](https://github.com/sinaweibosdk/weibo_ios_sdk)
|
||
* [Universal Links](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content)
|
||
|
||
## android
|
||
|
||
```
|
||
# 不需要做任何额外接入工作
|
||
# 混淆已打入 Library,随 Library 引用,自动添加到 apk 打包混淆
|
||
```
|
||
|
||
#### 获取 android 微信签名信息
|
||
|
||
非官方方法 -> 反编译 app_signatures.apk 所得
|
||
|
||
命令:
|
||
|
||
```shell
|
||
keytool -list -v -keystore ${your_keystore_path} -storepass ${your_keystore_password} 2>/dev/null | grep -p 'MD5:.*' -o | sed 's/MD5://' | sed 's/ //g' | sed 's/://g' | awk '{print tolower($0)}'
|
||
```
|
||
|
||
示例:
|
||
|
||
```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)}'
|
||
```
|
||
|
||
```shell
|
||
28424130a4416d519e00946651d53a46
|
||
```
|
||
|
||
## ios
|
||
|
||
```
|
||
iOS 9.0
|
||
```
|
||
|
||
```
|
||
在Xcode中,选择你的工程设置项,选中“TARGETS”一栏,在“info”标签栏的“URL type“添加“URL scheme”为你所注册的应用程序id
|
||
|
||
URL Types
|
||
weibosdk: identifier=weibo schemes=wb${appKey}
|
||
```
|
||
|
||
```
|
||
iOS 9系统策略更新,限制了http协议的访问,此外应用需要在“Info.plist”中将要使用的URL Schemes列为白名单,才可正常检查其他应用是否安装。
|
||
<key>LSApplicationQueriesSchemes</key>
|
||
<array>
|
||
<string>sinaweibo</string>
|
||
<string>sinaweibohd</string>
|
||
<string>weibosdk</string>
|
||
<string>weibosdk2.5</string>
|
||
<string>weibosdk3.3</string>
|
||
</array>
|
||
```
|
||
## flutter
|
||
|
||
* break change
|
||
* 4.0.0: 按标准插件书写重构
|
||
* 3.0.0: 重构
|
||
* 2.0.2: iOS Universal Links
|
||
* 2.0.0: nullsafety & 不再支持 Android embedding v1 & Weibo 单例
|
||
|
||
* snapshot
|
||
|
||
```
|
||
dependencies:
|
||
weibo_kit:
|
||
git:
|
||
url: https://github.com/rxreader/weibo_kit.git
|
||
```
|
||
|
||
* release
|
||
|
||
```
|
||
dependencies:
|
||
weibo_kit: ^${latestTag}
|
||
```
|
||
|
||
* example
|
||
|
||
[示例](./example/lib/main.dart)
|
||
|
||
## Star History
|
||
|
||

|