Skip to content

Commit

Permalink
Merge pull request #32 from SourcePointUSA/DIA-3263-internet-connecti…
Browse files Browse the repository at this point in the history
…on-issue-main

DIA-3263 internet connection issue
  • Loading branch information
Nevazhnovu authored Jan 30, 2024
2 parents 9fdf6f5 + d16646c commit 4863388
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ public static SpConsents UnwrapSpConsentsAndroid(string json)
}
catch (Exception ex)
{
throw new ApplicationException("An error occurred during JSON unwrapping.", ex);
throw new ApplicationException("An error occurred during JSON unwrapping." + ex.Message, ex);
}
}

private static SpCcpaConsent UnwrapSpCcpaConsentAndroid(CcpaConsentWrapper wrappedCcpa)
{
if (wrappedCcpa == null)
{
CmpDebugUtil.LogError("The CCPA consent wrapper cannot be null.");
return null;
}
CcpaConsent unwrapped = new CcpaConsent(
uuid: wrappedCcpa.uuid,
status: wrappedCcpa.status,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public static void Broadcast<T>(params object[] list) where T : IConsentEventHan
break;
case nameof(IOnConsentError):
Exception exception= (Exception)list[0];

CmpDebugUtil.LogError("Error message: " + exception.Message);
CmpDebugUtil.LogError("Stack Trace: " + exception.StackTrace);

BroadcastEventDispatcher.Execute<IOnConsentError>(null, (i, d) => i.OnConsentError(exception));
break;
case nameof(IOnConsentUIReady):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.1.7
* [DIA-3263](https://sourcepoint.atlassian.net/browse/DIA-3263) DIA-3263 Fix internet connection issue [#32](https://github.com/SourcePointUSA/unity-sdk/pull/32)
* Added native support for v7.6.0 Android

# 2.1.6
* [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)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.sourcepoint.unitycmp",
"displayName": "Sourcepoint Consent Message Plugin",
"version": "2.1.6",
"version": "2.1.7",
"unity": "2021.3",
"description": "Native UI Privacy Manager for both GDPR and CCPA legislations.",
"author": {
Expand Down
Binary file modified unitypackage/ConsentManagementProvider.unitypackage
Binary file not shown.

0 comments on commit 4863388

Please sign in to comment.