Skip to content

Commit 7a4a502

Browse files
committed
Merge pull request #359 from BranchMetrics/vendor-id-debug
add vendor id all the time
2 parents f302649 + c6657b5 commit 7a4a502

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Branch-SDK/Branch-SDK/BNCDeviceInfo.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ - (id)init {
3838
self.hardwareIdType = hardwareIdType;
3939
}
4040

41-
self.vendorId = [BNCSystemObserver getVendorId:preferenceHelper.isDebug];
41+
self.vendorId = [BNCSystemObserver getVendorId];
4242
self.brandName = [BNCSystemObserver getBrand];
4343
self.modelName = [BNCSystemObserver getModel];
4444
self.osName = [BNCSystemObserver getOS];

Branch-SDK/Branch-SDK/BNCSystemObserver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@interface BNCSystemObserver : NSObject
1212

1313
+ (NSString *)getUniqueHardwareId:(BOOL *)isReal isDebug:(BOOL)debug andType:(NSString **)type;
14-
+ (NSString *)getVendorId:(BOOL)debug;
14+
+ (NSString *)getVendorId;
1515
+ (NSString *)getDefaultUriScheme;
1616
+ (NSString *)getAppVersion;
1717
+ (NSString *)getBundleID;

Branch-SDK/Branch-SDK/BNCSystemObserver.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ + (NSString *)getUniqueHardwareId:(BOOL *)isReal isDebug:(BOOL)debug andType:(NS
4444
return uid;
4545
}
4646

47-
+ (NSString *)getVendorId:(BOOL)debug {
47+
+ (NSString *)getVendorId {
4848
NSString *vendorId = nil;
4949

50-
if (!debug && NSClassFromString(@"UIDevice")) {
50+
if (NSClassFromString(@"UIDevice")) {
5151
vendorId = [[UIDevice currentDevice].identifierForVendor UUIDString];
5252
}
5353

0 commit comments

Comments
 (0)