Skip to content

Commit 4863388

Browse files
authored
Merge pull request #32 from SourcePointUSA/DIA-3263-internet-connection-issue-main
DIA-3263 internet connection issue
2 parents 9fdf6f5 + d16646c commit 4863388

File tree

9 files changed

+17
-4
lines changed

9 files changed

+17
-4
lines changed

Assets/ConsentManagementProvider/Scripts/json/JsonUnwrapper.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,17 @@ public static SpConsents UnwrapSpConsentsAndroid(string json)
3434
}
3535
catch (Exception ex)
3636
{
37-
throw new ApplicationException("An error occurred during JSON unwrapping.", ex);
37+
throw new ApplicationException("An error occurred during JSON unwrapping." + ex.Message, ex);
3838
}
3939
}
4040

4141
private static SpCcpaConsent UnwrapSpCcpaConsentAndroid(CcpaConsentWrapper wrappedCcpa)
4242
{
43+
if (wrappedCcpa == null)
44+
{
45+
CmpDebugUtil.LogError("The CCPA consent wrapper cannot be null.");
46+
return null;
47+
}
4348
CcpaConsent unwrapped = new CcpaConsent(
4449
uuid: wrappedCcpa.uuid,
4550
status: wrappedCcpa.status,

Assets/ConsentManagementProvider/Scripts/observer/ConsentMessenger.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public static void Broadcast<T>(params object[] list) where T : IConsentEventHan
3232
break;
3333
case nameof(IOnConsentError):
3434
Exception exception= (Exception)list[0];
35+
36+
CmpDebugUtil.LogError("Error message: " + exception.Message);
37+
CmpDebugUtil.LogError("Stack Trace: " + exception.StackTrace);
38+
3539
BroadcastEventDispatcher.Execute<IOnConsentError>(null, (i, d) => i.OnConsentError(exception));
3640
break;
3741
case nameof(IOnConsentUIReady):

Assets/ExternalDependencyManager/Editor/SourcepointDependencies.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939

4040
<androidPackages>
4141
<!-- <androidPackage spec="org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.3.0" />-->
42-
<androidPackage spec="com.sourcepoint.cmplibrary:cmplibrary:7.2.7" />
42+
<androidPackage spec="com.sourcepoint.cmplibrary:cmplibrary:7.6.0" />
4343
</androidPackages>
4444
</dependencies>
Binary file not shown.
Binary file not shown.

Assets/Plugins/Android/com.sourcepoint.cmplibrary.cmplibrary-7.2.7.aar.meta renamed to Assets/Plugins/Android/com.sourcepoint.cmplibrary.cmplibrary-7.6.0.aar.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.1.7
2+
* [DIA-3263](https://sourcepoint.atlassian.net/browse/DIA-3263) DIA-3263 Fix internet connection issue [#32](https://github.com/SourcePointUSA/unity-sdk/pull/32)
3+
* Added native support for v7.6.0 Android
4+
15
# 2.1.6
26
* [DIA-3423](https://sourcepoint.atlassian.net/browse/DIA-3423)[DIA-3349](https://sourcepoint.atlassian.net/browse/DIA-3349) DIA-3423, DIA-3349 Fix Unity racing conditions [#28](https://github.com/SourcePointUSA/unity-sdk/pull/28)
37

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

0 commit comments

Comments
 (0)