Skip to content

Commit cd4159f

Browse files
authored
Merge pull request #239 from adjust/v4297
Version 4.29.7
2 parents 32f6bba + 17b18ec commit cd4159f

File tree

7 files changed

+38
-6
lines changed

7 files changed

+38
-6
lines changed

Assets/Adjust/Android/AdjustAndroid.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace com.adjust.sdk
88
#if UNITY_ANDROID
99
public class AdjustAndroid
1010
{
11-
private const string sdkPrefix = "unity4.29.6";
11+
private const string sdkPrefix = "unity4.29.7";
1212
private static bool launchDeferredDeeplink = true;
1313
private static AndroidJavaClass ajcAdjust = new AndroidJavaClass("com.adjust.sdk.Adjust");
1414
private static AndroidJavaObject ajoCurrentActivity = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic<AndroidJavaObject>("currentActivity");

Assets/Adjust/Unity/AdjustUtils.cs

+22-1
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,30 @@ public static string ConvertListToJson(List<String> list)
105105
{
106106
return null;
107107
}
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+
}
108128

129+
// create JSON array
109130
var jsonArray = new JSONArray();
110-
foreach (var listItem in list)
131+
foreach (var listItem in processedList)
111132
{
112133
jsonArray.Add(new JSONData(listItem));
113134
}

Assets/Adjust/Windows/AdjustWindows.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace com.adjust.sdk
1717
{
1818
public class AdjustWindows
1919
{
20-
private const string sdkPrefix = "unity4.29.6";
20+
private const string sdkPrefix = "unity4.29.7";
2121
private static bool appLaunched = false;
2222

2323
public static void Start(AdjustConfig adjustConfig)

Assets/Adjust/iOS/AdjustiOS.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace com.adjust.sdk
88
#if UNITY_IOS
99
public class AdjustiOS
1010
{
11-
private const string sdkPrefix = "unity4.29.6";
11+
private const string sdkPrefix = "unity4.29.7";
1212

1313
[DllImport("__Internal")]
1414
private static extern void _AdjustLaunchApp(

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
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+
112
### Version 4.29.6 (9th February 2022)
213
#### Added
314
- Added support for `Unity` ad revenue tracking.

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.29.6
1+
4.29.7

doc/english/migration/migrate.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33
### Migration procedure
44

0 commit comments

Comments
 (0)