Skip to content

Commit f1afab5

Browse files
authored
Merge pull request #32 from adjust/v4130
Version 4.13.0
2 parents b243d70 + 2e4512e commit f1afab5

Some content is hidden

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

65 files changed

+6399
-1002
lines changed

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[submodule "ext/Android/sdk"]
22
path = ext/Android/sdk
3-
url = [email protected]:adjust/android_sdk_dev.git
3+
url = [email protected]:adjust/android_sdk.git
44
branch = master
55
[submodule "ext/iOS/sdk"]
66
path = ext/iOS/sdk
7-
url = [email protected]:adjust/ios_sdk_dev.git
7+
url = [email protected]:adjust/ios_sdk.git
88
branch = master

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
### Version 4.13.0 (22nd May 2018)
2+
#### Added
3+
- Added `gdprForgetMe` method to `Adjust` interface to enable possibility for user to be forgotten in accordance with GDPR law.
4+
5+
#### Native SDKs
6+
- [[email protected]][ios_sdk_v4.13.0]
7+
- [[email protected]][android_sdk_v4.13.0]
8+
9+
---
10+
111
### Version 4.12.3 (12th March 2018)
212
#### Native changes
313
- https://github.com/adjust/android_sdk/blob/master/CHANGELOG.md#version-4124-9th-march-2018
@@ -203,6 +213,7 @@
203213
[ios_sdk_v4.11.5]: https://github.com/adjust/ios_sdk/tree/v4.11.5
204214
[ios_sdk_v4.12.1]: https://github.com/adjust/ios_sdk/tree/v4.12.1
205215
[ios_sdk_v4.12.3]: https://github.com/adjust/ios_sdk/tree/v4.12.3
216+
[ios_sdk_v4.13.0]: https://github.com/adjust/ios_sdk/tree/v4.13.0
206217

207218
[android_sdk_v4.10.4]: https://github.com/adjust/android_sdk/tree/v4.10.4
208219
[android_sdk_v4.11.0]: https://github.com/adjust/android_sdk/tree/v4.11.0
@@ -214,3 +225,4 @@
214225
[android_sdk_v4.12.2]: https://github.com/adjust/android_sdk/tree/v4.12.2
215226
[android_sdk_v4.12.3]: https://github.com/adjust/android_sdk/tree/v4.12.3
216227
[android_sdk_v4.12.4]: https://github.com/adjust/android_sdk/tree/v4.12.4
228+
[android_sdk_v4.13.0]: https://github.com/adjust/android_sdk/tree/v4.13.0

