forked from Hammerspoon/hammerspoon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
46 lines (38 loc) · 1.52 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
# Uncomment this line to define a global platform for your project
platform :osx, '12.0'
inhibit_all_warnings!
source 'https://github.com/CocoaPods/Specs.git'
project 'Hammerspoon', 'Profile' => :debug
target 'Hammerspoon' do
pod 'ASCIImage', '1.0.0'
pod 'CocoaLumberjack', '3.8.5'
pod 'CocoaAsyncSocket', '7.6.5'
pod 'CocoaHTTPServer', :git => 'https://github.com/Hammerspoon/CocoaHTTPServer.git'
pod 'PocketSocket/Client', '1.0.1'
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '8.32.0'
pod 'Sparkle', '2.6.4', :configurations => ['Release']
pod 'MIKMIDI', '1.7.1'
pod 'SocketRocket', '0.7.0'
pod 'ORSSerialPort', '2.1.0'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
puts "Enabling assertions in #{target.name}"
target.build_configurations.each do |config|
config.build_settings['ENABLE_NS_ASSERTIONS'] = 'YES'
if ['10.6', '10.7', '10.8', '10.9', '10.10', '10.11', '10.15', '11.0', '11.1', '11.2', '11.3', '11.4', '11.5'].include? config.build_settings['MACOSX_DEPLOYMENT_TARGET']
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '12.0'
end
end
puts "Removing hard-coded architecture in #{target.name}"
target.build_configurations.each do |config|
config.build_settings.delete 'ARCHS'
end
puts "Configuring Sentry"
target.build_configurations.each do |config|
if target.name == 'Sentry'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'SENTRY_NO_UIKIT=1']
end
end
end
end