diff --git a/Example/OpenSourceController.xcodeproj/project.pbxproj b/Example/OpenSourceController.xcodeproj/project.pbxproj index 18bebf3..94ce7aa 100644 --- a/Example/OpenSourceController.xcodeproj/project.pbxproj +++ b/Example/OpenSourceController.xcodeproj/project.pbxproj @@ -235,6 +235,7 @@ }; 607FACE41AFB9204008FA782 = { CreatedOnToolsVersion = 6.3.1; + DevelopmentTeam = 62PP362QNQ; LastSwiftMigration = 0820; TestTargetID = 607FACCF1AFB9204008FA782; }; @@ -571,6 +572,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = B618AB26E5C0028641390646 /* Pods-OpenSourceController_Tests.debug.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = 62PP362QNQ; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", @@ -588,6 +590,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 87501F335829155E114806FA /* Pods-OpenSourceController_Tests.release.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = 62PP362QNQ; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; diff --git a/OpenSourceController/Classes/Extensions/Array+Extensions.swift b/OpenSourceController/Classes/Extensions/Array+Extensions.swift index 8a9613a..0737743 100644 --- a/OpenSourceController/Classes/Extensions/Array+Extensions.swift +++ b/OpenSourceController/Classes/Extensions/Array+Extensions.swift @@ -9,14 +9,14 @@ import Foundation extension Array { - + /// Get an index safely public func get(at index: Int) -> Element? { - guard index >= 0 - && index < count else { - return nil + guard index >= 0 + && index < count else { + return nil } - + return self[index] } } diff --git a/OpenSourceController/Classes/Model/LicenceFile.swift b/OpenSourceController/Classes/Model/LicenceFile.swift index d77567f..0e21e00 100644 --- a/OpenSourceController/Classes/Model/LicenceFile.swift +++ b/OpenSourceController/Classes/Model/LicenceFile.swift @@ -31,6 +31,8 @@ public class LicenceFile: NSObject { public init(title: String, url: String) { self.title = title self.url = url + self.detail = NSLocalizedString("Unable to load this licence.", + comment: "") } /// Download licence detail diff --git a/README.md b/README.md index baebd31..5c64129 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ OpenSourceController is currently write in english. If you need translation for ``` "Tiers library" = ""; +"Unable to load this licence." = ""; ``` ## Applications