-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathTor.podspec
More file actions
80 lines (58 loc) · 2.41 KB
/
Tor.podspec
File metadata and controls
80 lines (58 loc) · 2.41 KB
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
Pod::Spec.new do |m|
m.name = 'Tor'
m.version = '409.5.1'
m.summary = 'Tor.framework is the easiest way to embed Tor in your iOS application.'
m.description = 'Tor.framework is the easiest way to embed Tor in your iOS application. Currently, the framework compiles in static versions of tor, libevent, openssl, and liblzma.'
m.homepage = 'https://github.com/iCepa/Tor.framework'
m.license = { :type => 'MIT', :file => 'LICENSE' }
m.authors = {
'Conrad Kramer' => 'conrad@conradkramer.com',
'Chris Ballinger' => 'chris@chatsecure.org',
'Mike Tigas' => 'mike@tig.as',
'Benjamin Erhart' => 'berhart@netzarchitekten.com', }
m.source = {
:git => 'https://github.com/iCepa/Tor.framework.git',
:branch => 'pure_pod',
:tag => "v#{m.version}" }
m.social_media_url = 'https://chaos.social/@tla'
m.ios.deployment_target = '15.0'
m.macos.deployment_target = '11.0'
m.prepare_command = "Tor/download.sh v#{m.version} \"tor tor-nolzma\" 01473369dc436bd4b27e5c2016d60a156f6b59dfa663276b753d9ceff5e06729 9b24f3494023a844fa52ed9ce04f5e967dfced61970f8969abf6e9db2d6763e0"
m.subspec 'Core' do |s|
s.requires_arc = true
s.source_files = 'Tor/Classes/Core/**/*'
end
m.subspec 'CTor' do |s|
s.dependency 'Tor/Core'
s.source_files = 'Tor/Classes/CTor/**/*'
s.vendored_frameworks = 'tor.xcframework'
s.libraries = 'z'
s.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_TARGET_SRCROOT}/tor.xcframework/ios-arm64/tor.framework/Headers"',
}
s.preserve_paths = 'tor.xcframework', 'download.sh'
end
m.subspec 'CTor-NoLZMA' do |s|
s.dependency 'Tor/Core'
s.source_files = 'Tor/Classes/CTor/**/*'
s.vendored_frameworks = 'tor-nolzma.xcframework'
s.libraries = 'z'
s.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_TARGET_SRCROOT}/tor-nolzma.xcframework/ios-arm64/tor-nolzma.framework/Headers"',
}
s.preserve_paths = 'tor-nolzma.xcframework', 'Tor/download.sh'
end
m.subspec 'GeoIP' do |s|
s.dependency 'Tor/CTor'
s.resource_bundles = {
'GeoIP' => ['Tor/Assets/geoip', 'Tor/Assets/geoip6']
}
end
m.subspec 'GeoIP-NoLZMA' do |s|
s.dependency 'Tor/CTor-NoLZMA'
s.resource_bundles = {
'GeoIP' => ['Tor/Assets/geoip', 'Tor/Assets/geoip6']
}
end
m.default_subspecs = 'CTor'
end