diff --git a/Sources/ReownAppKit/Core/AppKit.swift b/Sources/ReownAppKit/Core/AppKit.swift index 55addf58..859cc706 100644 --- a/Sources/ReownAppKit/Core/AppKit.swift +++ b/Sources/ReownAppKit/Core/AppKit.swift @@ -66,6 +66,7 @@ public class AppKit { let includeWebWallets: Bool let recommendedWalletIds: [String] + let includedWalletIds: [String] let excludedWalletIds: [String] let customWallets: [Wallet] let coinbaseEnabled: Bool @@ -91,6 +92,7 @@ public class AppKit { authRequestParams: AuthRequestParams?, includeWebWallets: Bool = true, recommendedWalletIds: [String] = [], + includedWalletIds: [String] = [], excludedWalletIds: [String] = [], customWallets: [Wallet] = [], coinbaseEnabled: Bool = true, @@ -106,6 +108,7 @@ public class AppKit { authRequestParams: authRequestParams, includeWebWallets: includeWebWallets, recommendedWalletIds: recommendedWalletIds, + includedWalletIds: includedWalletIds, excludedWalletIds: excludedWalletIds, customWallets: customWallets, coinbaseEnabled: coinbaseEnabled, diff --git a/Sources/ReownAppKit/Core/W3MAPIInteractor.swift b/Sources/ReownAppKit/Core/W3MAPIInteractor.swift index 7b320df2..a146b9c1 100644 --- a/Sources/ReownAppKit/Core/W3MAPIInteractor.swift +++ b/Sources/ReownAppKit/Core/W3MAPIInteractor.swift @@ -30,7 +30,7 @@ final class W3MAPIInteractor: ObservableObject { DispatchQueue.main.async { self.isLoading = true } - + let params = Web3ModalAPI.GetWalletsParams( page: search.isEmpty ? store.currentPage : 1, entries: search.isEmpty ? entriesPerPage : 100, @@ -38,9 +38,10 @@ final class W3MAPIInteractor: ObservableObject { projectId: AppKit.config.projectId, metadata: AppKit.config.metadata, recommendedIds: AppKit.config.recommendedWalletIds, + include: AppKit.config.includedWalletIds, exclude: AppKit.config.excludedWalletIds ) - + let httpClient = HTTPNetworkClient(host: "api.web3modal.com") let response = try await httpClient.request( GetWalletsResponse.self, @@ -114,6 +115,7 @@ final class W3MAPIInteractor: ObservableObject { projectId: AppKit.config.projectId, metadata: AppKit.config.metadata, recommendedIds: AppKit.config.recommendedWalletIds, + include: AppKit.config.includedWalletIds, exclude: AppKit.config.excludedWalletIds ) ) diff --git a/Sources/ReownAppKit/Networking/Web3ModalAPI.swift b/Sources/ReownAppKit/Networking/Web3ModalAPI.swift index 991d66f4..a75eb506 100644 --- a/Sources/ReownAppKit/Networking/Web3ModalAPI.swift +++ b/Sources/ReownAppKit/Networking/Web3ModalAPI.swift @@ -8,6 +8,7 @@ enum Web3ModalAPI: HTTPService { let projectId: String let metadata: AppMetadata let recommendedIds: [String] + let include: [String] let exclude: [String] } @@ -46,6 +47,7 @@ enum Web3ModalAPI: HTTPService { "search": params.search ?? "", "recommendedIds": params.recommendedIds.joined(separator: ","), "exclude": params.exclude.joined(separator: ","), + "include": params.include.joined(separator: ","), "platform": "ios", ] .compactMapValues { value in diff --git a/Sources/WalletConnectRelay/PackageConfig.json b/Sources/WalletConnectRelay/PackageConfig.json index 211c9514..26849432 100644 --- a/Sources/WalletConnectRelay/PackageConfig.json +++ b/Sources/WalletConnectRelay/PackageConfig.json @@ -1 +1 @@ -{"version": "1.4.0"} +{"version": "1.4.1"}