-
-
Notifications
You must be signed in to change notification settings - Fork 462
/
PermissionsKit.podspec
159 lines (139 loc) · 5.91 KB
/
PermissionsKit.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
Pod::Spec.new do |s|
s.name = "PermissionsKit"
s.version = "11.0.0"
s.summary = "Ask permissions with ready-use interface. You can check status permission and if it has been requested before. Support SwiftUI."
s.homepage = "https://github.com/sparrowcode/PermissionsKit"
s.source = { :git => "https://github.com/sparrowcode/PermissionsKit.git", :tag => s.version }
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Sparrow Code" => "[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/PermissionsKit/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_COCOAPODS"
}
subspec.resource_bundles = {
"PermissionsKit" => [
"Sources/PermissionsKit/Resources/Localization/*.lproj/*.strings"
]
}
end
s.subspec 'CameraPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/CameraPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_CAMERA PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'PhotoLibraryPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/PhotoLibraryPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_PHOTOLIBRARY PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'NotificationPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/NotificationPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_NOTIFICATION PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'MicrophonePermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/MicrophonePermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_MICROPHONE PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'CalendarPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/CalendarPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_CALENDAR PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'ContactsPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/ContactsPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_CONTACTS PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'RemindersPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/RemindersPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_REMINDERS PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'SpeechRecognizerPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/SpeechRecognizerPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_SPEECH PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'LocationPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/LocationPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_LOCATION PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'MotionPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/MotionPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_MOTION PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'MediaLibraryPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/MediaLibraryPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_MEDIA_LIBRARY PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'BluetoothPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/BluetoothPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_BLUETOOTH PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'TrackingPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/TrackingPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_TRACKING PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'FaceIDPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/FaceIDPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_FACEID PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'SiriPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/SiriPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_SIRI PERMISSIONSKIT_COCOAPODS"
}
end
s.subspec 'HealthPermission' do |subspec|
subspec.dependency 'PermissionsKit/Core'
subspec.source_files = "Sources/HealthPermission/**/*.swift"
subspec.pod_target_xcconfig = {
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "PERMISSIONSKIT_HEALTH PERMISSIONSKIT_COCOAPODS"
}
end
end