Skip to content

Commit 9bfdecd

Browse files
authored
Merge pull request #202 from mattrubin/fastlane
Configure Fastlane for 2.0 release
2 parents f2dc8ae + 2f11b5a commit 9bfdecd

File tree

10 files changed

+55
-47
lines changed

10 files changed

+55
-47
lines changed

fastlane/Fastfile

Lines changed: 27 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -36,68 +36,50 @@ platform :ios do
3636
snapshot
3737
end
3838

39+
desc "Build the app for release"
40+
lane :build do
41+
set_build_number
42+
gym
43+
clear_build_number
44+
45+
# Add a git tag for this build.
46+
add_git_tag(
47+
tag: "build/#{build_number}"
48+
)
49+
end
50+
3951
desc "Runs all the tests"
4052
lane :test do
4153
scan(scheme: "Authenticator")
4254
end
4355

4456
desc "Submit a new beta build to TestFlight"
4557
lane :beta do
46-
# Generate updated app icons.
58+
# Ensure that the generated icons are up-to-date and committed.
4759
icons
48-
49-
# Ensure that the git repo is not dirty.
5060
ensure_git_status_clean
5161

52-
# Set a generated build number.
53-
build_number = set_build_number
54-
55-
# Build the app with the Release configuration.
56-
gym(
57-
scheme: "Authenticator",
58-
clean: true
59-
)
60-
61-
# Upload the new binary to TestFlight.
62+
# Build and upload the new binary to TestFlight.
63+
build
6264
pilot
63-
64-
# Clear the generated build number.
65-
clear_build_number
66-
67-
# Add a git tag for this build.
68-
add_git_tag(
69-
tag: "build/#{build_number}"
70-
)
7165
end
7266

7367
desc "Deploy a new version to the App Store"
7468
lane :release do
75-
# Generate updated icons and screenshots.
69+
# Ensure that the generated icons and screenshots are up-to-date and committed.
7670
icons
7771
screenshots
78-
79-
# Ensure that the git repo is not dirty.
80-
# This step will fail if the screenshots were not already up-to-date and committed.
8172
ensure_git_status_clean
8273

83-
# Set a generated build number.
84-
set_build_number
85-
86-
# Build the app with the Release configuration.
87-
gym(
88-
scheme: "Authenticator",
89-
clean: true
90-
)
91-
92-
# Upload the app metadata and binary to iTunes Connect.
74+
# Build and upload the app metadata and binary to iTunes Connect.
75+
build
9376
deliver(
94-
force: true
77+
overwrite_screenshots: true,
78+
submit_for_review: true,
79+
automatic_release: false
9580
)
9681

97-
# Clear the generated build number.
98-
clear_build_number
99-
100-
# Add a git tag for this build.
82+
# Add a git tag for this release.
10183
add_git_tag(
10284
tag: get_version_number
10385
)
@@ -124,13 +106,15 @@ platform :ios do
124106
end
125107
end
126108

127-
def set_build_number
109+
def build_number
128110
# Generate a build number from the number of git commits.
129-
build_number = number_of_commits
111+
return number_of_commits.to_s
112+
end
113+
114+
def set_build_number
130115
increment_build_number(
131116
build_number: build_number
132117
)
133-
return build_number
134118
end
135119

136120
def clear_build_number

fastlane/Gymfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
scheme "Authenticator"
2+
clean true

fastlane/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ Generate app icons
4040
fastlane ios screenshots
4141
```
4242
Generate screenshots
43+
### ios build
44+
```
45+
fastlane ios build
46+
```
47+
Build the app for release
4348
### ios test
4449
```
4550
fastlane ios test
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Authenticator is a simple, free, and open source two-factor authentication app. It helps keep your online accounts secure by generating unique one-time passwords, which you use in combination with your other passwords to log into supporting websites. The simple combination of the password in your head and the rotating passwords generated by the app make it much harder for anyone but you to access your accounts.
22

3-
- Easy: Simple setup via QR code, "otpauth://" URL, or manual entry
4-
- Secure: All data is stored in encrypted form on the iOS keychain
5-
- Compatible: Full support for time-based and counter-based one-time passwords as standardized in RFC 4226 and 6238
6-
- Off the Grid: The app never connects to the internet, and your secret keys never leave your device.
3+
Easy: Simple setup via QR code, "otpauth://" URL, or manual entry
4+
Secure: All data is stored in encrypted form on the iOS keychain
5+
Compatible: Full support for time-based and counter-based one-time passwords as standardized in RFC 4226 and 6238
6+
Off the Grid: The app never connects to the internet, and your secret keys never leave your device.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1+
○ Search & Filter
2+
Tap the new search field at the top of the token list to filter your tokens by issuer and account name.
13

4+
○ Easier to Read
5+
An updated font, improved typography, and better spacing make your passwords easier to read.
6+
7+
○ Security & Backup Info
8+
For security reasons, tokens are stored only on one device, and are not included in iCloud or unencrypted backups. More information about security and backups has been added in the app.
9+
10+
Also…
11+
• Haptic Feedback
12+
• Improved Error Messages
13+
• Many small improvements to polish and performance…
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
false

0 commit comments

Comments
 (0)