-
Notifications
You must be signed in to change notification settings - Fork 323
/
Permission.podspec
87 lines (69 loc) · 2.79 KB
/
Permission.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
Pod::Spec.new do |s|
s.name = 'Permission'
s.version = '3.1.2'
s.license = 'MIT'
s.homepage = 'https://github.com/delba/Permission'
s.author = { 'Damien' => '[email protected]' }
s.summary = 'A unified API to ask for permissions on iOS'
s.source = { :git => 'https://github.com/delba/Permission.git', :tag => s.version }
s.swift_version = '5.1'
s.weak_framework = 'Speech'
s.ios.deployment_target = '10.0'
s.requires_arc = true
s.default_subspec = 'Core'
s.subspec 'Core' do |co|
co.source_files = 'Source/**/*.{swift, h}'
end
s.subspec 'Bluetooth' do |bl|
bl.dependency 'Permission/Core'
bl.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_BLUETOOTH' }
end
s.subspec 'Camera' do |cm|
cm.dependency 'Permission/Core'
cm.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_CAMERA' }
end
s.subspec 'Contacts' do |cn|
cn.dependency 'Permission/Core'
cn.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_CONTACTS' }
end
s.subspec 'Events' do |ev|
ev.dependency 'Permission/Core'
ev.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_EVENTS' }
end
s.subspec 'Location' do |lo|
lo.dependency 'Permission/Core'
lo.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_LOCATION' }
end
s.subspec 'Microphone' do |mi|
mi.dependency 'Permission/Core'
mi.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_MICROPHONE' }
end
s.subspec 'Motion' do |mo|
mo.dependency 'Permission/Core'
mo.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_MOTION' }
end
s.subspec 'Notifications' do |no|
no.dependency 'Permission/Core'
no.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_NOTIFICATIONS' }
end
s.subspec 'Photos' do |ph|
ph.dependency 'Permission/Core'
ph.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_PHOTOS' }
end
s.subspec 'Reminders' do |re|
re.dependency 'Permission/Core'
re.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_REMINDERS' }
end
s.subspec 'SpeechRecognizer' do |rs|
rs.dependency 'Permission/Core'
rs.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_SPEECH_RECOGNIZER' }
end
s.subspec 'MediaLibrary' do |ml|
ml.dependency 'Permission/Core'
ml.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_MEDIA_LIBRARY' }
end
s.subspec 'Siri' do |ab|
ab.dependency 'Permission/Core'
ab.pod_target_xcconfig = { 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'PERMISSION_SIRI' }
end
end