Skip to content

Commit

Permalink
Upgrading the pod specs to show diff before the release
Browse files Browse the repository at this point in the history
Getting rid of module header subspecs
  • Loading branch information
Peter Livesey committed Oct 11, 2016
1 parent 3d9efb7 commit 41926cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
13 changes: 3 additions & 10 deletions LayoutTest.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |spec|
spec.name = 'LayoutTest'
spec.version = '3.0.0'
spec.version = '3.0.0-beta4'
spec.license = { :type => 'Apache License, Version 2.0' }
spec.homepage = 'https://linkedin.github.io/LayoutTest-iOS'
spec.authors = 'LinkedIn'
spec.summary = 'LayoutTest enables you to write unit tests which test the layout of a view in multiple configurations.'
spec.source = { :git => 'https://github.com/linkedin/LayoutTest-iOS.git', :tag => spec.version }
spec.platform = :ios, '7.0'
spec.default_subspecs = 'TestCase'
spec.dependency 'LayoutTestBase', '3.0.0'
spec.dependency 'LayoutTestBase', '3.0.0-beta4'

spec.subspec 'Swift' do |sp|
sp.dependency 'LayoutTestBase/Core'
Expand All @@ -18,26 +18,19 @@ Pod::Spec.new do |spec|
sp.dependency 'LayoutTestBase/Config'
sp.dependency 'LayoutTestBase/UIViewHelpers'
sp.dependency 'LayoutTest/SwiftSubspec'
sp.dependency 'LayoutTest/ModuleHeader'
end

spec.subspec 'TestCase' do |sp|
sp.source_files = 'LayoutTest/TestCase'
sp.dependency 'LayoutTestBase/Core'
sp.dependency 'LayoutTestBase/Config'
sp.dependency 'LayoutTest/ModuleHeader'
sp.framework = 'XCTest'
end

spec.subspec 'SwiftSubspec' do |sp|
sp.source_files = 'LayoutTest/Swift'
sp.source_files = 'LayoutTest/Swift', 'LayoutTest/LayoutTest.h'
sp.dependency 'LayoutTest/TestCase'
sp.dependency 'LayoutTest/ModuleHeader'
sp.dependency 'LayoutTestBase/Swift'
end

spec.subspec 'ModuleHeader' do |sp|
sp.source_files = 'LayoutTest/LayoutTest.h'
end
end

10 changes: 3 additions & 7 deletions LayoutTestBase.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'LayoutTestBase'
spec.version = '3.0.0'
spec.version = '3.0.0-beta4'
spec.license = { :type => 'Apache License, Version 2.0' }
spec.homepage = 'https://linkedin.github.io/LayoutTest-iOS'
spec.authors = 'LinkedIn'
Expand All @@ -11,13 +11,12 @@ Pod::Spec.new do |spec|
spec.default_subspecs = 'Core', 'Autolayout', 'Catalog', 'Config', 'UIViewHelpers'

spec.subspec 'Swift' do |sp|
sp.source_files = 'LayoutTestBase/Swift/**/*'
sp.source_files = 'LayoutTestBase/Swift/**/*', 'LayoutTestBase/LayoutTestBase.h'
sp.dependency 'LayoutTestBase/Core'
sp.dependency 'LayoutTestBase/Autolayout'
sp.dependency 'LayoutTestBase/Catalog'
sp.dependency 'LayoutTestBase/Config'
sp.dependency 'LayoutTestBase/UIViewHelpers'
sp.dependency 'LayoutTestBase/ModuleHeader'
sp.platform = :ios, '8.0'
end

Expand All @@ -43,8 +42,5 @@ Pod::Spec.new do |spec|
sp.source_files = 'LayoutTestBase/UIViewHelpers'
sp.dependency 'LayoutTestBase/Config'
end

spec.subspec 'ModuleHeader' do |sp|
sp.source_files = 'LayoutTestBase/LayoutTestBase.h'
end
end

0 comments on commit 41926cf

Please sign in to comment.