Commit 037feb51 cgx

暂时使用ocusmp.xinstall.com.cn第三方平台配置Universal Link

1 个父辈 74e821af
...@@ -1274,7 +1274,7 @@ ...@@ -1274,7 +1274,7 @@
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
HEADER_SEARCH_PATHS = "$(inherited)/**"; HEADER_SEARCH_PATHS = "$(inherited)/**";
INFOPLIST_FILE = DreamSleep/DSConfig/Info.plist; INFOPLIST_FILE = DreamSleep/DSConfig/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "小梦睡眠-Dev"; INFOPLIST_KEY_CFBundleDisplayName = "小梦睡眠";
INFOPLIST_KEY_NSCameraUsageDescription = "APP需要访问您的相机。"; INFOPLIST_KEY_NSCameraUsageDescription = "APP需要访问您的相机。";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
...@@ -1394,7 +1394,7 @@ ...@@ -1394,7 +1394,7 @@
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
HEADER_SEARCH_PATHS = "$(inherited)/**"; HEADER_SEARCH_PATHS = "$(inherited)/**";
INFOPLIST_FILE = DreamSleep/DSConfig/Info.plist; INFOPLIST_FILE = DreamSleep/DSConfig/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "小梦睡眠-Dev"; INFOPLIST_KEY_CFBundleDisplayName = "小梦睡眠-Beta";
INFOPLIST_KEY_NSCameraUsageDescription = "APP需要访问您的相机。"; INFOPLIST_KEY_NSCameraUsageDescription = "APP需要访问您的相机。";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</array> </array>
<key>com.apple.developer.associated-domains</key> <key>com.apple.developer.associated-domains</key>
<array> <array>
<string>applinks:cbti.cn/sleep_apple</string> <string>applinks:ocusmp.xinstall.com.cn</string>
</array> </array>
</dict> </dict>
</plist> </plist>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</array> </array>
<key>com.apple.developer.associated-domains</key> <key>com.apple.developer.associated-domains</key>
<array> <array>
<string>applinks:cbti.cn/sleep_apple</string> <string>applinks:ocusmp.xinstall.com.cn</string>
</array> </array>
</dict> </dict>
</plist> </plist>
...@@ -86,6 +86,14 @@ ...@@ -86,6 +86,14 @@
} }
} }
// 微信和QQ完整版都需要开发者配置正确的Universal link和对应的Universal link系统回调,详情可以看文档
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray<id<UIUserActivityRestoring>> * __nullable restorableObjects))restorationHandler {
if (![[UMSocialManager defaultManager] handleUniversalLink:userActivity options:nil]) {
// 其他SDK的回调
}
return YES;
}
#pragma mark - WXApiDelegate #pragma mark - WXApiDelegate
- (void)onReq:(BaseReq *)req { - (void)onReq:(BaseReq *)req {
DSLog(@"req:%@", req); DSLog(@"req:%@", req);
......
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
} }
- (void)presentViewController:(ImagePickerStyle)style { - (void)presentViewController:(ImagePickerStyle)style {
_tmpVc.navigationController.navigationBar.hidden = YES;
JWMImagePickerController *picker = [[JWMImagePickerController alloc] initWithImagePickerStyle:style]; JWMImagePickerController *picker = [[JWMImagePickerController alloc] initWithImagePickerStyle:style];
picker.JWMdelegate = self; picker.JWMdelegate = self;
[_tmpVc presentViewController:picker animated:YES completion:nil]; [_tmpVc presentViewController:picker animated:YES completion:nil];
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
} }
- (void)updatePortraitAction { - (void)updatePortraitAction {
[[[PhotoAlertView alloc] initWithVC:self.delegate] showPhotoAlertView]; [[[PhotoAlertView alloc] initWithVC:self.ds_viewController] showPhotoAlertView];
} }
- (void)layoutAction { - (void)layoutAction {
......
...@@ -53,13 +53,13 @@ ...@@ -53,13 +53,13 @@
// 创建图片内容对象 // 创建图片内容对象
UMShareImageObject*shareObject =[[UMShareImageObject alloc] init]; UMShareImageObject*shareObject =[[UMShareImageObject alloc] init];
// 如果有缩略图,则设置缩略图 // 如果有缩略图,则设置缩略图
shareObject.thumbImage =[UIImage imageNamed:@"icon"]; shareObject.thumbImage = [UIImage imageNamed:@"icon"];
UIImage *img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForAuxiliaryExecutable:@"invite_friend.webp"]]; UIImage *img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForAuxiliaryExecutable:@"invite_friend.webp"]];
[shareObject setShareImage:img]; [shareObject setShareImage:img];
// 分享消息对象设置分享内容对象 // 分享消息对象设置分享内容对象
messageObject.shareObject = shareObject; messageObject.shareObject = shareObject;
// 调用分享接口 // 调用分享接口
[[UMSocialManager defaultManager] shareToPlatform:platformType messageObject:messageObject currentViewController:self completion:^(id data,NSError*error){ [[UMSocialManager defaultManager] shareToPlatform:platformType messageObject:messageObject currentViewController:self completion:^(id data,NSError*error) {
if (error) { if (error) {
if (error.code == 2008) { if (error.code == 2008) {
[DSProgressHUD showToast:(platformType == UMSocialPlatformType_QQ) ? @"您的设备未安装QQ" : @"您的设备未安装微信"]; [DSProgressHUD showToast:(platformType == UMSocialPlatformType_QQ) ? @"您的设备未安装QQ" : @"您的设备未安装微信"];
......
...@@ -29,7 +29,7 @@ NSString * const UserBasicInfo = @"UserBasicInfo"; ...@@ -29,7 +29,7 @@ NSString * const UserBasicInfo = @"UserBasicInfo";
NSString * const WeChatAppID = @"wx4cdd4760092cdfdf"; NSString * const WeChatAppID = @"wx4cdd4760092cdfdf";
NSString * const WeChatAppSecret = @"72c0a939b605b824d0c6d9dbde152ae0"; NSString * const WeChatAppSecret = @"72c0a939b605b824d0c6d9dbde152ae0";
NSString * const UNIVERSAL_LINK = @"https://www.cbti.cn/sleep_apple/"; NSString * const UNIVERSAL_LINK = @"https://ocusmp.xinstall.com.cn/tolink/";
NSString * const QQAppID = @"1111310949"; NSString * const QQAppID = @"1111310949";
NSString * const QQAppKey = @"CiiSZ3E04SlKKmVN"; NSString * const QQAppKey = @"CiiSZ3E04SlKKmVN";
NSString * const UMengAppKey = @"62048053e0f9bb492bfcb0e8"; NSString * const UMengAppKey = @"62048053e0f9bb492bfcb0e8";
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!