Skip to content

Commit 5a34748

Browse files
committed
refac: rename local android environment variable
1 parent 0c72231 commit 5a34748

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/Adjust/Scripts/AdjustAndroid.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ public static void InitSdk(AdjustConfig adjustConfig)
3030
// new AndroidJavaClass("com.adjust.sdk.AdjustConfig").GetStatic<AndroidJavaObject>("ENVIRONMENT_PRODUCTION");
3131

3232
// get environment variable
33-
string ajoEnvironment = adjustConfig.Environment == AdjustEnvironment.Production ? "production" : "sandbox";
33+
string environment = adjustConfig.Environment == AdjustEnvironment.Production ? "production" : "sandbox";
3434

3535
// create config object
3636
AndroidJavaObject ajoAdjustConfig;
3737

3838
// check if suppress log level is supported
3939
if (adjustConfig.AllowSuppressLogLevel != null)
4040
{
41-
ajoAdjustConfig = new AndroidJavaObject("com.adjust.sdk.AdjustConfig", ajoCurrentActivity, adjustConfig.AppToken, ajoEnvironment, adjustConfig.AllowSuppressLogLevel);
41+
ajoAdjustConfig = new AndroidJavaObject("com.adjust.sdk.AdjustConfig", ajoCurrentActivity, adjustConfig.AppToken, environment, adjustConfig.AllowSuppressLogLevel);
4242
}
4343
else
4444
{
45-
ajoAdjustConfig = new AndroidJavaObject("com.adjust.sdk.AdjustConfig", ajoCurrentActivity, adjustConfig.AppToken, ajoEnvironment);
45+
ajoAdjustConfig = new AndroidJavaObject("com.adjust.sdk.AdjustConfig", ajoCurrentActivity, adjustConfig.AppToken, environment);
4646
}
4747

4848
// check if deferred deeplink should be launched by the SDK

0 commit comments

Comments
 (0)