diff --git a/CPAccelerationTimer.podspec b/CPAccelerationTimer.podspec index 08f5194..1afe9b8 100644 --- a/CPAccelerationTimer.podspec +++ b/CPAccelerationTimer.podspec @@ -1,7 +1,6 @@ Pod::Spec.new do |s| s.name = 'CPAccelerationTimer' - s.version = '0.0.2' - s.platform = :ios + s.version = '0.0.3' s.license = { :type => 'MIT', :file => 'LICENSE' } s.summary = 'Timer with Bézier curve acceleration' s.homepage = 'https://github.com/yangmeyer/CPAccelerationTimer' @@ -9,6 +8,10 @@ Pod::Spec.new do |s| s.description = 'Calls a block a given number of times, spread out over a given duration, with the between-calls delays determined by a given Bézier curve. Think of it as an NSTimer with custom acceleration.' s.source = { :git => 'https://github.com/yangmeyer/CPAccelerationTimer.git', :tag => s.version.to_s } + s.prefix_header_file = 'Component/CPAccelerationTimer-Prefix.pch' s.source_files = 'Component/*.{h,c,m}' s.requires_arc = true + + s.ios.deployment_target = '4.3' + s.watchos.deployment_target = '2.0' end diff --git a/Component/CPAccelerationTimer-Prefix.pch b/Component/CPAccelerationTimer-Prefix.pch new file mode 100644 index 0000000..88b6b79 --- /dev/null +++ b/Component/CPAccelerationTimer-Prefix.pch @@ -0,0 +1,11 @@ +#if TARGET_OS_WATCH +#define CGFloat float + +struct CGPoint { + CGFloat x; + CGFloat y; +}; +typedef struct CGPoint CGPoint; + +#define CGPointEqualToPoint(p1, p2) (p1.x == p2.x && p1.y == p2.y) +#endif \ No newline at end of file