Skip to content

Commit 368aba4

Browse files
committed
Merge pull request #60 from adjust/iadv3
iAd v3 support
2 parents 3ba3fa1 + 1b2df62 commit 368aba4

17 files changed

+31
-64
lines changed

Assets/Adjust/Android/AdjustAndroid.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace com.adjust.sdk
1010
#if UNITY_ANDROID
1111
public class AdjustAndroid : IAdjust
1212
{
13-
private const string sdkPrefix = "unity4.1.1";
13+
private const string sdkPrefix = "unity4.1.2";
1414
private AndroidJavaClass ajcAdjust;
1515
private AndroidJavaObject ajoCurrentActivity;
1616
private AttributionChangeListener onAttributionChangedListener;
441 Bytes
Binary file not shown.

Assets/Adjust/Metro/AdjustMetro.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace com.adjust.sdk
99
{
1010
public class AdjustMetro : IAdjust
1111
{
12-
private const string sdkPrefix = "unity4.1.1";
12+
private const string sdkPrefix = "unity4.1.2";
1313

1414
public bool isEnabled()
1515
{
@@ -72,4 +72,4 @@ public void setDeviceToken (string deviceToken) {}
7272
public void setReferrer (string referrer) {}
7373
}
7474
}
75-
#endif
75+
#endif

Assets/Adjust/Unity/AdjustConfig.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ public class AdjustConfig
1414
internal AdjustEnvironment environment;
1515
internal Action<AdjustAttribution> attributionChangedDelegate;
1616

17-
// iOS specific members
18-
internal bool macMd5TrackingEnabled;
19-
2017
// Android specific members
2118
internal string processName;
2219

@@ -28,7 +25,6 @@ public AdjustConfig (string appToken, AdjustEnvironment environment)
2825
this.sceneName = "";
2926
this.appToken = appToken;
3027
this.environment = environment;
31-
this.macMd5TrackingEnabled = false;
3228
this.processName = "";
3329
}
3430

@@ -58,12 +54,6 @@ public Action<AdjustAttribution> getAttributionChangedDelegate ()
5854
return this.attributionChangedDelegate;
5955
}
6056

