public static void UpdateXcodeProject(string projectPath) { CheckIosVersion(); #if !UNITY_CLOUD_BUILD Debug.Log(string.Format("GetSocial: Xcode postprocessing started for project '{0}'", projectPath)); #endif PBXProjectUtils.ModifyPbxProject(projectPath, (project, target) => { AddOtherLinkerFlags(project, target); SetupDeepLinking(project, projectPath, target); #if !UNITY_2018_3_OR_NEWER EmbedFrameworks(project, target); #endif AddStripFrameworksScriptBuildPhase(project, projectPath, target); if (GetSocialSettings.IsRichPushNotificationsEnabled && GetSocialSettings.IsIosPushEnabled) { AddNotificationExtension(project, projectPath); } project.CheckRuntimeSearchPath(); }); PBXProjectUtils.ModifyPlist(projectPath, (plistDocument) => { WhitelistApps(plistDocument); SetUiBackgroundModes(plistDocument); DisableViewControllerBasedStatusBar(plistDocument); }); }
public static void UpdateXcodeProject(string projectPath) { CheckIosVersion(); Debug.Log(string.Format("GetSocial: Xcode postprocessing started for project '{0}'", projectPath)); PBXProjectUtils.ModifyPbxProject(projectPath, (project, target) => { AddOtherLinkerFlags(project, target); SetupDeepLinking(project, projectPath, target); EmbedFrameworks(project, target); AddStripFrameworksScriptBuildPhase(project, target); RemoveUiPluginFiles(project, target); }); PBXProjectUtils.ModifyPlist(projectPath, (plistDocument) => { AddGetSocialAppId(plistDocument); AddAnalyticsSuperPropertiesMetaData(plistDocument); WhitelistApps(plistDocument); SetAutoRegisterForPushTag(plistDocument); SetForegroundNotifications(plistDocument); SetAutoInitSdk(plistDocument); SetUiBackgroundModes(plistDocument); SetDefaultUiConfigurationFilePathTag(plistDocument); DisableViewControllerBasedStatusBar(plistDocument); }); }
static void AddGetSocialUrlScheme(string projectPath) { #if !UNITY_CLOUD_BUILD Debug.Log(string.Format("[GetSocial] Setting up GetSocial deep linking for iOS <= 8 for '{0}'", projectPath)); #endif PBXProjectUtils.ModifyPlist(projectPath, AddGetSocialUrlSchemeToPlist, "Failed to set up GetSocial deep linking for iOS <= 8."); }
public static void UpdateXcodeProject(string projectPath) { CheckIosVersion(); #if !UNITY_CLOUD_BUILD Debug.Log(string.Format("GetSocial: Xcode postprocessing started for project '{0}'", projectPath)); #endif PBXProjectUtils.ModifyPbxProject(projectPath, (project, target) => { AddOtherLinkerFlags(project, target); SetupDeepLinking(project, projectPath, target); #if !UNITY_2018_3_OR_NEWER EmbedFrameworks(project, target); #endif AddStripFrameworksScriptBuildPhase(project, projectPath, target); RemoveUiPluginFiles(project, target); if (GetSocialSettings.IsRichPushNotificationsEnabled && GetSocialSettings.IsIosPushEnabled) { AddNotificationExtension(project, projectPath); } }); PBXProjectUtils.ModifyPlist(projectPath, (plistDocument) => { AddGetSocialAppId(plistDocument); AddAnalyticsSuperPropertiesMetaData(plistDocument); WhitelistApps(plistDocument); SetAutoRegisterForPushTag(plistDocument); SetForegroundNotifications(plistDocument); SetShouldWaitForPushListener(plistDocument); SetAutoInitSdk(plistDocument); SetDisableFacebookReferralCheck(plistDocument); SetUiBackgroundModes(plistDocument); SetCustomUiConfigurationFilePathTag(plistDocument); DisableViewControllerBasedStatusBar(plistDocument); }); }
static void AddGetSocialUrlScheme(string projectPath) { Debug.Log(string.Format("GetSocial: Setting up GetSocial deep linking for iOS <= 8 for '{0}'", projectPath)); PBXProjectUtils.ModifyPlist(projectPath, AddGetSocialUrlSchemeToPlist, "Failed to set up GetSocial deep linking for iOS <= 8."); }