Skip to content

Commit

Permalink
Merge pull request #15 from adjust/v4140
Browse files Browse the repository at this point in the history
Version 4.14.0
  • Loading branch information
uerceg authored Jul 17, 2018
2 parents 38becfa + 68a3669 commit 1004e12
Show file tree
Hide file tree
Showing 28 changed files with 45 additions and 23 deletions.
15 changes: 7 additions & 8 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
[submodule "ext/Android/sdk"]
path = ext/Android/sdk
url = git@github.com:adjust/android_sdk.git
branch = marmalade
[submodule "source/rapidjson"]
path = source/rapidjson
url = git@github.com:damucz/rapidjson.git
branch = master
[submodule "ext/iOS/sdk"]
path = ext/iOS/sdk
url = git@github.com:adjust/ios_sdk.git
branch = marmalade
[submodule "ext/mod-pbxproj"]
path = ext/mod-pbxproj
url = git@github.com:kronenthaler/mod-pbxproj.git
branch = master
[submodule "ext/android/sdk"]
path = ext/android/sdk
url = git@github.com:adjust/android_sdk.git
[submodule "ext/ios/sdk"]
path = ext/ios/sdk
url = git@github.com:adjust/ios_sdk.git
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
### Version 4.14.0 (17th July 2018)
#### Added
- Added deep link caching in case `appWillOpenUrl` method is called internally before SDK is initialised.

#### Changed
- Updated the way how iOS native bridge handles push tokens from C++ interface - they are now being passed directly as strings to native iOS SDK.

#### Changed
- Updated native iOS SDK to version **4.14.1**.
- Updated native Android SDK to version **4.14.0**.

---

### Version 4.13.0 (29th May 2018)
#### Added
- Added `set_app_secret` method to `adjust_config` structure.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ There is an example app inside the [`example` directory][example-app]. You can u

These are the minimal steps required to integrate the Adjust SDK into your Marmalade project.

**Note**: SDK 4.13.0 for Marmalade is built with **Marmalade 8.8.1** and we advise you to use this Marmalade version or higher. Especially if you want to rebuild our Marmalade extension on your own.
**Note**: SDK 4.14.0 for Marmalade is built with **Marmalade 8.8.1** and we advise you to use this Marmalade version or higher. Especially if you want to rebuild our Marmalade extension on your own.

### <a id="sdk-get"></a>Get the SDK

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.13.0
4.14.0
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 Marmalade to 4.13.0 from 3.4.0
## Migrate your adjust SDK for Marmalade to 4.14.0 from 3.4.0

### SDK initialization

Expand Down
1 change: 0 additions & 1 deletion ext/Android/sdk
Submodule sdk deleted from 2602ae
File renamed without changes.
1 change: 1 addition & 0 deletions ext/android/sdk
Submodule sdk added at 64ae49
1 change: 0 additions & 1 deletion ext/iOS/sdk
Submodule sdk deleted from ccfec7
2 changes: 1 addition & 1 deletion ext/iOS/build.sh → ext/ios/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

SRCDIR=./sdk
LIBOUTDIR=../../source/sdk/iOS/
LIBOUTDIR=../../source/sdk/ios/
SCRIPTDIR=../../scripts/

(cd $SRCDIR/Scripts; sh build.sh)
Expand Down
1 change: 1 addition & 0 deletions ext/ios/sdk
Submodule sdk added at e20709
2 changes: 1 addition & 1 deletion scripts/symlink_fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
set -e

# Go to framework folder
cd ../../source/sdk/iOS/AdjustSdk.framework
cd ../../source/sdk/ios/AdjustSdk.framework

# Remove any existing symlinks
rm -rf AdjustSdk
Expand Down
4 changes: 2 additions & 2 deletions source/AdjustMarmalade.mkf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ deployments
iphone-link-lib="AdjustMarmalade"
iphone-link-libdir="lib/iphone"
iphone-link-opts="-weak_framework AdSupport -weak_framework iAd -weak_framework CoreTelephony"
iphone-link-opts="-F$CWD/sdk/iOS -framework AdjustSdk -ObjC"
iphone-link-opts="-F$CWD/sdk/ios -framework AdjustSdk -ObjC"
}

