Skip to content

Commit e02ac14

Browse files
committed
Activity type and corrections
1 parent d1f7dc3 commit e02ac14

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Adjust.unitypackage

3 Bytes
Binary file not shown.

Assets/ExampleGUI/ExampleGUI.unity

48 Bytes
Binary file not shown.

Assets/Plugins/ResponseData.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace com.adjust.sdk
66
public class ResponseData
77
{
88
public enum ActivityKind {
9-
UNKNOWN, SESSION, EVENT, REVENUE
9+
UNKNOWN, SESSION, EVENT, REVENUE, REATTRIBUTION
1010
}
1111

1212
public ActivityKind activityKind { get; private set; }
@@ -37,6 +37,8 @@ private ActivityKind ParseActivityKind(string sActivityKind)
3737
return ActivityKind.EVENT;
3838
else if ("revenue" == sActivityKind)
3939
return ActivityKind.REVENUE;
40+
else if ("reattribution" == sActivityKind)
41+
return ActivityKind.REATTRIBUTION;
4042
else
4143
return ActivityKind.UNKNOWN;
4244
}

Assets/Plugins/iOS/AdjustIOS.cs

+4-6
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ public void onResume() {
5656
_AdjustOnResume ();
5757
}
5858
public void setResponseDelegate(string sceneName) {
59-
//_AdjustSetResponseDelegate (sceneName);
60-
Debug.Log ("adjust: converting 'null' value dic");
61-
var nullValueDic = ConvertDicToJson(new Dictionary<string, string>(){
62-
{ "stuff", null }});
63-
Debug.Log ("adjust: converted 'null' value dic");
59+
_AdjustSetResponseDelegate (sceneName);
6460
}
6561
public void setEnabled(bool enabled) {
6662
_AdjustSetEnabled (Convert.ToInt32 (enabled));
@@ -76,7 +72,9 @@ private string ConvertDicToJson (Dictionary<string, string> dictionary) {
7672
}
7773
var jsonClass = new JSONClass();
7874
foreach (KeyValuePair<string, string> kvp in dictionary) {
79-
jsonClass.Add(kvp.Key, new JSONData(kvp.Value));
75+
if (kvp.Value != null) {
76+
jsonClass.Add(kvp.Key, new JSONData(kvp.Value));
77+
}
8078
}
8179
return jsonClass.ToString();
8280
}

0 commit comments

Comments
 (0)