Skip to content

Commit

Permalink
Move swift support file to common spec
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed Jul 11, 2018
1 parent efadcd5 commit c3a95ce
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
31 changes: 20 additions & 11 deletions AppwiseCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,42 @@ Pod::Spec.new do |s|
}
s.preserve_paths = ['Scripts/*', 'Sourcery/*']
s.default_subspec = 'Core', 'Behaviours', 'UI'

# VC behaviours
s.subspec 'Behaviours' do |ss|
ss.source_files = 'Sources/Behaviours/**/*.swift'

# dependencies
ss.dependency 'AppwiseCore/Common'
ss.dependency 'Then'
end

# core spec
s.subspec 'Core' do |ss|
ss.source_files = 'Sources/Core/**/*.swift'
# Common files
s.subspec 'Common' do |ss|
ss.source_files = 'Sources/Common/**/*.swift'
ss.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=Debug]' => 'DEBUG'
}
end

# core spec
s.subspec 'Core' do |ss|
ss.source_files = 'Sources/Core/**/*.swift'

# dependencies
ss.dependency 'AppwiseCore/Common'
ss.dependency 'Alamofire'
ss.dependency 'CocoaLumberjack/Swift'
ss.dependency 'CrashlyticsRecorder'
ss.dependency 'Then'
end

# VC behaviours
s.subspec 'Behaviours' do |ss|
ss.source_files = 'Sources/Behaviours/**/*.swift'

# dependencies
ss.dependency 'Then'
end

# coredata
s.subspec 'CoreData' do |ss|
ss.source_files = 'Sources/CoreData/**/*.swift'

# dependencies
ss.dependency 'AppwiseCore/Common'
ss.dependency 'AppwiseCore/Core'
ss.dependency 'Groot'
ss.dependency 'SugarRecord/CoreData'
Expand All @@ -64,6 +72,7 @@ Pod::Spec.new do |s|

# dependencies
ss.dependency 'AppwiseCore/Behaviours'
ss.dependency 'AppwiseCore/Common'
end

# UI
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Deprecations.swift
// SwiftSupport.swift
// AppwiseCore
//
// Created by David Jennes on 06/03/2017.
Expand Down

0 comments on commit c3a95ce

Please sign in to comment.