GBA002/Podfile
Riley Testut 7695a800c6 Fixes SQLite.swift compiler errors in Xcode 9
Adds post install action to Podfile to modify SQLite.swift source files.
2017-06-29 13:35:33 -05:00

24 lines
561 B
Ruby

platform :ios, '10.0'
use_frameworks!
inhibit_all_warnings!
target 'Delta' do
pod 'FileMD5Hash', '~> 2.0.0'
pod 'SQLite.swift', '~> 0.11.0'
pod 'SDWebImage', '~> 3.8'
pod 'Fabric', '~> 1.6.0'
pod 'Crashlytics', '~> 3.8.0'
end
post_install do |installer|
Dir.glob('Pods/SQLite.swift/Sources/SQLite/**/*.swift').each { |path|
begin
text = File.read(path)
text = text.gsub(/import CSQLite/, 'import SQLite3')
File.open(path, 'w') { |file| file.puts text }
rescue Exception
puts "Unable to patch #{path}: #{$!}"
end
}
end