From 8d6719e358b9d443b8c072f7fecb9ab7ca318f22 Mon Sep 17 00:00:00 2001 From: DavidYu <654070281@qq.com> Date: Thu, 9 Dec 2021 16:48:40 +0800 Subject: [PATCH 1/2] name fix --- ArcBlockSDK/ABSDKCoreKit/Extensions/Double+Extension.swift | 2 +- ArcBlockSDK/ABSDKCoreKit/Extensions/String+Extension.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcBlockSDK/ABSDKCoreKit/Extensions/Double+Extension.swift b/ArcBlockSDK/ABSDKCoreKit/Extensions/Double+Extension.swift index 1a942494..aef27beb 100644 --- a/ArcBlockSDK/ABSDKCoreKit/Extensions/Double+Extension.swift +++ b/ArcBlockSDK/ABSDKCoreKit/Extensions/Double+Extension.swift @@ -23,7 +23,7 @@ public extension Double { /// /// - Parameters: /// - formattingDecimals: 保留的小数位 最终取Min(6, formattingDecimals) - func toAmountString() -> String { + func formatAmount() -> String { let formatter = NumberFormatter() formatter.numberStyle = .decimal formatter.maximumFractionDigits = BigUInt.MinFormattingDecimals diff --git a/ArcBlockSDK/ABSDKCoreKit/Extensions/String+Extension.swift b/ArcBlockSDK/ABSDKCoreKit/Extensions/String+Extension.swift index 86b73448..8763f933 100644 --- a/ArcBlockSDK/ABSDKCoreKit/Extensions/String+Extension.swift +++ b/ArcBlockSDK/ABSDKCoreKit/Extensions/String+Extension.swift @@ -85,7 +85,7 @@ public extension String { /// /// - Parameters: /// - formattingDecimals: 保留的小数位 最终取Min(6, formattingDecimals) - func toAmountString() -> String { + func formatAmount() -> String { guard !isEmpty else { return "0" } From e352a05fa5c06528154c6d8127621289f021f4f2 Mon Sep 17 00:00:00 2001 From: DavidYu <654070281@qq.com> Date: Thu, 9 Dec 2021 16:49:31 +0800 Subject: [PATCH 2/2] bump version --- .jazzy.yaml | 2 +- ArcBlockSDK.podspec | 2 +- CHANGELOG.md | 3 +++ version | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.jazzy.yaml b/.jazzy.yaml index 79d08fae..5e10e831 100644 --- a/.jazzy.yaml +++ b/.jazzy.yaml @@ -10,4 +10,4 @@ github_url: https://github.com/ArcBlock/arcblock-ios-sdk github_file_prefix: https://github.com/ArcBlock/arcblock-ios-sdk/tree/master exclude: - ArcBlockSDK/ABSDKCoreKit/Network/ABSDKPagination.swift -module_version: 0.11.17 +module_version: 0.11.18 diff --git a/ArcBlockSDK.podspec b/ArcBlockSDK.podspec index ffb20467..74ee0b3f 100644 --- a/ArcBlockSDK.podspec +++ b/ArcBlockSDK.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'ArcBlockSDK' - s.version = '0.11.17' + s.version = '0.11.18' s.summary = 'Used to integrate iOS apps with ArcBlock Platform.' # This description is used to generate tags and improve search results. diff --git a/CHANGELOG.md b/CHANGELOG.md index f67f3bbd..3ca0f629 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.11.18 (December 09, 2021) + - name fix + ## 0.11.17 (December 01, 2021) diff --git a/version b/version index c1224463..168a8f63 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.11.17 +0.11.18