Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIA-3263 internet connection issue #32

Merged
merged 5 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.