#Autogenerated section for android platform support. Deleting these two comment
Expand All @@ -54,7 +54,7 @@ deployments
deployments
{
android-external-jars="lib/android/AdjustMarmalade.jar"
android-external-jars="sdk/Android/adjust-android.jar"
android-external-jars="sdk/android/adjust-android.jar"
android-so="lib/android/libAdjustMarmalade.so"

android-extra-application-manifest="adjust_broadcast_receiver.xml"
Expand Down
2 changes: 1 addition & 1 deletion source/android/AdjustMarmalade.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected void onNewIntent(Intent intent) {
return;
}

Adjust.appWillOpenUrl(uriData);
Adjust.appWillOpenUrl(uriData, LoaderAPI.getActivity());

if (isDeeplinkCallbackSet == false) {
return;
Expand Down
2 changes: 1 addition & 1 deletion source/generic/AdjustMarmalade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ char* adjust_CopyString(const char* source) {
}

s3eResult adjust_Start(adjust_config* config) {
config->set_sdk_prefix("marmalade4.13.0");
config->set_sdk_prefix("marmalade4.14.0");
return adjust_Start_platform(config);
}

Expand Down
3 changes: 1 addition & 2 deletions source/iphone/AdjustMarmalade_platform.mm
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,7 @@ s3eResult adjust_SetReferrer_platform(const char* referrer) {
}

s3eResult adjust_SetDeviceToken_platform(const char* device_token) {
NSData *deviceToken = [[NSString stringWithUTF8String:device_token] dataUsingEncoding:NSUTF8StringEncoding];
[Adjust setDeviceToken:deviceToken];
[Adjust setPushToken:[NSString stringWithUTF8String:device_token]];

return S3E_RESULT_SUCCESS;
}
Expand Down
Binary file not shown.
Binary file removed source/sdk/iOS/AdjustSdk.framework/AdjustSdk
Binary file not shown.
Binary file added source/sdk/ios/AdjustSdk.framework/AdjustSdk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Adjust.h
// Adjust
//
// V4.13.0
// V4.14.1
// Created by Christian Wellenbrock (wellle) on 23rd July 2013.
// Copyright © 2012-2017 Adjust GmbH. All rights reserved.
//
Expand All @@ -23,6 +23,7 @@
@property (nonatomic, copy, nullable) NSNumber *subsessionIntervalInMilliseconds;
@property (nonatomic, assign) BOOL teardown;
@property (nonatomic, assign) BOOL deleteState;
@property (nonatomic, assign) BOOL noBackoffWait;

@end

Expand Down Expand Up @@ -104,10 +105,18 @@ extern NSString * __nonnull const ADJEnvironmentProduction;
/**
* @brief Set the device token used by push notifications.
*
* @param deviceToken Apple push notification token for iOS device.
* @param deviceToken Apple push notification token for iOS device as NSData.
*/
+ (void)setDeviceToken:(nonnull NSData *)deviceToken;

/**
* @brief Set the device token used by push notifications.
* This method is only used by Adjust non native SDKs. Don't use it anywhere else.
*
* @param pushToken Apple push notification token for iOS device as NSString.
*/
+ (void)setPushToken:(nonnull NSString *)pushToken;

/**
* @brief Enable or disable offline mode. Activities won't be sent but they are saved when
* offline mode is disabled. This feature is not saved for future sessions.
Expand Down Expand Up @@ -233,6 +242,8 @@ extern NSString * __nonnull const ADJEnvironmentProduction;

- (void)setDeviceToken:(nonnull NSData *)deviceToken;

- (void)setPushToken:(nonnull NSString *)pushToken;

- (void)sendFirstPackages;

- (void)trackSubsessionEnd;
Expand Down

0 comments on commit 1004e12

Please sign in to comment.