2023-02-24 15:36:57 +08:00
2022-06-07 21:42:16 +08:00
2023-02-24 15:36:57 +08:00
2023-02-24 15:36:57 +08:00
2023-02-24 15:19:19 +08:00
2023-02-24 15:09:45 +08:00
2023-02-24 15:09:45 +08:00
2019-03-01 17:58:17 +08:00
2022-05-16 18:47:39 +08:00
2022-05-16 18:47:39 +08:00
2022-05-16 18:47:39 +08:00
2023-02-24 13:57:47 +08:00
2019-03-01 17:58:17 +08:00
2023-02-24 13:57:47 +08:00
2023-02-24 15:19:19 +08:00

tencent_kit

Pub Package License

flutter版腾讯(QQ)SDK

相关工具

Dart/Flutter Pub 私服

相关文档

开始使用

Android

  • 接入
android {
    defaultConfig{
        manifestPlaceholders += [
                TENCENT_APP_ID: "your tencent appId"
        ]
    }
}
# 混淆已打入 Library随 Library 引用,自动添加到 apk 打包混淆

iOS

# 不需要做任何额外接入工作
# 配置已集成到脚本里
  • Universal Links

apple-app-site-association - 通过 https://${your applinks domain}/.well-known/apple-app-site-association 链接可访问

示例:

https://${your applinks domain}/universal_link/${example_app}/qq_conn/${appId}

{
  "applinks": {
    "apps": [],
    "details": [
      {
        "appID": "${your team id}.${your app bundle id}",
        "paths": [
          "/universal_link/${example_app}/qq_conn/${your tencent app id}/*"
        ]
      }
    ]
  }
}

⚠️ 很多 SDK 都会用到 universal_link可为不同 SDK 分配不同的 path 以作区分

Flutter

分享类型 说说(图/文/视频) 文本 图片 音乐 视频 网页
QQ 不支持 不支持 支持 支持 不支持 支持
QZone 支持 不支持 不支持 不支持 不支持 支持
  • 注意

⚠️⚠️⚠️ registerApp 前必须先调用 setIsPermissionGranted issues/60 issues/79

  • 兼容 flutter 2.5 兼容问题 issues/54

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        flutter_additional_ios_build_settings(target)
        # 兼容 Flutter 2.5
        target.build_configurations.each do |config|
    #       config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
          config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'i386 arm64'
        end
      end
    end
    
  • 配置

dependencies:
  tencent_kit: ^${latestTag}
#  tencent_kit:
#    git:
#      url: https://github.com/rxreader/tencent_kit.git

tencent_kit:
  app_id: ${your tencent app id}
  universal_link: https://${your applinks domain}/universal_link/${example_app}/qq_conn/${your tencent app id}/ # 可选项目

示例

示例

Star History

stars

Description
Flutter版QQ登录/分享
Readme MIT 21 MiB
Languages
Dart 100%