-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
149 lines (126 loc) · 4.89 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
use_frameworks!
install! 'cocoapods',
:deterministic_uuids => false
platform :ios, '12.0'
workspace 'Ginlo'
def allTargets
['ginlo', 'ginlo-staging', 'ginloba', 'ginlo-ba-staging' ]
end
JFBCryptVersion = '0.1'
AFNetworkingVersion = '4.0.1'
MagicalRecordVersion = '2.4.0'
NSHashVersion = '1.2.0'
ObjectiveZipVersion = '1.0.5'
ZXingObjCVersion = '3.6.7'
HPGrowingTextViewVersion = '1.1'
SentryVersion = '5.2.2'
SQLCipherVersion = '4.4.0'
CocoaLumberjackVersion = '3.6.2'
GiphyVersion = '2.1.20'
JitsiMeetSDKVersion = '6.0.0'
def podsApp
pod 'SQLCipher', SQLCipherVersion, :inhibit_warnings => true
pod 'JFBCrypt', :path => './PatchedPods/JFBCrypt', :inhibit_warnings => true
pod 'AFNetworking', :path => './PatchedPods/AFNetworking', :subspecs => ['Reachability', 'Serialization', 'Security', 'NSURLSession']
pod 'MagicalRecord', :path => './PatchedPods/MagicalRecord'
pod 'NSHash', NSHashVersion
pod 'objective-zip', ObjectiveZipVersion
pod 'ZXingObjC', :git => 'https://github.com/zxingify/zxingify-objc.git', :tag => ZXingObjCVersion
pod 'HPGrowingTextView', HPGrowingTextViewVersion, :inhibit_warnings => true
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => SentryVersion
pod 'CocoaLumberjack/Swift', CocoaLumberjackVersion
pod 'JitsiMeetSDK', JitsiMeetSDKVersion
pod 'Giphy', GiphyVersion
end
def podsShareExtension
pod 'AFNetworking', :path => './PatchedPods/AFNetworking', :subspecs => ['Reachability', 'Serialization', 'Security', 'NSURLSession']
pod 'HPGrowingTextView', HPGrowingTextViewVersion, :inhibit_warnings => true
pod 'NSHash', NSHashVersion
pod 'SQLCipher', SQLCipherVersion, :inhibit_warnings => true
pod 'JFBCrypt', :path => './PatchedPods/JFBCrypt', :inhibit_warnings => true
pod 'CocoaLumberjack/Swift', CocoaLumberjackVersion
end
def podsNotificationExtension
pod 'AFNetworking', :path => './PatchedPods/AFNetworking', :subspecs => ['Reachability', 'Serialization', 'Security', 'NSURLSession']
pod 'SQLCipher', SQLCipherVersion, :inhibit_warnings => true
pod 'JFBCrypt', :path => './PatchedPods/JFBCrypt', :inhibit_warnings => true
pod 'CocoaLumberjack/Swift', CocoaLumberjackVersion
end
def podsCore
pod 'JFBCrypt', :path => './PatchedPods/JFBCrypt', :inhibit_warnings => true
pod 'AFNetworking', :path => './PatchedPods/AFNetworking', :subspecs => ['Reachability', 'Serialization', 'Security', 'NSURLSession']
pod 'MagicalRecord', :path => './PatchedPods/MagicalRecord'
pod 'NSHash', NSHashVersion
pod 'objective-zip', ObjectiveZipVersion
pod 'ZXingObjC', :git => 'https://github.com/zxingify/zxingify-objc.git', :tag => ZXingObjCVersion
pod 'SQLCipher', SQLCipherVersion, :inhibit_warnings => true
pod 'CocoaLumberjack/Swift', CocoaLumberjackVersion
pod 'JitsiMeetSDK', JitsiMeetSDKVersion
pod 'Giphy', GiphyVersion
end
target 'SIMSmeCore' do
project 'SIMSmeCoreLib/SIMSmeCoreLib.xcodeproj'
podsCore
end
target 'shareExtension' do
project 'Ginlo.xcodeproj'
podsShareExtension
end
target 'shareExtensionBA' do
project 'GinloBusiness.xcodeproj'
podsShareExtension
end
target 'notificationExtension' do
project 'Ginlo.xcodeproj'
podsNotificationExtension
end
target 'notificationExtensionBA' do
project 'GinloBusiness.xcodeproj'
podsNotificationExtension
end
target 'notificationExtensionStaging' do
project 'GinloStaging.xcodeproj'
podsNotificationExtension
end
target 'SIMSmeUILib' do
project 'SIMSmeUILib/SIMSmeUILib.xcodeproj'
podsApp
end
target 'ginlo' do
podsApp
project 'Ginlo.xcodeproj'
end
target 'ginlo-staging' do
podsApp
project 'GinloStaging.xcodeproj'
end
target 'ginloba' do
podsApp
project 'GinloBusiness.xcodeproj'
end
target 'ginlo-ba-staging' do
podsApp
project 'GinloBusinessStaging.xcodeproj'
end
post_install do |installer|
xcode_base_version = `xcodebuild -version | grep 'Xcode' | awk '{print $2}' | cut -d . -f 1`
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'YES'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
if (target.name == "MagicalRecord")
config.build_settings['OTHER_CFLAGS'] ||= ['$(inherited)', '-DMR_LOGGING_DISABLED=1']
end
# For xcode 15+ only
if config.base_configuration_reference && Integer(xcode_base_version) >= 15
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
end
end
end
Dir.chdir './src/'
FileUtils.ln_s '../Pods', '.', force: true
Dir.chdir '..'
end