forked from wikimedia/wikipedia-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
76 lines (58 loc) · 2.18 KB
/
Podfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
source 'https://github.com/CocoaPods/Specs.git'
# Configurations which are not compiled for release on the App Store
# NOT_APP_STORE_CONFIGS = ['Debug', 'Alpha', 'Beta', 'AdHoc'].freeze
platform :ios, :deployment_target => '8.0'
use_frameworks!
inhibit_all_warnings!
xcodeproj 'Wikipedia'
# HTML
pod 'hpple', '~> 0.2'
# Networking / Parsing
pod 'AFNetworking/NSURLConnection', '~> 2.6.0'
pod 'Mantle', '~> 2.0.0'
# Images
pod 'SDWebImage', :path => './vendor/SDWebImage'
pod 'AnimatedGIFImageSerialization'
# Utilities
pod 'libextobjc/EXTScope', '~> 0.4.1'
pod 'BlocksKit/Core', '~> 2.2.0'
pod 'BlocksKit/UIKit', '~> 2.2.0'
pod 'PromiseKit', :git => 'https://github.com/mxcl/PromiseKit.git', :branch => 'swift-2.0-beta5'
pod 'Tweaks', :head
# KVO
pod 'KVOController'
# Datasources
pod 'SSDataSources', '~> 0.8.0'
# Autolayout
pod 'Masonry', '0.6.2'
# Views
pod 'OAStackView', :git => '[email protected]:wikimedia/OAStackView.git'
pod 'MGSwipeTableCell', :git => '[email protected]:wikimedia/MGSwipeTableCell.git'
pod 'TSMessages', :git => 'https://github.com/wikimedia/TSMessages.git'
# Diagnostics
pod 'PiwikTracker', :head
pod 'CocoaLumberjack/Swift', '~> 2.2'
pod 'HockeySDK', '~> 3.8.2'
target 'WikipediaUnitTests', :exclusive => true do
pod 'OCMockito', '~> 1.4.0'
pod 'OCHamcrest', '~> 4.2.0'
pod 'Nocilla'
pod 'FBSnapshotTestCase', :git => '[email protected]:bgerstle/ios-snapshot-test-case.git', :commit => '689eb6a63c95dd0fa8fcd2e7b7b745fd84c2e9a3'
pod 'Quick', '~> 0.8.0'
pod 'Nimble', '~> 3.0.0'
end
pod 'SVWebViewController', '~> 1.0'
post_install do |installer|
plist_buddy = "/usr/libexec/PlistBuddy"
version = `#{plist_buddy} -c "Print CFBundleShortVersionString" Wikipedia/Wikipedia-Info.plist`.strip
def enable_tweaks(target)
target.build_configurations.each { |c|
c.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'FB_TWEAK_ENABLED=1'] unless c.name == "Release"
}
end
installer.pods_project.targets.each { |target|
enable_tweaks(target) if target.name == "Tweaks"
puts "Updating #{target} version number to #{version}"
`#{plist_buddy} -c "Set CFBundleShortVersionString #{version}" "Pods/Target Support Files/#{target}/Info.plist"`
}
end