Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit c303c7a

Browse files
authored
Merge pull request #25 from magiclabs/ariflo-sc-77952-update-show-settings
Update `showSettings()` Return type to `UserMetadata`
2 parents c0cc9cd + 02f9e51 commit c303c7a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

MagicSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'MagicSDK'
6-
s.version = '8.1.0'
6+
s.version = '8.1.1'
77
s.summary = 'Magic IOS SDK'
88

99
s.description = <<-DESC

Sources/MagicSDK/Modules/User/UserModule.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public class UserModule: BaseModule {
141141
/**
142142
showSettings
143143
*/
144-
public func showSettings(response: @escaping Web3ResponseCompletion<String>) {
144+
public func showSettings(response: @escaping Web3ResponseCompletion<UserMetadata>) {
145145
if #available(iOS 14.0, *) {
146146
UserModule.logger.warning("showSettings: \(BaseWarningLog.MA_Method)")
147147
} else {
@@ -152,7 +152,7 @@ public class UserModule: BaseModule {
152152
self.provider.send(request: request, response: response)
153153
}
154154

155-
public func showSettings() -> Promise<String> {
155+
public func showSettings() -> Promise<UserMetadata> {
156156
return Promise { resolver in
157157
showSettings(response: promiseResolver(resolver))
158158
}

Sources/MagicSDK/Modules/User/UserResponse.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ public struct UserMetadata: MagicResponse {
1717
public let issuer: String?
1818
public let publicAddress: String?
1919
public let email: String?
20+
public let phoneNumber: String?
2021
}

0 commit comments

Comments
 (0)