From 089020082da48e55d2cefa0566cb0a8d3ae0da4d Mon Sep 17 00:00:00 2001 From: Paul Zabelin Date: Wed, 28 Feb 2018 20:09:30 -0800 Subject: [PATCH] refactor podspec and podfile --- Example/Podfile | 8 +++++--- Example/Podfile.lock | 4 ++-- PerspectiveTransform.podspec | 31 ++++++++++++++++--------------- 3 files changed, 23 insertions(+), 20 deletions(-) diff --git a/Example/Podfile b/Example/Podfile index 65d8c28..39606cc 100644 --- a/Example/Podfile +++ b/Example/Podfile @@ -8,10 +8,13 @@ target 'Example' do pod 'PerspectiveTransform', :path => '../' pod 'ImageCoordinateSpace' - target 'Framework Unit Specs' do + def SwiftTestingPods pod 'Quick' pod 'Nimble' + end + target 'Framework Unit Specs' do + SwiftTestingPods() target 'Application Specs' do pod 'Nimble-Snapshots' end @@ -19,7 +22,6 @@ target 'Example' do target 'OpenCV OSX Tests' do platform :osx, '10.13' - pod 'Quick' - pod 'Nimble' + SwiftTestingPods() end end diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 1d08f24..9ff2164 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -30,9 +30,9 @@ SPEC CHECKSUMS: ImageCoordinateSpace: fe599bab8787a7263b3704e185ddb86e63e4b682 Nimble: 7f5a9c447a33002645a071bddafbfb24ea70e0ac Nimble-Snapshots: f5459b5b091678dc942d03ec4741cacb58ba4a52 - PerspectiveTransform: 24320eaa6197a6e68a002ff66147454a90591192 + PerspectiveTransform: 0db7114de309d539f790815c359c3f8b4293dd68 Quick: 58d203b1c5e27fff7229c4c1ae445ad7069a7a08 -PODFILE CHECKSUM: dbb2806112cf6cc17d0c251f5662be7b0685b183 +PODFILE CHECKSUM: f28eb5389da5f69fbbe9277245e03011c75f15fa COCOAPODS: 1.4.0 diff --git a/PerspectiveTransform.podspec b/PerspectiveTransform.podspec index 4b13a18..619e5b2 100644 --- a/PerspectiveTransform.podspec +++ b/PerspectiveTransform.podspec @@ -1,21 +1,22 @@ Pod::Spec.new do |s| - s.name = 'PerspectiveTransform' - s.version = '0.2.0' - s.summary = 'Perspective Transform calculates CATransform3D' - s.description = <<-DESC + s.cocoapods_version = '>=1.4.0' + s.name = 'PerspectiveTransform' + s.version = '0.2.0' + s.summary = 'Perspective Transform calculates CATransform3D' + s.description = <<-DESC Calculates CATransform3D to transform rectangular frame to convex quadrilateral Allows to overlay images in UIView given 4 points. DESC - authorPage = 'https://github.com/paulz' - s.homepage = "#{authorPage}/#{s.name}" - s.screenshots = "#{s.homepage}/wiki/images/container-with-green-polygon.png" - s.license = { :type => 'MIT' } - s.author = { 'Paul Zabelin' => authorPage } - s.source = { :git => "#{s.homepage}.git", :tag => s.version.to_s } - s.social_media_url = 'https://twitter.com/iospaulz' + authorPage = 'https://github.com/paulz' + s.homepage = "#{authorPage}/#{s.name}" + s.screenshots = "#{s.homepage}/wiki/images/container-with-green-polygon.png" + s.license = { :type => 'MIT' } + s.author = { 'Paul Zabelin' => authorPage } + s.source = { :git => "#{s.homepage}.git", :tag => s.version.to_s } + s.social_media_url = 'https://twitter.com/iospaulz' - s.platform = :ios, '11.0' - s.requires_arc = true - s.source_files = 'Pod/Classes/**/*' - s.frameworks = 'UIKit', 'CoreGraphics', 'QuartzCore' + s.platform = :ios, '11.0' + s.swift_version = '4.0' + s.source_files = 'Pod/Classes/**/*' + s.frameworks = 'UIKit', 'CoreGraphics', 'QuartzCore' end