File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ namespace com.adjust.sdk
1010#if UNITY_ANDROID
1111 public class AdjustAndroid : IAdjust
1212 {
13+ private const string sdkPrefix = "unity4.0.2" ;
1314 private AndroidJavaClass ajcAdjust ;
1415 private AndroidJavaObject ajoCurrentActivity ;
1516 private AttributionChangeListener onAttributionChangedListener ;
@@ -80,7 +81,7 @@ public void start (AdjustConfig adjustConfig)
8081 ajoAdjustConfig . Call ( "setOnAttributionChangedListener" , onAttributionChangedListener ) ;
8182 }
8283
83- ajoAdjustConfig . Call ( "setSdkPrefix" , "unity4.0.2" ) ;
84+ ajoAdjustConfig . Call ( "setSdkPrefix" , sdkPrefix ) ;
8485
8586 ajcAdjust . CallStatic ( "onCreate" , ajoAdjustConfig ) ;
8687
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ namespace com.adjust.sdk
1010#if UNITY_IOS
1111 public class AdjustiOS : IAdjust
1212 {
13+ private const string sdkPrefix = "unity4.0.2" ;
14+
1315 #region External methods
1416
1517 [ DllImport ( "__Internal" ) ]
@@ -27,18 +29,16 @@ public class AdjustiOS : IAdjust
2729 [ DllImport ( "__Internal" ) ]
2830 private static extern void _AdjustSetOfflineMode ( int enabled ) ;
2931
32+ #endregion
33+
3034 public AdjustiOS ( )
3135 {
3236 }
3337
34- #endregion
35-
3638 #region Public methods
3739
3840 public void start ( AdjustConfig adjustConfig )
3941 {
40- string sdkPrefix = "unity4.0.2" ;
41-
4242 string appToken = adjustConfig . appToken ;
4343 string sceneName = adjustConfig . sceneName ;
4444 string environment = adjustConfig . environment . ToString ( ) . ToLower ( ) ;
You can’t perform that action at this time.
0 commit comments