Skip to content

Commit 165b109

Browse files
Release 0.2.3
* Add updateFirstName public function * Bump version
1 parent b371d99 commit 165b109

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

TrueSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "TrueSDK"
4-
s.version = "0.2.2"
4+
s.version = "0.2.3"
55
s.summary = "Official Truecaller SDK for iOS for one tap verified phone number based sign up/login."
66

77
s.description = <<-DESC

TrueSDK/External/TCTrueSDK.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,8 @@ continueUserActivity:(nonnull NSUserActivity *)userActivity
158158
- (void)scene:(nonnull UIScene *)scene
159159
continueUserActivity:(nonnull NSUserActivity *)userActivity API_AVAILABLE(ios(13.0));
160160

161+
162+
- (void)updateFirstName: (nonnull NSString *)firstName
163+
lastName: (nonnull NSString *)lastName;
164+
161165
@end

TrueSDK/External/TCTrueSDK.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,4 +381,13 @@ -(void)processNetworkError: (NSError *)error {
381381
[_delegate didFailToReceiveTrueProfileWithError: [TCError errorWithCode:TCTrueSDKErrorCodeInternal description:error.localizedDescription]];
382382
}
383383
}
384+
385+
- (void)updateFirstName: (nonnull NSString *)firstName
386+
lastName: (nonnull NSString *)lastName {
387+
_firstName = firstName;
388+
_lastName = lastName;
389+
390+
[self updateProfileDetails:self.loginCodeResponse completionHandler:nil];
391+
}
392+
384393
@end

0 commit comments

Comments
 (0)