Skip to content

Commit 8287222

Browse files
committed
add ability to test deactivateSKAdNetworkHandling() method
1 parent bed5979 commit 8287222

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Assets/Adjust/Test/CommandExecutor.cs

+10
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,16 @@ private void Config()
346346
adjustConfig.allowIdfaReading = allowIdfaReading;
347347
}
348348

349+
if (_command.ContainsParameter("allowSkAdNetworkHandling"))
350+
{
351+
var allowSkAdNetworkHandlingS = _command.GetFirstParameterValue("allowSkAdNetworkHandling");
352+
var allowSkAdNetworkHandling = allowSkAdNetworkHandlingS.ToLower() == "true";
353+
if (allowSkAdNetworkHandling == false)
354+
{
355+
adjustConfig.deactivateSKAdNetworkHandling();
356+
}
357+
}
358+
349359
if (_command.ContainsParameter("userAgent"))
350360
{
351361
var userAgent = _command.GetFirstParameterValue("userAgent");

0 commit comments

Comments
 (0)