Skip to content

Commit 086ef40

Browse files
authored
Merge pull request #65 from SourcePointUSA/prepare-2.3.5
Prepare 2.3.5
2 parents f4ee635 + 9a48410 commit 086ef40

File tree

9 files changed

+17
-11
lines changed

9 files changed

+17
-11
lines changed

Assets/ConsentManagementProvider/Plugins/iOS/Source/SwiftBridge.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ import UIKit
107107
gdpr: Bool,
108108
ccpa: Bool,
109109
usnat: Bool,
110-
language: SPMessageLanguage,
110+
language: String,
111111
gdprPmId: String,
112112
ccpaPmId: String,
113113
usnatPmId: String) {
@@ -128,7 +128,7 @@ import UIKit
128128
usnat: usnat ? SPCampaign(targetingParams: usnatTargetingParams, transitionCCPAAuth: config.transitionCCPAAuth, supportLegacyUSPString: config.supportLegacyUSPString) : nil,
129129
ios14: SPCampaign()
130130
),
131-
language: language,
131+
language: SPMessageLanguage.init(rawValue: language) ?? SPMessageLanguage.BrowserDefault,
132132
delegate: self
133133
)}()
134134
}

Assets/ConsentManagementProvider/Plugins/iOS/Source/Unity.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ void _setSupportLegacyUSPString(bool value)
8181
[swiftBridge setSupportLegacyUSPStringWithValue:value];
8282
}
8383

84-
void _configLib(int accountId, int propertyId, char* propertyName, bool gdpr, bool ccpa, bool usnat, SPMessageLanguage language, char* gdprPmId, char* ccpaPmId, char* usnatPmId)
84+
void _configLib(int accountId, int propertyId, char* propertyName, bool gdpr, bool ccpa, bool usnat, char* language, char* gdprPmId, char* ccpaPmId, char* usnatPmId)
8585
{
86-
[swiftBridge configLibWithAccountId:accountId propertyId:propertyId propertyName:[NSString stringWithFormat:@"%s", propertyName] gdpr:gdpr ccpa:ccpa usnat:usnat language:language gdprPmId:[NSString stringWithFormat:@"%s", gdprPmId] ccpaPmId:[NSString stringWithFormat:@"%s", ccpaPmId] usnatPmId:[NSString stringWithFormat:@"%s", usnatPmId]];
86+
[swiftBridge configLibWithAccountId:accountId propertyId:propertyId propertyName:[NSString stringWithFormat:@"%s", propertyName] gdpr:gdpr ccpa:ccpa usnat:usnat language:[NSString stringWithFormat:@"%s", language] gdprPmId:[NSString stringWithFormat:@"%s", gdprPmId] ccpaPmId:[NSString stringWithFormat:@"%s", ccpaPmId] usnatPmId:[NSString stringWithFormat:@"%s", usnatPmId]];
8787
}
8888

8989
void _loadMessage()

Assets/ConsentManagementProvider/Scripts/wrapper/iOS/ConsentWrapperIOS.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using ConsentManagementProviderLib.Enum;
34
#if UNITY_IOS && !UNITY_EDITOR_OSX
45
using System.Runtime.InteropServices;
56
#endif
@@ -37,7 +38,7 @@ private set
3738
[DllImport("__Internal")]
3839
private static extern void _setSupportLegacyUSPString(bool value);
3940
[DllImport("__Internal")]
40-
private static extern void _configLib(int accountId, int propertyId, string propertyName, bool gdpr, bool ccpa, bool usnat, MESSAGE_LANGUAGE language, string gdprPmId, string ccpaPmId, string usnatPmId);
41+
private static extern void _configLib(int accountId, int propertyId, string propertyName, bool gdpr, bool ccpa, bool usnat, string language, string gdprPmId, string ccpaPmId, string usnatPmId);
4142
[DllImport("__Internal")]
4243
private static extern void _loadMessage();
4344
[DllImport("__Internal")]
@@ -121,7 +122,9 @@ public void InitializeLib(
121122
_setTransitionCCPAAuth((bool)transitionCCPAAuth);
122123
if(supportLegacyUSPString != null)
123124
_setSupportLegacyUSPString((bool)supportLegacyUSPString);
124-
_configLib(accountId, propertyId, propertyName, gdpr, ccpa, usnat, language, gdprPmId, ccpaPmId, usnatPmId);
125+
126+
string langName = CSharp2JavaStringEnumMapper.GetMessageLanguageKey(language);
127+
_configLib(accountId, propertyId, propertyName, gdpr, ccpa, usnat, langName, gdprPmId, ccpaPmId, usnatPmId);
125128
#endif
126129
}
127130

Assets/ExternalDependencyManager/Editor/SourcepointDependencies.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
* "subspecs" (optional)
3232
Subspecs to include for the pod.
3333
-->
34-
<iosPod name="ConsentViewController" version="7.6.8" bitcodeEnabled="true"
34+
<iosPod name="ConsentViewController" version="7.6.10" bitcodeEnabled="true"
3535
minTargetSdk="10.0" addToAllTargets="true">
3636

3737
</iosPod>
3838
</iosPods>
3939

4040
<androidPackages>
4141
<!-- <androidPackage spec="org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.3.0" />-->
42-
<androidPackage spec="com.sourcepoint.cmplibrary:cmplibrary:7.8.4" />
42+
<androidPackage spec="com.sourcepoint.cmplibrary:cmplibrary:7.8.5" />
4343
</androidPackages>
4444
</dependencies>

Assets/Plugins/Android/mainTemplate.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ apply plugin: 'com.android.library'
1616
dependencies {
1717
implementation fileTree(dir: 'libs', include: ['*.jar'])
1818
// Android Resolver Dependencies Start
19-
implementation 'com.sourcepoint.cmplibrary:cmplibrary:7.8.4' // Assets/ExternalDependencyManager/Editor/SourcepointDependencies.xml:42
19+
implementation 'com.sourcepoint.cmplibrary:cmplibrary:7.8.5' // Assets/ExternalDependencyManager/Editor/SourcepointDependencies.xml:42
2020
// Android Resolver Dependencies End
2121
**DEPS**}
2222

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2.3.5
2+
* Unity SDK brought to v7.8.5 Android & v7.6.10 iOS native SDK [#65](https://github.com/SourcePointUSA/unity-sdk/pull/65)
3+
14
# 2.3.4
25
* Unity SDK brought up to v7.8.4 of Native Android SDK [#62](https://github.com/SourcePointUSA/unity-sdk/pull/62) which fixes the following:
36
* [DIA-4112](https://sourcepoint.atlassian.net/browse/DIA-4112) Fixed: Links to vendors' privacy policy pages now working on Android devices

ProjectSettings/AndroidResolverDependencies.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<dependencies>
22
<packages>
3-
<package>com.sourcepoint.cmplibrary:cmplibrary:7.8.4</package>
3+
<package>com.sourcepoint.cmplibrary:cmplibrary:7.8.5</package>
44
</packages>
55
<files />
66
<settings>

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.3.4",
4+
"version": "2.3.5",
55
"unity": "2021.3",
66
"description": "Native UI Privacy Manager for both GDPR and CCPA legislations.",
77
"author": {
-380 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)