| | |
| | | project.AddBuildProperty(targetGUID, "GCC_GENERATE_DEBUGGING_SYMBOLS", "NO"); |
| | | //webkit |
| | | project.AddFrameworkToProject(fwTargetGUID, "WebKit.framework", true); |
| | | //GameKit |
| | | project.AddFrameworkToProject(fwTargetGUID, "GameKit.framework", true); |
| | | //bugly |
| | | project.AddFrameworkToProject(fwTargetGUID, "SystemConfiguration.framework", true); |
| | | project.AddFrameworkToProject(fwTargetGUID, "Security.framework", true); |
| | |
| | | //project.AddFrameworkToProject(fwTargetGUID, "JavaScriptCore.frameWork", true); |
| | | project.AddFrameworkToProject(fwTargetGUID, "Accelerate.framework", true); |
| | | project.AddFrameworkToProject(fwTargetGUID, "SafariServices.framework", true); |
| | | project.AddFrameworkToProject(fwTargetGUID, "authenticationservices.framework", true); |
| | | project.AddFrameworkToProject(fwTargetGUID, "AuthenticationServices.framework", true); |
| | | project.AddFrameworkToProject(fwTargetGUID, "LocalAuthentication.framework", true); |
| | | |
| | | //appsflyer |
| | |
| | | |
| | | PlistElementDict rootDict = plist.root; |
| | | PlistElementDict nsAppTransportSecurity = rootDict.CreateDict("NSAppTransportSecurity"); |
| | | PlistElementArray nsURLTypes = rootDict.CreateArray("CFBundleURLTypes"); |
| | | nsAppTransportSecurity.SetBoolean("NSAllowsArbitraryLoads", true); |
| | | PlistElementDict dict = nsAppTransportSecurity.CreateDict("Exception Domains"); |
| | | dict = dict.CreateDict("jpush.cn"); |
| | | dict.SetBoolean("NSIncludesSubdomains", true); |
| | | dict.SetBoolean("NSExceptionAllowsInsecureHTTPLoads", true); |
| | | |
| | | rootDict.SetString("NSPhotoLibraryAddUsageDescription", "请您允许访问相册权限"); |
| | | rootDict.SetString("NSMicrophoneUsageDescription", "使用麦克风权限"); |
| | | rootDict.SetString("NSPhotoLibraryAddUsageDescription", "使用相册权限,用以存储截屏的账号信息,以防忘记账号密码"); |
| | | |
| | | rootDict.SetString("NSUserTrackingUsageDescription", "請放心,開啟權限不會獲取您在其他站點的隱私信息,該權限僅用於標識設備並保障服務安全,以優化我們的技術服務和體驗。"); |
| | | //google login |
| | | var urlTypes = rootDict.CreateArray("CFBundleURLTypes"); |
| | | var dic0 = urlTypes.AddDict(); |
| | |
| | | dic1.SetString("CFBundleTypeRole", "Editor"); |
| | | dic1.SetString("CFBundleURLName", ""); |
| | | var cfArray1 = dic1.CreateArray("CFBundleURLSchemes"); |
| | | cfArray1.AddString("com.googleusercontent.apps.468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd"); |
| | | //cfArray1.AddString("com.googleusercontent.apps.468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd"); |
| | | cfArray1.AddString("com.googleusercontent.apps.185347479213-doi46trvoviu8l04tr5qe7uvbs6oelse"); |
| | | |
| | | var dic2 = urlTypes.AddDict(); |
| | | dic2.SetString("CFBundleTypeRole", "Editor"); |
| | |
| | | var array = rootDict.CreateArray("LSApplicationQueriesSchemes"); |
| | | array.AddString("fbapi"); |
| | | array.AddString("fbauth2"); |
| | | |
| | | PlistElementDict dictUrl1 = nsURLTypes.AddDict(); |
| | | dictUrl1.SetString("CFBundleTypeRole", "Editor"); |
| | | dictUrl1.SetString("CFBundleURLName", ""); |
| | | var darray1 = dictUrl1.CreateArray("CFBundleURLSchemes"); |
| | | darray1.AddString("com.sanxiagame.zmjas"); |
| | | |
| | | PlistElementDict dictUrl2 = nsURLTypes.AddDict(); |
| | | dictUrl2.SetString("CFBundleTypeRole", "Editor"); |
| | | dictUrl2.SetString("CFBundleURLName", ""); |
| | | var darray2 = dictUrl2.CreateArray("CFBundleURLSchemes"); |
| | | darray2.AddString("com.googleusercontent.apps.468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd"); |
| | | |
| | | PlistElementDict dictUrl3 = nsURLTypes.AddDict(); |
| | | dictUrl3.SetString("CFBundleTypeRole", "Editor"); |
| | | dictUrl3.SetString("CFBundleURLName", ""); |
| | | var darray3 = dictUrl3.CreateArray("CFBundleURLSchemes"); |
| | | darray3.AddString("fb1749518565212194"); |
| | | |
| | | File.WriteAllText(plistPath, plist.WriteToString()); |
| | | } |
| | |
| | | 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("#import <AVFoundation/AVFoundation.h>", "#import <GMSDK/GMSDK.h>"); |
| | | xclass.WriteBelow("[self removeSnapshotViewController];", "[[SXGMSDK shareSDK] 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];"); |
| | | "[[SXGMSDK shareSDK] application:app openURL:url options:options];"); |
| | | xclass.WriteBelow("NSURL* url = userActivity.webpageURL;", "[[SXGMSDK shareSDK] 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];"); |
| | | "[[SXGMSDK shareSDK] application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:handler];"); |
| | | |
| | | |
| | | |