Skip to content

Commit

Permalink
Bump version and add watchOS and tvOS compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ken0nek committed Nov 8, 2021
1 parent 67e52b7 commit f092b8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Sources/SwiftMeasurement/SwiftMeasurement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,24 +147,24 @@ public extension Double {
return Measurement(value: self, unit: .hours)
}

@available(iOS 13.0, macOS 10.15, *)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13, *)
var milliseconds: Measurement<UnitDuration> {
return Measurement(value: self, unit: .milliseconds)
}

@available(iOS 13.0, macOS 10.15, *)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13, *)
var microseconds: Measurement<UnitDuration> {
return Measurement(value: self, unit: .microseconds)
}

@available(iOS 13.0, macOS 10.15, *)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13, *)
var nanoseconds: Measurement<UnitDuration> {
return Measurement(value: self, unit: .nanoseconds)
}

@available(iOS 13.0, macOS 10.15, *)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13, *)
var picoseconds: Measurement<UnitDuration> {
return Measurement(value: self, unit: .nanoseconds)
return Measurement(value: self, unit: .picoseconds)
}

}
Expand Down Expand Up @@ -321,7 +321,7 @@ public extension Double {
return Measurement(value: self, unit: .nanohertz)
}

@available(iOS 13.0, macOS 10.15, *)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13, *)
var framesPerSecond: Measurement<UnitFrequency> {
return Measurement(value: self, unit: .framesPerSecond)
}
Expand Down Expand Up @@ -808,7 +808,7 @@ public extension Double {
}

// - UnitInformationStorage: []
@available(iOS 13.0, macOS 10.15, *)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
public extension Double {

var bytes: Measurement<UnitInformationStorage> {
Expand Down
4 changes: 3 additions & 1 deletion SwiftMeasurement.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
Pod:: Spec.new do |s|
s.name = 'SwiftMeasurement'
s.version = '0.4.0'
s.version = '0.4.1'

s.swift_version = '5.0'

s.osx.deployment_target = '10.12'
s.ios.deployment_target = '10.0'
s.watchos.deployment_target = '3.0'
s.tvos.deployment_target = '10.0'

s.license = 'MIT'
s.summary = 'The best way to deal with Measurements and Units in Swift'
Expand Down

0 comments on commit f092b8d

Please sign in to comment.