Skip to content

Commit

Permalink
Merge pull request #27 from adjust/v4130
Browse files Browse the repository at this point in the history
Version 4.13.0
  • Loading branch information
uerceg authored May 22, 2018
2 parents 4185122 + 1402dbd commit 894c454
Show file tree
Hide file tree
Showing 15 changed files with 101 additions and 27 deletions.
1 change: 1 addition & 0 deletions Adjust/ADJAdjust2dx.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class ADJAdjust2dx {
static void setOfflineMode(bool isOffline);

static void sendFirstPackages();
static void gdprForgetMe();
static void addSessionCallbackParameter(std::string key, std::string value);
static void addSessionPartnerParameter(std::string key, std::string value);
static void removeSessionCallbackParameter(std::string key);
Expand Down
4 changes: 4 additions & 0 deletions Adjust/ADJAdjust2dx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
[Adjust sendFirstPackages];
}

void ADJAdjust2dx::gdprForgetMe() {
[Adjust gdprForgetMe];
}

void ADJAdjust2dx::addSessionCallbackParameter(std::string key, std::string value) {
[Adjust addSessionCallbackParameter:[NSString stringWithUTF8String:key.c_str()] value:[NSString stringWithUTF8String:value.c_str()]];
}
Expand Down
25 changes: 25 additions & 0 deletions Adjust/Adjust2dx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,31 @@ void Adjust2dx::sendFirstPackages() {
#endif
}

void Adjust2dx::gdprForgetMe() {
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
ADJAdjust2dx::gdprForgetMe();
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
cocos2d::JniMethodInfo miGdprForgetMe;

if (!cocos2d::JniHelper::getStaticMethodInfo(miGdprForgetMe, "com/adjust/sdk/Adjust", "gdprForgetMe", "(Landroid/content/Context;)V")) {
return;
}

cocos2d::JniMethodInfo miGetContext;

if (!cocos2d::JniHelper::getStaticMethodInfo(miGetContext, "org/cocos2dx/lib/Cocos2dxActivity", "getContext", "()Landroid/content/Context;")) {
return;
}

jobject jContext = (jobject)miGetContext.env->CallStaticObjectMethod(miGetContext.classID, miGetContext.methodID);
miGdprForgetMe.env->CallStaticVoidMethod(miGdprForgetMe.classID, miGdprForgetMe.methodID, jContext);

miGetContext.env->DeleteLocalRef(jContext);
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)

#endif
}

