Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 4.29.7 #239

Merged
merged 8 commits into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Assets/Adjust/Android/AdjustAndroid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace com.adjust.sdk
#if UNITY_ANDROID
public class AdjustAndroid
{
private const string sdkPrefix = "unity4.29.6";
private const string sdkPrefix = "unity4.29.7";
private static bool launchDeferredDeeplink = true;
private static AndroidJavaClass ajcAdjust = new AndroidJavaClass("com.adjust.sdk.Adjust");
private static AndroidJavaObject ajoCurrentActivity = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic<AndroidJavaObject>("currentActivity");
Expand Down
23 changes: 22 additions & 1 deletion Assets/Adjust/Unity/AdjustUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,30 @@ public static string ConvertListToJson(List<String> list)
{
return null;
}
// list of callback / partner parameters must contain even number of elements
if (list.Count % 2 != 0)
{
return null;
}

List<String> processedList = new List<String>();
for (int i = 0; i < list.Count; i += 2)
{
String key = list[i];
String value = list[i + 1];

if (key == null || value == null)
{
continue;
}

processedList.Add(key);
processedList.Add(value);
}

// create JSON array
var jsonArray = new JSONArray();
foreach (var listItem in list)
foreach (var listItem in processedList)
{
jsonArray.Add(new JSONData(listItem));
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Adjust/Windows/AdjustWindows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace com.adjust.sdk
{
public class AdjustWindows
{
private const string sdkPrefix = "unity4.29.6";
private const string sdkPrefix = "unity4.29.7";
private static bool appLaunched = false;

public static void Start(AdjustConfig adjustConfig)
Expand Down
2 changes: 1 addition & 1 deletion Assets/Adjust/iOS/AdjustiOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace com.adjust.sdk
#if UNITY_IOS
public class AdjustiOS
{
private const string sdkPrefix = "unity4.29.6";
private const string sdkPrefix = "unity4.29.7";

[DllImport("__Internal")]
private static extern void _AdjustLaunchApp(
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
### Version 4.29.7 (4th March 2022)
#### Fixed
- 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.
- 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.

#### Native SDKs
- [[email protected]][ios_sdk_v4.29.7]
- [[email protected]][android_sdk_v4.29.1]

---

### Version 4.29.6 (9th February 2022)
#### Added
- Added support for `Unity` ad revenue tracking.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.29.6
4.29.7
2 changes: 1 addition & 1 deletion doc/english/migration/migrate.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Migrate your Adjust SDK for Unity3d to 4.29.6 from 3.4.4
## Migrate your Adjust SDK for Unity3d to 4.29.7 from 3.4.4

### Migration procedure

Expand Down