forked from QuickBlox/q-municate-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
93 lines (71 loc) · 3.04 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
platform :ios, '9.0'
xcodeproj 'Q-municate.xcodeproj'
source 'https://github.com/CocoaPods/Specs.git'
def services
# pod 'QMServicesDevelopment', :path => '../q-municate-services-ios/'
# pod 'QMServicesDevelopment', :git => '[email protected]:QuickBlox/q-municate-services-ios.git', :tag => '0.5.3'
pod 'QMServicesDevelopment',:git => '[email protected]:QuickBlox/q-municate-services-ios.git', :branch => 'development'
end
def chat_view_controller
# pod 'QMCVDevelopment', :path => '../QMChatViewController-ios/'
pod 'QMCVDevelopment', :git => '[email protected]:QuickBlox/QMChatViewController-ios.git', :branch => 'development'
end
target 'Q-municate' do
chat_view_controller
services
pod 'UIDevice-Hardware', '~> 0.1.11'
pod 'SAMKeychain'
pod 'Reachability', '~> 3.2'
pod 'TTTAttributedLabel', '~> 2.0'
pod 'libextobjc/EXTScope', '~> 0.4.1'
pod 'Flurry-iOS-SDK/FlurrySDK', '<= 8.3.1'
pod 'NYTPhotoViewer', :git => 'https://github.com/NYTimes/NYTPhotoViewer.git', :tag => 'v2.0.0'
#Facebook
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
#Twitter
pod 'Fabric'
pod 'Crashlytics'
#Firebase
pod 'FirebaseUI/Phone', '~> 4.0'
end
target 'QMSiriExtension' do
services
end
target 'QMShareExtension' do
services
chat_view_controller
pod 'Reachability', '~> 3.2'
pod 'SVProgressHUD'
end
post_install do |installer|
#Settings for extensions
installer.pods_project.targets.each do |target|
case target.name
when 'Bolts','QMCVDevelopment','SVProgressHUD'
target.build_configurations.each do |config|
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
end
end
if target.name == "SVProgressHUD"
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'SV_APP_EXTENSIONS'
end
end
end
#This script fixes an issue with application icon on iOS 11
#MORE INFO: https://github.com/CocoaPods/CocoaPods/issues/7003
installer.aggregate_targets.each do |target|
case target.name
when 'Pods-Q-municate'
copy_pods_resources_path = "Pods/Target Support Files/#{target.name}/#{target.name}-resources.sh"
string_to_replace = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"'
assets_compile_with_app_icon_arguments = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${BUILD_DIR}/assetcatalog_generated_info.plist"'
text = File.read(copy_pods_resources_path)
new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments)
File.open(copy_pods_resources_path, "w") {|file| file.puts new_contents }
end
end
end