Skip to content

Commit a16ce54

Browse files
authored
Merge pull request #138 from adjust/v4150
Version 4.15.0
2 parents f8c6246 + 7029432 commit a16ce54

File tree

119 files changed

+2357
-1144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+2357
-1144
lines changed

.gitmodules

-12
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,3 @@
1010
path = ext/windows/sdk
1111
url = [email protected]:adjust/windows_sdk.git
1212
branch = master
13-
[submodule "ext/android/sdk-dev"]
14-
path = ext/android/sdk-dev
15-
url = [email protected]:adjust/android_sdk_dev.git
16-
branch = master
17-
[submodule "ext/ios/sdk-dev"]
18-
path = ext/ios/sdk-dev
19-
url = [email protected]:adjust/ios_sdk_dev.git
20-
branch = master
21-
[submodule "ext/windows/sdk-dev"]
22-
path = ext/windows/sdk-dev
23-
url = [email protected]:adjust/windows_sdk_dev.git
24-
branch = master

Assets/Adjust/Adjust.cs

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using UnityEngine;
4-
using com.adjust.sdk.test;
54

65
namespace com.adjust.sdk
76
{
@@ -86,6 +85,7 @@ public static void start(AdjustConfig adjustConfig)
8685
Debug.Log("Adjust: Missing config to start.");
8786
return;
8887
}
88+
8989
#if UNITY_IOS
9090
Adjust.eventSuccessDelegate = adjustConfig.getEventSuccessDelegate();
9191
Adjust.eventFailureDelegate = adjustConfig.getEventFailureDelegate();
@@ -186,15 +186,15 @@ public static void setDeviceToken(string deviceToken)
186186

187187
public static void gdprForgetMe()
188188
{
189-
#if UNITY_IOS
190-
AdjustiOS.GdprForgetMe();
191-
#elif UNITY_ANDROID
192-
AdjustAndroid.GdprForgetMe();
193-
#elif (UNITY_WSA || UNITY_WP8)
194-
AdjustWindows.GdprForgetMe();
195-
#else
196-
Debug.Log(errorMsgPlatform);
197-
#endif
189+
#if UNITY_IOS
190+
AdjustiOS.GdprForgetMe();
191+
#elif UNITY_ANDROID
192+
AdjustAndroid.GdprForgetMe();
193+
#elif (UNITY_WSA || UNITY_WP8)
194+
AdjustWindows.GdprForgetMe();
195+
#else
196+
Debug.Log(errorMsgPlatform);
197+
#endif
198198
}
199199

200200
public static void appWillOpenUrl(string url)
@@ -531,7 +531,7 @@ private static bool IsEditor()
531531
#endif
532532
}
533533

