Skip to content

Commit 32efb82

Browse files
authored
Merge pull request #25 from SourcePointUSA/prepare-2.1.5
Prepare 2.1.5
2 parents 205a90e + 693267c commit 32efb82

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

Assets/ConsentManagementProvider/Editor/CMPPostProcessBuild.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
public static class CMPPostProcessBuild
99
{
10-
[PostProcessBuild]
10+
[PostProcessBuild(800)]
1111
public static void OnPostProcessBuild(BuildTarget buildTarget, string buildPath)
1212
{
1313
if (buildTarget == BuildTarget.iOS)
@@ -29,12 +29,26 @@ public static void OnPostProcessBuild(BuildTarget buildTarget, string buildPath)
2929
EnableBitcode(pbxProject, unityProjectGuid, false);
3030

3131
pbxProject.WriteToFile(projPath);
32+
33+
AddBridgeToPods(buildPath);
3234

3335
string plistPath = buildPath + "/Info.plist";
3436
AddParameterToInfoPlist(plistPath);
3537
}
3638
}
3739

40+
static void AddBridgeToPods(string path)
41+
{
42+
PBXProject pbxPods = new PBXProject();
43+
string podsPath = path+"/Pods/Pods.xcodeproj/project.pbxproj";
44+
pbxPods.ReadFromFile(podsPath);
45+
string cmpGuid = pbxPods.TargetGuidByName("ConsentViewController");
46+
string cmpCmpGuid = pbxPods.TargetGuidByName("ConsentViewController-ConsentViewController");
47+
pbxPods.AddBuildProperty(cmpGuid, "CODE_SIGN_IDENTITY", "");
48+
pbxPods.AddBuildProperty(cmpCmpGuid, "CODE_SIGN_IDENTITY", "");
49+
pbxPods.WriteToFile(podsPath);
50+
}
51+
3852
static void AddParameterToInfoPlist(string plistPath)
3953
{
4054
PlistDocument plist = new PlistDocument();

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2.1.5
2+
* [DIA-2811](https://sourcepoint.atlassian.net/browse/DIA-2811) DIA-2811 Removed code signing for IOS [#25](https://github.com/SourcePointUSA/unity-sdk/pull/25)
3+
14
# 2.1.4
25
* [DIA-2808](https://sourcepoint.atlassian.net/browse/DIA-2808) DIA-2808 Implemented JSON parsing with Newtonsoft for Android [#20](https://github.com/SourcePointUSA/unity-sdk/pull/20)
36

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.sourcepoint.unitycmp",
33
"displayName": "Sourcepoint Consent Message Plugin",
4-
"version": "2.1.4",
4+
"version": "2.1.5",
55
"unity": "2021.3",
66
"description": "Native UI Privacy Manager for both GDPR and CCPA legislations.",
77
"author": {
Binary file not shown.

0 commit comments

Comments
 (0)