forked from home-assistant/iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
111 lines (92 loc) · 3.48 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
use_frameworks!
inhibit_all_warnings!
project 'HomeAssistant', 'Debug' => :debug, 'Release' => :release, 'Beta' => :release
plugin 'cocoapods-acknowledgements'
system("./Tools/BuildMaterialDesignIconsFont.sh")
pod 'Alamofire', '~> 4.0'
pod 'Communicator', '~> 3.3.0'
pod 'KeychainAccess'
pod 'ObjectMapper', :git => 'https://github.com/tristanhimmelman/ObjectMapper.git', :branch => 'master'
pod 'PromiseKit'
pod 'RealmSwift'
pod 'Sentry'
pod 'UIColor_Hex_Swift'
pod 'Version'
pod 'XCGLogger'
# Set FONT_PATH and CUSTOM_FONT_NAME variables for MDI
#puts "Setting FONT_PATH to '#{File.expand_path('./Tools/MaterialDesignIcons.ttf')}'"
#ENV['FONT_PATH'] = File.expand_path('./Tools/MaterialDesignIcons.ttf')
#puts "Setting CUSTOM_FONT_NAME to 'MaterialDesignIcons'"
#ENV['CUSTOM_FONT_NAME'] = 'MaterialDesignIcons'
#pod 'Iconic', :git => 'https://github.com/home-assistant/Iconic.git', :branch => 'master'
def test_pods
pod 'OHHTTPStubs/Swift'
end
def shared_fwk_pods
pod 'Sodium', :git => 'https://github.com/jedisct1/swift-sodium.git', :branch => 'master'
end
abstract_target 'iOS' do
platform :ios, '12.0'
pod 'MBProgressHUD', '~> 1.2.0'
pod 'ReachabilitySwift'
target 'Shared-iOS' do
shared_fwk_pods
target 'Tests-Shared' do
inherit! :complete
test_pods
end
end
target 'App' do
pod 'CallbackURLKit'
pod 'ColorPickerRow', :git => 'https://github.com/EurekaCommunity/ColorPickerRow', :branch => 'master'
pod 'CPDAcknowledgements', :git => 'https://github.com/CocoaPods/CPDAcknowledgements', :branch => 'master'
pod 'Eureka'
pod 'Firebase/Messaging'
pod 'Lokalise', '~> 0.10.0'
pod 'lottie-ios'
pod 'SimulatorStatusMagic', :configurations => ['Debug']
pod 'SwiftGen', '~> 6.4.0'
pod 'SwiftLint'
pod 'SwiftMessages'
pod 'ViewRow', :git => 'https://github.com/EurekaCommunity/ViewRow', :branch => 'master'
pod 'ZIPFoundation', '~> 0.9'
target 'Tests-App' do
inherit! :search_paths
test_pods
end
end
target 'Extensions-Intents'
target 'Extensions-NotificationContent'
target 'Extensions-NotificationService'
target 'Extensions-Share'
target 'Extensions-Today'
target 'Extensions-Widgets'
end
abstract_target 'watchOS' do
platform :watchos, '5.0'
target 'Shared-watchOS' do
shared_fwk_pods
end
target 'WatchExtension-Watch' do
pod 'EMTLoadingIndicator', :git => 'https://github.com/hirokimu/EMTLoadingIndicator', :branch => 'master'
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig.sub!('-framework "Lokalise"', '')
File.open(xcconfig_path, "w") { |file| file << xcconfig }
config.build_settings['WATCHOS_DEPLOYMENT_TARGET'] = '5.0'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
# Fix bundle targets' 'Signing Certificate' to 'Sign to Run Locally'
# (catalyst fix)
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGN_IDENTITY[sdk=macosx*]'] = '-'
end
end
end
end