Skip to content

Commit

Permalink
Set the version of the HTTP Server based in the project version
Browse files Browse the repository at this point in the history
* Set the version of the HTTP Server based in the project version in the Info.plist
* Update the CHANGELOG
  • Loading branch information
Vkt0r committed Jul 2, 2019
1 parent f043c24 commit c82e57f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ All notable changes to this project will be documented in this file. Changes not

## Added

- Add the `trailing_whitespace` rule in Swiftlint and autocorrect all the source files. ([#416](https://github.com/httpswift/swifter/pull/416)) by [@Vkt0r](https://github.com/Vkt0r)
- Add the `trailing_whitespace` rule in Swiftlint and autocorrect all the source files. ([#421](https://github.com/httpswift/swifter/pull/421)) by [@Vkt0r](https://github.com/Vkt0r)

## Changed

- Set the version of the HTTP Server based in the project version in the **Info.plist**. ([#416](https://github.com/httpswift/swifter/pull/416)) by [@Vkt0r](https://github.com/Vkt0r)

# [1.4.7]

Expand Down
6 changes: 5 additions & 1 deletion XCode/Sources/HttpServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import Foundation

public class HttpServer: HttpServerIO {

public static let VERSION = "1.4.7"
public static let VERSION: String = {
let bundle = Bundle(for: HttpServer.self)
guard let version = bundle.infoDictionary?["CFBundleShortVersionString"] as? String else { return "Unspecified" }
return version
}()

private let router = HttpRouter()

Expand Down

0 comments on commit c82e57f

Please sign in to comment.