Skip to content

Commit

Permalink
Updated readme, removed os_log and removed platform list from Package…
Browse files Browse the repository at this point in the history
….swift
  • Loading branch information
belous committed Mar 1, 2021
1 parent f615a43 commit 2ad5543
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import PackageDescription

let package = Package(
name: "OTPKit",
platforms: [
.iOS(.v13)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A small library written in Swift which can generate time-based and counter-based

## Installation

- Add `.package(url: "https://github.com:belous/OTPKit.git", from: "0.1.1")` to your `Package.swift` file's dependencies.
- Add `.package(url: "https://github.com/belous/OTPKit.git", from: "0.1.2")` to your `Package.swift` file's dependencies.
- Update your packages using `$ swift package update`.

## Usage
Expand Down
3 changes: 0 additions & 3 deletions Sources/OTPKit/String+Base32.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//

import Foundation
import os.log

extension String {
var base32: Data? {
Expand Down Expand Up @@ -86,7 +85,6 @@ private func base32decode(_ string: String, _ table: [UInt8]) -> Data? {
let pos = string.unicodeScalars.distance(from: string.unicodeScalars.startIndex, to: index)
// if pos points padding "=", it's valid.
if pos != length - leastPaddingLength {
os_log("string contains some invalid characters.")
return nil
}
}
Expand All @@ -101,7 +99,6 @@ private func base32decode(_ string: String, _ table: [UInt8]) -> Data? {
case 5: additionalBytes = 3
case 7: additionalBytes = 4
default:
os_log("string length is invalid.")
return nil
}

Expand Down

0 comments on commit 2ad5543

Please sign in to comment.