-
Notifications
You must be signed in to change notification settings - Fork 484
/
Podfile
103 lines (83 loc) · 2.98 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
use_frameworks!
MAC_TARGET_VERSION = '10.14'
IOS_TARGET_VERSION = '14'
def mac_pods
pod 'MASShortcut', :git => 'https://github.com/glushchenko/MASShortcut.git', :branch => 'master'
end
def ios_pods
pod 'SSZipArchive', :git => 'https://github.com/glushchenko/ZipArchive.git', :branch => 'master'
pod 'DropDown', '2.3.13'
pod 'SwipeCellKit', :git => 'https://github.com/glushchenko/SwipeCellKit.git', :branch => 'develop'
pod 'CropViewController'
end
def common_pods
pod 'Highlightr', :git => 'https://github.com/glushchenko/Highlightr.git', :branch => 'master'
pod 'libcmark_gfm', :git => 'https://github.com/glushchenko/libcmark_gfm', :branch => 'master'
pod 'RNCryptor', '~> 5.1.0'
pod 'SSZipArchive', :git => 'https://github.com/glushchenko/ZipArchive.git', :branch => 'master'
pod 'Punycode'
pod 'SwiftSoup', :git => 'https://github.com/scinfu/SwiftSoup', :commit => 'e2d11208519549c2e5798d70190472045633f22f'
end
def framework_pods
pod 'SwiftLint', '~> 0.30.0'
end
target 'FSNotesCore macOS' do
platform :osx, MAC_TARGET_VERSION
pod 'MASShortcut', :git => 'https://github.com/glushchenko/MASShortcut.git', :branch => 'master'
framework_pods
end
target 'FSNotes' do
platform :osx, MAC_TARGET_VERSION
mac_pods
common_pods
end
target 'FSNotes (iCloud)' do
platform :osx, MAC_TARGET_VERSION
mac_pods
common_pods
end
target 'FSNotes iOS' do
platform :ios, IOS_TARGET_VERSION
common_pods
ios_pods
end
target 'FSNotes iOS Share Extension' do
platform :ios, IOS_TARGET_VERSION
pod 'Highlightr', :git => 'https://github.com/glushchenko/Highlightr.git', :branch => 'master'
pod 'RNCryptor', '~> 5.1.0'
pod 'SSZipArchive', :git => 'https://github.com/glushchenko/ZipArchive.git', :branch => 'master'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'cmark-gfm-swift-macOS'
source_files = target.source_build_phase.files
dummy = source_files.find do |file|
file.file_ref.name == 'scanners.re'
end
source_files.delete dummy
dummyM = source_files.find do |file|
file.file_ref.name == 'module.modulemap'
end
source_files.delete dummyM
puts "Deleting source file #{dummy.inspect} from target #{target.inspect}."
end
if target.name == 'libcmark_gfm-macOS' ||
target.name == 'MASShortcut' ||
target.name == 'SSZipArchive-macOS' ||
target.name == 'RNCryptor-macOS'
target.build_configurations.each do |config|
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.14'
end
end
if target.name == 'SSZipArchive-iOS' ||
target.name == 'RNCryptor-iOS' ||
target.name == 'Highlightr-iOS' ||
target.name == 'DropDown' ||
target.name == 'DKCamera' ||
target.name == 'CropViewController'
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
end