Skip to content

Commit 705eb4b

Browse files
authored
Merge pull request #262 from adjust/v510
Version 5.1.0
2 parents 3e2c7c9 + 35bb09c commit 705eb4b

File tree

22 files changed

+134
-92
lines changed

22 files changed

+134
-92
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
### Version 5.1.0 (25th February 2025)
2+
#### Added
3+
- Added `jsonResponse` field (JSON string) to `AdjustAttribution` where every key-value pair sent by the backend as part of the attribution response can be found.
4+
5+
#### Fixed
6+
- Fixed occasional occurrences in which ATT waiting interval timer was not being started.
7+
- Fixed occasional NPE occurrences when app was entering background (https://github.com/adjust/android_sdk/issues/630).
8+
9+
#### Native SDKs
10+
- [[email protected]][ios_sdk_v5.1.1]
11+
- [[email protected]][android_sdk_v5.1.0]
12+
13+
---
14+
115
### Version 5.0.4 (17th January 2025)
216
#### Fixed
317
- Fixed type mismatch of some `AdjustPlayStoreSubscription` fields in JS and TS (https://github.com/adjust/react_native_sdk/issues/260).
@@ -720,6 +734,7 @@ In case you were using beta version of the SDK v5, please switch to the official
720734
[ios_sdk_v5.0.0]: https://github.com/adjust/ios_sdk/tree/v5.0.0
721735
[ios_sdk_v5.0.1]: https://github.com/adjust/ios_sdk/tree/v5.0.1
722736
[ios_sdk_v5.0.2]: https://github.com/adjust/ios_sdk/tree/v5.0.2
737+
[ios_sdk_v5.1.1]: https://github.com/adjust/ios_sdk/tree/v5.1.1
723738

724739
[android_sdk_v4.10.4]: https://github.com/adjust/android_sdk/tree/v4.10.4
725740
[android_sdk_v4.11.0]: https://github.com/adjust/android_sdk/tree/v4.11.0
@@ -760,3 +775,4 @@ In case you were using beta version of the SDK v5, please switch to the official
760775
[android_sdk_v5.0.0]: https://github.com/adjust/android_sdk/tree/v5.0.0
761776
[android_sdk_v5.0.1]: https://github.com/adjust/android_sdk/tree/v5.0.1
762777
[android_sdk_v5.0.2]: https://github.com/adjust/android_sdk/tree/v5.0.2
778+
[android_sdk_v5.1.0]: https://github.com/adjust/android_sdk/tree/v5.1.0

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.4
1+
5.1.0

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ android {
2727

2828
dependencies {
2929
implementation 'com.facebook.react:react-native:+'
30-
implementation 'com.adjust.sdk:adjust-android:5.0.2'
30+
implementation 'com.adjust.sdk:adjust-android:5.1.0'
3131
}

android/src/main/java/com/adjust/sdk/AdjustUtil.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ final class AdjustUtil {
2929
private static final String ATTRIBUTION_COST_TYPE = "costType";
3030
private static final String ATTRIBUTION_COST_AMOUNT = "costAmount";
3131
private static final String ATTRIBUTION_COST_CURRENCY = "costCurrency";
32+
private static final String ATTRIBUTION_JSON_RESPONSE = "jsonResponse";
3233
private static final String ATTRIBUTION_FB_INSTALL_REFERRER = "fbInstallReferrer";
3334

3435
private static final String EVENT_SUCCESS_MESSAGE = "message";
@@ -77,6 +78,7 @@ public static WritableMap attributionToMap(AdjustAttribution attribution) {
7778
map.putString(ATTRIBUTION_COST_TYPE, null != attribution.costType ? attribution.costType : "");
7879
map.putDouble(ATTRIBUTION_COST_AMOUNT, null != attribution.costAmount && !attribution.costAmount.isNaN() ? attribution.costAmount : 0);
7980
map.putString(ATTRIBUTION_COST_CURRENCY, null != attribution.costCurrency ? attribution.costCurrency : "");
81+
map.putString(ATTRIBUTION_JSON_RESPONSE, null != attribution.jsonResponse ? attribution.jsonResponse.toString() : "");
8082
map.putString(ATTRIBUTION_FB_INSTALL_REFERRER, null != attribution.fbInstallReferrer ? attribution.fbInstallReferrer : "");
8183
return map;
8284
}

example/ios/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PODS:
2-
- Adjust (5.0.2):
3-
- Adjust/Adjust (= 5.0.2)
4-
- Adjust/Adjust (5.0.2):
2+
- Adjust (5.1.0):
3+
- Adjust/Adjust (= 5.1.0)
4+
- Adjust/Adjust (5.1.0):
55
- AdjustSignature (= 3.35.2)
66
- AdjustSignature (3.35.2)
77
- boost (1.83.0)
@@ -940,8 +940,8 @@ PODS:
940940
- React-Mapbuffer (0.74.2):
941941
- glog
942942
- React-debug
943-
- react-native-adjust (5.0.4):
944-
- Adjust (= 5.0.2)
943+
- react-native-adjust (5.0.5):
944+
- Adjust (= 5.1.0)
945945
- React-Core
946946
- React-nativeconfig (0.74.2)
947947
- React-NativeModulesApple (0.74.2):
@@ -1354,7 +1354,7 @@ EXTERNAL SOURCES:
13541354
:path: "../node_modules/react-native/ReactCommon/yoga"
13551355

13561356
SPEC CHECKSUMS:
1357-
Adjust: 9ac6dd4a33cb343874633dc14e94c01a6c0f1cdf
1357+
Adjust: 3ba600784c200eb13664e92f8385230750682d4f
13581358
AdjustSignature: 23b9e5d4adcadffc303bb6b410fde617dd88504f
13591359
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
13601360
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
@@ -1386,7 +1386,7 @@ SPEC CHECKSUMS:
13861386
React-jsitracing: 0fa7f78d8fdda794667cb2e6f19c874c1cf31d7e
13871387
React-logger: 29fa3e048f5f67fe396bc08af7606426d9bd7b5d
13881388
React-Mapbuffer: bf56147c9775491e53122a94c423ac201417e326
1389-
react-native-adjust: e26ec2e5222bdec9d5f6ca6ed975215248d6a9c5
1389+
react-native-adjust: 9a00021c6e86d4b72a38ef46c77b16e111d0166f
13901390
React-nativeconfig: 9f223cd321823afdecf59ed00861ab2d69ee0fc1
13911391
React-NativeModulesApple: ff7efaff7098639db5631236cfd91d60abff04c0
13921392
React-perflogger: 32ed45d9cee02cf6639acae34251590dccd30994

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"jest": "^29.6.3",
3131
"prettier": "2.8.8",
3232
"react-test-renderer": "18.2.0",
33-
"typescript": "5.0.4"
33+
"typescript": "5.0.5"
3434
},
3535
"engines": {
3636
"node": ">=18"

ext/android/sdk

Submodule sdk updated 32 files

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ declare module 'react-native-adjust' {
1313
costType: string
1414
costAmount: number
1515
costCurrency: string
16+
jsonResponse: string
1617
fbInstallReferrer: string
1718
}
1819

0 commit comments

Comments
 (0)