@@ -17,24 +17,13 @@ public class CommandExecutor
17
17
18
18
private Dictionary < int , AdjustConfig > _savedConfigs = new Dictionary < int , AdjustConfig > ( ) ;
19
19
private Dictionary < int , AdjustEvent > _savedEvents = new Dictionary < int , AdjustEvent > ( ) ;
20
- private string _baseUrl ;
21
- private string _gdprUrl ;
22
- private string _subscriptionUrl ;
23
- private string _purchaseVerificationUrl ;
20
+ private string _overwriteUrl ;
24
21
private Command _command ;
25
22
private ITestLibrary _testLibrary ;
26
23
27
- public CommandExecutor (
28
- ITestLibrary testLibrary ,
29
- string baseUrl ,
30
- string gdprUrl ,
31
- string subscriptionUrl ,
32
- string purchaseVerificationUrl )
24
+ public CommandExecutor ( ITestLibrary testLibrary , string overwriteUrl )
33
25
{
34
- _baseUrl = baseUrl ;
35
- _gdprUrl = gdprUrl ;
36
- _subscriptionUrl = subscriptionUrl ;
37
- _purchaseVerificationUrl = purchaseVerificationUrl ;
26
+ _overwriteUrl = overwriteUrl ;
38
27
_testLibrary = testLibrary ;
39
28
}
40
29
@@ -96,10 +85,11 @@ public void ExecuteCommand(Command command)
96
85
private void TestOptions ( )
97
86
{
98
87
Dictionary < string , string > testOptions = new Dictionary < string , string > ( ) ;
99
- testOptions [ AdjustUtils . KeyTestOptionsBaseUrl ] = _baseUrl ;
100
- testOptions [ AdjustUtils . KeyTestOptionsGdprUrl ] = _gdprUrl ;
101
- testOptions [ AdjustUtils . KeyTestOptionsSubscriptionUrl ] = _subscriptionUrl ;
102
- testOptions [ AdjustUtils . KeyTestOptionsPurchaseVerificationUrl ] = _purchaseVerificationUrl ;
88
+ testOptions [ AdjustUtils . KeyTestOptionsBaseUrl ] = _overwriteUrl ;
89
+ testOptions [ AdjustUtils . KeyTestOptionsGdprUrl ] = _overwriteUrl ;
90
+ testOptions [ AdjustUtils . KeyTestOptionsSubscriptionUrl ] = _overwriteUrl ;
91
+ testOptions [ AdjustUtils . KeyTestOptionsPurchaseVerificationUrl ] = _overwriteUrl ;
92
+ testOptions [ AdjustUtils . KeyTestOptionsOverwriteUrl ] = _overwriteUrl ;
103
93
104
94
if ( _command . ContainsParameter ( "basePath" ) )
105
95
{
@@ -131,6 +121,14 @@ private void TestOptions()
131
121
{
132
122
testOptions [ AdjustUtils . KeyTestOptionsAdServicesFrameworkEnabled ] = _command . GetFirstParameterValue ( "adServicesFrameworkEnabled" ) ;
133
123
}
124
+ if ( _command . ContainsParameter ( "attStatus" ) )
125
+ {
126
+ testOptions [ AdjustUtils . KeyTestOptionsAttStatus ] = _command . GetFirstParameterValue ( "attStatus" ) ;
127
+ }
128
+ if ( _command . ContainsParameter ( "idfa" ) )
129
+ {
130
+ testOptions [ AdjustUtils . KeyTestOptionsIdfa ] = _command . GetFirstParameterValue ( "idfa" ) ;
131
+ }
134
132
#if UNITY_ANDROID
135
133
bool useTestConnectionOptions = false ;
136
134
#endif
@@ -388,6 +386,13 @@ private void Config()
388
386
}
389
387
}
390
388
389
+ if ( _command . ContainsParameter ( "attConsentWaitingSeconds" ) )
390
+ {
391
+ var attConsentWaitingSecondsStr = _command . GetFirstParameterValue ( "attConsentWaitingSeconds" ) ;
392
+ var attConsentWaitingSeconds = int . Parse ( attConsentWaitingSecondsStr , System . Globalization . CultureInfo . InvariantCulture ) ;
393
+ adjustConfig . setAttConsentWaitingInterval ( attConsentWaitingSeconds ) ;
394
+ }
395
+
391
396
if ( _command . ContainsParameter ( "deferredDeeplinkCallback" ) )
392
397
{
393
398
bool launchDeferredDeeplink = _command . GetFirstParameterValue ( "deferredDeeplinkCallback" ) == "true" ;
0 commit comments