Podfile 1.15 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
Zach Knox's avatar
Zach Knox committed
4
platform :ios, '11.0'
5
6
use_frameworks!

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

10
  pod 'ObjectMapper', '~> 3.2'
Zach Knox's avatar
Zach Knox committed
11
  pod "ObjectMapper+Realm"
12

Zach Knox's avatar
Zach Knox committed
13
  #pod 'Segmentio', '~> 2.1'
14

Zach Knox's avatar
Zach Knox committed
15
  pod 'DeckTransition', '~> 2.0'
16

Zach Knox's avatar
Zach Knox committed
17
18
19
  pod 'Fabric'
  pod 'Crashlytics'
end
20

21

Zach Knox's avatar
Zach Knox committed
22
23
24
target 'WhatsOpen' do
  ios_pods
end
Zach Knox's avatar
Zach Knox committed
25

Zach Knox's avatar
Zach Knox committed
26
27
target 'WhatsOpen - AppStore' do
  ios_pods
28
29
30
end


31
post_install do |installer|
32
33
34
35
36
37
38
39
40
41
42
    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
43
44
45
  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
46
end