README.md

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,27 @@ 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-
* [Session parameters](#session-parameters)
27+
* [Session parameters](#session-parameters)
2828
* [Session callback parameters](#session-callback-parameters)
2929
* [Session partner parameters](#session-partner-parameters)
3030
* [Delay start](#delay-start)
31-
* [Attribution callback](#attribution-callback)
32-
* [Session and event callbacks](#session-event-callbacks)
33-
* [Disable tracking](#disable-tracking)
34-
* [Offline mode](#offline-mode)
35-
* [Event buffering](#event-buffering)
36-
* [SDK signature](#sdk-signature)
37-
* [Background tracking](#background-tracking)
38-
* [Device IDs](#device-ids)
31+
* [Attribution callback](#attribution-callback)
32+
* [Session and event callbacks](#session-event-callbacks)
33+
* [Disable tracking](#disable-tracking)
34+
* [Offline mode](#offline-mode)
35+
* [Event buffering](#event-buffering)
36+
* [GDPR right to be forgotten](#gdpr-forget-me)
37+
* [SDK signature](#sdk-signature)
38+
* [Background tracking](#background-tracking)
39+
* [Device IDs](#device-ids)
3940
* [iOS advertising identifier](#di-idfa)
4041
* [Google Play Services advertising identifier](#di-gps-adid)
4142
* [Amazon advertising identifier](#di-fire-adid)
4243
* [Adjust device identifier](#di-adid)
43-
* [Push token](#push-token)
44-
* [Track additional device identifiers](#track-additional-ids)
45-
* [Pre-installed trackers](#pre-installed-trackers)
46-
* [Deep linking](#deeplinking)
44+
* [Push token](#push-token)
45+
* [Track additional device identifiers](#track-additional-ids)
46+
* [Pre-installed trackers](#pre-installed-trackers)
47+
* [Deep linking](#deeplinking)
4748
* [Standard deep linking](#deeplinking-standard)
4849
* [Deferred deep linking](#deeplinking-deferred)
4950
* [Reattribution via deep links](#deeplinking-reattribution)
@@ -614,6 +615,16 @@ adjustConfig.setEventBufferingEnabled(true);
614615
Adjust.create(adjustConfig);
615616
```
616617

618+
### <a id="gdpr-forget-me"></a>GDPR right to be forgotten
619+
620+
In accordance with article 17 of the EU's General Data Protection Regulation (GDPR), you can notify Adjust when a user has exercised their right to be forgotten. Calling the following method will instruct the Adjust SDK to communicate the user's choice to be forgotten to the Adjust backend:
621+
622+
```js
623+
Adjust.gdprForgetMe();
624+
```
625+
626+
Upon receiving this information, Adjust will erase the user's data and the Adjust SDK will stop tracking the user. No requests from this device will be sent to Adjust in the future.
627+
617628
### <a id="sdk-signature"></a>SDK signature
618629

619630
An account manager must activate the Adjust SDK signature. Contact Adjust support ([email protected]) if you are interested in using this feature.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.12.3
1+
4.13.0

android/libs/adjust-android.jar

5.79 KB
Binary file not shown.

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

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
//
22
// Adjust.java
3-
// Adjust
3+
// Adjust SDK
44
//
5-
// Created by Abdullah Obaied on 2016-10-19.
6-
// Copyright (c) 2016 adjust GmbH. All rights reserved.
7-
// See the file MIT-LICENSE for copying permission.
5+
// Created by Abdullah Obaied (@obaied) on 19th Octover 2016.
6+
// Copyright (c) 2016-2018 Adjust GmbH. All rights reserved.
87
//
98

109
package com.adjust.nativemodule;
@@ -116,7 +115,7 @@ public void create(ReadableMap mapConfig) {
116115
boolean isDeviceKnown = false;
117116
boolean readMobileEquipmentIdentity = false;
118117

119-
// Check for isLogLevelSuppress.
118+
// Suppress log level
120119
if (!mapConfig.isNull("logLevel")) {
121120
logLevel = mapConfig.getString("logLevel");
122121

@@ -125,7 +124,7 @@ public void create(ReadableMap mapConfig) {
125124
}
126125
}
127126

128-
// Check for appToken and environment.
127+
// App token and environment.
129128
appToken = mapConfig.getString("appToken");
130129
environment = mapConfig.getString("environment");
131130

@@ -277,7 +276,7 @@ public void trackEvent(ReadableMap mapEvent) {
277276
final Map<String, Object> partnerParameters = AdjustUtil.toMap(mapEvent.getMap("partnerParameters"));
278277

279278
AdjustEvent event = new AdjustEvent(eventToken);
280-
279+
281280
if (event.isValid()) {
282281
if (!mapEvent.isNull("revenue")) {
283282
event.setRevenue(mapEvent.getDouble("revenue"), currency);
@@ -315,9 +314,7 @@ public void isEnabled(Callback callback) {
315314

316315
@ReactMethod
317316
public void setReferrer(String referrer) {
318-
com.adjust.sdk.Adjust.setReferrer(
319-
referrer,
320-
getReactApplicationContext());
317+
com.adjust.sdk.Adjust.setReferrer(referrer, getReactApplicationContext());
321318
}
322319

323320
@ReactMethod
@@ -327,7 +324,7 @@ public void setOfflineMode(Boolean enabled) {
327324

328325
@ReactMethod
329326
public void setPushToken(String token) {
330-
com.adjust.sdk.Adjust.setPushToken(token);
327+
com.adjust.sdk.Adjust.setPushToken(token, getReactApplicationContext());
331328
}
332329

333330
@ReactMethod
@@ -371,6 +368,11 @@ public void resetSessionPartnerParameters() {
371368
com.adjust.sdk.Adjust.resetSessionPartnerParameters();
372369
}
373370

371+
@ReactMethod
372+
public void gdprForgetMe() {
373+
com.adjust.sdk.Adjust.gdprForgetMe(getReactApplicationContext());
374+
}
375+
374376
@ReactMethod
375377
public void getIdfa(Callback callback) {
376378
callback.invoke("");

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
//
22
// AdjustPackage.java
3-
// Adjust
3+
// Adjust SDK
44
//
5-
// Created by Abdullah Obaied on 2016-10-19.
6-
// Copyright (c) 2016 adjust GmbH. All rights reserved.
7-
// See the file MIT-LICENSE for copying permission.
5+
// Created by Abdullah Obaied (@obaied) on 19th Octover 2016.
6+
// Copyright (c) 2016-2018 Adjust GmbH. All rights reserved.
87
//
98

109
package com.adjust.nativemodule;

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
//
22
// AdjustUtil.java
3-
// Adjust
3+
// Adjust SDK
44
//
5-
// Created by Abdullah Obaied on 2016-10-19.
6-
// Copyright (c) 2016 adjust GmbH. All rights reserved.
7-
// See the file MIT-LICENSE for copying permission.
5+
// Created by Abdullah Obaied (@obaied) on 19th Octover 2016.
6+
// Copyright (c) 2016-2018 Adjust GmbH. All rights reserved.
87
//
98

109
package com.adjust.nativemodule;

example/.flowconfig

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,19 @@
1212
; For RN Apps installed via npm, "Libraries" folder is inside
1313
; "node_modules/react-native" but in the source repo it is in the root
1414
.*/Libraries/react-native/React.js
15-
.*/Libraries/react-native/ReactNative.js
15+
16+
; Ignore polyfills
17+
.*/Libraries/polyfills/.*
18+
19+
; Ignore metro
20+
.*/node_modules/metro/.*
1621

1722
[include]
1823

1924
[libs]
2025
node_modules/react-native/Libraries/react-native/react-native-interface.js
21-
node_modules/react-native/flow
22-
flow/
26+
node_modules/react-native/flow/
27+
node_modules/react-native/flow-github/
2328

2429
[options]
2530
emoji=true
@@ -30,16 +35,20 @@ munge_underscores=true
3035

3136
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
3237

38+
module.file_ext=.js
39+
module.file_ext=.jsx
40+
module.file_ext=.json
41+
module.file_ext=.native.js
42+
3343
suppress_type=$FlowIssue
3444
suppress_type=$FlowFixMe
35-
suppress_type=$FixMe
45+
suppress_type=$FlowFixMeProps
46+
suppress_type=$FlowFixMeState
3647

37-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-9]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
38-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-9]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
48+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
49+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
3950
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
4051
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
4152

42-
unsafe.enable_getters_and_setters=true
43-
4453
[version]
45-
^0.49.1
54+
^0.67.0

example/.gitignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ buck-out/
4646
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
4747
# screenshots whenever they are needed.
4848
# For more information about the recommended setup visit:
49-
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
49+
# https://docs.fastlane.tools/best-practices/source-control/
5050

51-
fastlane/report.xml
52-
fastlane/Preview.html
53-
fastlane/screenshots
51+
*/fastlane/report.xml
52+
*/fastlane/Preview.html
53+
*/fastlane/screenshots
54+
55+
# Bundle artifact
56+
*.jsbundle

0 commit comments

Comments
 (0)