Skip to content

Commit

Permalink
[IOS] Relase v1.5.26
Browse files Browse the repository at this point in the history
  • Loading branch information
wannabit-yongjoo committed Nov 8, 2021
1 parent 8700088 commit 63983c7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 47 deletions.
8 changes: 4 additions & 4 deletions Cosmostation.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6000,7 +6000,7 @@
CODE_SIGN_ENTITLEMENTS = Cosmostation/Cosmostation.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 123;
CURRENT_PROJECT_VERSION = 126;
DEVELOPMENT_TEAM = 8G562MW56M;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -6012,7 +6012,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.5.23;
MARKETING_VERSION = 1.5.26;
PRODUCT_BUNDLE_IDENTIFIER = io.wannabit.cosmostation;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -6032,7 +6032,7 @@
CODE_SIGN_ENTITLEMENTS = Cosmostation/Cosmostation.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 123;
CURRENT_PROJECT_VERSION = 126;
DEVELOPMENT_TEAM = 8G562MW56M;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -6044,7 +6044,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.5.23;
MARKETING_VERSION = 1.5.26;
PRODUCT_BUNDLE_IDENTIFIER = io.wannabit.cosmostation;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
1 change: 0 additions & 1 deletion Cosmostation/Base/BaseConstant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ let SIF_API = "https://api-sifchain.cosmostation.io/
let SIF_FINANCE_API = "https://api-cryptoeconomics.sifchain.finance/";


let KI_URL = "https://lcd-kichain-app.cosmostation.io/";
let KI_API = "https://api-kichain.cosmostation.io/";


Expand Down
3 changes: 1 addition & 2 deletions Cosmostation/Base/BaseNetWork.swift
Original file line number Diff line number Diff line change
Expand Up @@ -983,8 +983,7 @@ class BaseNetWork {
return ClientConnection.insecure(group: group).connect(host: "lcd-stargaze-app.cosmostation.io", port: 9090)

} else if (chain == ChainType.KI_MAIN) {
// return ClientConnection.insecure(group: group).connect(host: "lcd-ki-app.cosmostation.io", port: 9090)
return ClientConnection.insecure(group: group).connect(host: "lcd-certik-app.cosmostation.io", port: 9090)
return ClientConnection.insecure(group: group).connect(host: "lcd-kichain-app.cosmostation.io", port: 9090)
}


