-
Notifications
You must be signed in to change notification settings - Fork 41
/
Podfile
86 lines (71 loc) · 2.37 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
platform :ios, '13.0'
target 'Flat' do
use_frameworks!
pod 'LookinServer', :configurations => ['Flat_Debug']
pod 'RxSwift'
pod 'RxCocoa'
pod 'NSObject+Rx'
pod 'RxDataSources'
pod 'AcknowList'
pod 'CropViewController'
pod 'Siren'
pod 'IQKeyboardManagerSwift'
pod 'Zip'
pod 'lottie-ios'
pod 'PhoneNumberKit'
pod 'ScreenCorners'
pod 'AgoraRtcEngine_iOS', '4.3.0', :subspecs => ['RtcBasic']
pod 'Fastboard', '2.0.0-alpha.19'
pod 'Whiteboard', '2.17.0-alpha.30'
pod 'Whiteboard/SyncPlayer', '2.17.0-alpha.30'
pod 'SyncPlayer', '0.3.3'
pod 'ViewDragger', '1.1.0'
pod 'MBProgressHUD', '~> 1.2.0'
pod 'Kingfisher'
pod 'Hero'
pod 'SnapKit'
pod 'DZNEmptyDataSet'
pod 'Logging'
pod 'SwiftyBeaver'
pod 'AliyunLogProducer/Core'
pod 'AliyunLogProducer/Bricks'
pod 'FirebaseCrashlytics'
pod 'Firebase/RemoteConfig'
pod 'Firebase/AnalyticsWithoutAdIdSupport'
ignore_whiteboard_rebuild = ENV["ignore_whiteboard_rebuild"] == "true"
post_install do |installer|
# Fix for XCode 14.3
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
if !ignore_whiteboard_rebuild
# Rebuild whiteboard bridge with injected code.
system('sh rebuild_whiteboard_bridge.sh $(pwd)') || exit(1)
# Remove the copy resource
installer.pods_project.targets.each do |target|
if target.name == "Whiteboard"
puts "===================> Find Whiteboard Target"
build_phase = target.build_phases.find { |bp| bp.display_name == 'Resources' }
build_phase.clear()
puts "===================> Clear copy original Whiteboard Resources"
end
# Remove the original whitebaord resource target
if target.name == 'Whiteboard-Whiteboard'
target.remove_from_project
end
end
end
# Remove the copy resource
installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
end