allez
2021-07-09 27c81ac22c0f0a2318ba8ac9adf7a091fc136021
Channel/IOS/gtios/Plugins/The2thWorldSDK/UniversalSDK.mm
@@ -13,7 +13,7 @@
#endif
#import "SystemConfiguration/CaptiveNetwork.h"
#import <YYJPlatform/YYJPlatform.h>
#import <AppTrackingTransparency/AppTrackingTransparency.h>
@implementation UniversalSDK
@@ -245,8 +245,18 @@
    //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"];
@@ -260,7 +270,7 @@
    initedState=1;
    NSMutableDictionary *_dict = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                  [NSNumber numberWithInt:S2U_SdkInitComplete], @"code",
                                  @"sanxia", @"channelPlatform", nil];
                                  @"sanxiaios", @"channelPlatform", nil];
    [self SendMessageToUnity:_dict];
}
@@ -292,6 +302,13 @@
        [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 {