Version.swift 920 B

12345678910111213141516171819202122232425262728
  1. // Sources/SwiftProtobuf/Version.swift - Runtime Version info
  2. //
  3. // Copyright (c) 2014 - 2017 Apple Inc. and the project authors
  4. // Licensed under Apache License v2.0 with Runtime Library Exception
  5. //
  6. // See LICENSE.txt for license information:
  7. // https://github.com/apple/swift-protobuf/blob/main/LICENSE.txt
  8. //
  9. // -----------------------------------------------------------------------------
  10. ///
  11. /// A interface for exposing the version of the runtime.
  12. ///
  13. // -----------------------------------------------------------------------------
  14. import Foundation
  15. // Expose version information about the library.
  16. public struct Version {
  17. /// Major version.
  18. public static let major = 1
  19. /// Minor version.
  20. public static let minor = 31
  21. /// Revision number.
  22. public static let revision = 0
  23. /// String form of the version number.
  24. public static let versionString = "\(major).\(minor).\(revision)"
  25. }