Files
yinmeng-ios/xplan-ios/Appdelegate/AppDelegate+ThirdConfig.m

33 lines
892 B
Mathematica
Raw Normal View History

2021-09-13 18:56:16 +08:00
//
// AppDelegate+ThirdConfig.m
// xplan-ios
//
// Created by on 2021/9/13.
//
#import "AppDelegate+ThirdConfig.h"
///Third
#import <ShareSDK/ShareSDK.h>
///Tool
#import "XPConstant.h"
@implementation AppDelegate (ThirdConfig)
///
- (void)initThirdConfig {
[self configShareSDK];
}
- (void)configShareSDK {
[ShareSDK registPlatforms:^(SSDKRegister *platformsRegister) {
//QQ
NSString *universalLink = @"https://6cqhk.share2dlink.com/";
NSString *qqUniversalLink = @"https://6cqhk.share2dlink.com/qq_conn/101937205";
[platformsRegister setupQQWithAppId:KeyWithType(KeyType_QQAppid) appkey:KeyWithType(KeyType_QQSecret) enableUniversalLink:YES universalLink:qqUniversalLink];
[platformsRegister setupWeChatWithAppId:KeyWithType(KeyType_WechatAppid) appSecret:KeyWithType(KeyType_WechatSecret) universalLink:universalLink];
}];
}
@end