-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPodfile
93 lines (67 loc) · 1.62 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
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pre_install do |installer|
remove_swiftui()
end
platform :ios, '11.0'
target 'XJSwiftKit' do
# Networking
pod 'Alamofire'
# RxSwift
pod 'RxSwift','5.0.1'
pod 'RxCocoa','5.0.0'
# Image
pod 'Kingfisher'
# Auto Layout
pod 'SnapKit'
# JSON Mapping
pod 'HandyJSON','5.0.2'
# Refresh
pod 'MJRefresh'
# HUD
pod 'MBProgressHUD'
pod 'NVActivityIndicatorView'
# Listen Network
pod 'ReachabilitySwift','4.3.0'
# Keyboard Manager
pod 'IQKeyboardManagerSwift'
# Video player
pod 'ZFPlayer', '4.0.1'
pod 'ZFPlayer/ControlView', '4.0.1'
pod 'ZFPlayer/AVPlayer', '4.0.1'
# Scan QRCode
pod 'SGQRCode', '3.5.0'
# Empty View
pod 'DZNEmptyDataSet','1.8.1'
# Sqlite
pod 'FMDB','2.7.5'
# Cache Link/File/Sqlite
pod 'YYCache'
# Select Photo
pod 'ZLPhotoBrowser'
# PopGesture
pod 'FDFullscreenPopGesture'
# Carousel
pod 'FSPagerView'
# Drawer/ CWLateralSlide
pod 'MMDrawerController'
# Calendar
pod 'FSCalendar'
# Picker-OC
pod 'BRPickerView'
# keyChain
pod 'SAMKeychain'
# Log
pod 'CocoaLumberjack/Swift'
end
def remove_swiftui
# 解决 xcode13 Release模式下SwiftUI报错问题
system("rm -rf ./Pods/Kingfisher/Sources/SwiftUI")
code_file = "./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift"
code_text = File.read(code_file)
code_text.gsub!(/#if canImport\(SwiftUI\) \&\& canImport\(Combine\)(.|\n)+#endif/,'')
system("rm -rf " + code_file)
aFile = File.new(code_file, 'w+')
aFile.syswrite(code_text)
aFile.close()
end