Skip to content

Commit

Permalink
Use the new release automation solution (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket authored Aug 24, 2021
1 parent af9177a commit 98d53fd
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ commands:
paths:
- vendor/bundle
- run: |
brew install swiftlint
grep -lR "shouldUseLaunchSchemeArgsEnv" *.* --null | xargs -0 sed -i '' -e 's/shouldUseLaunchSchemeArgsEnv = "YES"/shouldUseLaunchSchemeArgsEnv = "YES" codeCoverageEnabled = "YES"/g'
- restore_cache:
keys:
Expand Down
7 changes: 7 additions & 0 deletions .shiprc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files": {
"SimpleKeychain/Info.plist": []
},
"postbump": "bundle update",
"prefixVersion": false
}
2 changes: 1 addition & 1 deletion SimpleKeychainApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.12.3</string>
<string>0.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion SimpleKeychainTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>0.12.3</string>
<string>0.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
20 changes: 11 additions & 9 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,24 @@ platform :ios do
)
end

desc "Cocoapods library lint"
lane :pod_lint do
pod_lib_lint(verbose: false, allow_warnings: true)
end

desc "Runs all the tests in a CI environment"
lane :ci do
# TODO: Run rest of platforms
test
end

desc "Cocoapods library lint"
lane :pod_lint do
pod_lib_lint(allow_warnings: true)
desc "Performs the prepared release by creating a tag and pushing to remote"
lane :release_perform do
perform_release target: 'SimpleKeychain-iOS'
end

desc "Releases the library to Cocoapods & Github Releases and updates README/CHANGELOG"
desc "You need to specify the type of release with the `bump` parameter with the values [major|minor|patch]"
lane :release do |options|
release_options = {repository: 'SimpleKeychain', xcodeproj: 'SimpleKeychain.xcodeproj'}.merge(options)
prepare_release release_options
publish_release
desc "Releases the library to CocoaPods trunk & Github Releases"
lane :release_publish do
publish_release repository: 'SimpleKeychain'
end
end
2 changes: 1 addition & 1 deletion tvOSTestHost/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.12.3</string>
<string>0.1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down

0 comments on commit 98d53fd

Please sign in to comment.