Skip to content

Commit 08c5975

Browse files
authored
Merge pull request #43 from adjust/v4150
Version 4.15.0
2 parents e1259fe + 78e173d commit 08c5975

Some content is hidden

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

67 files changed

+1415
-1151
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
### Version 4.15.0 (10th October 2018)
2+
#### Added
3+
- Added `setCallbackId` method on `AdjustEvent` object for users to set custom ID on event object which will later be reported in event success/failure callbacks.
4+
- Added `callbackId` field to event tracking success callback object.
5+
- Added `callbackId` field to event tracking failure callback object.
6+
7+
#### Changed
8+
- Updated Android SDK and build tools to 26 (thanks to @hamidhadi).
9+
- Marked `setReadMobileEquipmentIdentity` method of `AdjustConfig` object as deprecated.
10+
- SDK will now fire attribution request each time upon session tracking finished in case it lacks attribution info.
11+
12+
#### Native SDKs
13+
- [[email protected]][ios_sdk_v4.15.0]
14+
- [[email protected]][android_sdk_v4.15.0]
15+
16+
---
17+
118
### Version 4.14.0 (4th July 2018)
219
#### Added
320
- Added deep link caching in case `appWillOpenUrl` method is called before SDK is initialised.
@@ -229,6 +246,7 @@
229246
[ios_sdk_v4.12.3]: https://github.com/adjust/ios_sdk/tree/v4.12.3
230247
[ios_sdk_v4.13.0]: https://github.com/adjust/ios_sdk/tree/v4.13.0
231248
[ios_sdk_v4.14.1]: https://github.com/adjust/ios_sdk/tree/v4.14.1
249+
[ios_sdk_v4.15.0]: https://github.com/adjust/ios_sdk/tree/v4.15.0
232250

233251
[android_sdk_v4.10.4]: https://github.com/adjust/android_sdk/tree/v4.10.4
234252
[android_sdk_v4.11.0]: https://github.com/adjust/android_sdk/tree/v4.11.0
@@ -242,3 +260,4 @@
242260
[android_sdk_v4.12.4]: https://github.com/adjust/android_sdk/tree/v4.12.4
243261
[android_sdk_v4.13.0]: https://github.com/adjust/android_sdk/tree/v4.13.0
244262
[android_sdk_v4.14.0]: https://github.com/adjust/android_sdk/tree/v4.14.0
263+
[android_sdk_v4.15.0]: https://github.com/adjust/android_sdk/tree/v4.15.0

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ This is the React Native SDK of Adjust™. You can read more about Adjust™ at
2424
* [In-app purchase verification](#iap-verification)
2525
* [Callback parameters](#callback-parameters)
2626
* [Partner parameters](#partner-parameters)
27+
* [Callback identifier](#callback-id)
2728
* [Session parameters](#session-parameters)
2829
* [Session callback parameters](#session-callback-parameters)
2930
* [Session partner parameters](#session-partner-parameters)
@@ -384,6 +385,18 @@ You can read more about special partners and networks in our [guide to special p
384385

385386
**Note**: **Both** parameters in this method must be **strings**. If either of the passed parameters is not a string, the key-value pair will not be added to the parameters list.
386387

388+
### <a id="callback-id"></a>Callback identifier
389+
390+
You can also add custom string identifier to each event you want to track. This identifier will later be reported in event success and/or event failure callbacks to enable you to keep track on which event was successfully tracked or not. You can set this identifier by calling the `setCallbackId` method on your `AdjustEvent` instance:
391+
392+
```js
393+
var adjustEvent = new AdjustEvent("abc123");
394+
395+
adjustEvent.setCallbackId("Your-Custom-Id");
396+
397+
Adjust.trackEvent(adjustEvent);
398+
```
399+
387400
### <a id="session-parameters"></a>Session parameters
388401

389402
Some parameters are saved to be sent in every event and session of the Adjust SDK. Once you have added any of these parameters, you don't need to add them every time, since they will be saved locally. If you add the same parameter twice, there will be no effect.
@@ -511,6 +524,7 @@ adjustConfig.setEventTrackingSucceededCallbackListener(function(eventSuccess) {
511524
console.log(eventSuccess.message);
512525
console.log(eventSuccess.timestamp);
513526
console.log(eventSuccess.eventToken);
527+
console.log(eventSuccess.callbackId);
514528
console.log(eventSuccess.adid);
515529
console.log(eventSuccess.jsonResponse);
516530
});
@@ -529,6 +543,7 @@ adjustConfig.setEventTrackingFailedCallbackListener(function(eventFailure) {
529543
console.log(eventSuccess.message);
530544
console.log(eventSuccess.timestamp);
531545
console.log(eventSuccess.eventToken);
546+
console.log(eventSuccess.callbackId);
532547
console.log(eventSuccess.adid);
533548
console.log(eventSuccess.willRetry);
534549
console.log(eventSuccess.jsonResponse);
@@ -582,6 +597,7 @@ The callback functions will be called after the SDK tries to send a package to t
582597
Both event response data objects contain:
583598

584599
- `var eventToken` the event token, if the package tracked was an event.
600+
- `var callbackId` the custom defined callback ID set on event object.
585601

586602
And both event and session failed objects also contain:
587603

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.14.0
1+
4.15.0

android/build.gradle

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
apply plugin: 'com.android.library'
22

3+
def _ext = rootProject.ext
4+
5+
def _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 26
6+
def _buildToolsVersion = _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : "26.0.3"
7+
def _minSdkVersion = _ext.has('minSdkVersion') ? _ext.minSdkVersion : 16
8+
def _targetSdkVersion = _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 26
9+
310
android {
4-
compileSdkVersion 23
5-
buildToolsVersion "23.0.1"
11+
compileSdkVersion _compileSdkVersion
12+
buildToolsVersion _buildToolsVersion
613

714
defaultConfig {
8-
minSdkVersion 16
9-
targetSdkVersion 22
15+
minSdkVersion _minSdkVersion
16+
targetSdkVersion _targetSdkVersion
1017
versionCode 1
1118
versionName "1.0"
1219
}

android/libs/adjust-android.jar

2.62 KB
Binary file not shown.

0 commit comments

Comments
 (0)