-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPodfile
executable file
·52 lines (42 loc) · 1.61 KB
/
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
48
49
50
51
52
project 'Nitro.xcodeproj'
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Nitro' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Nitro
pod 'TransitionButton'
pod 'Proposer'
pod 'SideMenu'
pod 'Alamofire'
pod 'Kanna'
pod 'SwiftScanner'
pod 'Erik'
pod 'FeedKit'
pod 'ReachabilitySwift'
pod 'ARCL'
#hatt nicht funktioniert, weitere Tests in Zukunft
pod 'SwiftSoup'
pod 'QuickTableViewController'
target 'NitroTests' do
inherit! :search_paths
# Pods for testing
end
target 'NitroUITests' do
inherit! :search_paths
# Pods for testing
end
post_install do |installer|
installer.aggregate_targets.each do |target|
if target.name != "UnitTestsTarget" then
puts "adding app icons for #{target.name}"
copy_pods_resources_path = "Pods/Target Support Files/#{target.name}/#{target.name}-resources.sh"
string_to_replace = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"'
assets_compile_with_app_icon_arguments = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${BUILD_DIR}/assetcatalog_generated_info.plist"'
text = File.read(copy_pods_resources_path)
new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments)
File.open(copy_pods_resources_path, "w") {|file| file.puts new_contents }
end
end
end
end