Skip to content

Commit fe18126

Browse files
authored
Merge pull request #170 from adjust/v4210
Version 4.21.0
2 parents 658e6d4 + f7f2e38 commit fe18126

24 files changed

+88
-10
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.20.1";
11+
private const string sdkPrefix = "unity4.21.0";
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");
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
-227 KB
Binary file not shown.
235 KB
Binary file not shown.
40.5 KB
Binary file not shown.
4.72 KB
Binary file not shown.

Assets/Adjust/Test/CommandExecutor.cs

+14
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,20 @@ private void Config()
308308
adjustConfig.sendInBackground = sendInBackground;
309309
}
310310

311+
if (_command.ContainsParameter("allowiAdInfoReading"))
312+
{
313+
var allowiAdInfoReadingS = _command.GetFirstParameterValue("allowiAdInfoReading");
314+
var allowiAdInfoReading = allowiAdInfoReadingS.ToLower() == "true";
315+
adjustConfig.allowiAdInfoReading = allowiAdInfoReading;
316+
}
317+
318+
if (_command.ContainsParameter("allowIdfaReading"))
319+
{
320+
var allowIdfaReadingS = _command.GetFirstParameterValue("allowIdfaReading");
321+
var allowIdfaReading = allowIdfaReadingS.ToLower() == "true";
322+
adjustConfig.allowIdfaReading = allowIdfaReading;
323+
}
324+
311325
if (_command.ContainsParameter("userAgent"))
312326
{
313327
var userAgent = _command.GetFirstParameterValue("userAgent");

Assets/Adjust/Test/TestApp.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ public class TestApp : MonoBehaviour
1616
#elif UNITY_ANDROID
1717
private const string PORT = ":8443";
1818
private const string PROTOCOL = "https://";
19-
private const string IP = "192.168.10.137";
19+
private const string IP = "192.168.2.101";
2020
#elif UNITY_IOS
2121
private const string PORT = ":8080";
2222
private const string PROTOCOL = "http://";
23-
private const string IP = "192.168.10.137";
23+
private const string IP = "192.168.2.101";
2424
private TestLibraryiOS _testLibraryiOS;
2525
#endif
2626
private const string BASE_URL = PROTOCOL + IP + PORT;

Assets/Adjust/Unity/AdjustConfig.cs

+14
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public class AdjustConfig
3434
// Android specific members
3535
internal bool? readImei;
3636
internal string processName;
37+
// iOS specific members
38+
internal bool? allowiAdInfoReading;
39+
internal bool? allowIdfaReading;
3740
// Windows specific members
3841
internal Action<String> logDelegate;
3942

@@ -174,6 +177,17 @@ public void setAppSecret(long secretId, long info1, long info2, long info3, long
174177
this.info4 = info4;
175178
}
176179

180+
// iOS specific methods.
181+
public void setAllowiAdInfoReading(bool allowiAdInfoReading)
182+
{
183+
this.allowiAdInfoReading = allowiAdInfoReading;
184+
}
185+
186+
public void setAllowIdfaReading(bool allowIdfaReading)
187+
{
188+
this.allowIdfaReading = allowIdfaReading;
189+
}
190+
177191
// Android specific methods.
178192
public void setProcessName(string processName)
179193
{

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.20.1";
20+
private const string sdkPrefix = "unity4.21.0";
2121
private static bool appLaunched = false;
2222

2323
public static void Start(AdjustConfig adjustConfig)

Assets/Adjust/iOS/ADJConfig.h

+10
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,16 @@
143143
*/
144144
@property (nonatomic, assign) BOOL sendInBackground;
145145

146+
/**
147+
* @brief Enables/disables reading of iAd framework data needed for ASA tracking.
148+
*/
149+
@property (nonatomic, assign) BOOL allowiAdInfoReading;
150+
151+
/**
152+
* @brief Enables/disables reading of IDFA parameter.
153+
*/
154+
@property (nonatomic, assign) BOOL allowIdfaReading;
155+
146156
/**
147157
* @brief Enables delayed start of the SDK.
148158
*/

Assets/Adjust/iOS/Adjust.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Adjust.h
33
// Adjust
44
//
5-
// V4.20.0
5+
// V4.21.0
66
// Created by Christian Wellenbrock (wellle) on 23rd July 2013.
77
// Copyright © 2012-2017 Adjust GmbH. All rights reserved.
88
//
@@ -25,6 +25,8 @@
2525
@property (nonatomic, assign) BOOL deleteState;
2626
@property (nonatomic, assign) BOOL noBackoffWait;
2727
@property (nonatomic, assign) BOOL iAdFrameworkEnabled;
28+
@property (nonatomic, assign) BOOL enableSigning;
29+
@property (nonatomic, assign) BOOL disableSigning;
2830

2931
@end
3032

Assets/Adjust/iOS/AdjustSdk.a

461 KB
Binary file not shown.

Assets/Adjust/iOS/AdjustUnity.mm

+12
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ void _AdjustLaunchApp(const char* appToken,
9090
int isDeviceKnown,
9191
int eventBuffering,
9292
int sendInBackground,
93+
int allowiAdInfoReading,
94+
int allowIdfaReading,
9395
int64_t secretId,
9496
int64_t info1,
9597
int64_t info2,
@@ -158,6 +160,16 @@ void _AdjustLaunchApp(const char* appToken,
158160
[adjustConfig setSendInBackground:(BOOL)sendInBackground];
159161
}
160162

163+
// Allow iAd info reading.
164+
if (allowiAdInfoReading != -1) {
165+
[adjustConfig setAllowiAdInfoReading:(BOOL)allowiAdInfoReading];
166+
}
167+
168+
// Allow IDFA reading.
169+
if (allowIdfaReading != -1) {
170+
[adjustConfig setAllowIdfaReading:(BOOL)allowIdfaReading];
171+
}
172+
161173
// Device known.
162174
if (isDeviceKnown != -1) {
163175
[adjustConfig setIsDeviceKnown:(BOOL)isDeviceKnown];

Assets/Adjust/iOS/AdjustiOS.cs

+7-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.20.1";
11+
private const string sdkPrefix = "unity4.21.0";
1212

1313
[DllImport("__Internal")]
1414
private static extern void _AdjustLaunchApp(
@@ -24,6 +24,8 @@ private static extern void _AdjustLaunchApp(
2424
int isDeviceKnown,
2525
int eventBuffering,
2626
int sendInBackground,
27+
int allowiAdInfoReading,
28+
int allowIdfaReading,
2729
long secretId,
2830
long info1,
2931
long info2,
@@ -148,6 +150,8 @@ public static void Start(AdjustConfig adjustConfig)
148150
int isDeviceKnown = AdjustUtils.ConvertBool(adjustConfig.isDeviceKnown);
149151
int sendInBackground = AdjustUtils.ConvertBool(adjustConfig.sendInBackground);
150152
int eventBufferingEnabled = AdjustUtils.ConvertBool(adjustConfig.eventBufferingEnabled);
153+
int allowiAdInfoReading = AdjustUtils.ConvertBool(adjustConfig.allowiAdInfoReading);
154+
int allowIdfaReading = AdjustUtils.ConvertBool(adjustConfig.allowIdfaReading);
151155
int allowSuppressLogLevel = AdjustUtils.ConvertBool(adjustConfig.allowSuppressLogLevel);
152156
int launchDeferredDeeplink = AdjustUtils.ConvertBool(adjustConfig.launchDeferredDeeplink);
153157
int isAttributionCallbackImplemented = AdjustUtils.ConvertBool(adjustConfig.getAttributionChangedDelegate() != null);
@@ -170,6 +174,8 @@ public static void Start(AdjustConfig adjustConfig)
170174
isDeviceKnown,
171175
eventBufferingEnabled,
172176
sendInBackground,
177+
allowiAdInfoReading,
178+
allowIdfaReading,
173179
secretId,
174180
info1,
175181
info2,
-93.3 KB
Binary file not shown.

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
### Version 4.21.0 (31st March 2020)
2+
#### Added
3+
- Added support for signature library as a plugin.
4+
- Added more aggressive sending retry logic for install session package.
5+
- Added additional parameters to `ad_revenue` package payload.
6+
7+
#### Changed
8+
- Built this SDK version with `Unity 2017.4.1`.
9+
10+
#### Native SDKs
11+
- [[email protected]][ios_sdk_v4.21.0]
12+
- [[email protected]][android_sdk_v4.21.0]
13+
- [[email protected]][windows_sdk_v4.17.0]
14+
15+
---
16+
117
### Version 4.20.1 (21st February 2020)
218
#### Fixed
319
- Fixed usage of deprecated `TargetGuidByName` API as of Unity 2019.3.0 (thanks to @epsmarkh).
@@ -666,6 +682,7 @@
666682
[ios_sdk_v4.18.3]: https://github.com/adjust/ios_sdk/tree/v4.18.3
667683
[ios_sdk_v4.19.0]: https://github.com/adjust/ios_sdk/tree/v4.19.0
668684
[ios_sdk_v4.20.0]: https://github.com/adjust/ios_sdk/tree/v4.20.0
685+
[ios_sdk_v4.21.0]: https://github.com/adjust/ios_sdk/tree/v4.21.0
669686

670687
[android_sdk_v3.5.0]: https://github.com/adjust/android_sdk/tree/v3.5.0
671688
[android_sdk_v4.1.0]: https://github.com/adjust/android_sdk/tree/v4.1.0
@@ -690,6 +707,7 @@
690707
[android_sdk_v4.19.0]: https://github.com/adjust/android_sdk/tree/v4.19.0
691708
[android_sdk_v4.19.1]: https://github.com/adjust/android_sdk/tree/v4.19.1
692709
[android_sdk_v4.20.0]: https://github.com/adjust/android_sdk/tree/v4.20.0
710+
[android_sdk_v4.21.0]: https://github.com/adjust/android_sdk/tree/v4.21.0
693711

694712
[windows_sdk_v4.12.0]: https://github.com/adjust/windows_sdk/tree/v4.12.0
695713
[windows_sdk_v4.13.0]: https://github.com/adjust/windows_sdk/tree/v4.13.0

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ This is the Unity SDK of Adjust™. It supports iOS, Android, Windows Store 8.1,
66

77
**Note**: As of version **4.19.2**, Adjust Unity SDK is compatible with **Unity 2017.1.1 and newer** versions.
88

9+
**Note**: As of version **4.21.0**, Adjust Unity SDK is compatible with **Unity 2017.4.1 and newer** versions.
10+
911
Read this in other languages: [English][en-readme], [中文][zh-readme], [日本語][ja-readme], [한국어][ko-readme].
1012

1113
## Table of contents

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.20.1
1+
4.21.0

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.20.1 from 3.4.4
1+
## Migrate your Adjust SDK for Unity3d to 4.21.0 from 3.4.4
22

33
### Migration procedure
44

ext/android/sdk

Submodule sdk updated 38 files

ext/ios/sdk

Submodule sdk updated 35 files

0 commit comments

Comments
 (0)