61-
// iOS specific methods
62-
public void setMacMd5TrackingEnabled (bool macMd5TrackingEnabled)
63-
{
64-
this.macMd5TrackingEnabled = macMd5TrackingEnabled;
65-
}
66-
6757
// Android specific methods
6858
public void setProcessName (string processName)
6959
{

Assets/Adjust/WP8/AdjustWP8.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace com.adjust.sdk
99
{
1010
public class AdjustWP8 : IAdjust
1111
{
12-
private const string sdkPrefix = "unity4.1.1";
12+
private const string sdkPrefix = "unity4.1.2";
1313

1414
public bool isEnabled()
1515
{

Assets/Adjust/iOS/ADJConfig.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,6 @@
7272
*/
7373
@property (nonatomic, assign) BOOL eventBufferingEnabled;
7474

75-
/**
76-
* Disable macMd5 tracking if your privacy constraints require it.
77-
*
78-
* @param macMd5TrackingEnabled Enable or disable tracking of
79-
* the MD5 hash of the MAC address
80-
*/
81-
@property (nonatomic, assign) BOOL macMd5TrackingEnabled;
82-
8375
/**
8476
* Set the optional delegate that will inform you about attribution
8577
*

Assets/Adjust/iOS/Adjust.a

-2.6 MB
Binary file not shown.

Assets/Adjust/iOS/Adjust.a.meta

Lines changed: 0 additions & 21 deletions
This file was deleted.

Assets/Adjust/iOS/AdjustSdk.a

3.22 MB
Binary file not shown.

Assets/Adjust/iOS/AdjustUnity.mm

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ - (void)adjustAttributionChanged:(ADJAttribution *)attribution {
5454

5555
extern "C"
5656
{
57-
void _AdjustLaunchApp(const char* appToken, const char* environment, const char* sdkPrefix, int logLevel, int eventBuffering, int macMd5TrackingEnabled, const char* sceneName) {
57+
void _AdjustLaunchApp(const char* appToken, const char* environment, const char* sdkPrefix, int logLevel, int eventBuffering, const char* sceneName) {
5858
NSString *stringSdkPrefix = [NSString stringWithUTF8String:sdkPrefix];
5959
NSString *stringAppToken = [NSString stringWithUTF8String:appToken];
6060
NSString *stringEnvironment = [NSString stringWithUTF8String:environment];
@@ -74,17 +74,13 @@ void _AdjustLaunchApp(const char* appToken, const char* environment, const char*
7474
[adjustConfig setEventBufferingEnabled:(BOOL)eventBuffering];
7575
}
7676

77-
if (macMd5TrackingEnabled != -1) {
78-
[adjustConfig setMacMd5TrackingEnabled:(BOOL)macMd5TrackingEnabled];
79-
}
80-
8177
if (sceneName != NULL && [stringSceneName length] > 0) {
8278
adjustSceneName = strdup(sceneName);
8379
adjustUnityInstance = [[AdjustUnity alloc] init];
8480
[adjustConfig setDelegate:(id)adjustUnityInstance];
8581
}
8682

87-
NSLog(@"%@, %@, %@, %d, %d, %d, %@", stringAppToken, stringEnvironment, stringSdkPrefix, logLevel, eventBuffering, macMd5TrackingEnabled, stringSceneName);
83+
NSLog(@"%@, %@, %@, %d, %d, %@", stringAppToken, stringEnvironment, stringSdkPrefix, logLevel, eventBuffering, stringSceneName);
8884

8985
// Launch adjust instance.
9086
[Adjust appDidLaunch:adjustConfig];

Assets/Adjust/iOS/AdjustiOS.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ namespace com.adjust.sdk
1010
#if UNITY_IOS
1111
public class AdjustiOS : IAdjust
1212
{
13-
private const string sdkPrefix = "unity4.1.1";
13+
private const string sdkPrefix = "unity4.1.2";
1414

1515
#region External methods
1616

1717
[DllImport ("__Internal")]
18-
private static extern void _AdjustLaunchApp (string appToken, string environment, string sdkPrefix, int logLevel, int eventBuffering, int macMd5TrackingEnabled, string sceneName);
18+
private static extern void _AdjustLaunchApp (string appToken, string environment, string sdkPrefix, int logLevel, int eventBuffering, string sceneName);
1919

2020
[DllImport ("__Internal")]
2121
private static extern void _AdjustTrackEvent (string eventToken, double revenue, string currency, string receipt, string transactionId, int isReceiptSet, string jsonCallbackParameters, string jsonPartnerParameters);
@@ -48,9 +48,8 @@ public void start (AdjustConfig adjustConfig)
4848

4949
int logLevel = convertLogLevel (adjustConfig.logLevel);
5050
int eventBufferingEnabled = convertBool (adjustConfig.eventBufferingEnabled);
51-
int macMd5TrackingEnabled = convertBool (adjustConfig.macMd5TrackingEnabled);
5251

53-
_AdjustLaunchApp (appToken, environment, sdkPrefix, logLevel, eventBufferingEnabled, macMd5TrackingEnabled, sceneName);
52+
_AdjustLaunchApp (appToken, environment, sdkPrefix, logLevel, eventBufferingEnabled, sceneName);
5453
}
5554

5655
public void trackEvent (AdjustEvent adjustEvent)

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
### Version 4.1.2 (20th January 2016)
2+
### Added
3+
- Support for iOS iAd v3.
4+
5+
#### Changed
6+
- MAC MD5 tracking feature for iOS platform is now completely removed.
7+
- Native iOS SDK updated to version **4.5.0**.
8+
- Native Android SDK updated to version **4.2.1**.
9+
10+
---
11+
112
### Version 4.1.1 (23rd December 2015)
213
### Added
314
- Changelog is now added to the repository.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1.1
1+
4.1.2

doc/migrate.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
## Migrate your adjust SDK for Unity3d to 4.1.1 from 3.4.4
1+
## Migrate your adjust SDK for Unity3d to 4.1.2 from 3.4.4
22

33
### Migration procedure
44

5-
Starting from version 4.1.1, the structure of this repository is adjusted to Unity 5. All files which are part of the
5+
Starting from version 4.1.2, the structure of this repository is adjusted to Unity 5. All files which are part of the
66
adjust SDK are now moved to the `Assets/Adjust` folder, since Unity 5 allows that native files can now be placed
77
outside of `Assets/Plugins` folder. This is done so that adjust files are no longer mixed with files you may be
88
keeping in `Assets/Plugins` folder.
99

1010
For migration purposes, we have prepared two Unity packages:
1111

12-
* `Adjust_v4.1.1_Unity_4.unitypackage` (for Unity 4 users)
13-
* `Adjust_v4.1.1_Unity_5.unitypackage` (for Unity 5 users)
12+
* `Adjust_v4.1.2_Unity_4.unitypackage` (for Unity 4 users)
13+
* `Adjust_v4.1.2_Unity_5.unitypackage` (for Unity 5 users)
1414

1515
and the adjust SDK uninstall script written in Python (`adjust_uninstall.py`).
1616

17-
Migration to version 4.1.1 of our SDK requires the following steps:
17+
Migration to version 4.1.2 of our SDK requires the following steps:
1818

1919
1. Copy the `adjust_uninstall.py` script to your root Unity project directory and run it. This script should
2020
delete all adjust source files from the previous SDK version you had.

ext/Android/sdk

Submodule sdk updated 40 files

ext/iOS/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ default: copy
55

66
build:
77
cd $(SRCDIR); \
8-
xcodebuild -target framework -configuration Release
8+
xcodebuild -target AdjustStatic -configuration Release
99

1010
copy: build
11-
cp $(SRCDIR)/Adjust.a $(LIBOUTDIR); \
11+
cp $(SRCDIR)/AdjustSdk.a $(LIBOUTDIR); \
1212
cp $(SRCDIR)/Headers/* $(LIBOUTDIR); \
13-
rm $(SRCDIR)/Adjust.a; \
13+
rm $(SRCDIR)/AdjustSdk.a; \
1414
rm -rf $(SRCDIR)/Headers

ext/iOS/sdk

Submodule sdk updated 60 files

0 commit comments

Comments
 (0)