From 1cbecf62ad3655703137aa7141f12664af52142f Mon Sep 17 00:00:00 2001 From: andrew54068 Date: Fri, 19 May 2023 12:03:31 +0800 Subject: [PATCH] Bump version --- BloctoSDK.podspec | 8 ++++---- Example/Podfile.lock | 18 ++++++++--------- README.md | 12 +++++------ Sources/Solana/SDKInfo.swift | 2 +- ...ump-version.sh => bump-publish-version.sh} | 20 +++++++++++++++++++ 5 files changed, 40 insertions(+), 20 deletions(-) rename scripts/{bump-version.sh => bump-publish-version.sh} (66%) diff --git a/BloctoSDK.podspec b/BloctoSDK.podspec index ef48f9d..c753df9 100644 --- a/BloctoSDK.podspec +++ b/BloctoSDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BloctoSDK' - s.version = '0.6.0' + s.version = '0.6.1' s.summary = 'A SDK to interact with Blockchain through Blocto Wallet App.' s.homepage = 'https://github.com/portto/blocto-ios-sdk' @@ -26,13 +26,13 @@ Pod::Spec.new do |s| s.subspec "EVMBase" do |ss| ss.source_files = "Sources/EVMBase/**/*" - ss.dependency "BloctoSDK/Core", "~> 0.6.0" + ss.dependency "BloctoSDK/Core", "~> 0.6.1" ss.dependency "BigInt", "~> 5.0" end s.subspec "Flow" do |ss| ss.source_files = "Sources/Flow/**/*" - ss.dependency "BloctoSDK/Core", "~> 0.6.0" + ss.dependency "BloctoSDK/Core", "~> 0.6.1" ss.dependency "FlowSDK", "~> 0.5.0" end @@ -46,7 +46,7 @@ Pod::Spec.new do |s| "Sources/EVMBase/Models/EVMBaseTransaction.swift", "Sources/EVMBase/Models/EVMBaseSignType.swift", "Sources/Flow/Models/**/*" - ss.dependency "BloctoSDK/Core", "~> 0.6.0" + ss.dependency "BloctoSDK/Core", "~> 0.6.1" ss.dependency "BigInt", "~> 5.0" ss.dependency "FlowSDK", "~> 0.5.0" end diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 2fcae26..20fc3f7 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -2,19 +2,19 @@ PODS: - _NIODataStructures (2.40.0) - Alamofire (5.6.2) - BigInt (5.2.0) - - BloctoSDK/Core (0.5.0) - - BloctoSDK/EVMBase (0.5.0): + - BloctoSDK/Core (0.6.1) + - BloctoSDK/EVMBase (0.6.1): - BigInt (~> 5.0) - - BloctoSDK/Core (~> 0.5.0) - - BloctoSDK/Flow (0.5.0): - - BloctoSDK/Core (~> 0.5.0) + - BloctoSDK/Core (~> 0.6.1) + - BloctoSDK/Flow (0.6.1): + - BloctoSDK/Core (~> 0.6.1) - FlowSDK (~> 0.5.0) - - BloctoSDK/Solana (0.5.0): + - BloctoSDK/Solana (0.6.1): - BloctoSDK/Core - SolanaWeb3 (~> 0.0.4) - - BloctoSDK/Wallet (0.5.0): + - BloctoSDK/Wallet (0.6.1): - BigInt (~> 5.0) - - BloctoSDK/Core (~> 0.5.0) + - BloctoSDK/Core (~> 0.6.1) - FlowSDK (~> 0.5.0) - Cadence (0.5.0): - BigInt (~> 5.2.0) @@ -282,7 +282,7 @@ SPEC CHECKSUMS: _NIODataStructures: 3d45d8e70a1d17a15b1dc59d102c63dbc0525ffd Alamofire: d368e1ff8a298e6dde360e35a3e68e6c610e7204 BigInt: f668a80089607f521586bbe29513d708491ef2f7 - BloctoSDK: ee7b4dfe3fe249fb27254d42d6cdb3de4b268544 + BloctoSDK: e56a1fb8d45c5a5909e843cf180c5626077d28fb Cadence: f354a678487ab17716acd61ddbb637130e9642b8 CGRPCZlibp: 2f3e1e7a6d6cb481d4d1a26d3ec09aefacf09cbb CNIOAtomics: 8edf08644e5e6fa0f021c239be9e8beb1cd9ef18 diff --git a/README.md b/README.md index d05f38f..3d054e2 100644 --- a/README.md +++ b/README.md @@ -25,26 +25,26 @@ from the Example directory first. BloctoSDK is available through [CocoaPods](https://cocoapods.org). You can only include specific subspec to install, simply add the following line to your Podfile: ```ruby -pod 'BloctoSDK', '~> 0.6.0' +pod 'BloctoSDK', '~> 0.6.1' # or -pod 'BloctoSDK/Solana', '~> 0.6.0' +pod 'BloctoSDK/Solana', '~> 0.6.1' # or -pod 'BloctoSDK/EVMBase', '~> 0.6.0' +pod 'BloctoSDK/EVMBase', '~> 0.6.1' # or -pod 'BloctoSDK/Flow', '~> 0.6.0' +pod 'BloctoSDK/Flow', '~> 0.6.1' ``` ### Swift Package Manager ```swift -.package(url: "https://github.com/portto/blocto-ios-sdk.git", .upToNextMinor(from: "0.6.0")) +.package(url: "https://github.com/portto/blocto-ios-sdk.git", .upToNextMinor(from: "0.6.1")) ``` and then specify `"BloctoSDK"` as a dependency of the Target in which you wish to use. @@ -63,7 +63,7 @@ let package = Package( ), ], dependencies: [ - .package(url: "https://github.com/portto/blocto-ios-sdk.git", .upToNextMinor(from: "0.6.0")) + .package(url: "https://github.com/portto/blocto-ios-sdk.git", .upToNextMinor(from: "0.6.1")) ], targets: [ .target( diff --git a/Sources/Solana/SDKInfo.swift b/Sources/Solana/SDKInfo.swift index cd030e4..af7ab58 100644 --- a/Sources/Solana/SDKInfo.swift +++ b/Sources/Solana/SDKInfo.swift @@ -13,7 +13,7 @@ enum SDKInfo { #if COCOAPODS return Bundle.resouceBundle?.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "unknown" #else - return "0.6.0" + return "0.6.1" #endif } diff --git a/scripts/bump-version.sh b/scripts/bump-publish-version.sh similarity index 66% rename from scripts/bump-version.sh rename to scripts/bump-publish-version.sh index 50c5dd8..1169a60 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-publish-version.sh @@ -1,5 +1,13 @@ #!/bin/sh +if pod spec lint ./BloctoSDK.podspec +then + echo "lint suceess" +else + echo "failed" + exit 0 +fi + BUMPED_VERSION="$1" sed -i '' -e 's/s.version \= [^\;]*/s.version = '"'$BUMPED_VERSION'"'/' BloctoSDK.podspec @@ -9,3 +17,15 @@ sed -i '' -e 's/return "[^\;]*"/return "'"$BUMPED_VERSION"'"/' Sources/Solana/SD # docs sed -i '' -e 's/, '\''~> [^\;]*'\''/, '\''~> '$BUMPED_VERSION''\''/' README.md sed -i '' -e 's/.package(url: "https:\/\/github.com\/portto\/blocto-ios-sdk.git", .upToNextMinor(from: [^\;]*))/.package(url: "https:\/\/github.com\/portto\/blocto-ios-sdk.git", .upToNextMinor(from: "'$BUMPED_VERSION'"))/' README.md + +# commit all changes +git add --all +git commit -m "Bump version" +git push origin main + +# add tag and push to remote +git tag $BUMPED_VERSION +git push origin $BUMPED_VERSION + +# publish cocoapods +pod trunk push BloctoSDK.podspec --allow-warnings \ No newline at end of file