forked from glushchenko/fsnotes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
96 lines (77 loc) · 2.66 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
use_frameworks!
MAC_TARGET_VERSION = '10.11'
IOS_TARGET_VERSION = '10'
def mac_pods
pod 'MASShortcut', :git => 'https://github.com/glushchenko/MASShortcut.git', :branch => 'master'
end
def ios_pods
pod 'Solar', '~> 2.0'
pod 'NightNight', :git => 'https://github.com/glushchenko/NightNight.git', :branch => 'master'
pod 'DKImagePickerController', '4.1.4'
pod 'GSImageViewerController'
pod 'SSZipArchive', :git => 'https://github.com/glushchenko/ZipArchive.git', :branch => 'master'
end
def common_pods
pod 'Highlightr', :git => 'https://github.com/glushchenko/Highlightr.git', :branch => 'master'
pod 'Down', '~> 0.8.3'
pod 'cmark-gfm-swift', :git => 'https://github.com/glushchenko/cmark-gfm-swift.git', :branch => 'master'
pod 'RNCryptor', '~> 5.1.0'
pod 'SSZipArchive', :git => 'https://github.com/glushchenko/ZipArchive.git', :branch => 'master'
end
def framework_pods
pod 'SwiftLint', '~> 0.30.0'
end
target 'FSNotesCore iOS' do
platform :ios, IOS_TARGET_VERSION
pod 'NightNight', :git => 'https://github.com/glushchenko/NightNight.git', :branch => 'master'
framework_pods
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 Documents)' do
platform :osx, MAC_TARGET_VERSION
mac_pods
common_pods
end
target 'FSNotes (Notarized)' 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 'NightNight', :git => 'https://github.com/glushchenko/NightNight.git', :branch => 'master'
pod 'RNCryptor', '~> 5.1.0'
pod 'SSZipArchive', :git => 'https://github.com/glushchenko/ZipArchive.git', :branch => 'master'
pod 'Kanna', '~> 5.0.0'
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
end
end