Skip to content

Commit

Permalink
Project ID required
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Sep 29, 2022
1 parent 47a0ce7 commit b375139
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Configuration.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Uncomment next line and paste your project id. Get this on: https://cloud.walletconnect.com/sign-in
// PROJECT_ID = YOUR_PROJECT_ID
2 changes: 1 addition & 1 deletion Example/DApp/Common/InputConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
struct InputConfig {

static var projectId: String {
return config(for: "PROJECT_ID") ?? "3ca2919724fbfa5456a25194e369a8b4"
return config(for: "PROJECT_ID")!
}

private static func config(for key: String) -> String? {
Expand Down
2 changes: 1 addition & 1 deletion Example/ExampleApp/Common/InputConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
struct InputConfig {

static var projectId: String {
return config(for: "PROJECT_ID") ?? "3ca2919724fbfa5456a25194e369a8b4"
return config(for: "PROJECT_ID")!
}

private static func config(for key: String) -> String? {
Expand Down
4 changes: 2 additions & 2 deletions Example/IntegrationTests/Stubs/InputConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import Foundation
struct InputConfig {

static var relayHost: String {
return config(for: "RELAY_HOST") ?? "relay.walletconnect.com"
return config(for: "RELAY_HOST")!
}

static var projectId: String {
return config(for: "PROJECT_ID") ?? "3ca2919724fbfa5456a25194e369a8b4"
return config(for: "PROJECT_ID")!
}

static var defaultTimeout: TimeInterval {
Expand Down
2 changes: 1 addition & 1 deletion Example/Showcase/Common/InputConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
struct InputConfig {

static var projectId: String {
return config(for: "PROJECT_ID") ?? "3ca2919724fbfa5456a25194e369a8b4"
return config(for: "PROJECT_ID")!
}

private static func config(for key: String) -> String? {
Expand Down

0 comments on commit b375139

Please sign in to comment.