File tree 7 files changed +38
-6
lines changed
7 files changed +38
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace com.adjust.sdk
8
8
#if UNITY_ANDROID
9
9
public class AdjustAndroid
10
10
{
11
- private const string sdkPrefix = "unity4.29.6 " ;
11
+ private const string sdkPrefix = "unity4.29.7 " ;
12
12
private static bool launchDeferredDeeplink = true ;
13
13
private static AndroidJavaClass ajcAdjust = new AndroidJavaClass ( "com.adjust.sdk.Adjust" ) ;
14
14
private static AndroidJavaObject ajoCurrentActivity = new AndroidJavaClass ( "com.unity3d.player.UnityPlayer" ) . GetStatic < AndroidJavaObject > ( "currentActivity" ) ;
Original file line number Diff line number Diff line change @@ -105,9 +105,30 @@ public static string ConvertListToJson(List<String> list)
105
105
{
106
106
return null ;
107
107
}
108
+ // list of callback / partner parameters must contain even number of elements
109
+ if ( list . Count % 2 != 0 )
110
+ {
111
+ return null ;
112
+ }
113
+
114
+ List < String > processedList = new List < String > ( ) ;
115
+ for ( int i = 0 ; i < list . Count ; i += 2 )
116
+ {
117
+ String key = list [ i ] ;
118
+ String value = list [ i + 1 ] ;
119
+
120
+ if ( key == null || value == null )
121
+ {
122
+ continue ;
123
+ }
124
+
125
+ processedList . Add ( key ) ;
126
+ processedList . Add ( value ) ;
127
+ }
108
128
129
+ // create JSON array
109
130
var jsonArray = new JSONArray ( ) ;
110
- foreach ( var listItem in list )
131
+ foreach ( var listItem in processedList )
111
132
{
112
133
jsonArray . Add ( new JSONData ( listItem ) ) ;
113
134
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ namespace com.adjust.sdk
17
17
{
18
18
public class AdjustWindows
19
19
{
20
- private const string sdkPrefix = "unity4.29.6 " ;
20
+ private const string sdkPrefix = "unity4.29.7 " ;
21
21
private static bool appLaunched = false ;
22
22
23
23
public static void Start ( AdjustConfig adjustConfig )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace com.adjust.sdk
8
8
#if UNITY_IOS
9
9
public class AdjustiOS
10
10
{
11
- private const string sdkPrefix = "unity4.29.6 " ;
11
+ private const string sdkPrefix = "unity4.29.7 " ;
12
12
13
13
[ DllImport ( "__Internal" ) ]
14
14
private static extern void _AdjustLaunchApp (
Original file line number Diff line number Diff line change
1
+ ### Version 4.29.7 (4th March 2022)
2
+ #### Fixed
3
+ - Fixed crash occurrences in scenarios where one was passing ` null ` as value of either key or value of callback or partner parameter on iOS platform.
4
+ - Fixed crash occurrences in scenarios where one was passing ` null ` as value of any of the parameters of the granular third party sharing options on iOS platform.
5
+
6
+ #### Native SDKs
7
+ - [ [email protected] ] [ ios_sdk_v4.29.7 ]
8
+ - [ [email protected] ] [ android_sdk_v4.29.1 ]
9
+
10
+ ---
11
+
1
12
### Version 4.29.6 (9th February 2022)
2
13
#### Added
3
14
- Added support for ` Unity ` ad revenue tracking.
Original file line number Diff line number Diff line change 1
- 4.29.6
1
+ 4.29.7
Original file line number Diff line number Diff line change 1
- ## Migrate your Adjust SDK for Unity3d to 4.29.6 from 3.4.4
1
+ ## Migrate your Adjust SDK for Unity3d to 4.29.7 from 3.4.4
2
2
3
3
### Migration procedure
4
4
You can’t perform that action at this time.
0 commit comments