Expand Down
20 changes: 0 additions & 20 deletions Cosmostation/Controller/Main/MainTabHistoryViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ class MainTabHistoryViewController: BaseViewController, UITableViewDelegate, UIT
@objc func onRequestFetch() {
if (chainType == ChainType.CRYPTO_MAIN) {
onFetchApiHistoryCustom(account!.account_address)
} else if (chainType == ChainType.KI_MAIN) {
onFetchLegacyOldApiHistory(account!.account_address)
} else if (chainType == ChainType.BINANCE_MAIN || chainType == ChainType.BINANCE_TEST) {
onFetchBnbHistory(account!.account_address)
} else if (chainType == ChainType.OKEX_MAIN || chainType == ChainType.OKEX_TEST) {
Expand Down Expand Up @@ -168,8 +166,6 @@ class MainTabHistoryViewController: BaseViewController, UITableViewDelegate, UIT
var cntString = "0"
if (chainType == ChainType.CRYPTO_MAIN) {
cntString = String(self.mApiCustomHistories.count)
} else if (chainType == ChainType.KI_MAIN) {
cntString = String(self.mApiHistories.count)
} else if (chainType == ChainType.BINANCE_MAIN || chainType == ChainType.BINANCE_TEST) {
cntString = String(self.mBnbHistories.count)
} else if (chainType == ChainType.OKEX_MAIN || chainType == ChainType.OKEX_TEST) {
Expand All @@ -184,8 +180,6 @@ class MainTabHistoryViewController: BaseViewController, UITableViewDelegate, UIT
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if (chainType == ChainType.CRYPTO_MAIN) {
return self.mApiCustomHistories.count
} else if (chainType == ChainType.KI_MAIN) {
return self.mApiHistories.count
} else if (chainType == ChainType.BINANCE_MAIN || chainType == ChainType.BINANCE_TEST) {
return self.mBnbHistories.count
} else if (chainType == ChainType.OKEX_MAIN || chainType == ChainType.OKEX_TEST) {
Expand All @@ -201,11 +195,6 @@ class MainTabHistoryViewController: BaseViewController, UITableViewDelegate, UIT
cell?.bindHistoryCustomView(mApiCustomHistories[indexPath.row], account!.account_address)
return cell!

} else if (chainType == ChainType.KI_MAIN) {
let cell = tableView.dequeueReusableCell(withIdentifier:"HistoryCell") as? HistoryCell
cell?.bindHistoryLegacyView(mApiHistories[indexPath.row], account!.account_address)
return cell!

} else if (chainType == ChainType.BINANCE_MAIN || chainType == ChainType.BINANCE_TEST) {
let cell = tableView.dequeueReusableCell(withIdentifier:"HistoryCell") as? HistoryCell
cell?.bindHistoryBnbView(mBnbHistories[indexPath.row], account!.account_address)
Expand Down Expand Up @@ -245,15 +234,6 @@ class MainTabHistoryViewController: BaseViewController, UITableViewDelegate, UIT
self.navigationController?.pushViewController(txDetailVC, animated: true)
}

} else if (chainType == ChainType.KI_MAIN) {
let history = mApiHistories[indexPath.row]
let txDetailVC = TxDetailViewController(nibName: "TxDetailViewController", bundle: nil)
txDetailVC.mIsGen = false
txDetailVC.mTxHash = history.tx_hash
txDetailVC.hidesBottomBarWhenPushed = true
self.navigationItem.title = ""
self.navigationController?.pushViewController(txDetailVC, animated: true)

} else if (chainType == ChainType.BINANCE_MAIN) {
let bnbHistory = mBnbHistories[indexPath.row]
if (bnbHistory.txType == "HTL_TRANSFER" || bnbHistory.txType == "CLAIM_HTL" || bnbHistory.txType == "REFUND_HTL" || bnbHistory.txType == "TRANSFER") {
Expand Down
22 changes: 2 additions & 20 deletions Cosmostation/Controller/Main/VaildatorDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ class VaildatorDetailViewController: BaseViewController, UITableViewDelegate, UI
if (chainType == ChainType.CRYPTO_MAIN) {
onFetchApiHistoryCustom(account!.account_address, mValidator_gRPC!.operatorAddress)

} else if (chainType == ChainType.KI_MAIN) {
onFetchApiHistory(account!, mValidator!.operator_address)

} else {
}
else {
if (WUtils.isGRPC(chainType)) {
onFetchNewApiHistoryCustom(account!.account_address, mValidator_gRPC!.operatorAddress)
} else {
Expand Down Expand Up @@ -153,8 +151,6 @@ class VaildatorDetailViewController: BaseViewController, UITableViewDelegate, UI
} else {
if (chainType == ChainType.CRYPTO_MAIN) {
return self.mApiCustomHistories.count
} else if (chainType == ChainType.KI_MAIN) {
return self.mApiHistories.count
} else {
return self.mApiCustomNewHistories.count
}
Expand Down Expand Up @@ -427,11 +423,6 @@ class VaildatorDetailViewController: BaseViewController, UITableViewDelegate, UI
cell?.bindHistoryCustomView(mApiCustomHistories[indexPath.row], account!.account_address)
return cell!

} else if (chainType == ChainType.KI_MAIN) {
let cell:HistoryCell? = tableView.dequeueReusableCell(withIdentifier:"HistoryCell") as? HistoryCell
cell?.bindHistoryLegacyView(mApiHistories[indexPath.row], account!.account_address)
return cell!

} else {
let cell = tableView.dequeueReusableCell(withIdentifier:"NewHistoryCell") as? NewHistoryCell
cell?.bindHistoryView(chainType!, mApiCustomNewHistories[indexPath.row], account!.account_address)
Expand All @@ -457,15 +448,6 @@ class VaildatorDetailViewController: BaseViewController, UITableViewDelegate, UI
self.navigationController?.pushViewController(txDetailVC, animated: true)
}

} else if (chainType == ChainType.KI_MAIN) {
let history = mApiHistories[indexPath.row]
let txDetailVC = TxDetailViewController(nibName: "TxDetailViewController", bundle: nil)
txDetailVC.mIsGen = false
txDetailVC.mTxHash = history.tx_hash
txDetailVC.hidesBottomBarWhenPushed = true
self.navigationItem.title = ""
self.navigationController?.pushViewController(txDetailVC, animated: true)

} else {
let history = mApiCustomNewHistories[indexPath.row]
if (history.header?.chain_id != BaseData.instance.getChainId(self.chainType)) {
Expand Down

0 comments on commit 63983c7

Please sign in to comment.