-
Notifications
You must be signed in to change notification settings - Fork 23
Hide Exolix swap feature #1241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide Exolix swap feature #1241
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,8 @@ final class Exolix { | |
| private var isMonitoringTransactions = false | ||
| var monitoredTransactions: Set<String> = [] | ||
| var latestTransactions = [String: ExolixTransactionResponse]() | ||
|
|
||
| let isFeatureSupported = false | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For better flexibility during development and testing, consider using a compilation directive to control this feature flag. Hardcoding it to A better approach would be to use the let isFeatureSupported: Bool = {
#if DEBUG
return true
#else
return false
#endif
}() |
||
|
|
||
| init() { | ||
| self.apiKey = AppSecret.load()?.exolixApiKey | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be automatic increment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't update this so it was done automatically. The CI will probably override it too