先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
47 lines
1.3 KiB
Objective-C
47 lines
1.3 KiB
Objective-C
//
|
|
// TDRunTime.m
|
|
// ThinkingSDK
|
|
//
|
|
// Created by wwango on 2021/12/30.
|
|
//
|
|
|
|
#import "TDRunTime.h"
|
|
#import "TDJSONUtil.h"
|
|
#import "TDPresetProperties+TDDisProperties.h"
|
|
|
|
@implementation TDRunTime
|
|
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Wundeclared-selector"
|
|
|
|
+ (NSString *)getAppLaunchReason {
|
|
// start reason
|
|
Class cls = NSClassFromString(@"TDAppLaunchReason");
|
|
id appLaunch = [cls performSelector:@selector(sharedInstance)];
|
|
|
|
if (appLaunch &&
|
|
[appLaunch respondsToSelector:@selector(appLaunchParams)] &&
|
|
!TDPresetProperties.disableStartReason)
|
|
{
|
|
NSDictionary *startReason = [appLaunch performSelector:@selector(appLaunchParams)];
|
|
NSString *url = startReason[@"url"];
|
|
NSDictionary *data = startReason[@"data"];
|
|
if (url.length == 0 && data.allKeys.count == 0) {
|
|
return @"";
|
|
} else {
|
|
if (data.allKeys.count == 0) {
|
|
startReason = @{@"url":url, @"data":@""};
|
|
}
|
|
NSString *startReasonString = [TDJSONUtil JSONStringForObject:startReason];
|
|
if (startReasonString && startReasonString.length) {
|
|
return startReasonString;
|
|
}
|
|
}
|
|
}
|
|
return @"";
|
|
}
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
@end
|