Skip to content

Commit 5d7de1f

Browse files
authored
Merge pull request #287 from adjust/v4371
Version 4.37.1
2 parents 9336643 + 0a8b1e8 commit 5d7de1f

File tree

15 files changed

+32
-10
lines changed

15 files changed

+32
-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.37.0";
11+
private const string sdkPrefix = "unity4.37.1";
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");
33 Bytes
Binary file not shown.

Assets/Adjust/Test/CommandExecutor.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -993,10 +993,14 @@ private void VerifyPurchase()
993993
string productId = _command.GetFirstParameterValue("productId");
994994
string receipt = _command.GetFirstParameterValue("receipt");
995995

996+
// recreate UnityIAP base64 encoding of the receipt
997+
var receiptBytes = System.Text.Encoding.UTF8.GetBytes(receipt);
998+
string receiptBase64 = System.Convert.ToBase64String(receiptBytes);
999+
9961000
AdjustAppStorePurchase purchase = new AdjustAppStorePurchase(
9971001
transactionId,
9981002
productId,
999-
receipt);
1003+
receiptBase64);
10001004

10011005
Adjust.verifyAppStorePurchase(purchase, VerificationInfoCallback);
10021006
#elif UNITY_ANDROID

Assets/Adjust/Unity/AdjustConfig.cs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class AdjustConfig
2323
public const string AdjustAdRevenueSourcePublisher = "publisher_sdk";
2424
public const string AdjustAdRevenueSourceTopOn = "topon_sdk";
2525
public const string AdjustAdRevenueSourceAdx = "adx_sdk";
26+
public const string AdjustAdRevenueTradPlus = "tradplus_sdk";
2627

2728
internal string appToken;
2829
internal string sceneName;

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

2323
public static void Start(AdjustConfig adjustConfig)

Assets/Adjust/iOS/Adjust.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Adjust.h
33
// Adjust SDK
44
//
5-
// V4.37.0
5+
// V4.37.1
66
// Created by Christian Wellenbrock (@wellle) on 23rd July 2013.
77
// Copyright (c) 2012-2021 Adjust GmbH. All rights reserved.
88
//
@@ -58,6 +58,7 @@ extern NSString * __nonnull const ADJAdRevenueSourceHeliumChartboost;
5858
extern NSString * __nonnull const ADJAdRevenueSourcePublisher;
5959
extern NSString * __nonnull const ADJAdRevenueSourceTopOn;
6060
extern NSString * __nonnull const ADJAdRevenueSourceADX;
61+
extern NSString * __nonnull const ADJAdRevenueSourceTradplus;
6162

6263
/**
6364
* Constants for country app's URL strategies.

Assets/Adjust/iOS/AdjustSdk.a

12.2 KB
Binary file not shown.

Assets/Adjust/iOS/AdjustUnity.mm

+2-1
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,8 @@ void _AdjustVerifyAppStorePurchase(const char* transactionId,
863863

864864
// Receipt.
865865
if (receipt != NULL) {
866-
dataReceipt = [[NSString stringWithUTF8String:receipt] dataUsingEncoding:NSUTF8StringEncoding];
866+
NSString *stringReceiptBase64 = [NSString stringWithUTF8String:receipt];
867+
dataReceipt = [[NSData alloc] initWithBase64EncodedString:stringReceiptBase64 options:0];
867868
}
868869

869870
// Scene name.

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

1313
[DllImport("__Internal")]
1414
private static extern void _AdjustLaunchApp(
Binary file not shown.

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
### Version 4.37.1 (19th February 2024)
2+
#### Added
3+
- Added support for `TradPlus` ad revenue tracking.
4+
5+
#### Changed
6+
- Changed the semantics of the `AdjustAppStorePurchase`'s `receipt` property to represent UnityIAP base64 encoded receipt string to avoid the need for the base64 decoding by the clients.
7+
8+
#### Native SDKs
9+
- [[email protected]][ios_sdk_v4.37.1]
10+
- [[email protected]][android_sdk_v4.38.1]
11+
- [[email protected]][windows_sdk_v4.17.0]
12+
---
13+
114
### Version 4.37.0 (16th January 2024)
215
#### Added
316
- Added ability to process shortened deep links and provide the unshortened link back as a response. You can achieve this by invoking `processDeeplink` method of the `Adjust` instance.
@@ -1198,6 +1211,7 @@ Kudos to [Ivan](https://github.com/MatkovIvan) and [Evgeny](https://github.com/e
11981211
[ios_sdk_v4.35.2]: https://github.com/adjust/ios_sdk/tree/v4.35.2
11991212
[ios_sdk_v4.36.0]: https://github.com/adjust/ios_sdk/tree/v4.36.0
12001213
[ios_sdk_v4.37.0]: https://github.com/adjust/ios_sdk/tree/v4.37.0
1214+
[ios_sdk_v4.37.1]: https://github.com/adjust/ios_sdk/tree/v4.37.1
12011215

12021216
[android_sdk_v3.5.0]: https://github.com/adjust/android_sdk/tree/v3.5.0
12031217
[android_sdk_v4.1.0]: https://github.com/adjust/android_sdk/tree/v4.1.0
@@ -1247,6 +1261,7 @@ Kudos to [Ivan](https://github.com/MatkovIvan) and [Evgeny](https://github.com/e
12471261
[android_sdk_v4.35.1]: https://github.com/adjust/android_sdk/tree/v4.35.1
12481262
[android_sdk_v4.37.0]: https://github.com/adjust/android_sdk/tree/v4.37.0
12491263
[android_sdk_v4.38.0]: https://github.com/adjust/android_sdk/tree/v4.38.0
1264+
[android_sdk_v4.38.1]: https://github.com/adjust/android_sdk/tree/v4.38.1
12501265

12511266
[windows_sdk_v4.12.0]: https://github.com/adjust/windows_sdk/tree/v4.12.0
12521267
[windows_sdk_v4.13.0]: https://github.com/adjust/windows_sdk/tree/v4.13.0

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.37.0
1+
4.37.1

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

33
### Migration procedure
44

0 commit comments

Comments
 (0)