Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FRW/App/Env/Prod/EnvDefine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation

let AppGroupName = "group.com.flowfoundation.wallet"
let AppBundleName = "com.flowfoundation.wallet"
let isDevModel = false
let isDevMode = false
let FirstFavNFTImageURL = "FirstFavNFTImageURL"

func groupUserDefaults() -> UserDefaults? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct DeveloperModeView: RouteableView {
"developer_mode".localized
}

let showDEBUGTool = isDevModel
let showDEBUGTool = isDevMode

var body: some View {
ScrollView {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class KeychainListViewModel: ObservableObject {
}

func radomUpdatePrivateKey(index _: Int) {
if isDevModel {
if isDevMode {
// Modifying private key for test
}
}
Expand Down
2 changes: 1 addition & 1 deletion FRW/Modules/Profile/ProfileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ extension ProfileView {
guard vm.state.backupFetchingState != .fetching else {
return
}
if !isDevModel, currentNetwork != .mainnet {
if !isDevMode, currentNetwork != .mainnet {
showAlert = true
} else {
let wallet = WalletManager.shared
Expand Down
2 changes: 1 addition & 1 deletion FRW/Services/FlowCoin/CadenceManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public extension String {
let version = Bundle.main
.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown"
let buildVersion = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "Unknown"
let model = isDevModel ? "(Dev)" : ""
let model = isDevMode ? "(Dev)" : ""
return "iOS-\(version)-\(buildVersion)\(model)"
}
}
3 changes: 3 additions & 0 deletions FRW/Services/Manager/PushHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class PushHandler: NSObject, ObservableObject {
}

func showPushAlertIfNeeded() {
guard !isDevMode else {
return
}
UNUserNotificationCenter.current().getNotificationSettings { settings in
DispatchQueue.main.async {
if settings.authorizationStatus == .notDetermined, !self.hasSeenPushAlert {
Expand Down
4 changes: 2 additions & 2 deletions FRW/Services/Network/GithubEndpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ extension GithubEndpoint: TargetType {
case .collections:
return "/Outblock/Assets/main/nft/nft.json"
case let .ftTokenList(network):
return "/Outblock/token-list-jsons/outblock/jsons/\(network.rawValue)/flow/\(isDevModel ? "dev" : "default").json"
return "/Outblock/token-list-jsons/outblock/jsons/\(network.rawValue)/flow/\(isDevMode ? "dev" : "default").json"
case let .EVMNFTList(network):
return "/Outblock/token-list-jsons/outblock/jsons/\(network.rawValue)/flow/nfts.json"
case let .EVMTokenList(network):
return "/Outblock/token-list-jsons/outblock/jsons/\(network.rawValue)/evm/\(isDevModel ? "dev" : "default").json"
return "/Outblock/token-list-jsons/outblock/jsons/\(network.rawValue)/evm/\(isDevMode ? "dev" : "default").json"
}
}

Expand Down
2 changes: 1 addition & 1 deletion FRW/Services/Track/EventTrack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ extension EventTrack {
let env: String
if RemoteConfigManager.shared.isStaging {
env = "staging"
} else if isDevModel {
} else if isDevMode {
env = "development"
} else {
env = "production"
Expand Down
2 changes: 1 addition & 1 deletion FRW/UI/Extension/String.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ extension String {
func convertedAvatarString() -> String {
if var comp = URLComponents(string: self) {
if comp.host == "source.boringavatars.com" {
comp.host = isDevModel ? "test.lilico.app" : "lilico.app"
comp.host = isDevMode ? "test.lilico.app" : "lilico.app"
comp.path = "/api/avatar\(comp.path)" + "&square=true"
return comp.url!.absoluteString
}
Expand Down