forked from fingerprintjs/fingerprintjs-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FingerprintJS.podspec
52 lines (44 loc) · 1.65 KB
/
FingerprintJS.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
Pod::Spec.new do |spec|
# Name and version
spec.name = 'FingerprintJS'
spec.version = '1.5.0'
# License
spec.license = { type: 'MIT', file: 'LICENSE' }
# Contact information
spec.homepage = 'https://fingerprint.com/'
spec.authors = {
'Fingerprint': '[email protected]',
'Petr Palata': '[email protected]'
}
# FingerprintJS description
spec.summary = 'Lightweight device fingerprinting library for iOS'
spec.description = <<-DESC
FingerprintJS provides a simple API to generate a unique device fingerprint computed from a combination
of device signals (hardware information, available identifiers, OS information and device settings).
It operates only locally (i.e. no data are sent, seen or stored by a third party).
DESC
# Git location
spec.source = {
git: 'https://github.com/fingerprintjs/fingerprintjs-ios.git', tag: spec.version
}
# Build (deployment target, Swift versions)
spec.ios.deployment_target = '12.0'
spec.tvos.deployment_target = '12.0'
spec.swift_versions = ['5.7', '5.8', '5.9']
spec.default_subspec = 'Core'
# Core
spec.subspec 'Core' do |core|
core.source_files = 'Sources/FingerprintJS/**/*.{swift,h,m}'
core.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'Tests/FingerprintJSTests/**/*.{swift,h,m}'
end
core.dependency 'FingerprintJS/SystemControl'
end
# SystemControl
spec.subspec 'SystemControl' do |sysctl|
sysctl.source_files = 'Sources/SystemControl/**/*.{swift,h,m}'
sysctl.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'Tests/SystemControlTests/**/*.{swift,h,m}'
end
end
end