| | |
| | | #endif |
| | | #import "SystemConfiguration/CaptiveNetwork.h" |
| | | #import <YYJPlatform/YYJPlatform.h> |
| | | |
| | | #import <AppTrackingTransparency/AppTrackingTransparency.h> |
| | | |
| | | |
| | | @implementation UniversalSDK |
| | |
| | | //facebook |
| | | [[YYJPlatform yyj_defaultPlatform] yyj_fb_Init:application launchOptions:launchOptions]; |
| | | |
| | | } |
| | | |
| | | //升级iOS SDK V6 介绍 ++++++++ |
| | | [[NSNotificationCenter defaultCenter] addObserver:self |
| | | selector:@selector(sendAppsFlyerLaunch:) |
| | | name:UIApplicationDidBecomeActiveNotification |
| | | object:nil]; |
| | | //升级iOS SDK V6 介绍 ++++++++ |
| | | |
| | | } |
| | | -(void)sendAppsFlyerLaunch:(UIApplication *)application { |
| | | [[YYJPlatform yyj_defaultPlatform] yyj_AppFlysStart]; |
| | | } |
| | | -(void) initYYJSdk{ |
| | | NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; |
| | | NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"]; |
| | |
| | | initedState=1; |
| | | NSMutableDictionary *_dict = [NSMutableDictionary dictionaryWithObjectsAndKeys: |
| | | [NSNumber numberWithInt:S2U_SdkInitComplete], @"code", |
| | | @"sanxia", @"channelPlatform", nil]; |
| | | @"sanxiaios", @"channelPlatform", nil]; |
| | | [self SendMessageToUnity:_dict]; |
| | | } |
| | | |
| | |
| | | [self SendMessageToUnity:_dict]; |
| | | } |
| | | [[YYJPlatform yyj_defaultPlatform]yyj_showFloatWindow]; //显示悬浮窗 |
| | | |
| | | //升级iOS SDK V6 介绍 ++++++++ |
| | | if (@available(iOS 14, *)) { |
| | | [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status){ |
| | | NSLog(@"attracking .. status: %ld",status); |
| | | }]; |
| | | } |
| | | } |
| | | |
| | | - (void)YYJPlatformLogout { |