Skip to content

Commit

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

[DIA-3263] The fix of no internet issue: Update to new android SDK version
  • Loading branch information
Nevazhnovu authored Jan 30, 2024
2 parents b6e969e + 0426bfb commit b3f7b25
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,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)
throw new ArgumentNullException(nameof(wrappedCcpa), "The CCPA consent wrapper cannot be 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.

0 comments on commit b3f7b25

Please sign in to comment.