Skip to content

Commit 98d53fd

Browse files
authored
Use the new release automation solution (#112)
1 parent af9177a commit 98d53fd

File tree

6 files changed

+21
-13
lines changed

6 files changed

+21
-13
lines changed

.circleci/config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ commands:
3939
paths:
4040
- vendor/bundle
4141
- run: |
42-
brew install swiftlint
4342
grep -lR "shouldUseLaunchSchemeArgsEnv" *.* --null | xargs -0 sed -i '' -e 's/shouldUseLaunchSchemeArgsEnv = "YES"/shouldUseLaunchSchemeArgsEnv = "YES" codeCoverageEnabled = "YES"/g'
4443
- restore_cache:
4544
keys:

.shiprc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"files": {
3+
"SimpleKeychain/Info.plist": []
4+
},
5+
"postbump": "bundle update",
6+
"prefixVersion": false
7+
}

SimpleKeychainApp/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.12.3</string>
18+
<string>0.1.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

SimpleKeychainTests/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.12.3</string>
18+
<string>0.1.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

fastlane/Fastfile

+11-9
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,24 @@ platform :ios do
3434
)
3535
end
3636

37+
desc "Cocoapods library lint"
38+
lane :pod_lint do
39+
pod_lib_lint(verbose: false, allow_warnings: true)
40+
end
41+
3742
desc "Runs all the tests in a CI environment"
3843
lane :ci do
3944
# TODO: Run rest of platforms
4045
test
4146
end
4247

43-
desc "Cocoapods library lint"
44-
lane :pod_lint do
45-
pod_lib_lint(allow_warnings: true)
48+
desc "Performs the prepared release by creating a tag and pushing to remote"
49+
lane :release_perform do
50+
perform_release target: 'SimpleKeychain-iOS'
4651
end
4752

48-
desc "Releases the library to Cocoapods & Github Releases and updates README/CHANGELOG"
49-
desc "You need to specify the type of release with the `bump` parameter with the values [major|minor|patch]"
50-
lane :release do |options|
51-
release_options = {repository: 'SimpleKeychain', xcodeproj: 'SimpleKeychain.xcodeproj'}.merge(options)
52-
prepare_release release_options
53-
publish_release
53+
desc "Releases the library to CocoaPods trunk & Github Releases"
54+
lane :release_publish do
55+
publish_release repository: 'SimpleKeychain'
5456
end
5557
end

tvOSTestHost/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.12.3</string>
18+
<string>0.1.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
<key>LSRequiresIPhoneOS</key>

0 commit comments

Comments
 (0)