Repository navigation
Expand file tree
/
Copy pathKontextKit.podspec
More file actions
61 lines (54 loc) · 2.67 KB
/
Copy pathKontextKit.podspec
File metadata and controls
61 lines (54 loc) · 2.67 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
Pod::Spec.new do |s|
s.name = "KontextKit"
s.version = "0.3.0"
s.summary = "Kontext shared native modules for iOS SDKs"
s.description = <<-DESC
KontextKit bundles the iOS-native primitives shared across every Kontext
SDK that targets iOS — sdk-swift, sdk-react-native (iOS), and sdk-flutter
(iOS). It contains:
- System-info collectors (hardware, OS, screen, battery, audio, network).
- IDFA/IDFV access (`AdvertisingIdProvider`) and ATT prompts
(`TrackingAuthorizationManager`).
- StoreKit attribution (`SKAdNetworkManager`, `SKOverlayManager`,
`SKStoreProductManager`, `SKAdNetworkIdsProvider`).
- IAB OMID (Open Measurement) integration via the bundled
`OMSDK_Kontextso.xcframework`, in the `KontextKit/OMSDK` subspec
(`KontextKitOM` for SPM), so only the SDKs that measure with OMID
link the binary. The xcframework is redistributed unmodified under
the IAB Tech Lab OM License v1.1 (see `Frameworks/OMLICENSE`);
KontextKit's own Swift sources remain Apache-2.0.
- IAB TCF (Transparency & Consent Framework) UserDefaults reader.
- Brightness control, in-app browser (`SFSafariViewController`).
The point is to write platform-utility code once and share it across SDKs
rather than re-deriving it three times. See the README for the decision
rule and naming convention.
DESC
s.homepage = "https://github.com/kontextso/kontextkit-ios"
s.license = { :type => "Apache-2.0", :file => "LICENSE" }
s.authors = { "Kontext" => "support@kontext.so" }
s.platforms = { :ios => "14.0" }
s.source = { :git => "https://github.com/kontextso/kontextkit-ios.git", :tag => "#{s.version}" }
s.default_subspecs = "Core"
s.subspec "Core" do |core|
core.source_files = "Sources/KontextKit/**/*.swift"
core.resource_bundles = {
"KontextKit" => ["Sources/KontextKit/PrivacyInfo.xcprivacy"]
}
end
s.subspec "OMSDK" do |om|
om.dependency "KontextKit/Core"
om.source_files = "Sources/KontextKitOM/**/*.swift"
om.resource_bundles = {
"KontextKitOM" => ["Sources/KontextKitOM/omsdk-v1.js"]
}
om.vendored_frameworks = "Frameworks/OMSDK_Kontextso.xcframework"
# IAB Tech Lab OM License v1.1 — required (Section 4(a)) to be
# shipped with any Object-form redistribution of the OMSDK
# xcframework. `preserve_paths` keeps the file in the published
# pod without compiling or processing it.
om.preserve_paths = "Frameworks/OMLICENSE"
end
s.frameworks = "SafariServices", "AdSupport", "AppTrackingTransparency",
"StoreKit", "CoreTelephony", "AVFoundation", "Network", "WebKit"
s.swift_version = "5.9"
end