Move provider logos to own assets

This commit is contained in:
Davide De Rosa 2019-04-05 10:17:07 +02:00
parent 1edf712cda
commit b9de756253
17 changed files with 18 additions and 9 deletions

View File

@ -18,11 +18,15 @@
// swiftlint:disable identifier_name line_length nesting type_body_length type_name
internal enum Asset {
internal static let logo = ImageAsset(name: "logo")
internal static let mullvad = ImageAsset(name: "mullvad")
internal static let pia = ImageAsset(name: "pia")
internal static let tunnelbear = ImageAsset(name: "tunnelbear")
internal static let windscribe = ImageAsset(name: "windscribe")
internal enum Assets {
internal static let logo = ImageAsset(name: "logo")
}
internal enum Providers {
internal static let mullvad = ImageAsset(name: "mullvad")
internal static let pia = ImageAsset(name: "pia")
internal static let tunnelbear = ImageAsset(name: "tunnelbear")
internal static let windscribe = ImageAsset(name: "windscribe")
}
}
// swiftlint:enable identifier_name line_length nesting type_body_length type_name

View File

@ -157,10 +157,10 @@ extension MFMailComposeViewController {
extension Infrastructure.Name {
private static let allLogos: [Infrastructure.Name: ImageAsset] = {
var logos: [Infrastructure.Name: ImageAsset] = [:]
logos[.mullvad] = Asset.mullvad
logos[.pia] = Asset.pia
logos[.tunnelBear] = Asset.tunnelbear
logos[.windscribe] = Asset.windscribe
logos[.mullvad] = Asset.Providers.mullvad
logos[.pia] = Asset.Providers.pia
logos[.tunnelBear] = Asset.Providers.tunnelbear
logos[.windscribe] = Asset.Providers.windscribe
return logos
}()

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@ -77,6 +77,7 @@
0E6BE13F20CFBAB300A6DD36 /* DebugLogViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E6BE13E20CFBAB300A6DD36 /* DebugLogViewController.swift */; };
0E773BF8224BF37600CDDC8E /* ShortcutsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E773BF7224BF37600CDDC8E /* ShortcutsViewController.swift */; };
0E89DFCE213EEDFA00741BA1 /* WizardProviderViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E89DFCD213EEDFA00741BA1 /* WizardProviderViewController.swift */; };
0E9CD7872257462800D033B4 /* Providers.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0E9CD7862257462800D033B4 /* Providers.xcassets */; };
0EA068F4218475F800C320AD /* ConfigurationParserResult+Alerts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EA068F3218475F800C320AD /* ConfigurationParserResult+Alerts.swift */; };
0EAAD71920E6669A0088754A /* GroupConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EDE8DED20C93E4C004C739C /* GroupConstants.swift */; };
0EB60FDA2111136E00AD27F3 /* UITextView+Search.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EB60FD92111136E00AD27F3 /* UITextView+Search.swift */; };
@ -210,6 +211,7 @@
0E89DFC7213E8FC500741BA1 /* SessionProxy+Communication.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SessionProxy+Communication.swift"; sourceTree = "<group>"; };
0E89DFCD213EEDFA00741BA1 /* WizardProviderViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WizardProviderViewController.swift; sourceTree = "<group>"; };
0E8D97E121388B52006FB4A0 /* InfrastructurePreset.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InfrastructurePreset.swift; sourceTree = "<group>"; };
0E9CD7862257462800D033B4 /* Providers.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Providers.xcassets; sourceTree = "<group>"; };
0EA068F3218475F800C320AD /* ConfigurationParserResult+Alerts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ConfigurationParserResult+Alerts.swift"; sourceTree = "<group>"; };
0EB60FD92111136E00AD27F3 /* UITextView+Search.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITextView+Search.swift"; sourceTree = "<group>"; };
0EB67D6A2184581E00BA6200 /* ImportedHostsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImportedHostsViewController.swift; sourceTree = "<group>"; };
@ -411,6 +413,7 @@
0ED38ADC213F44D00004D387 /* Organizer.storyboard */,
0E36D25A22403469006AF062 /* Shortcuts.storyboard */,
0E57F64220C83FC7008323CF /* Assets.xcassets */,
0E9CD7862257462800D033B4 /* Providers.xcassets */,
0E57F64420C83FC7008323CF /* LaunchScreen.storyboard */,
0E57F64720C83FC7008323CF /* Info.plist */,
);
@ -787,6 +790,7 @@
0ED38ADA213F44D00004D387 /* Organizer.storyboard in Resources */,
0E57F64620C83FC7008323CF /* LaunchScreen.storyboard in Resources */,
0E57F64320C83FC7008323CF /* Assets.xcassets in Resources */,
0E9CD7872257462800D033B4 /* Providers.xcassets in Resources */,
0E57F64120C83FC5008323CF /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;

View File

@ -21,6 +21,7 @@ ib:
xcassets:
inputs:
- Passepartout-iOS/Assets.xcassets
- Passepartout-iOS/Providers.xcassets
outputs:
- templateName: swift4
output: Passepartout-iOS/Global/SwiftGen+Assets.swift