forked from SwiftGen/SwiftGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
47 lines (37 loc) · 1003 Bytes
/
Podfile
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
46
47
# frozen_string_literal: true
raise 'Please use bundle exec to run the pod command' unless defined?(Bundler)
install! 'cocoapods',
generate_multiple_pod_projects: true,
incremental_installation: true
platform :osx, '10.9'
use_frameworks!
workspace 'SwiftGen.xcworkspace'
def common_pods
podspec :path => 'SwiftGenKit.podspec'
pod 'SwiftLint', '~> 0.39'
end
target 'swiftgen' do
common_pods
pod 'Commander', '~> 0.9'
pod 'StencilSwiftKit', '~> 2.7'
target 'SwiftGen UnitTests' do
inherit! :complete
end
target 'Templates UnitTests' do
inherit! :complete
end
end
target 'SwiftGenKit' do
common_pods
target 'SwiftGenKit UnitTests' do
inherit! :complete
end
end
post_install do |_installer|
require 'fileutils'
# copy Info.plist files
pods_with_info_plist = %w[Stencil StencilSwiftKit]
pods_with_info_plist.each do |pod|
FileUtils.cp_r("Pods/Target Support Files/#{pod}/#{pod}-Info.plist", "Resources/#{pod}-Info.plist")
end
end