Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew54068 committed May 19, 2023
1 parent 13b0f68 commit 1cbecf6
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 20 deletions.
8 changes: 4 additions & 4 deletions BloctoSDK.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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

Expand All @@ -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
Expand Down
18 changes: 9 additions & 9 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -282,7 +282,7 @@ SPEC CHECKSUMS:
_NIODataStructures: 3d45d8e70a1d17a15b1dc59d102c63dbc0525ffd
Alamofire: d368e1ff8a298e6dde360e35a3e68e6c610e7204
BigInt: f668a80089607f521586bbe29513d708491ef2f7
BloctoSDK: ee7b4dfe3fe249fb27254d42d6cdb3de4b268544
BloctoSDK: e56a1fb8d45c5a5909e843cf180c5626077d28fb
Cadence: f354a678487ab17716acd61ddbb637130e9642b8
CGRPCZlibp: 2f3e1e7a6d6cb481d4d1a26d3ec09aefacf09cbb
CNIOAtomics: 8edf08644e5e6fa0f021c239be9e8beb1cd9ef18
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion Sources/Solana/SDKInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
20 changes: 20 additions & 0 deletions scripts/bump-version.sh → scripts/bump-publish-version.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 1cbecf6

Please sign in to comment.