-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathPostHog.podspec
More file actions
71 lines (62 loc) · 3.19 KB
/
PostHog.podspec
File metadata and controls
71 lines (62 loc) · 3.19 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
Pod::Spec.new do |s|
s.name = "PostHog"
s.version = "3.57.6"
s.summary = "The hassle-free way to add posthog to your iOS app."
s.description = <<-DESC
PostHog for iOS provides a single API that lets you
integrate with over 100s of tools.
DESC
s.homepage = "http://posthog.com/"
s.license = { :type => 'MIT' }
s.author = { "PostHog" => "engineering@posthog.com" }
s.source = { :git => "https://github.com/PostHog/posthog-ios.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/PostHog'
s.readme = "https://raw.githubusercontent.com/PostHog/posthog-ios/#{s.version.to_s}/README.md"
s.changelog = "https://raw.githubusercontent.com/PostHog/posthog-ios/#{s.version.to_s}/CHANGELOG.md"
s.ios.deployment_target = '13.0'
s.tvos.deployment_target = '13.0'
s.osx.deployment_target = "10.15"
s.watchos.deployment_target = "6.0"
s.visionos.deployment_target = "1.0"
s.swift_versions = "5.3"
s.frameworks = 'Foundation'
# Vendored PLCrashReporter source (not available on watchOS/visionOS)
s.libraries = 'c++'
s.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PLCR_PRIVATE PLCF_RELEASE_BUILD PLCRASHREPORTER_PREFIX=PH SWIFT_PACKAGE',
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_TARGET_SRCROOT}/vendor/PHPLCrashReporter/Dependencies/protobuf-c" "${PODS_TARGET_SRCROOT}/vendor/PHPLCrashReporter/Dependencies/protobuf-c/protobuf-c" "${PODS_TARGET_SRCROOT}/vendor/PHPLCrashReporter/Source"',
'SWIFT_INCLUDE_PATHS' => '$(inherited) "${PODS_TARGET_SRCROOT}/PostHog/PrivateModules/phlibwebp" "${PODS_TARGET_SRCROOT}/PostHog/PrivateModules/PHPLCrashReporter"'
}
s.source_files = [
'PostHog/**/*.{swift,h,hpp,m,mm,c,cpp}',
'vendor/libwebp/**/*.{h,c}',
'vendor/PHPLCrashReporter/Source/**/*.{h,hpp,m,mm,c,cpp,S}',
'vendor/PHPLCrashReporter/Dependencies/protobuf-c/**/*.h',
'vendor/PHPLCrashReporter/Dependencies/protobuf-c/**/*.c'
]
# Only PostHog's umbrella header should be public; vendored implementation headers stay private.
s.public_header_files = 'PostHog/PostHog.h'
s.private_header_files = [
'vendor/libwebp/**/*.h',
'vendor/PHPLCrashReporter/Source/**/*.{h,hpp}',
'vendor/PHPLCrashReporter/Dependencies/protobuf-c/**/*.h'
]
# Crash reporting is not supported on watchOS/visionOS
s.watchos.exclude_files = [
'vendor/PHPLCrashReporter/Source/**/*',
'vendor/PHPLCrashReporter/Dependencies/**/*'
]
s.visionos.exclude_files = [
'vendor/PHPLCrashReporter/Source/**/*',
'vendor/PHPLCrashReporter/Dependencies/**/*'
]
s.exclude_files = [
'vendor/PHPLCrashReporter/Source/PLCrashReport.proto'
]
s.resource_bundles = {
'PostHog' => 'PostHog/Resources/PrivacyInfo.xcprivacy',
'PHPLCrashReporter' => 'vendor/PHPLCrashReporter/Resources/PrivacyInfo.xcprivacy'
}
# Include the upload script and vendored notices in source distributions
s.preserve_paths = ['build-tools/upload-symbols.sh', 'vendor/PHPLCrashReporter/LICENSE', 'vendor/libwebp/COPYING', 'vendor/libwebp/PATENTS', 'PostHog/PrivateModules/**/*.modulemap']
end