Channel/IOS/gtios/Plugins/The2thWorldSDK/UniversalSDK.h
@@ -18,7 +18,7 @@ #define YYJ_APPSCHEME @"com.sanxiagame.zmjas" #define AF_KEY @"muBUcmQaNv9hbArNpvSm6V" #define AF_APPLE_APPID @"1557193084" #define AF_APPLE_APPID @"id1557193084" #define S2U_BatteryLevel 1 #define S2U_BatteryCharging 2 Channel/IOS/gtios/Plugins/The2thWorldSDK/UniversalSDK.mm
@@ -188,50 +188,47 @@ } -(void)QuickSDKInit:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { /* 初始化完成之后,会有初始化完成通知( yyj_PlatformInitDidFinishedNotification )开 发者在该回调⽅法中做登录操作 初始化完成之后,会有初始化完成通知( yyj_PlatformInitDidFinishedNotification )开发者在该回调方法中做登录操作 该通知应注册在初始化之前 */ //添加⼀个初始化通知观察者,初始化结束后,登录等操作务必在收到该通知后调⽤ [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformInitFinished) name:yyj_PlatformInitDidFinishedNotification object:nil]; //添加一个初始化通知观察者,初始化结束后,登录等操作务必在收到该通知后调用 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformInitFinished) name:yyj_PlatformInitDidFinishedNotification object:nil]; //初始化失败 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformInitFinished) [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformInitFinishedFail) name:yyj_PlatformInitFinishedFailNotification object:nil]; //添加⼀个登录成功通知观察者,调⽤悬浮框等操作务必在收到该通知后调⽤ [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformLogin) name:yyj_PlatformLoginNotification object:nil]; //添加⼀个注销成功通知观察者 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformLogout) name:yyj_PlatformLogoutNotification object:nil]; // 添加⼀个⽀付成功通知观察者 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformBMaiSuccessful) name:yyj_PlatformBMaiSuccessfulNotification object:nil]; // 添加⼀个⽀付失败通知观察者 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformBMaiFail) name:yyj_PlatformBMaiFailNotification object:nil]; //添加⼀个实名认证⻚⾯关闭通知观察者 // [[NSNotificationCenter defaultCenter]addObserver:self // selector:@selector(YYJPlatformRealNameAuthenticationClose) // name:yyj_PlatformRealNameAuthenticationCloseNotification object:nil]; // 添加一个支付成功通知观察者 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformBMaiSuccessful) name:yyj_PlatformBMaiSuccessfulNotification object:nil]; // 添加一个支付失败通知观察者 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformBMaiFail) name:yyj_PlatformBMaiFailNotification object:nil]; //添加一个登录成功通知观察者,调用悬浮框等操作务必在收到该通知后调用 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformLogin) name:yyj_PlatformLoginNotification object:nil]; //添加一个注销成功通知观察者 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformLogout) name:yyj_PlatformLogoutNotification object:nil]; //添加FB分享 结果通知观察者 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(YYJPlatformFBShareNotify:) name:yyj_PlatformShareFBNotification object:nil]; #ifdef DEBUG // 输出⽇志 // 输出日志 [[YYJPlatform yyj_defaultPlatform]yyj_isShowLog:YES]; #endif [self initYYJSdk]; //appsflyer [[YYJPlatform yyj_defaultPlatform] yyj_AppsFlyer_Init:AF_KEY appleAppID:AF_APPLE_APPID]; [[YYJPlatform yyj_defaultPlatform] yyj_google_Init:kClientID]; [[YYJPlatform yyj_defaultPlatform] yyj_fb_Init:application launchOptions:launchOptions]; [self initYYJSdk]; } -(void) initYYJSdk{ @@ -300,6 +297,35 @@ [NSNumber numberWithInt:S2U_FreePlatformPayFail], @"code", nil]; [self SendMessageToUnity:_dict]; } //FB 分享回调通知 -(void)YYJPlatformFBShareNotify:(NSNotification *)obj { NSString *msg = obj?[obj.userInfo valueForKey:@"msg"]: @""; NSInteger code = obj? [[obj.userInfo valueForKey:@"code"] intValue] :-1; //code: 1成功, -1 取消, -2 异常 int state = 0; switch (code) { case 1: //成功 state = 1; break; case -2: //异常 state = 2; break; default: //取消 state = 0; break; } NSDictionary *_dict = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithInt:state], @"state", [NSNumber numberWithInt:S2U_ShareCallBack], @"code", nil]; [self SendMessageToUnity:_dict]; NSLog(@"** FB 分享完成 ** code:%ld, msg:%@ ", code, msg); } -(id) APNativeJSONObject:(NSData *)data{ if (!data) { @@ -440,11 +466,21 @@ case U2S_BatteryListenStop: break; case U2S_AFTrackEvent: { NSString *eventName = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"eventName"]]; NSDictionary *param= _dict[@"eventValues"]; [[YYJPlatform yyj_defaultPlatform] yyj_AppFlysTraceEvent:eventName param:param]; break; } case U2S_ShareToFaceBook: { NSString *shareurl = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"url"]]; [[YYJPlatform yyj_defaultPlatform] yyj_share2facebook:@"share" url:shareurl img:NULL]; break; } } } @end Channel/IOS/gtios/Plugins/sanxia/GoogleService-Info.plist
@@ -3,23 +3,21 @@ <plist version="1.0"> <dict> <key>CLIENT_ID</key> <string>185347479213-qlni3h746onc1ibet2otbih711iiood0.apps.googleusercontent.com</string> <string>468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd.apps.googleusercontent.com</string> <key>REVERSED_CLIENT_ID</key> <string>com.googleusercontent.apps.185347479213-qlni3h746onc1ibet2otbih711iiood0</string> <key>ANDROID_CLIENT_ID</key> <string>185347479213-44kgnk8nlsaur06ng0njv2ilv5vn17au.apps.googleusercontent.com</string> <string>com.googleusercontent.apps.468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd</string> <key>API_KEY</key> <string>AIzaSyBHaHdiaav0BlwqK4t2Wwsqs7OgPhBTlUk</string> <string>AIzaSyCgvd3UdcGRQt6xZQ80_FuisiE4f9uhL4c</string> <key>GCM_SENDER_ID</key> <string>185347479213</string> <string>468442318367</string> <key>PLIST_VERSION</key> <string>1</string> <key>BUNDLE_ID</key> <string>com.sanxiagame.zmjas</string> <key>PROJECT_ID</key> <string>sxgame-292808</string> <string>sanxiagamezhenmojve-3f07b</string> <key>STORAGE_BUCKET</key> <string>sxgame-292808.appspot.com</string> <string>sanxiagamezhenmojve-3f07b.appspot.com</string> <key>IS_ADS_ENABLED</key> <false></false> <key>IS_ANALYTICS_ENABLED</key> @@ -31,8 +29,6 @@ <key>IS_SIGNIN_ENABLED</key> <true></true> <key>GOOGLE_APP_ID</key> <string>1:185347479213:ios:1af294d89362bb78829824</string> <key>DATABASE_URL</key> <string>https://sxgame-292808.firebaseio.com</string> <string>1:468442318367:ios:f8b79f49d90e5e4c65b72a</string> </dict> </plist> Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJAboutAccountViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJAccountViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJChangPwdViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJComRegisterViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJEditAccountViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJFindPswViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJLoginViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJMinAccountTableViewCell.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJMinAccountViewController.nib/objects-11.0+.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJMinAccountViewController.nib/runtime.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJPhoneRegisterViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJPhoneSettingPswViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJQuickRegisterViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJRealNameViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJResetPswViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJSafetySettingViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.bundle/ViewControllerNib/YYJSafetyWarmViewController.nibBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/Info.plist
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/Roboto-Bold.ttfBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/ar.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/ca.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/cs.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/da.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/de.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/el.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/en.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/en_GB.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/es.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/es_MX.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/fi.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/fr.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/fr_CA.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/google.pngBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/google@2x.pngBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/google@3x.pngBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/he.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/hi.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/hr.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/hu.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/id.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/it.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/ja.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/ko.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/ms.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/nb.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/nl.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/pl.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/pt.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/pt_BR.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/pt_PT.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/ro.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/ru.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/sk.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/sv.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/th.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/tr.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/uk.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/vi.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/zh_CN.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/GoogleSignIn.bundle/zh_TW.lproj/GoogleSignIn.strings
File was deleted Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/Headers/YYJPlatform.h
@@ -85,6 +85,16 @@ */ - (void)yyj_showRealNameAuthenticationController; /** 分享 */ - (void)yyj_share:(NSString *)title url:(NSString *)url img:(UIImage *)img; /** 分享到facebook */ - (void)yyj_share2facebook:(NSString *)title url:(NSString *)url img:(UIImage *)img; @end #pragma mark-- 用户部分,登录、注销 @interface YYJPlatform (yyj_UserCenter) @@ -218,6 +228,7 @@ -(void)yyj_facebookTraceEvent:(NSString *)eventName param:(NSDictionary *)param; /** for AppsFly */ Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/Headers/YYJPlatformDefines.h
@@ -20,5 +20,7 @@ UIKIT_EXTERN NSString* const yyj_PlatformBMaiFailNotification; // 支付失败 UIKIT_EXTERN NSString* const yyj_PlatformRealNameAuthenticationCloseNotification; // 实名认证页面关闭通知 UIKIT_EXTERN NSString* const yyj_PlatformShareFBNotification; //分享结果 #endif /* YYJPlatformDefines_h */ Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/Info.plistBinary files differ
Channel/IOS/gtios/Plugins/sanxia/YYJPlatform.framework/YYJPlatformBinary files differ