Skip to content

Commit

Permalink
Merge pull request #97 from reown-com/develop
Browse files Browse the repository at this point in the history
1.4.1
  • Loading branch information
llbartekll authored Feb 18, 2025
2 parents 0bfb116 + 3977c99 commit f5088c9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Sources/ReownAppKit/Core/AppKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -91,6 +92,7 @@ public class AppKit {
authRequestParams: AuthRequestParams?,
includeWebWallets: Bool = true,
recommendedWalletIds: [String] = [],
includedWalletIds: [String] = [],
excludedWalletIds: [String] = [],
customWallets: [Wallet] = [],
coinbaseEnabled: Bool = true,
Expand All @@ -106,6 +108,7 @@ public class AppKit {
authRequestParams: authRequestParams,
includeWebWallets: includeWebWallets,
recommendedWalletIds: recommendedWalletIds,
includedWalletIds: includedWalletIds,
excludedWalletIds: excludedWalletIds,
customWallets: customWallets,
coinbaseEnabled: coinbaseEnabled,
Expand Down
6 changes: 4 additions & 2 deletions Sources/ReownAppKit/Core/W3MAPIInteractor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ 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,
search: search,
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,
Expand Down Expand Up @@ -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
)
)
Expand Down
2 changes: 2 additions & 0 deletions Sources/ReownAppKit/Networking/Web3ModalAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ enum Web3ModalAPI: HTTPService {
let projectId: String
let metadata: AppMetadata
let recommendedIds: [String]
let include: [String]
let exclude: [String]
}

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/WalletConnectRelay/PackageConfig.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version": "1.4.0"}
{"version": "1.4.1"}

0 comments on commit f5088c9

Please sign in to comment.