tencent_kit

Build Status Codecov GitHub Tag Pub Package License

flutter版腾讯(QQ)SDK

flutter toolkit

dart/flutter 私服

docs

android

...
android {
    ...
    defaultConfig{
        ...
        manifestPlaceholders = [TENCENT_APP_ID: "${appId}"]
        ...
    }
    ...
}
...
# 混淆已打入 Library,随 Library 引用,自动添加到 apk 打包混淆
<!-- 腾讯有毒吧,文档都不写,SDK里居然写死 android:authorities 为 com.tencent.tauth.fileprovider,而非不同应用不同 android:authorities -->
<manifest>
    <!-- targetSdkVersion >= 29, 豁免 Android Q 的外部存储沙箱限制 -->
    <application android:requestLegacyExternalStorage="true">
    </application>
</manifest>

ios

在Xcode中,选择你的工程设置项,选中“TARGETS”一栏,在“info”标签栏的“URL type“添加“URL scheme”为你所注册的应用程序id

URL Types
tencent: identifier=tencent schemes=tencent${appId}
iOS 9系统策略更新,限制了http协议的访问,此外应用需要在“Info.plist”中将要使用的URL Schemes列为白名单,才可正常检查其他应用是否安装。

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>wtloginmqq2</string>
    <string>mqqopensdkapiV3</string>
    <string>mqqwpa</string>
    <string>mqqopensdkapiV2</string>
    <string>mqqOpensdkSSoLogin</string>
    <string>mqq</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>
Universal Links

Capabilities -> Associated Domain -> Domain -> applinks:${your applinks}

flutter

分享类型说说(图/文/视频)文本图片音乐视频网页
QQ不支持不支持支持支持不支持支持
QZone支持不支持不支持不支持不支持支持
  • snapshot
dependencies:
  tencent_kit:
    git:
      url: https://github.com/v7lin/fake_tencent.git
  • release
dependencies:
  tencent_kit: ^${latestTag}
  • example

示例

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Libraries

tencent_kit