forked from sparrowcode/PermissionsKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSPPermissions.podspec
161 lines (140 loc) · 5.8 KB
/
SPPermissions.podspec
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
149
150
151
152
153
154
155
156
157
158
159
160
161
Pod::Spec.new do |s|
s.name = "SPPermissions"
s.version = "6.5.1"
s.summary = "Ask permissions on Swift. Available List, Dialog & Native interface. Can check state permission."
s.homepage = "https://github.com/ivanvorobei/SPPermissions"
s.source = { :git => "https://github.com/ivanvorobei/SPPermissions.git", :tag => s.version }
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Ivan Vorobei" => "[email protected]" }
s.requires_arc = true
s.ios.framework = 'UIKit'
s.tvos.framework = 'UIKit'
s.swift_version = ['4.2', '5.0']
s.ios.deployment_target = "11.0"
s.tvos.deployment_target = "11.0"
s.default_subspec = 'Core'
s.subspec 'Core' do |subspec|
subspec.source_files = "Sources/SPPermissions/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_COCOAPODS"
}
subspec.resource_bundles = {
"SPPermissions" => [
"Sources/SPPermissions/Resources/Localization/*.lproj/*.strings",
"Sources/SPPermissions/Resources/Assets.xcassets",
]
}
end
s.subspec 'Camera' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsCamera/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_CAMERA SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'PhotoLibrary' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsPhotoLibrary/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_PHOTOLIBRARY SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Notification' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsNotification/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_NOTIFICATION SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Microphone' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsMicrophone/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_MICROPHONE SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Calendar' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsCalendar/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_CALENDAR SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Contacts' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsContacts/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_CONTACTS SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Reminders' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsReminders/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_REMINDERS SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'SpeechRecognizer' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsSpeechRecognizer/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_SPEECH SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'LocationWhenInUse' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsLocationWhenInUse/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_LOCATION_WHENINUSE SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'LocationAlways' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsLocationAlways/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_LOCATION_ALWAYS SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Motion' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsMotion/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_MOTION SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Music' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsMusic/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_MUSIC SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Bluetooth' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsBluetooth/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_BLUETOOTH SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Tracking' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsTracking/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_TRACKING SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Siri' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsSiri/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_SIRI SPPERMISSIONS_COCOAPODS"
}
end
s.subspec 'Health' do |subspec|
subspec.dependency 'SPPermissions/Core'
subspec.source_files = "Sources/SPPermissionsHealth/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SPPERMISSIONS_HEALTH SPPERMISSIONS_COCOAPODS"
}
end
end