From 0c57fa577fcb78ac434c7ece77e43df3e0a17209 Mon Sep 17 00:00:00 2001 From: Jorge Miguel Date: Fri, 11 Sep 2015 01:15:04 +0100 Subject: [PATCH 1/3] % added support for watchos2 platform on pod --- CPAccelerationTimer.podspec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CPAccelerationTimer.podspec b/CPAccelerationTimer.podspec index 08f5194..34f5bc3 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' @@ -11,4 +10,7 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/yangmeyer/CPAccelerationTimer.git', :tag => s.version.to_s } s.source_files = 'Component/*.{h,c,m}' s.requires_arc = true + + s.ios.deployment_target = '4.3' + s.watchos.deployment_target = '2.0' end From cc2e3a8506aab32d7e4f0d759aef4a3f0558f3c0 Mon Sep 17 00:00:00 2001 From: Jorge Miguel Date: Fri, 11 Sep 2015 22:25:40 +0100 Subject: [PATCH 2/3] =?UTF-8?q?%=20definition=20of=20missing=20method=20an?= =?UTF-8?q?=20struct=20@=20=EF=A3=BFWatch=20side?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CPAccelerationTimer.podspec | 1 + Component/CPAccelerationTimer-Prefix.pch | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Component/CPAccelerationTimer-Prefix.pch diff --git a/CPAccelerationTimer.podspec b/CPAccelerationTimer.podspec index 34f5bc3..1afe9b8 100644 --- a/CPAccelerationTimer.podspec +++ b/CPAccelerationTimer.podspec @@ -8,6 +8,7 @@ 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 diff --git a/Component/CPAccelerationTimer-Prefix.pch b/Component/CPAccelerationTimer-Prefix.pch new file mode 100644 index 0000000..a48beb7 --- /dev/null +++ b/Component/CPAccelerationTimer-Prefix.pch @@ -0,0 +1,15 @@ +#ifdef __OBJC__ +#import +#endif + +#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 From 307eb0925c569a674e01fd3c16997cf2e18ac6bd Mon Sep 17 00:00:00 2001 From: Jorge Miguel Date: Fri, 11 Sep 2015 22:36:49 +0100 Subject: [PATCH 3/3] - unnecessary code removed from prefix --- Component/CPAccelerationTimer-Prefix.pch | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Component/CPAccelerationTimer-Prefix.pch b/Component/CPAccelerationTimer-Prefix.pch index a48beb7..88b6b79 100644 --- a/Component/CPAccelerationTimer-Prefix.pch +++ b/Component/CPAccelerationTimer-Prefix.pch @@ -1,7 +1,3 @@ -#ifdef __OBJC__ -#import -#endif - #if TARGET_OS_WATCH #define CGFloat float