Commit f924cbfd authored by Jose Blaya's avatar Jose Blaya
Browse files

Swiftgen yml update

parent ec6b4100
......@@ -204,7 +204,6 @@
0EC7A2A41F9D3D78006DDB91 /* RenewRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EC7A2A31F9D3D78006DDB91 /* RenewRequest.swift */; };
0EC849C91F82329F002480CA /* WebServices.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EC849C81F82329F002480CA /* WebServices.swift */; };
0ED1585A1FDC083F008F6522 /* SwiftGen+Strings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0ED158591FDC083F008F6522 /* SwiftGen+Strings.swift */; };
0ED1585C1FDC0D1B008F6522 /* SwiftGen+Storyboards.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0ED1585B1FDC0D1B008F6522 /* SwiftGen+Storyboards.swift */; };
0ED2B5131F82444E00C9DB2B /* Client+Preferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0ED2B5121F82444E00C9DB2B /* Client+Preferences.swift */; };
0EE1068C1F8250A1009514E9 /* Plan.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EE1068B1F8250A1009514E9 /* Plan.swift */; };
0EE1068E1F828813009514E9 /* Signup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EE1068D1F828813009514E9 /* Signup.swift */; };
......@@ -249,6 +248,8 @@
843C67C32122EA13005A3FDA /* AccountInfoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 843C67C12122E714005A3FDA /* AccountInfoTests.swift */; };
84D5DA702126CE2900F753F8 /* QRCameraScannerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84D5DA6F2126CE2900F753F8 /* QRCameraScannerViewController.swift */; };
A6680249A33738280B9AD733 /* Pods_PIALibrary_PIALibraryHost_iOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 566B62D4C21DD5A90EF1BAE6 /* Pods_PIALibrary_PIALibraryHost_iOS.framework */; };
DDC812482176166600CB290C /* SwiftGen+ScenesStoryboards.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC812472176166500CB290C /* SwiftGen+ScenesStoryboards.swift */; };
DDC8124A217617F900CB290C /* SwiftGen+SeguesStoryboards.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC81249217617F900CB290C /* SwiftGen+SeguesStoryboards.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
......@@ -447,7 +448,6 @@
0EC7A2A31F9D3D78006DDB91 /* RenewRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RenewRequest.swift; sourceTree = "<group>"; };
0EC849C81F82329F002480CA /* WebServices.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebServices.swift; sourceTree = "<group>"; };
0ED158591FDC083F008F6522 /* SwiftGen+Strings.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "SwiftGen+Strings.swift"; sourceTree = "<group>"; };
0ED1585B1FDC0D1B008F6522 /* SwiftGen+Storyboards.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "SwiftGen+Storyboards.swift"; sourceTree = "<group>"; };
0ED2B50A1F82364C00C9DB2B /* MockWebServices.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockWebServices.swift; sourceTree = "<group>"; };
0ED2B5121F82444E00C9DB2B /* Client+Preferences.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Client+Preferences.swift"; sourceTree = "<group>"; };
0ED2CA3B1F6C3028008E7AD7 /* NetworkExtension.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NetworkExtension.framework; path = System/Library/Frameworks/NetworkExtension.framework; sourceTree = SDKROOT; };
......@@ -491,6 +491,8 @@
8BF83242A6BD73CE080CEE2A /* Pods-PIALibrary-PIALibraryHost-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PIALibrary-PIALibraryHost-iOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-PIALibrary-PIALibraryHost-iOS/Pods-PIALibrary-PIALibraryHost-iOS.release.xcconfig"; sourceTree = "<group>"; };
BB47885FCCA9DDFF53237D2C /* Pods-PIALibrary-PIALibraryTests-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PIALibrary-PIALibraryTests-iOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-PIALibrary-PIALibraryTests-iOS/Pods-PIALibrary-PIALibraryTests-iOS.release.xcconfig"; sourceTree = "<group>"; };
D9FDC8980713EDCEDD51B936 /* Pods-PIALibrary-PIALibrary-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PIALibrary-PIALibrary-iOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PIALibrary-PIALibrary-iOS/Pods-PIALibrary-PIALibrary-iOS.debug.xcconfig"; sourceTree = "<group>"; };
DDC812472176166500CB290C /* SwiftGen+ScenesStoryboards.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "SwiftGen+ScenesStoryboards.swift"; sourceTree = "<group>"; };
DDC81249217617F900CB290C /* SwiftGen+SeguesStoryboards.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "SwiftGen+SeguesStoryboards.swift"; sourceTree = "<group>"; };
E526D8161FFFEE65AC2DF844 /* Pods-PIALibrary-PIALibraryTests-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PIALibrary-PIALibraryTests-iOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PIALibrary-PIALibraryTests-iOS/Pods-PIALibrary-PIALibraryTests-iOS.debug.xcconfig"; sourceTree = "<group>"; };
F67ECA5EF23FF549832369DE /* Pods-PIALibrary-PIALibrary-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PIALibrary-PIALibrary-iOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-PIALibrary-PIALibrary-iOS/Pods-PIALibrary-PIALibrary-iOS.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
......@@ -772,7 +774,8 @@
0EA8073120A2F50A0033EC1A /* SignupMetadata.swift */,
0EB8C05A1F9CD38A005857E4 /* SignupSuccessViewController.swift */,
0E2215CE2008DFD900F5FB4D /* SwiftGen+Assets.swift */,
0ED1585B1FDC0D1B008F6522 /* SwiftGen+Storyboards.swift */,
DDC812472176166500CB290C /* SwiftGen+ScenesStoryboards.swift */,
DDC81249217617F900CB290C /* SwiftGen+SeguesStoryboards.swift */,
0ED158591FDC083F008F6522 /* SwiftGen+Strings.swift */,
0EB8C05C1F9CD38A005857E4 /* Theme.swift */,
0E5BCBFE20172C8300E3E4B4 /* Theme+LightPalette.swift */,
......@@ -1480,10 +1483,10 @@
0EB8C06B1F9CD38B005857E4 /* RestoreSignupViewController.swift in Sources */,
0EAA38931F9CC682000149CF /* SignupRequest.swift in Sources */,
0E392DB01FE3366B0002160D /* NSData+Compression.m in Sources */,
DDC812482176166600CB290C /* SwiftGen+ScenesStoryboards.swift in Sources */,
0E9D62891FDE9C00009A90CF /* Data+Crypto.swift in Sources */,
0E53A84D1FE5BB25000C2A18 /* VPNDaemon.swift in Sources */,
0EB8C0701F9CD38B005857E4 /* WelcomePageViewController.swift in Sources */,
0ED1585C1FDC0D1B008F6522 /* SwiftGen+Storyboards.swift in Sources */,
0EB8C0651F9CD38B005857E4 /* BorderedTextField.swift in Sources */,
0EA4C4391FDDE24B0041C3D8 /* ServersBundle.swift in Sources */,
0E53A84A1FE5BA52000C2A18 /* Daemon.swift in Sources */,
......@@ -1541,6 +1544,7 @@
0E9D62DD1FDEE45A009A90CF /* DefaultServerProvider.swift in Sources */,
0EB3D9881FF06F37005B11F4 /* NetworkExtensionProfile.swift in Sources */,
0E2ADD311FE1468400BB170C /* VPNProvider.swift in Sources */,
DDC8124A217617F900CB290C /* SwiftGen+SeguesStoryboards.swift in Sources */,
0E1108951F77B6B600A92462 /* Keychain.swift in Sources */,
0EB8C0711F9CD38B005857E4 /* Theme.swift in Sources */,
0E2ADCF01FE09C6C00BB170C /* ConnectivityDaemon.swift in Sources */,
......
// swiftlint:disable all
// Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen
// swiftlint:disable sorted_imports
import Foundation
import UIKit
// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length
// MARK: - Storyboard Segues
// swiftlint:disable explicit_type_interface identifier_name line_length type_body_length type_name
internal enum StoryboardSegue {
internal enum Signup: String, SegueType {
case failureSegueIdentifier = "FailureSegueIdentifier"
case internetUnreachableSegueIdentifier = "InternetUnreachableSegueIdentifier"
case successSegueIdentifier = "SuccessSegueIdentifier"
case unwindFailureSegueIdentifier = "UnwindFailureSegueIdentifier"
case unwindInternetUnreachableSegueIdentifier = "UnwindInternetUnreachableSegueIdentifier"
}
internal enum Welcome: String, SegueType {
case signupQRCameraScannerSegue = "SignupQRCameraScannerSegue"
case signupViaPurchaseSegue = "SignupViaPurchaseSegue"
case signupViaRecoverSegue = "SignupViaRecoverSegue"
case signupViaRedeemSegue = "SignupViaRedeemSegue"
case signupViaRestoreSegue = "SignupViaRestoreSegue"
}
}
// swiftlint:enable explicit_type_interface identifier_name line_length type_body_length type_name
// MARK: - Implementation Details
internal protocol SegueType: RawRepresentable {}
internal extension UIViewController {
func perform<S: SegueType>(segue: S, sender: Any? = nil) where S.RawValue == String {
let identifier = segue.rawValue
performSegue(withIdentifier: identifier, sender: sender)
}
}
internal extension SegueType where RawValue == String {
init?(_ segue: UIStoryboardSegue) {
guard let identifier = segue.identifier else { return nil }
self.init(rawValue: identifier)
}
}
private final class BundleToken {}
......@@ -12,12 +12,12 @@ ib:
paths:
- PIALibrary/Resources/UI/iOS/Welcome.storyboard
- PIALibrary/Resources/UI/iOS/Signup.storyboard
templateName: segues-swift4
output: PIALibrary/Sources/UI/iOS/SwiftGen+Storyboards.swift
templateName: scenes-swift4
output: PIALibrary/Sources/UI/iOS/SwiftGen+Storyboards.swift
params:
module: PIALibrary
outputs:
templateName: scenes-swift4
output: PIALibrary/Sources/UI/iOS/SwiftGen+ScenesStoryboards.swift
templateName: segues-swift4
output: PIALibrary/Sources/UI/iOS/SwiftGen+SeguesStoryboards.swift
module: PIALibrary
xcassets:
paths:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment