Podfile 1.28 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
11
12
  #pod 'ObjectMapper', '~> 3.2'
  # TEMPORARY BECAUSE Xcode 10
  pod 'ObjectMapper', :git => 'https://github.com/alecdoconnor/ObjectMapper.git', :branch => 'Swift-4.2'
Zach Knox's avatar
Zach Knox committed
13
  pod "ObjectMapper+Realm"
14

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

Zach Knox's avatar
Zach Knox committed
17
  pod 'DeckTransition', '~> 2.0'
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
25
26
target 'WhatsOpen' do
  ios_pods
end
Zach Knox's avatar
Zach Knox committed
27

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


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