Skip to content

Commit 113dbbb

Browse files
committed
Fixed checks
1 parent 35a3be0 commit 113dbbb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

QonversionTests/QDeviceTests.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,4 @@ - (void)testVendorID {
5252
XCTAssertEqualObjects(_device.vendorID, [[[UIDevice currentDevice] identifierForVendor] UUIDString]);
5353
}
5454

55-
- (void)testAfUserID {
56-
XCTAssertNil(_device.afUserID);
57-
XCTAssertNil(_device.adjustUserID);
58-
}
59-
6055
@end

Sources/Qonversion/Qonversion/Utils/QNDevice/QNDevice.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,10 @@ - (void)adjustUserIDWithCompletion:(void(^)(NSString *userId))completion {
272272

273273
completion(adidString);
274274
} else if ([Adjust respondsToSelector:adidWithCompletion]) {
275-
[Adjust performSelector:adidWithCompletion withObject:completion];
275+
id (*imp1)(id, SEL, id) = (id (*)(id, SEL, id))[Adjust methodForSelector:adidWithCompletion];
276+
if (imp1) {
277+
imp1(Adjust, adidWithCompletion, completion);
278+
}
276279
}
277280
}
278281
}

0 commit comments

Comments
 (0)