Skip to content

Commit f727dab

Browse files
rename generator & verifier to match Swift conventions
Dropping the prefix "CocoaFob" and spelling out the names, they become `LicenseGenerator` and `LicenseVerifier`. The old type names are provided as internal (!) typealiases for folks who did not use the framework in the past but copied the code in.
1 parent 7e22dc7 commit f727dab

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

swift3/CocoaFob/CocoaFobLicGenerator.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// CocoaFobKeyGenerator.swift
2+
// CocoaFobLicGenerator.swift
33
// CocoaFob
44
//
55
// Created by Gleb Dolgich on 05/07/2015.
@@ -8,10 +8,13 @@
88

99
import Foundation
1010

11+
@available(*, deprecated: 1.0, renamed: "LicenseGenerator")
12+
typealias CocoaFobLicGenerator = LicenseGenerator
13+
1114
/**
1215
Generates CocoaFob registration keys
1316
*/
14-
public struct CocoaFobLicGenerator {
17+
public struct LicenseGenerator {
1518

1619
var privKey: SecKey
1720

swift3/CocoaFob/CocoaFobLicVerifier.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88

99
import Foundation
1010

11+
@available(*, deprecated: 1.0, renamed: "LicenseVerifier")
12+
typealias CocoaFobLicVerifier = LicenseVerifier
13+
1114
/**
1215
Verifies CocoaFob registration keys
1316
*/
14-
public struct CocoaFobLicVerifier {
17+
public struct LicenseVerifier {
1518

1619
var pubKey: SecKey
1720

0 commit comments

Comments
 (0)