forked from SelfControlApp/selfcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
25 lines (21 loc) · 875 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
source 'https://github.com/CocoaPods/Specs.git'
target "SelfControl" do
pod 'MASPreferences', '~> 1.1.4'
pod 'FormatterKit/TimeIntervalFormatter', '~> 1.7'
pod 'Sparkle', '~> 1.14'
end
pre_install do |installer|
supported_locales = ['base', 'en', 'de', 'es', 'it', 'ja', 'ko', 'pt', 'pt-br', 'pt_br', 'sv', 'tr', 'zh-hans', 'zh_hans', 'zh-cn', 'zh_cn']
Dir.glob(File.join(installer.sandbox.pod_dir('FormatterKit'), '**', '*.lproj')).each do |bundle|
if (!supported_locales.include?(File.basename(bundle, ".lproj").downcase))
puts "Removing #{bundle} from FormatterKit"
FileUtils.rm_rf(bundle)
end
end
Dir.glob(File.join(installer.sandbox.pod_dir('Sparkle'), '**', '*.lproj')).each do |bundle|
if (!supported_locales.include?(File.basename(bundle, ".lproj").downcase))
puts "Removing #{bundle} from Sparkle"
FileUtils.rm_rf(bundle)
end
end
end