void Adjust2dx::addSessionCallbackParameter(std::string key, std::string value) {
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
ADJAdjust2dx::addSessionCallbackParameter(key, value);
Expand Down
1 change: 1 addition & 0 deletions Adjust/Adjust2dx.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Adjust2dx {
static void setDeviceToken(std::string deviceToken);

static void sendFirstPackages();
static void gdprForgetMe();
static void addSessionCallbackParameter(std::string key, std::string value);
static void addSessionPartnerParameter(std::string key, std::string value);
static void removeSessionCallbackParameter(std::string key);
Expand Down
2 changes: 1 addition & 1 deletion Adjust/AdjustConfig2dx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static int fileReadCallback(const char* fileName, int* size) {
#endif

void AdjustConfig2dx::initConfig(std::string appToken, std::string environment, bool allowSuppressLogLevel) {
std::string sdkPrefix = "cocos2d-x4.12.1";
std::string sdkPrefix = "cocos2d-x4.13.0";

#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
cocos2d::JniMethodInfo miInit;
Expand Down
19 changes: 16 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
### Version 4.13.0 (22nd May 2018)
#### Added
- Added `gdprForgetMe` method to `Adjust2dx` interface to enable possibility for user to be forgotten in accordance with GDPR law.

#### Native SDKs
- [[email protected]][ios_sdk_v4.13.0]
- [[email protected]][android_sdk_v4.13.0]
- [Windows SDK 4.0.3][windows_sdk_v4.0.3]

---

### Version 4.12.1 (12th March 2018)
#### Native changes
- Updated Android SDK to `v4.12.4`.
Expand All @@ -19,9 +30,9 @@
- https://github.com/adjust/android_sdk/blob/master/CHANGELOG.md#version-4122-28th-february-2018

#### Added
- Added `getAmazonAdId` method to `Adjust` interface.
- Added `setReadMobileEquipmentIdentity` method to `AdjustConfig` interface.
- Added `setAppSecret` method to `AdjustConfig` interface (**iOS and Android only**).
- Added `getAmazonAdId` method to `Adjust2dx` interface.
- Added `setReadMobileEquipmentIdentity` method to `AdjustConfig2dx` interface.
- Added `setAppSecret` method to `AdjustConfig2dx` interface (**iOS and Android only**).

#### Native SDKs
- [[email protected]][ios_sdk_v4.12.3]
Expand Down Expand Up @@ -222,6 +233,7 @@
[ios_sdk_v4.11.5]: https://github.com/adjust/ios_sdk/tree/v4.11.5
[ios_sdk_v4.12.1]: https://github.com/adjust/ios_sdk/tree/v4.12.1
[ios_sdk_v4.12.3]: https://github.com/adjust/ios_sdk/tree/v4.12.3
[ios_sdk_v4.13.0]: https://github.com/adjust/ios_sdk/tree/v4.13.0

[android_sdk_v4.0.8]: https://github.com/adjust/android_sdk/tree/v4.0.8
[android_sdk_v4.1.0]: https://github.com/adjust/android_sdk/tree/v4.1.0
Expand All @@ -235,5 +247,6 @@
[android_sdk_v4.12.0]: https://github.com/adjust/android_sdk/tree/v4.12.0
[android_sdk_v4.12.2]: https://github.com/adjust/android_sdk/tree/v4.12.2
[android_sdk_v4.12.4]: https://github.com/adjust/android_sdk/tree/v4.12.4
[android_sdk_v4.13.0]: https://github.com/adjust/android_sdk/tree/v4.13.0

[windows_sdk_v4.0.3]: https://github.com/adjust/windows_sdk/tree/v4.0.3
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.12.1
4.13.0
11 changes: 11 additions & 0 deletions doc/android/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ This is the Cocos2d-x SDK of Adjust™. You can read more about Adjust™ at [ad
* [Disable tracking](#disable-tracking)
* [Offline mode](#offline-mode)
* [Event buffering](#event-buffering)
* [GDPR right to be forgotten](#gdpr-forget-me)
* [SDK signature](#sdk-signature)
* [Background tracking](#background-tracking)
* [Device IDs](#device-ids)
Expand Down Expand Up @@ -734,6 +735,16 @@ bool AppDelegate::applicationDidFinishLaunching() {

If nothing is set here, event buffering is **disabled by default**.

### <a id="gdpr-forget-me"></a>GDPR right to be forgotten

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:

```cpp
Adjust2dx::gdprForgetMe();
```

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.

### <a id="sdk-signature"></a>SDK signature

An account manager must activate the Adjust SDK signature. Contact Adjust support ([email protected]) if you are interested in using this feature.
Expand Down
46 changes: 28 additions & 18 deletions doc/ios/ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,28 @@ This is the Cocos2d-x SDK of Adjust™. You can read more about Adjust™ at [Ad
* [In-app purchase verification](#iap-verification)
* [Callback parameters](#callback-parameters)
* [Partner parameters](#partner-parameters)
* [Session parameters](#session-parameters)
* [Session parameters](#session-parameters)
* [Session callback parameters](#session-callback-parameters)
* [Session partner parameters](#session-partner-parameters)
* [Delay start](#delay-start)
* [Attribution callback](#attribution-callback)
* [Session and event callbacks](#session-event-callbacks)
* [Disable tracking](#disable-tracking)
* [Offline mode](#offline-mode)
* [Event buffering](#event-buffering)
* [SDK signature](#sdk-signature)
* [Background tracking](#background-tracking)
* [Device IDs](#device-ids)
* [iOS advertising identifier](#di-idfa)
* [Adjust device identifier](#di-adid)
* [User attribution](#user-attribution)
* [Push token](#push-token)
* [Pre-installed trackers](#pre-installed-trackers)
* [Deep linking](#deeplinking)
* [Standard deep linking](#deeplinking-standard)
* [Deferred deep linking](#deeplinking-deferred)
* [Deep link handling for iOS apps](#deeplinking-ios)
* [Attribution callback](#attribution-callback)
* [Session and event callbacks](#session-event-callbacks)
* [Disable tracking](#disable-tracking)
* [Offline mode](#offline-mode)
* [Event buffering](#event-buffering)
* [GDPR right to be forgotten](#gdpr-forget-me)
* [SDK signature](#sdk-signature)
* [Background tracking](#background-tracking)
* [Device IDs](#device-ids)
* [iOS advertising identifier](#di-idfa)
* [Adjust device identifier](#di-adid)
* [User attribution](#user-attribution)
* [Push token](#push-token)
* [Pre-installed trackers](#pre-installed-trackers)
* [Deep linking](#deeplinking)
* [Standard deep linking](#deeplinking-standard)
* [Deferred deep linking](#deeplinking-deferred)
* [Deep link handling for iOS apps](#deeplinking-ios)
* [License](#license)

## <a id="basic-integration"></a>Basic integration
Expand Down Expand Up @@ -548,6 +549,15 @@ bool AppDelegate::applicationDidFinishLaunching() {

If nothing is set here, event buffering is **disabled by default**.

### <a id="gdpr-forget-me"></a>GDPR right to be forgotten

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:

```cpp
Adjust2dx::gdprForgetMe();
```

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.

### <a id="sdk-signature"></a>SDK signature

Expand Down
2 changes: 1 addition & 1 deletion doc/migrate.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Migrate your adjust SDK for Cocos2d-x to 4.12.1 from 4.0.x
## Migrate your adjust SDK for Cocos2d-x to 4.13.0 from 4.0.x

### SDK initialization

Expand Down
Binary file modified ext/Android/proxy/adjust-android.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion ext/Android/sdk
Submodule sdk updated 39 files
+2 −2 Adjust/adjust/adjust-proguard-rules.txt
+1 −1 Adjust/adjust/build.gradle
+98 −10 Adjust/adjust/src/main/java/com/adjust/sdk/ActivityHandler.java
+5 −1 Adjust/adjust/src/main/java/com/adjust/sdk/ActivityKind.java
+6 −0 Adjust/adjust/src/main/java/com/adjust/sdk/ActivityState.java
+140 −10 Adjust/adjust/src/main/java/com/adjust/sdk/Adjust.java
+1 −0 Adjust/adjust/src/main/java/com/adjust/sdk/AdjustConfig.java
+17 −3 Adjust/adjust/src/main/java/com/adjust/sdk/AdjustFactory.java
+59 −30 Adjust/adjust/src/main/java/com/adjust/sdk/AdjustInstance.java
+2 −0 Adjust/adjust/src/main/java/com/adjust/sdk/AdjustTestOptions.java
+14 −3 Adjust/adjust/src/main/java/com/adjust/sdk/AttributionHandler.java
+2 −1 Adjust/adjust/src/main/java/com/adjust/sdk/Constants.java
+6 −0 Adjust/adjust/src/main/java/com/adjust/sdk/IActivityHandler.java
+4 −0 Adjust/adjust/src/main/java/com/adjust/sdk/IPackageHandler.java
+1 −1 Adjust/adjust/src/main/java/com/adjust/sdk/IRequestHandler.java
+11 −0 Adjust/adjust/src/main/java/com/adjust/sdk/PackageBuilder.java
+27 −1 Adjust/adjust/src/main/java/com/adjust/sdk/PackageHandler.java
+33 −6 Adjust/adjust/src/main/java/com/adjust/sdk/RequestHandler.java
+1 −0 Adjust/adjust/src/main/java/com/adjust/sdk/ResponseData.java
+9 −1 Adjust/adjust/src/main/java/com/adjust/sdk/SdkClickHandler.java
+14 −0 Adjust/adjust/src/main/java/com/adjust/sdk/SharedPreferencesManager.java
+15 −0 Adjust/adjust/src/main/java/com/adjust/sdk/TrackingState.java
+8 −1 Adjust/adjust/src/main/java/com/adjust/sdk/UtilNetworking.java
+1 −1 Adjust/example/build.gradle
+2 −2 Adjust/example/proguard-rules.pro
+1 −1 Adjust/pom.xml
+1 −1 Adjust/pom_criteo.xml
+1 −1 Adjust/pom_sociomantic.xml
+1 −1 Adjust/pom_trademob.xml
+1 −1 Adjust/test/src/androidTest/java/com/adjust/sdk/TestActivityPackage.java
+11 −0 Adjust/testapp/src/main/java/com/adjust/testapp/AdjustCommandExecutor.java
+7 −5 Adjust/testapp/src/main/java/com/adjust/testapp/MainActivity.java
+6 −0 CHANGELOG.md
+16 −5 README.md
+1 −1 VERSION
+1 −1 doc/english/criteo_plugin.md
+1 −1 doc/english/migrate.md
+1 −1 doc/english/sociomantic_plugin.md
+1 −1 doc/english/trademob_plugin.md
2 changes: 1 addition & 1 deletion ext/iOS/sdk
Submodule sdk updated 40 files
+2 −2 Adjust.podspec
+8 −0 Adjust.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+5 −1 Adjust/ADJActivityHandler.h
+121 −10 Adjust/ADJActivityHandler.m
+1 −0 Adjust/ADJActivityKind.h
+4 −0 Adjust/ADJActivityKind.m
+1 −0 Adjust/ADJActivityState.h
+11 −2 Adjust/ADJActivityState.m
+4 −1 Adjust/ADJAdjustFactory.h
+17 −3 Adjust/ADJAdjustFactory.m
+22 −3 Adjust/ADJAttributionHandler.m
+2 −0 Adjust/ADJPackageBuilder.h
+13 −0 Adjust/ADJPackageBuilder.m
+2 −0 Adjust/ADJPackageHandler.h
+24 −3 Adjust/ADJPackageHandler.m
+6 −4 Adjust/ADJRequestHandler.h
+34 −9 Adjust/ADJRequestHandler.m
+6 −0 Adjust/ADJResponseData.h
+3 −2 Adjust/ADJResponseData.m
+3 −4 Adjust/ADJSdkClickHandler.h
+52 −42 Adjust/ADJSdkClickHandler.m
+6 −0 Adjust/ADJUserDefaults.h
+16 −0 Adjust/ADJUserDefaults.m
+14 −1 Adjust/ADJUtil.m
+10 −1 Adjust/Adjust.h
+20 −0 Adjust/Adjust.m
+2 −2 AdjustTests/AdjustTestApp/AdjustTestApp/ATAAdjustCommandExecutor.h
+29 −28 AdjustTests/AdjustTestApp/AdjustTestApp/ATAAdjustCommandExecutor.m
+2 −4 AdjustTests/AdjustTestApp/AdjustTestApp/AppDelegate.h
+2 −9 AdjustTests/AdjustTestApp/AdjustTestApp/AppDelegate.m
+3 −2 AdjustTests/AdjustTestApp/AdjustTestApp/ViewController.h
+11 −13 AdjustTests/AdjustTestApp/AdjustTestApp/ViewController.m
+2 −2 AdjustTests/AdjustTestLibrary/AdjustTestLibrary.xcodeproj/project.pbxproj
+1 −1 AdjustTests/AdjustUnitTests/ADJPackageFields.m
+6 −0 CHANGELOG.md
+16 −5 README.md
+1 −1 VERSION
+1 −1 doc/english/migrate.md
+1 −1 doc/japanese/migrate_ja.md
+1 −1 doc/migrate.md
Binary file modified iOS/AdjustSdk.framework/Versions/A/AdjustSdk
Binary file not shown.
11 changes: 10 additions & 1 deletion iOS/AdjustSdk.framework/Versions/A/Headers/Adjust.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Adjust.h
// Adjust
//
// V4.12.3
// V4.13.0
// Created by Christian Wellenbrock (wellle) on 23rd July 2013.
// Copyright © 2012-2017 Adjust GmbH. All rights reserved.
//
Expand All @@ -14,7 +14,9 @@
@interface AdjustTestOptions : NSObject

@property (nonatomic, copy, nullable) NSString *baseUrl;
@property (nonatomic, copy, nullable) NSString *gdprUrl;
@property (nonatomic, copy, nullable) NSString *basePath;
@property (nonatomic, copy, nullable) NSString *gdprPath;
@property (nonatomic, copy, nullable) NSNumber *timerIntervalInMilliseconds;
@property (nonatomic, copy, nullable) NSNumber *timerStartInMilliseconds;
@property (nonatomic, copy, nullable) NSNumber *sessionIntervalInMilliseconds;
Expand Down Expand Up @@ -205,6 +207,11 @@ extern NSString * __nonnull const ADJEnvironmentProduction;
*/
+ (void)resetSessionPartnerParameters;

/**
* @brief Give right user to be forgotten in accordance with GDPR law.
*/
+ (void)gdprForgetMe;

/**
* Obtain singleton Adjust object.
*/
Expand Down Expand Up @@ -244,6 +251,8 @@ extern NSString * __nonnull const ADJEnvironmentProduction;

- (void)addSessionCallbackParameter:(nonnull NSString *)key value:(nonnull NSString *)value;

- (void)gdprForgetMe;

- (BOOL)isEnabled;

- (nullable NSString *)adid;
Expand Down

0 comments on commit 894c454

Please sign in to comment.