| | |
| | | rootDict.SetString("NSMicrophoneUsageDescription", "使用麦克风权限"); |
| | | rootDict.SetString("NSPhotoLibraryAddUsageDescription", "使用相册权限,用以存储截屏的账号信息,以防忘记账号密码"); |
| | | |
| | | //google login |
| | | PlistElementDict cfDict = rootDict.CreateDict("CFBundleURLTypes"); |
| | | cfDict.SetString("CFBundleTypeRole", "Editor"); |
| | | cfDict.SetString("CFBundleURLName", ""); |
| | | var cfArray = cfDict.CreateArray("CFBundleURLSchemes"); |
| | | cfArray.AddString("com.googleusercontent.apps.468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd"); |
| | | |
| | | //facebook |
| | | rootDict.SetString("FacebookAppID", "1749518565212194"); |
| | | rootDict.SetString("FacebookDisplayName", "镇魔诀"); |
| | | var array = nsAppTransportSecurity.CreateArray("LSApplicationQueriesSchemes"); |
| | | var array = rootDict.CreateArray("LSApplicationQueriesSchemes"); |
| | | array.AddString("fbapi"); |
| | | array.AddString("fbauth2"); |
| | | |
| | |
| | | " _universalSDK = [[UniversalSDK alloc] init];\n [_universalSDK QuickSDKInit:application didFinishLaunchingWithOptions:launchOptions];"; |
| | | xclass.WriteBelow("[KeyboardDelegate Initialize];", newCode); |
| | | |
| | | //AF 生命周期 |
| | | xclass.WriteBelow("#import <AVFoundation/AVFoundation.h>", "#import <YYJPlatform/YYJPlatform.h>"); |
| | | xclass.WriteBelow("[self removeSnapshotViewController];", "[[YYJPlatform yyj_defaultPlatform] yyj_applicationDidBecomeActive:application];"); |
| | | xclass.WriteBelow("- (BOOL)application:(UIApplication*)app openURL:(NSURL*)url options:(NSDictionary<NSString*, id>*)options\n{", |
| | | "[[YYJPlatform yyj_defaultPlatform] yyj_application:app openURL:url options:options];"); |
| | | xclass.WriteBelow("NSURL* url = userActivity.webpageURL;", "[[YYJPlatform yyj_defaultPlatform] yyj_application:application continueUserActivity:userActivity restorationHandler:restorationHandler];"); |
| | | xclass.WriteBelow("- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))handler\n{", |
| | | "[[YYJPlatform yyj_defaultPlatform] yyj_application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:handler];"); |
| | | |
| | | |
| | | |
| | | /**修改UnityAppController.h 文件**/ |