Flutter版新浪微博登录/分享
Go to file
2025-06-10 11:46:29 +08:00
.github/workflows Update publish.yml 2023-05-29 15:03:33 +08:00
android 修复报错 2025-06-10 11:46:29 +08:00
example analyze 2022-07-26 13:50:00 +08:00
ios MOD:更新 WeiBo_SDK 为 3.4.0,但是因为 WeiBo_SDK 3.4.0 还未发布到 CocoaPods,先本地引入使用 2024-12-11 18:43:51 +08:00
lib expiresIn -> expiresTime 2022-07-27 11:32:36 +08:00
test 升级微博SDK 2022-07-26 10:51:38 +08:00
.drone.yml nullsafety 2021-03-19 16:16:07 +08:00
.gitattributes 清理历史 2019-03-05 12:18:08 +08:00
.gitignore 升级Flutter 3.0 2022-05-19 16:12:25 +08:00
.metadata 升级Flutter 3.0 2022-05-19 16:12:25 +08:00
analysis_options.yaml 升级Flutter 3.0 2022-05-19 16:12:25 +08:00
CHANGELOG.md expiresIn -> expiresTime 2022-07-27 11:32:36 +08:00
LICENSE 清理历史 2019-03-05 12:18:08 +08:00
pubspec.yaml MOD:更新 WeiBo_SDK 为 3.4.0,但是因为 WeiBo_SDK 3.4.0 还未发布到 CocoaPods,先本地引入使用 2024-12-11 18:43:51 +08:00
README.md Update README.md 2022-07-29 11:38:24 +08:00

weibo_kit

Pub Package License

flutter版新浪微博SDK

相关工具

dart/flutter 私服

docs

android

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

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>
由于iOS9/10的发布原有ATS设置在iOS10上会出现https网络访问限制的问题为了确保好的应用体验我们需要采取如下措施
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
        <key>sina.cn</key>
        <dict>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.0</string>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
        <key>sina.com.cn</key>
        <dict>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.0</string>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
        <key>sinaimg.cn</key>
        <dict>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.0</string>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
        <key>sinajs.cn</key>
        <dict>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.0</string>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
        <key>weibo.cn</key>
        <dict>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.0</string>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
        <key>weibo.com</key>
        <dict>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.0</string>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
    </dict>
</dict>

flutter

  • break change

    • 4.0.1: expiresIn -> expiresTime
    • 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

示例

Star History

stars