Skip to content

Commit 922cd81

Browse files
committed
Merge pull request #14 from adjust/development
Update iOS version to v3.3.3
2 parents 9369031 + fe8f3d8 commit 922cd81

File tree

10 files changed

+36
-8
lines changed

10 files changed

+36
-8
lines changed

Adjust_v3.2.2.unitypackage

-2.31 MB
Binary file not shown.

Adjust_v3.2.3.unitypackage

2.31 MB
Binary file not shown.

Assets/Adjust.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Adjust : MonoBehaviour {
1414
public Util.Environment environment = Util.Environment.Sandbox;
1515
public bool eventBuffering = false;
1616
public bool startManually = false;
17-
public const string sdkPrefix = "unity3.2.2";
17+
public const string sdkPrefix = "unity3.2.3";
1818

1919
void Awake() {
2020
if (!this.startManually) {

Assets/Plugins/iOS/AILogger.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,7 @@ typedef enum {
3131
@end
3232

3333
@interface AILogger : NSObject <AILogger>
34+
35+
+ (AILogLevel) LogLevelFromString: (NSString *) logLevelString;
36+
3437
@end

Assets/Plugins/iOS/AILogger.m

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,27 @@ - (void)logLevel:(NSString *)logLevel format:(NSString *)format parameters:(va_l
7171
}
7272
}
7373

74+
+ (AILogLevel)LogLevelFromString:(NSString *)logLevelString {
75+
if ([logLevelString isEqualToString:@"verbose"])
76+
return AILogLevelVerbose;
77+
78+
if ([logLevelString isEqualToString:@"debug"])
79+
return AILogLevelDebug;
80+
81+
if ([logLevelString isEqualToString:@"info"])
82+
return AILogLevelInfo;
83+
84+
if ([logLevelString isEqualToString:@"warn"])
85+
return AILogLevelWarn;
86+
87+
if ([logLevelString isEqualToString:@"error"])
88+
return AILogLevelError;
89+
90+
if ([logLevelString isEqualToString:@"assert"])
91+
return AILogLevelAssert;
92+
93+
// default value if string does not match
94+
return AILogLevelInfo;
95+
}
96+
7497
@end

Assets/Plugins/iOS/AIUtil.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <sys/xattr.h>
1515

1616
static NSString * const kBaseUrl = @"https://app.adjust.io";
17-
static NSString * const kClientSdk = @"ios3.3.1";
17+
static NSString * const kClientSdk = @"ios3.3.3";
1818

1919
static NSString * const kDateFormat = @"yyyy-MM-dd'T'HH:mm:ss'Z'Z";
2020
static NSDateFormatter * dateFormat;

Assets/Plugins/iOS/Adjust.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ static NSString * const AIEnvironmentProduction = @"production";
135135
*/
136136
+ (void)setMacMd5TrackingEnabled:(BOOL)enabled;
137137

138-
// Special method used by SDK wrappers such as Adobe Air SDK.
139-
+ (void)setSdkPrefix:(NSString *)sdkPrefix __attribute__((deprecated));
138+
// Special method used by wrapper JS bridge. Do not call directly.
139+
+ (void)setSdkPrefix:(NSString *)sdkPrefix;
140140

141141
/**
142142
* Tell adjust that the application resumed.

Assets/Plugins/iOS/UIDevice+AIAdditions.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ - (NSString *)aiCreateUuid {
159159
}
160160

161161
- (NSString *)aiVendorId {
162-
NSString * vendorId = [UIDevice.currentDevice.identifierForVendor UUIDString];
163-
return vendorId;
162+
if ([UIDevice.currentDevice respondsToSelector:@selector(identifierForVendor)]) {
163+
return [UIDevice.currentDevice.identifierForVendor UUIDString];
164+
}
165+
return @"";
164166
}
165167

166168
@end

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.2
1+
3.2.3

0 commit comments

Comments
 (0)