534-
public static void SetTestOptions(AdjustTestOptions testOptions)
534+
public static void SetTestOptions(Dictionary<string, string> testOptions)
535535
{
536536
if (IsEditor()) { return; }
537537

Assets/Adjust/Android/AdjustAndroid.cs

+96-58
Large diffs are not rendered by default.

Assets/Adjust/Android/Test.meta

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
6.5 KB
Binary file not shown.

Assets/Adjust/ExampleGUI/ExampleGUI.cs

+15-34
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,15 @@
22
using System.Text;
33
using System.Collections;
44
using System.Runtime.InteropServices;
5-
65
using UnityEngine;
76
using UnityEngine.UI;
8-
97
using com.adjust.sdk;
108

119
public class ExampleGUI : MonoBehaviour
1210
{
1311
private int numberOfButtons = 8;
14-
1512
private bool isEnabled;
1613
private bool showPopUp = false;
17-
1814
private string txtSetEnabled = "Disable SDK";
1915
private string txtManualLaunch = "Manual Launch";
2016
private string txtSetOfflineMode = "Turn Offline Mode ON";
@@ -23,7 +19,7 @@ void OnGUI()
2319
{
2420
if (showPopUp)
2521
{
26-
GUI.Window(0, new Rect((Screen.width / 2) - 150, (Screen.height / 2) - 65, 300, 130), showGUI, "Is SDK enabled?");
22+
GUI.Window(0, new Rect((Screen.width / 2) - 150, (Screen.height / 2) - 65, 300, 130), ShowGUI, "Is SDK enabled?");
2723
}
2824

2925
if (GUI.Button(new Rect(0, Screen.height * 0 / numberOfButtons, Screen.width, Screen.height / numberOfButtons), txtManualLaunch))
@@ -33,8 +29,6 @@ void OnGUI()
3329
AdjustConfig adjustConfig = new AdjustConfig("2fm9gkqubvpc", AdjustEnvironment.Sandbox);
3430
adjustConfig.setLogLevel(AdjustLogLevel.Verbose);
3531
adjustConfig.setLogDelegate(msg => Debug.Log(msg));
36-
adjustConfig.setSendInBackground(true);
37-
adjustConfig.setLaunchDeferredDeeplink(true);
3832
adjustConfig.setEventSuccessDelegate(EventSuccessCallback);
3933
adjustConfig.setEventFailureDelegate(EventFailureCallback);
4034
adjustConfig.setSessionSuccessDelegate(SessionSuccessCallback);
@@ -112,7 +106,7 @@ void OnGUI()
112106
}
113107
}
114108

115-
void showGUI(int windowID)
109+
void ShowGUI(int windowID)
116110
{
117111
if (isEnabled)
118112
{
@@ -129,7 +123,7 @@ void showGUI(int windowID)
129123
}
130124
}
131125

132-
public void handleGooglePlayId(String adId)
126+
public void HandleGooglePlayId(String adId)
133127
{
134128
Debug.Log("Google Play Ad ID = " + adId);
135129
}
@@ -142,37 +136,30 @@ public void AttributionChangedCallback(AdjustAttribution attributionData)
142136
{
143137
Debug.Log("Tracker name: " + attributionData.trackerName);
144138
}
145-
146139
if (attributionData.trackerToken != null)
147140
{
148141
Debug.Log("Tracker token: " + attributionData.trackerToken);
149142
}
150-
151143
if (attributionData.network != null)
152144
{
153145
Debug.Log("Network: " + attributionData.network);
154146
}
155-
156147
if (attributionData.campaign != null)
157148
{
158149
Debug.Log("Campaign: " + attributionData.campaign);
159150
}
160-
161151
if (attributionData.adgroup != null)
162152
{
163153
Debug.Log("Adgroup: " + attributionData.adgroup);
164154
}
165-
166155
if (attributionData.creative != null)
167156
{
168157
Debug.Log("Creative: " + attributionData.creative);
169158
}
170-
171159
if (attributionData.clickLabel != null)
172160
{
173161
Debug.Log("Click label: " + attributionData.clickLabel);
174162
}
175-
176163
if (attributionData.adid != null)
177164
{
178165
Debug.Log("ADID: " + attributionData.adid);
@@ -187,22 +174,22 @@ public void EventSuccessCallback(AdjustEventSuccess eventSuccessData)
187174
{
188175
Debug.Log("Message: " + eventSuccessData.Message);
189176
}
190-
191177
if (eventSuccessData.Timestamp != null)
192178
{
193179
Debug.Log("Timestamp: " + eventSuccessData.Timestamp);
194180
}
195-
196181
if (eventSuccessData.Adid != null)
197182
{
198183
Debug.Log("Adid: " + eventSuccessData.Adid);
199184
}
200-
201185
if (eventSuccessData.EventToken != null)
202186
{
203187
Debug.Log("EventToken: " + eventSuccessData.EventToken);
204188
}
205-
189+
if (eventSuccessData.CallbackId != null)
190+
{
191+
Debug.Log("CallbackId: " + eventSuccessData.CallbackId);
192+
}
206193
if (eventSuccessData.JsonResponse != null)
207194
{
208195
Debug.Log("JsonResponse: " + eventSuccessData.GetJsonResponse());
@@ -217,28 +204,28 @@ public void EventFailureCallback(AdjustEventFailure eventFailureData)
217204
{
218205
Debug.Log("Message: " + eventFailureData.Message);
219206
}
220-
221207
if (eventFailureData.Timestamp != null)
222208
{
223209
Debug.Log("Timestamp: " + eventFailureData.Timestamp);
224210
}
225-
226211
if (eventFailureData.Adid != null)
227212
{
228213
Debug.Log("Adid: " + eventFailureData.Adid);
229214
}
230-
231215
if (eventFailureData.EventToken != null)
232216
{
233217
Debug.Log("EventToken: " + eventFailureData.EventToken);
234218
}
235-
236-
Debug.Log("WillRetry: " + eventFailureData.WillRetry.ToString());
237-
219+
if (eventFailureData.CallbackId != null)
220+
{
221+
Debug.Log("CallbackId: " + eventFailureData.CallbackId);
222+
}
238223
if (eventFailureData.JsonResponse != null)
239224
{
240225
Debug.Log("JsonResponse: " + eventFailureData.GetJsonResponse());
241226
}
227+
228+
Debug.Log("WillRetry: " + eventFailureData.WillRetry.ToString());
242229
}
243230

244231
public void SessionSuccessCallback(AdjustSessionSuccess sessionSuccessData)
@@ -249,17 +236,14 @@ public void SessionSuccessCallback(AdjustSessionSuccess sessionSuccessData)
249236
{
250237
Debug.Log("Message: " + sessionSuccessData.Message);
251238
}
252-
253239
if (sessionSuccessData.Timestamp != null)
254240
{
255241
Debug.Log("Timestamp: " + sessionSuccessData.Timestamp);
256242
}
257-
258243
if (sessionSuccessData.Adid != null)
259244
{
260245
Debug.Log("Adid: " + sessionSuccessData.Adid);
261246
}
262-
263247
if (sessionSuccessData.JsonResponse != null)
264248
{
265249
Debug.Log("JsonResponse: " + sessionSuccessData.GetJsonResponse());
@@ -274,23 +258,20 @@ public void SessionFailureCallback(AdjustSessionFailure sessionFailureData)
274258
{
275259
Debug.Log("Message: " + sessionFailureData.Message);
276260
}
277-
278261
if (sessionFailureData.Timestamp != null)
279262
{
280263
Debug.Log("Timestamp: " + sessionFailureData.Timestamp);
281264
}
282-
283265
if (sessionFailureData.Adid != null)
284266
{
285267
Debug.Log("Adid: " + sessionFailureData.Adid);
286268
}
287-
288-
Debug.Log("WillRetry: " + sessionFailureData.WillRetry.ToString());
289-
290269
if (sessionFailureData.JsonResponse != null)
291270
{
292271
Debug.Log("JsonResponse: " + sessionFailureData.GetJsonResponse());
293272
}
273+
274+
Debug.Log("WillRetry: " + sessionFailureData.WillRetry.ToString());
294275
}
295276

296277
private void DeferredDeeplinkCallback(string deeplinkURL)

Assets/Adjust/Test/AdjustTestOptions.cs

-85
This file was deleted.

0 commit comments

Comments
 (0)