Podfile 1.38 KB
Newer Older
1
2
3
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
4
platform :ios, '12.0'
5
6
use_frameworks!

7
def important_pods
Zach Knox's avatar
Zach Knox committed
8
  pod 'RealmSwift'
Zach Knox's avatar
Zach Knox committed
9

10
  pod 'ObjectMapper'
Zach Knox's avatar
Zach Knox committed
11
  pod "ObjectMapper+Realm"
12
end
13

14
def ios_pods
Zach Knox's avatar
Zach Knox committed
15
  #pod 'Segmentio', '~> 2.1'
16

17
  pod 'DeckTransition'
18

Zach Knox's avatar
Zach Knox committed
19
20
21
  pod 'Fabric'
  pod 'Crashlytics'
end
22

23

Zach Knox's avatar
Zach Knox committed
24
target 'WhatsOpen' do
25
  important_pods
Zach Knox's avatar
Zach Knox committed
26
27
  ios_pods
end
Zach Knox's avatar
Zach Knox committed
28

Zach Knox's avatar
Zach Knox committed
29
target 'WhatsOpen - AppStore' do
30
  important_pods
Zach Knox's avatar
Zach Knox committed
31
  ios_pods
32
33
end

34
35
36
target 'WhatsOpenKit' do
  important_pods
end
37

38
39
40
41
target 'TodayWidget' do
  important_pods
end

Zach Knox's avatar
Zach Knox committed
42
43
44
45
46
47
48
49
target 'ShortcutsExtension' do
  important_pods
end

target 'ShortcutsExtensionUI' do
  important_pods
end

50
post_install do |installer|
51
52
53
54
55
56
57
58
59
60
61
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '3.1'
      end
    
    # From https://twitter.com/nathan
    plist_buddy = "/usr/libexec/PlistBuddy"
    plist = "Pods/Target Support Files/#{target}/Info.plist"
    `#{plist_buddy} -c "Add UIRequiredDeviceCapabilities array" "#{plist}"`
    `#{plist_buddy} -c "Add UIRequiredDeviceCapabilities:0 string arm64" "#{plist}"`
  end
62
63
64
  require 'fileutils'
  FileUtils.cp_r('Pods/Target Support Files/Pods-WhatsOpen/Pods-WhatsOpen-Acknowledgements.plist', 'WhatsOpen/Settings.bundle/Acknowledgements.plist', :remove_destination => true)

Zach Knox's avatar
Zach Knox committed
65
end