This repository has been archived by the owner on Feb 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathPodfile
62 lines (51 loc) · 1.88 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
platform :tvos, "9.0"
use_frameworks!
plugin "cocoapods-keys", {
project: "Emergence",
targets: "Artsy Shows",
keys: [
"ArtsyAPIClientSecret",
"ArtsyAPIClientKey",
"SegmentDevWriteKey",
"SegmentProductionWriteKey"
]
}
def artsy_pods
pod "Artsy+UIColors", git: "https://github.com/artsy/Artsy-UIColors.git"
pod "Artsy+UILabels", git: "https://github.com/artsy/Artsy-UILabels.git", branch: "master"
# TODO: Update OSS Fonts for tvOS?
if !ENV["ARTSY_STAFF_MEMBER"].nil? || !ENV["CI"].nil?
pod "Artsy+UIFonts", git: "https://github.com/artsy/Artsy-UIFonts.git", branch: "old_fonts_new_lib_tv"
else
pod "Artsy+OSSUIFonts", git: "https://github.com/artsy/Artsy-OSSUIFonts"
end
end
def app_pods
pod "Gloss"
pod "Alamofire"
pod "Moya/RxSwift"
pod "RxSwift"
pod "SDWebImage"
pod "ARCollectionViewMasonryLayout", git: "https://github.com/ashfurrow/ARCollectionViewMasonryLayout.git"
pod "UIImageViewAligned", git: "https://github.com/orta/UIImageViewAligned.git"
pod "NSURL+QueryDictionary", git: "https://github.com/orta/NSURL-QueryDictionary.git", branch: "develop"
pod "Analytics", git: "https://github.com/orta/analytics-ios.git", branch: "orta-tvos"
pod "ARAnalytics", subspecs: ["Segmentio"]
end
def platform_pods
pod "Artsy+Authentication", subspecs: ["email"], git: "https://github.com/artsy/Artsy-Authentication.git", branch: "master"
end
target "Artsy Shows" do
artsy_pods
app_pods
platform_pods
end
post_install do |installer|
app_plist = "Emergence/Info.plist"
plist_buddy = "/usr/libexec/PlistBuddy"
version = `#{plist_buddy} -c "Print CFBundleShortVersionString" #{app_plist}`.strip
puts "Updating CocoaPods' version numbers to #{version}"
installer.pods_project.targets.each do |target|
`#{plist_buddy} -c "Set CFBundleShortVersionString #{version}" "Pods/Target Support Files/#{target}/Info.plist"`
end
end