Skip to content

Commit 8790a53

Browse files
authored
Merge pull request #526 from adjust/remove_legacy
Version 4.28.0
2 parents ef12e59 + 573af76 commit 8790a53

File tree

36 files changed

+44
-622
lines changed

36 files changed

+44
-622
lines changed

Adjust.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |s|
22
s.name = "Adjust"
3-
s.version = "4.27.1"
3+
s.version = "4.28.0"
44
s.summary = "This is the iOS SDK of adjust. You can read more about it at http://adjust.com."
55
s.homepage = "https://github.com/adjust/ios_sdk"
66
s.license = { :type => 'MIT', :file => 'MIT-LICENSE' }
77
s.author = { "Christian Wellenbrock" => "[email protected]" }
8-
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.27.1" }
8+
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.28.0" }
99
s.ios.deployment_target = '6.0'
1010
s.tvos.deployment_target = '9.0'
1111
s.framework = 'SystemConfiguration'

Adjust.xcodeproj/project.pbxproj

Lines changed: 0 additions & 40 deletions
Large diffs are not rendered by default.

Adjust/ADJActivityState.m

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Copyright (c) 2013 adjust GmbH. All rights reserved.
77
//
88

9-
#import "ADJKeychain.h"
109
#import "ADJAdjustFactory.h"
1110
#import "ADJActivityState.h"
1211
#import "UIDevice+ADJAdditions.h"
@@ -84,26 +83,7 @@ - (BOOL)findTransactionId:(NSString *)transactionId {
8483
#pragma mark - Private & helper methods
8584

8685
- (void)assignUuid:(NSString *)uuid {
87-
NSString *persistedUuid = [ADJKeychain valueForKeychainKey:@"adjust_uuid" service:@"deviceInfo"];
88-
89-
// Check if value exists in Keychain.
90-
if (persistedUuid != nil) {
91-
// Check if value has UUID format.
92-
if ((bool)[[NSUUID alloc] initWithUUIDString:persistedUuid]) {
93-
[[ADJAdjustFactory logger] verbose:@"Value read from the keychain"];
94-
95-
// Value written in keychain seems to have UUID format.
96-
self.uuid = persistedUuid;
97-
self.isPersisted = YES;
98-
return;
99-
}
100-
}
101-
102-
// At this point, UUID was not persisted in Keychain or if persisted, didn't have proper UUID format.
103-
// Since we don't have anything in the keychain, we'll use the passed UUID value.
104-
// Try to save that value to the keychain.
10586
self.uuid = uuid;
106-
self.isPersisted = [ADJKeychain setValue:self.uuid forKeychainKey:@"adjust_uuid" inService:@"deviceInfo"];
10787
}
10888

10989
- (NSString *)description {

Adjust/ADJAdditions/UIDevice+ADJAdditions.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
- (NSString *)adjDeviceName;
2222
- (NSString *)adjCreateUuid;
2323
- (NSString *)adjVendorId;
24-
- (NSString *)adjDeviceId:(ADJDeviceInfo *)deviceInfo;
2524
- (void)adjCheckForiAd:(ADJActivityHandler *)activityHandler queue:(dispatch_queue_t)queue;
2625
- (NSString *)adjFetchAdServicesAttribution:(NSError **)errorPtr;
2726

Adjust/ADJAdditions/UIDevice+ADJAdditions.m

Lines changed: 0 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -214,111 +214,6 @@ - (NSString *)adjVendorId {
214214
return @"";
215215
}
216216

217-
- (NSString *)adjDeviceId:(ADJDeviceInfo *)deviceInfo {
218-
int languageMaxLength = 16;
219-
NSString *language = deviceInfo.languageCode;
220-
NSString *binaryLanguage = [ADJUtil stringToBinaryString:language];
221-
NSString *binaryLanguageFormatted = [ADJUtil enforceParameterLength:binaryLanguage withMaxlength:languageMaxLength];
222-
223-
int hardwareNameMaxLength = 48;
224-
NSString *hardwareName = deviceInfo.machineModel;
225-
NSString *binaryHardwareName = [ADJUtil stringToBinaryString:hardwareName];
226-
NSString *binaryHardwareNameFormatted = [ADJUtil enforceParameterLength:binaryHardwareName withMaxlength:hardwareNameMaxLength];
227-
228-
NSArray *versionParts = [deviceInfo.systemVersion componentsSeparatedByString:@"."];
229-
int osVersionMajor = [[versionParts objectAtIndex:0] intValue];
230-
int osVersionMinor = [[versionParts objectAtIndex:1] intValue];
231-
int osVersionPatch = [versionParts count] == 3 ? [[versionParts objectAtIndex:2] intValue] : 0;
232-
233-
int osVersionMajorMaxLength = 8;
234-
NSString *binaryOsVersionMajor = [ADJUtil decimalToBinaryString:osVersionMajor];
235-
NSString *binaryOsVersionMajorFormatted = [ADJUtil enforceParameterLength:binaryOsVersionMajor withMaxlength:osVersionMajorMaxLength];
236-
237-
int osVersionMinorMaxLength = 8;
238-
NSString *binaryOsVersionMinor = [ADJUtil decimalToBinaryString:osVersionMinor];
239-
NSString *binaryOsVersionMinorFormatted = [ADJUtil enforceParameterLength:binaryOsVersionMinor withMaxlength:osVersionMinorMaxLength];
240-
241-
int osVersionPatchMaxLength = 8;
242-
NSString *binaryOsVersionPatch = [ADJUtil decimalToBinaryString:osVersionPatch];
243-
NSString *binaryOsVersionPatchFormatted = [ADJUtil enforceParameterLength:binaryOsVersionPatch withMaxlength:osVersionPatchMaxLength];
244-
245-
int mccMaxLength = 24;
246-
NSString *mcc = [ADJUtil readMCC];
247-
NSString *binaryMcc = [ADJUtil stringToBinaryString:mcc];
248-
NSString *binaryMccFormatted = [ADJUtil enforceParameterLength:binaryMcc withMaxlength:mccMaxLength];
249-
250-
int mncMaxLength = 24;
251-
NSString *mnc = [ADJUtil readMNC];
252-
NSString *binaryMnc = [ADJUtil stringToBinaryString:mnc];
253-
NSString *binaryMncFormatted = [ADJUtil enforceParameterLength:binaryMnc withMaxlength:mncMaxLength];
254-
255-
int chargingStatusMaxLength = 8;
256-
NSUInteger chargingStatus = [ADJSystemProfile chargingStatus];
257-
NSString *binaryChargingStatus = [ADJUtil decimalToBinaryString:chargingStatus];
258-
NSString *binaryChargingStatusFormatted = [ADJUtil enforceParameterLength:binaryChargingStatus withMaxlength:chargingStatusMaxLength];
259-
260-
int batteryLevelMaxSize = 8;
261-
NSUInteger batteryLevel = [ADJSystemProfile batteryLevel];
262-
NSString *binaryBatteryLevel = [ADJUtil decimalToBinaryString:batteryLevel];
263-
NSString *binaryBatteryLevelFormatted = [ADJUtil enforceParameterLength:binaryBatteryLevel withMaxlength:batteryLevelMaxSize];
264-
265-
int totalSpaceMaxSize = 24;
266-
NSUInteger totalSpace = [ADJSystemProfile totalDiskSpace];
267-
NSString *binaryTotalSpace = [ADJUtil decimalToBinaryString:totalSpace];
268-
NSString *binaryTotalSpaceFormatted = [ADJUtil enforceParameterLength:binaryTotalSpace withMaxlength:totalSpaceMaxSize];
269-
270-
int freeSpaceMaxSize = 24;
271-
NSUInteger freeSpace = [ADJSystemProfile freeDiskSpace];
272-
NSString *binaryFreeSpace = [ADJUtil decimalToBinaryString:freeSpace];
273-
NSString *binaryFreeSpaceFormatted = [ADJUtil enforceParameterLength:binaryFreeSpace withMaxlength:freeSpaceMaxSize];
274-
275-
int systemUptimeMaxSize = 24;
276-
NSUInteger systemUptime = [ADJSystemProfile systemUptime];
277-
NSString *binarySystemUptime = [ADJUtil decimalToBinaryString:systemUptime];
278-
NSString *binarySystemUptimeFormatted = [ADJUtil enforceParameterLength:binarySystemUptime withMaxlength:systemUptimeMaxSize];
279-
280-
int lastBootTimeMaxSize = 32;
281-
NSUInteger lastBootTime = [ADJSystemProfile lastBootTime];
282-
NSString *binaryLastBootTime = [ADJUtil decimalToBinaryString:lastBootTime];
283-
NSString *binaryLastBootTimeFormatted = [ADJUtil enforceParameterLength:binaryLastBootTime withMaxlength:lastBootTimeMaxSize];
284-
285-
NSString *concatenated = [NSString stringWithFormat:@"%@%@%@%@%@%@%@%@%@%@%@%@%@",
286-
binaryLanguageFormatted,
287-
binaryHardwareNameFormatted,
288-
binaryOsVersionMajorFormatted,
289-
binaryOsVersionMinorFormatted,
290-
binaryOsVersionPatchFormatted,
291-
binaryMccFormatted,
292-
binaryMncFormatted,
293-
binaryChargingStatusFormatted,
294-
binaryBatteryLevelFormatted,
295-
binaryTotalSpaceFormatted,
296-
binaryFreeSpaceFormatted,
297-
binarySystemUptimeFormatted,
298-
binaryLastBootTimeFormatted];
299-
300-
// make sure concatenated string length is multiple of 4
301-
if (concatenated.length % 4 != 0) {
302-
int numberOfBits = concatenated.length % 4;
303-
while (numberOfBits != 4) {
304-
concatenated = [@"0" stringByAppendingString:concatenated];
305-
numberOfBits += 1;
306-
}
307-
}
308-
309-
NSString *mParameter = @"";
310-
for (NSUInteger i = 0; i < concatenated.length; i += 4) {
311-
// get fourplet substring
312-
NSString *fourplet = [concatenated substringWithRange:NSMakeRange(i, 4)];
313-
// convert fourplet to decimal number
314-
long decimalFourplet = strtol([fourplet UTF8String], NULL, 2);
315-
// append hex value of fourplet to final parameter
316-
mParameter = [mParameter stringByAppendingString:[NSString stringWithFormat:@"%lX", decimalFourplet]];
317-
}
318-
319-
return mParameter;
320-
}
321-
322217
- (void)adjCheckForiAd:(ADJActivityHandler *)activityHandler queue:(dispatch_queue_t)queue {
323218
// if no tries for iad v3 left, stop trying
324219
id<ADJLogger> logger = [ADJAdjustFactory logger];

Adjust/ADJKeychain.h

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

Adjust/ADJKeychain.m

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

0 commit comments

Comments
 (0)