mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-06-02 10:56:18 +08:00
升级 iOS SDK
This commit is contained in:
15
README.md
15
README.md
@ -46,19 +46,12 @@ android {
|
||||
# 混淆已打入 Library,随 Library 引用,自动添加到 apk 打包混淆
|
||||
```
|
||||
|
||||
```
|
||||
<!-- 腾讯有毒吧,这特么是文档? -->
|
||||
<!-- 继续吐槽个,尼玛简直就是坑 -->
|
||||
<!-- 知道怎么集成使用 FileProvider 有用?不知道怎么测试好吗?写个简单的测试分享图片,图片都无法分享好吗?不带这么坑爹的好吗? -->
|
||||
<manifest>
|
||||
<!-- targetSdkVersion >= 29, 豁免 Android Q 的外部存储沙箱限制 -->
|
||||
<application android:requestLegacyExternalStorage="true">
|
||||
</application>
|
||||
</manifest>
|
||||
```
|
||||
|
||||
## ios
|
||||
|
||||
```
|
||||
腾讯有毒吗?module.modulemap 的内容都没提供完整,特么搞得我差了半天
|
||||
```
|
||||
|
||||
```
|
||||
在Xcode中,选择你的工程设置项,选中“TARGETS”一栏,在“info”标签栏的“URL type“添加“URL scheme”为你所注册的应用程序id
|
||||
|
||||
|
1
example/ios/Flutter/.last_build_id
Normal file
1
example/ios/Flutter/.last_build_id
Normal file
@ -0,0 +1 @@
|
||||
cd43188ccf238126b61f5732044f6a6b
|
@ -24,7 +24,7 @@ EXTERNAL SOURCES:
|
||||
SPEC CHECKSUMS:
|
||||
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
|
||||
path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
|
||||
tencent_kit: fc79006175575d6fa0f83b0771525e1e7765b810
|
||||
tencent_kit: 204825086150a020041a395f3ea6202964dd313f
|
||||
|
||||
PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 50;
|
||||
objectVersion = 51;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
@ -350,7 +350,7 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SUPPORTED_PLATFORMS = iphoneos;
|
||||
@ -432,7 +432,7 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
@ -481,7 +481,7 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SUPPORTED_PLATFORMS = iphoneos;
|
||||
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
@ -56,7 +56,7 @@ packages:
|
||||
name: crypto
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "2.1.4"
|
||||
version: "2.1.5"
|
||||
cupertino_icons:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@ -71,13 +71,20 @@ packages:
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "1.2.0-nullsafety.1"
|
||||
ffi:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: ffi
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "0.1.3"
|
||||
file:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: file
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "5.2.0"
|
||||
version: "5.2.1"
|
||||
fixnum:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -108,7 +115,7 @@ packages:
|
||||
name: json_annotation
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "3.0.1"
|
||||
version: "3.1.1"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -143,35 +150,42 @@ packages:
|
||||
name: path_provider
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "1.6.10"
|
||||
version: "1.6.27"
|
||||
path_provider_linux:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path_provider_linux
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "0.0.1+1"
|
||||
version: "0.0.1+2"
|
||||
path_provider_macos:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path_provider_macos
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "0.0.4+3"
|
||||
version: "0.0.4+8"
|
||||
path_provider_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path_provider_platform_interface
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "1.0.2"
|
||||
version: "1.0.4"
|
||||
path_provider_windows:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path_provider_windows
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "0.0.4+3"
|
||||
pedantic:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: pedantic
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "1.9.0"
|
||||
version: "1.9.2"
|
||||
platform:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -185,7 +199,7 @@ packages:
|
||||
name: plugin_platform_interface
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "1.0.2"
|
||||
version: "1.0.3"
|
||||
process:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -261,13 +275,20 @@ packages:
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "2.1.0-nullsafety.3"
|
||||
win32:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: win32
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "1.7.4+1"
|
||||
xdg_directories:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: xdg_directories
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "0.1.0"
|
||||
version: "0.1.2"
|
||||
sdks:
|
||||
dart: ">=2.10.0-110 <2.11.0"
|
||||
flutter: ">=1.12.13+hotfix.5 <2.0.0"
|
||||
|
@ -45,7 +45,7 @@ typedef NS_ENUM(NSInteger,QQApiSendResultCode) {
|
||||
// QQApiObject control flags
|
||||
typedef NS_ENUM(NSUInteger,kQQAPICtrlFlag) {
|
||||
kQQAPICtrlFlagQZoneShareOnStart = 0x01,
|
||||
kQQAPICtrlFlagQZoneShareForbid = 0x02,
|
||||
kQQAPICtrlFlagQZoneShareForbid = 0x02, //屏蔽好友选择器上的空间入口
|
||||
kQQAPICtrlFlagQQShare = 0x04,
|
||||
kQQAPICtrlFlagQQShareFavorites = 0x08, //收藏
|
||||
kQQAPICtrlFlagQQShareDataline = 0x10, //数据线
|
||||
|
@ -88,7 +88,6 @@ typedef NS_ENUM(NSUInteger, TencentAuthMode) {
|
||||
|
||||
/** 第三方在授权登录/分享 时选择 QQ,还是TIM 。在授权前一定要指定其中一个类型*/
|
||||
@property(nonatomic, assign) TencentAuthShareType authShareType;
|
||||
|
||||
/**
|
||||
* 获取上次登录得到的token
|
||||
*
|
||||
@ -149,19 +148,6 @@ typedef NS_ENUM(NSUInteger, TencentAuthMode) {
|
||||
|
||||
+ (TencentAuthorizeState *)authorizeState;
|
||||
|
||||
/**
|
||||
* 用来获得当前手机qq的版本号
|
||||
* \return 返回手机qq版本号
|
||||
**/
|
||||
+ (int)iphoneQQVersion __attribute__((deprecated("已过期, 建议删除调用")));
|
||||
|
||||
|
||||
/**
|
||||
* 用来获得当前手机TIM的版本号
|
||||
* \return 返回手机qq版本号
|
||||
**/
|
||||
+ (int)iphoneTIMVersion __attribute__((deprecated("已过期, 建议删除调用")));
|
||||
|
||||
/**
|
||||
* 初始化TencentOAuth对象
|
||||
* \param appId 不可为nil,第三方应用在互联开放平台申请的唯一标识
|
||||
@ -225,18 +211,6 @@ typedef NS_ENUM(NSUInteger, TencentAuthMode) {
|
||||
*/
|
||||
+ (BOOL)iphoneTIMInstalled;
|
||||
|
||||
/**
|
||||
* 判断用户手机上的手机QQ是否支持SSO登录
|
||||
* \return YES:支持 NO:不支持
|
||||
*/
|
||||
+ (BOOL)iphoneQQSupportSSOLogin __attribute__((deprecated("QQ版本均支持SSO登录。该接口已过期, 建议删除调用")));
|
||||
|
||||
/**
|
||||
* 判断用户手机上的手机TIM是否支持SSO登录
|
||||
* \return YES:支持 NO:不支持
|
||||
*/
|
||||
+ (BOOL)iphoneTIMSupportSSOLogin __attribute__((deprecated("TIM版本均支持SSO登录。该接口已过期, 建议删除调用")));
|
||||
|
||||
/**
|
||||
* 登录授权
|
||||
*
|
||||
@ -244,23 +218,13 @@ typedef NS_ENUM(NSUInteger, TencentAuthMode) {
|
||||
*/
|
||||
- (BOOL)authorize:(NSArray *)permissions;
|
||||
|
||||
/**
|
||||
* 登录授权
|
||||
* \param permissions 授权信息列表
|
||||
* \param bInSafari 是否使用safari进行登录.<b>IOS SDK 1.3版本开始此参数废除</b>
|
||||
*/
|
||||
- (BOOL)authorize:(NSArray *)permissions
|
||||
inSafari:(BOOL)bInSafari;
|
||||
|
||||
/**
|
||||
* 登录授权
|
||||
* \param permissions 授权信息列表
|
||||
* \param localAppId 应用APPID
|
||||
* \param bInSafari 是否使用safari进行登录.<b>IOS SDK 1.3版本开始此参数废除</b>
|
||||
*/
|
||||
- (BOOL)authorize:(NSArray *)permissions
|
||||
localAppId:(NSString *)localAppId
|
||||
inSafari:(BOOL)bInSafari;
|
||||
localAppId:(NSString *)localAppId;
|
||||
|
||||
/**
|
||||
* 登录授权<web为二维码扫码方式>
|
||||
@ -406,7 +370,7 @@ typedef NS_ENUM(NSUInteger, TencentAuthMode) {
|
||||
/**
|
||||
* 登录时权限信息的获得
|
||||
*/
|
||||
- (NSArray *)getAuthorizedPermissions:(NSArray *)permissions withExtraParams:(NSDictionary *)extraParams;
|
||||
- (NSArray *)getAuthorizedPermissions:(NSArray *)permissions withExtraParams:(NSDictionary *)extraParams __attribute__((deprecated("该接口已过期, 建议删除调用")));
|
||||
|
||||
/**
|
||||
* unionID获得
|
||||
|
@ -0,0 +1,22 @@
|
||||
//
|
||||
// TencentOpenApiUmbrellaHeader.h
|
||||
// TencentOpenApi_IOS
|
||||
//
|
||||
// Created by jyukeizhang(张储祺) on 2020/7/27.
|
||||
// Copyright © 2020 Tencent. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef TencentOpenApiUmbrellaHeader_h
|
||||
#define TencentOpenApiUmbrellaHeader_h
|
||||
|
||||
FOUNDATION_EXPORT double StaticLibraryModuleVersionNumber;
|
||||
FOUNDATION_EXPORT const unsigned char StaticLibraryModuleVersionString[];
|
||||
|
||||
#imoort "QQApiInterface.h"
|
||||
#import "QQApiInterfaceObject.h"
|
||||
#import "sdkdef.h"
|
||||
#import "TencentOAuth.h"
|
||||
|
||||
|
||||
#endif /* TencentOpenApiUmbrellaHeader_h */
|
||||
|
@ -0,0 +1,9 @@
|
||||
framework module TencentOpenAPI {
|
||||
header "QQApiInterface.h"
|
||||
header "QQApiInterfaceObject.h"
|
||||
header "TencentOAuth.h"
|
||||
header "TencentOpenApiUmbrellaHeader.h"
|
||||
header "sdkdef.h"
|
||||
|
||||
export *
|
||||
}
|
Binary file not shown.
@ -18,10 +18,12 @@ A powerful Flutter plugin allowing developers to auth/share with natvie Android
|
||||
s.dependency 'Flutter'
|
||||
s.platform = :ios, '8.0'
|
||||
|
||||
# v3.3.9
|
||||
# v3.5.1
|
||||
s.subspec 'vendor' do |sp|
|
||||
sp.vendored_frameworks = 'Libraries/*.framework'
|
||||
sp.frameworks = 'SystemConfiguration', 'WebKit'
|
||||
sp.frameworks = 'Security', 'SystemConfiguration', 'CoreGraphics', 'CoreTelephony', 'WebKit'
|
||||
sp.libraries = 'iconv', 'sqlite3', 'stdc++', 'z'
|
||||
sp.requires_arc = true
|
||||
end
|
||||
|
||||
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
|
||||
|
Reference in New Issue
Block a user