Skip to content

Commit

Permalink
Release Authenticator 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrubin committed Jun 7, 2017
2 parents 597d6be + 81ff489 commit 40525fa
Show file tree
Hide file tree
Showing 176 changed files with 8,044 additions and 2,823 deletions.
19 changes: 19 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Configuration for Codecov (https://codecov.io)

codecov:
# Use `develop` as the default branch
branch: develop

ignore:
- AuthenticatorTests

coverage:
status:
project:
default:
# Allow coverage to drop by 5% without marking a PR with a failing status.
threshold: 5
patch:
default:
# Allow patch to be 0% covered without marking a PR with a failing status.
target: 0
61 changes: 53 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# OS X
.DS_Store

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -11,12 +15,53 @@ build/
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
profile
xcuserdata/

## Other
*.moved-aside
DerivedData
*.xcuserstate
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/

# CocoaPods
Pods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md

fastlane/report.xml
fastlane/Preview.html
# fastlane/screenshots
fastlane/screenshots/screenshots.html
fastlane/test_output
15 changes: 15 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[submodule "Carthage/Checkouts/OneTimePassword"]
path = Carthage/Checkouts/OneTimePassword
url = https://github.com/mattrubin/OneTimePassword.git
[submodule "Carthage/Checkouts/xcconfigs"]
path = Carthage/Checkouts/xcconfigs
url = https://github.com/jspahrsummers/xcconfigs.git
[submodule "Carthage/Checkouts/Base32"]
path = Carthage/Checkouts/Base32
url = https://github.com/mattrubin/Base32.git
[submodule "Carthage/Checkouts/SVProgressHUD"]
path = Carthage/Checkouts/SVProgressHUD
url = https://github.com/SVProgressHUD/SVProgressHUD.git
[submodule "Carthage/Checkouts/SimulatorStatusMagic"]
path = Carthage/Checkouts/SimulatorStatusMagic
url = https://github.com/shinydevelopment/SimulatorStatusMagic.git
4 changes: 4 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Configuration for Hound (https://houndci.com)

swift:
config_file: .swiftlint.yml
16 changes: 16 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Alex Klyubin <[email protected]>
Beau Collins <[email protected]>
Beau Collins <[email protected]> <[email protected]>
Ben Love <[email protected]>
Dave MacLachlan <[email protected]>
Dave MacLachlan <[email protected]> dmaclach <devnull@localhost>
Drew Hintz <[email protected]>
Drew Hintz <[email protected]> <[email protected]>
Drew Hintz <[email protected]> <[email protected]>
Kenny Root <[email protected]>
Marius Schilder <[email protected]>
Markus Gutschke <[email protected]>
Markus Gutschke <[email protected]> <[email protected]>
Matt Rubin <[email protected]>
Matt Rubin <[email protected]> <[email protected]>
Matt Rubin <[email protected]> <[email protected]>
61 changes: 61 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Configuration for SwiftLint (https://github.com/realm/SwiftLint)

excluded:
- Carthage
- fastlane
opt_in_rules:
- attributes
- closure_end_indentation
- closure_spacing
- conditional_returns_on_newline
- empty_count
- explicit_init
- file_header
- first_where
- force_unwrapping
- missing_docs
- nimble_operator
- number_separator
- operator_usage_whitespace
- overridden_super_call
- private_outlet
- prohibited_super_call
- redundant_nil_coalescing
- switch_case_on_newline
- vertical_whitespace
disabled_rules:
- line_length
- todo

cyclomatic_complexity:
warning: 15

trailing_comma:
mandatory_comma: true

file_header:
required_pattern: |
\/\/
\/\/ (.+).swift
\/\/ Authenticator
\/\/
\/\/ Copyright \(c\) (\d{4}|\d{4}-\d{4}) Authenticator authors
\/\/
\/\/ Permission is hereby granted, free of charge, to any person obtaining a copy
\/\/ of this software and associated documentation files \(the "Software"\), to deal
\/\/ in the Software without restriction, including without limitation the rights
\/\/ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\/\/ copies of the Software, and to permit persons to whom the Software is
\/\/ furnished to do so, subject to the following conditions:
\/\/
\/\/ The above copyright notice and this permission notice shall be included in all
\/\/ copies or substantial portions of the Software.
\/\/
\/\/ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\/\/ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\/\/ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\/\/ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\/\/ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\/\/ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
\/\/ SOFTWARE.
\/\/
40 changes: 31 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
# Configuration for Travis (https://travis-ci.org)

language: objective-c

xcode_workspace: Authenticator.xcworkspace
xcode_scheme: Authenticator
xcode_sdk:
- iphonesimulator7.0
- iphonesimulator7.1

before_install:
- export LANG=en_US.UTF-8
- gem update cocoapods --no-document
- brew update
- brew upgrade xctool

osx_image: xcode8.3

env:
- RUNTIME="iOS 9.0" DEVICE="iPhone 4s"
- RUNTIME="iOS 9.1" DEVICE="iPhone 5"
- RUNTIME="iOS 9.2" DEVICE="iPhone 5s"
- RUNTIME="iOS 9.3" DEVICE="iPhone 6s"
- RUNTIME="iOS 10.0" DEVICE="iPhone 6s Plus"
- RUNTIME="iOS 10.1" DEVICE="iPhone SE"
- RUNTIME="iOS 10.2" DEVICE="iPhone 7"
- RUNTIME="iOS 10.3" DEVICE="iPhone 7 Plus"

install:
- git submodule update --init --recursive

before_script:
- DEVICE_ID=com.apple.CoreSimulator.SimDeviceType.$(echo $DEVICE | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g")
- RUNTIME_ID=com.apple.CoreSimulator.SimRuntime.$(echo $RUNTIME | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g")
- DESTINATION_ID=$(xcrun simctl create Travis $DEVICE_ID $RUNTIME_ID)
- xcrun simctl boot $DESTINATION_ID

script: set -o pipefail && xcodebuild -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "$TRAVIS_XCODE_SCHEME" -destination "id=$DESTINATION_ID" build test | xcpretty -c

after_success:
- bash <(curl -s https://codecov.io/bash)

notifications:
email: false
3 changes: 3 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Matt Rubin <[email protected]>
Beau Collins <[email protected]>
Google Inc. <*@google.com>
Loading

0 comments on commit 40525fa

Please sign in to comment.