-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Set custom SDK name and version on CleverTap
- Loading branch information
1 parent
10cdd17
commit 2e5f596
Showing
8 changed files
with
189 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use_frameworks! | ||
|
||
target 'mParticle-CleverTap' do | ||
pod 'mParticle-Apple-SDK', '~> 8' | ||
pod 'CleverTap-iOS-SDK', '~> 5.2' | ||
end | ||
|
||
target 'mParticle_CleverTapTests' do | ||
pod 'mParticle-Apple-SDK', '~> 8' | ||
pod 'CleverTap-iOS-SDK', '~> 5.2' | ||
pod 'Quick' | ||
pod 'Nimble' | ||
pod 'OCMock' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// mParticle_VersionToIntTest.m | ||
// mParticle_CleverTapTests | ||
// | ||
// Created by Ben Baron on 1/5/24. | ||
// Copyright © 2024 mParticle. All rights reserved. | ||
// | ||
|
||
#import <XCTest/XCTest.h> | ||
#import "MPKitCleverTap.h" | ||
|
||
@interface MPKitCleverTap() | ||
+ (int)intVersion:(NSString *)version; | ||
@end | ||
|
||
@interface mParticle_VersionToIntTest : XCTestCase | ||
@end | ||
|
||
@implementation mParticle_VersionToIntTest | ||
|
||
- (void)setUp { | ||
// Put setup code here. This method is called before the invocation of each test method in the class. | ||
} | ||
|
||
- (void)tearDown { | ||
// Put teardown code here. This method is called after the invocation of each test method in the class. | ||
} | ||
|
||
- (void)testVersionToInt { | ||
XCTAssertEqual([MPKitCleverTap intVersion:@"8.2.0"], 80200); | ||
XCTAssertEqual([MPKitCleverTap intVersion:@"8.5.10"], 80510); | ||
XCTAssertEqual([MPKitCleverTap intVersion:@"8.10.14"], 81014); | ||
XCTAssertEqual([MPKitCleverTap intVersion:@"9.0.0"], 90000); | ||
XCTAssertEqual([MPKitCleverTap intVersion:@"9.0"], 0); | ||
XCTAssertEqual([MPKitCleverTap intVersion:@"9"], 0); | ||
XCTAssertEqual([MPKitCleverTap intVersion:@"9.0.0.0"], 0); | ||
XCTAssertEqual([MPKitCleverTap intVersion:@"10.123.5"], 1012305); | ||
} | ||
|
||
|
||
@end |