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
Zach Knox's avatar
Zach Knox committed
4
platform :ios, '11.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 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
end
15

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

Zach Knox's avatar
Zach Knox committed
19
  pod 'DeckTransition', '~> 2.0'
20

Zach Knox's avatar
Zach Knox committed
21 22 23
  pod 'Fabric'
  pod 'Crashlytics'
end
24

25

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

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

36 37 38
target 'WhatsOpenKit' do
  important_pods
end
39

40
post_install do |installer|
41 42 43 44 45 46 47 48 49 50 51
    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
52 53 54
  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
55
end