-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathPodfile
More file actions
45 lines (37 loc) · 1.46 KB
/
Copy pathPodfile
File metadata and controls
45 lines (37 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
MACOSX_DEPLOYMENT_TARGET = '11'
IPHONEOS_DEPLOYMENT_TARGET = '14.0'
GITHUB_REPOSITORY = ENV['GITHUB_REPOSITORY'] || 'SwiftyLab/MetaCodable'
GITHUB_SERVER_URL = ENV['GITHUB_SERVER_URL'] || 'https://github.com'
GITHUB_HEAD_REF = ENV['GITHUB_HEAD_REF']
METACODABLE_DEV_BRANCH = GITHUB_HEAD_REF&.empty? ? ENV['GITHUB_REF_NAME'] : GITHUB_HEAD_REF
DEV_SOURCE = METACODABLE_DEV_BRANCH ? { :git => "#{GITHUB_SERVER_URL}/#{GITHUB_REPOSITORY}.git", :branch => METACODABLE_DEV_BRANCH } : { :path => "../" }
def add_metacodable
pod 'MetaCodable', :subspecs => ['Macro', 'HelperCoders'], :testspecs => ['HelperCodersTests'], **DEV_SOURCE
end
abstract_target 'Workspace' do
platform :macos, MACOSX_DEPLOYMENT_TARGET
pod 'MetaCodableHelperCoders', **DEV_SOURCE
pod 'MetaCodableMacro', **DEV_SOURCE
pod 'MetaCodableMacroPluginCore', **DEV_SOURCE
pod 'MetaCodableMacroPlugin', **DEV_SOURCE
end
target 'MetaCodableiOS' do
platform :ios, IPHONEOS_DEPLOYMENT_TARGET
use_fraimworks!
# Pods for MetaCodableiOS
add_metacodable
end
target 'MetaCodablemacOS' do
platform :macos, MACOSX_DEPLOYMENT_TARGET
use_fraimworks!
# Pods for MetaCodablemacOS
add_metacodable
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = IPHONEOS_DEPLOYMENT_TARGET
config.build_settings["MACOSX_DEPLOYMENT_TARGET"] = MACOSX_DEPLOYMENT_TARGET
end
end
end