Skip to content

Commit 40525fa

Browse files
committed
Release Authenticator 2.0
2 parents 597d6be + 81ff489 commit 40525fa

File tree

176 files changed

+8044
-2823
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+8044
-2823
lines changed

.codecov.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Configuration for Codecov (https://codecov.io)
2+
3+
codecov:
4+
# Use `develop` as the default branch
5+
branch: develop
6+
7+
ignore:
8+
- AuthenticatorTests
9+
10+
coverage:
11+
status:
12+
project:
13+
default:
14+
# Allow coverage to drop by 5% without marking a PR with a failing status.
15+
threshold: 5
16+
patch:
17+
default:
18+
# Allow patch to be 0% covered without marking a PR with a failing status.
19+
target: 0

.gitignore

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
# OS X
2-
.DS_Store
3-
41
# Xcode
2+
#
3+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4+
5+
## Build generated
56
build/
7+
DerivedData/
8+
9+
## Various settings
610
*.pbxuser
711
!default.pbxuser
812
*.mode1v3
@@ -11,12 +15,53 @@ build/
1115
!default.mode2v3
1216
*.perspectivev3
1317
!default.perspectivev3
14-
xcuserdata
15-
*.xccheckout
16-
profile
18+
xcuserdata/
19+
20+
## Other
1721
*.moved-aside
18-
DerivedData
22+
*.xcuserstate
23+
*.xcscmblueprint
24+
25+
## Obj-C/Swift specific
1926
*.hmap
27+
*.ipa
28+
*.dSYM.zip
29+
*.dSYM
30+
31+
## Playgrounds
32+
timeline.xctimeline
33+
playground.xcworkspace
34+
35+
# Swift Package Manager
36+
#
37+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
38+
# Packages/
39+
.build/
2040

2141
# CocoaPods
22-
Pods
42+
#
43+
# We recommend against adding the Pods directory to your .gitignore. However
44+
# you should judge for yourself, the pros and cons are mentioned at:
45+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
46+
#
47+
# Pods/
48+
49+
# Carthage
50+
#
51+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
52+
# Carthage/Checkouts
53+
54+
Carthage/Build
55+
56+
# fastlane
57+
#
58+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
59+
# screenshots whenever they are needed.
60+
# For more information about the recommended setup visit:
61+
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
62+
63+
fastlane/report.xml
64+
fastlane/Preview.html
65+
# fastlane/screenshots
66+
fastlane/screenshots/screenshots.html
67+
fastlane/test_output

.gitmodules

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[submodule "Carthage/Checkouts/OneTimePassword"]
2+
path = Carthage/Checkouts/OneTimePassword
3+
url = https://github.com/mattrubin/OneTimePassword.git
4+
[submodule "Carthage/Checkouts/xcconfigs"]
5+
path = Carthage/Checkouts/xcconfigs
6+
url = https://github.com/jspahrsummers/xcconfigs.git
7+
[submodule "Carthage/Checkouts/Base32"]
8+
path = Carthage/Checkouts/Base32
9+
url = https://github.com/mattrubin/Base32.git
10+
[submodule "Carthage/Checkouts/SVProgressHUD"]
11+
path = Carthage/Checkouts/SVProgressHUD
12+
url = https://github.com/SVProgressHUD/SVProgressHUD.git
13+
[submodule "Carthage/Checkouts/SimulatorStatusMagic"]
14+
path = Carthage/Checkouts/SimulatorStatusMagic
15+
url = https://github.com/shinydevelopment/SimulatorStatusMagic.git

.hound.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Configuration for Hound (https://houndci.com)
2+
3+
swift:
4+
config_file: .swiftlint.yml

.mailmap

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Alex Klyubin <klyubin@google.com>
2+
Beau Collins <beau@collins.pub>
3+
Beau Collins <beau@collins.pub> <beaucollins@gmail.com>
4+
Ben Love <benlove@google.com>
5+
Dave MacLachlan <dmaclach@google.com>
6+
Dave MacLachlan <dmaclach@google.com> dmaclach <devnull@localhost>
7+
Drew Hintz <adhintz@google.com>
8+
Drew Hintz <adhintz@google.com> <adhintz@hintz.mtv.corp.google.com>
9+
Drew Hintz <adhintz@google.com> <adhintz@ypc-ubiq157.dls.corp.google.com>
10+
Kenny Root <kroot@google.com>
11+
Marius Schilder <mschilder@google.com>
12+
Markus Gutschke <markus@google.com>
13+
Markus Gutschke <markus@google.com> <markus@chromium.org>
14+
Matt Rubin <opensource@mattrubin.me>
15+
Matt Rubin <opensource@mattrubin.me> <mattrubin@me.com>
16+
Matt Rubin <opensource@mattrubin.me> <mattrubin@users.noreply.github.com>

.swiftlint.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Configuration for SwiftLint (https://github.com/realm/SwiftLint)
2+
3+
excluded:
4+
- Carthage
5+
- fastlane
6+
opt_in_rules:
7+
- attributes
8+
- closure_end_indentation
9+
- closure_spacing
10+
- conditional_returns_on_newline
11+
- empty_count
12+
- explicit_init
13+
- file_header
14+
- first_where
15+
- force_unwrapping
16+
- missing_docs
17+
- nimble_operator
18+
- number_separator
19+
- operator_usage_whitespace
20+
- overridden_super_call
21+
- private_outlet
22+
- prohibited_super_call
23+
- redundant_nil_coalescing
24+
- switch_case_on_newline
25+
- vertical_whitespace
26+
disabled_rules:
27+
- line_length
28+
- todo
29+
30+
cyclomatic_complexity:
31+
warning: 15
32+
33+
trailing_comma:
34+
mandatory_comma: true
35+
36+
file_header:
37+
required_pattern: |
38+
\/\/
39+
\/\/ (.+).swift
40+
\/\/ Authenticator
41+
\/\/
42+
\/\/ Copyright \(c\) (\d{4}|\d{4}-\d{4}) Authenticator authors
43+
\/\/
44+
\/\/ Permission is hereby granted, free of charge, to any person obtaining a copy
45+
\/\/ of this software and associated documentation files \(the "Software"\), to deal
46+
\/\/ in the Software without restriction, including without limitation the rights
47+
\/\/ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
48+
\/\/ copies of the Software, and to permit persons to whom the Software is
49+
\/\/ furnished to do so, subject to the following conditions:
50+
\/\/
51+
\/\/ The above copyright notice and this permission notice shall be included in all
52+
\/\/ copies or substantial portions of the Software.
53+
\/\/
54+
\/\/ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55+
\/\/ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56+
\/\/ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57+
\/\/ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
58+
\/\/ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
59+
\/\/ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
60+
\/\/ SOFTWARE.
61+
\/\/

.travis.yml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,35 @@
1+
# Configuration for Travis (https://travis-ci.org)
2+
13
language: objective-c
24

35
xcode_workspace: Authenticator.xcworkspace
46
xcode_scheme: Authenticator
5-
xcode_sdk:
6-
- iphonesimulator7.0
7-
- iphonesimulator7.1
8-
9-
before_install:
10-
- export LANG=en_US.UTF-8
11-
- gem update cocoapods --no-document
12-
- brew update
13-
- brew upgrade xctool
7+
8+
osx_image: xcode8.3
9+
10+
env:
11+
- RUNTIME="iOS 9.0" DEVICE="iPhone 4s"
12+
- RUNTIME="iOS 9.1" DEVICE="iPhone 5"
13+
- RUNTIME="iOS 9.2" DEVICE="iPhone 5s"
14+
- RUNTIME="iOS 9.3" DEVICE="iPhone 6s"
15+
- RUNTIME="iOS 10.0" DEVICE="iPhone 6s Plus"
16+
- RUNTIME="iOS 10.1" DEVICE="iPhone SE"
17+
- RUNTIME="iOS 10.2" DEVICE="iPhone 7"
18+
- RUNTIME="iOS 10.3" DEVICE="iPhone 7 Plus"
19+
20+
install:
21+
- git submodule update --init --recursive
22+
23+
before_script:
24+
- DEVICE_ID=com.apple.CoreSimulator.SimDeviceType.$(echo $DEVICE | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g")
25+
- RUNTIME_ID=com.apple.CoreSimulator.SimRuntime.$(echo $RUNTIME | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g")
26+
- DESTINATION_ID=$(xcrun simctl create Travis $DEVICE_ID $RUNTIME_ID)
27+
- xcrun simctl boot $DESTINATION_ID
28+
29+
script: set -o pipefail && xcodebuild -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "$TRAVIS_XCODE_SCHEME" -destination "id=$DESTINATION_ID" build test | xcpretty -c
30+
31+
after_success:
32+
- bash <(curl -s https://codecov.io/bash)
33+
34+
notifications:
35+
email: false

AUTHORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Matt Rubin <opensource@mattrubin.me>
2+
Beau Collins <beau@collins.pub>
3+
Google Inc. <*@google.com>

0 commit comments

Comments
 (0)