Skip to content

Commit 92864e6

Browse files
authored
Hide Exolix swap feature (#1241)
1 parent 9eed825 commit 92864e6

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

MobileWallet.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4133,7 +4133,7 @@
41334133
CODE_SIGN_ENTITLEMENTS = MobileWallet/Tari.entitlements;
41344134
CODE_SIGN_IDENTITY = "Apple Development";
41354135
CODE_SIGN_STYLE = Automatic;
4136-
CURRENT_PROJECT_VERSION = 7;
4136+
CURRENT_PROJECT_VERSION = 9;
41374137
DEVELOPMENT_TEAM = 8XGMD9X2H2;
41384138
ENABLE_BITCODE = NO;
41394139
FRAMEWORK_SEARCH_PATHS = (
@@ -4168,7 +4168,7 @@
41684168
CODE_SIGN_ENTITLEMENTS = MobileWallet/Tari.entitlements;
41694169
CODE_SIGN_IDENTITY = "Apple Development";
41704170
CODE_SIGN_STYLE = Automatic;
4171-
CURRENT_PROJECT_VERSION = 7;
4171+
CURRENT_PROJECT_VERSION = 9;
41724172
DEVELOPMENT_TEAM = 8XGMD9X2H2;
41734173
ENABLE_BITCODE = NO;
41744174
FRAMEWORK_SEARCH_PATHS = (

MobileWallet/Screens/Home/Home/Scenes/Home.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,12 @@ private extension Home {
245245
}
246246
.foregroundStyle(.whiteMain.opacity(0.5))
247247

248-
TariButton("Buy XTM", style: .green, size: .large) {
249-
router.isSwapPresented = true
248+
if exolix.isFeatureSupported {
249+
TariButton("Buy XTM", style: .green, size: .large) {
250+
router.isSwapPresented = true
251+
}
252+
.padding(.top)
250253
}
251-
.padding(.top)
252254
}
253255
.padding(.top, 50)
254256
.padding(20)

MobileWallet/Services/Exolix/Exolix.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ final class Exolix {
1919
private var isMonitoringTransactions = false
2020
var monitoredTransactions: Set<String> = []
2121
var latestTransactions = [String: ExolixTransactionResponse]()
22+
23+
let isFeatureSupported = false
2224

2325
init() {
2426
self.apiKey = AppSecret.load()?.exolixApiKey

0 commit comments

Comments
 (0)