Skip to content

Commit a3e6423

Browse files
committed
added AppleEncryptionPostBuild, changed logo
1 parent 4246840 commit a3e6423

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using System.IO;
2+
using UnityEngine;
3+
using UnityEditor;
4+
using UnityEditor.Callbacks;
5+
using UnityEditor.iOS.Xcode;
6+
7+
namespace Sequence.Editor
8+
{
9+
public static class AppleEncryptionPostBuild
10+
{
11+
[PostProcessBuild(999)]
12+
public static void OnPostProcessBuild(BuildTarget target, string pathToBuiltProject)
13+
{
14+
if (target != BuildTarget.iOS)
15+
return;
16+
17+
var plistPath = Path.Combine(pathToBuiltProject, "Info.plist");
18+
19+
var plist = new PlistDocument();
20+
plist.ReadFromFile(plistPath);
21+
22+
var rootDict = plist.root;
23+
24+
rootDict.SetBoolean("ITSAppUsesNonExemptEncryption", false);
25+
26+
plist.WriteToFile(plistPath);
27+
28+
Debug.Log("Added ITSAppUsesNonExemptEncryption = false to Info.plist");
29+
}
30+
}
31+
}

Assets/SequenceSDK/Editor/AppleEncryptionFlagPostBuild.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Sprites/unity-sdk-logo.png

-1.53 KB
Loading

ProjectSettings/ProjectSettings.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PlayerSettings:
88
AndroidProfiler: 0
99
AndroidFilterTouchesWhenObscured: 0
1010
AndroidEnableSustainedPerformanceMode: 0
11-
defaultScreenOrientation: 2
11+
defaultScreenOrientation: 4
1212
targetDevice: 2
1313
useOnDemandResources: 0
1414
accelerometerFrequency: 60

0 commit comments

Comments
 (0)