Skip to content

Commit 29eade5

Browse files
bnickelMCeley
andauthored
[PA-3288] Add enableInteractionReferencingPropertyCapture to interfaces (#147)
Co-authored-by: Michael Celey <[email protected]>
1 parent dfd194d commit 29eade5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

HeapSwiftCoreInterfaces.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'HeapSwiftCoreInterfaces'
3-
s.version = '0.5.2'
3+
s.version = '0.5.3'
44
s.license = { :type => 'MIT' }
55
s.summary = 'ABI stable interface package for HeapSwiftCore.'
66
s.homepage = 'https://heap.io'

HeapSwiftCoreInterfaces/HeapSwiftCoreInterfaces/Option.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,24 @@ public extension Option {
8686
static let messageBatchMessageLimit = register(name: "messageBatchMessageLimit", type: .integer)
8787
static let captureAdvertiserId = register(name: "captureAdvertiserId", type: .boolean)
8888
static let captureVendorId = register(name: "captureVendorId", type: .boolean)
89+
static let startSessionImmediately = register(name: "startSessionImmediately", type: .boolean)
90+
static let clearEventPropertiesOnNewUser = register(name: "clearEventPropertiesOnNewUser", type: .boolean)
8991
}
9092

9193
@objc
9294
public extension Option {
9395
static let disablePageviewAutocapture = register(name: "disablePageviewAutocapture", type: .boolean)
9496
static let disablePageviewTitleCapture = register(name: "disablePageviewTitleCapture", type: .boolean)
97+
9598
static let disableInteractionAutocapture = register(name: "disableInteractionAutocapture", type: .boolean)
9699
static let disableInteractionTextCapture = register(name: "disableInteractionTextCapture", type: .boolean)
97-
static let startSessionImmediately = register(name: "startSessionImmediately", type: .boolean)
98100
static let disableInteractionAccessibilityLabelCapture = register(name: "disableInteractionAccessibilityLabelCapture", type: .boolean)
101+
102+
@available(*, deprecated, message: "This feature is off by default in heap-ios-autocapture 0.5.0 and later. Use enableInteractionReferencingPropertyCapture to enable it.")
99103
static let disableInteractionReferencingPropertyCapture = register(name: "disableInteractionReferencingPropertyCapture", type: .boolean)
104+
static let enableInteractionReferencingPropertyCapture = register(name: "enableInteractionReferencingPropertyCapture", type: .boolean)
105+
100106
static let interactionHierarchyCaptureLimit = register(name: "interactionHierarchyCaptureLimit", type: .integer)
101-
static let clearEventPropertiesOnNewUser = register(name: "clearEventPropertiesOnNewUser", type: .boolean)
102107
}
103108

104109
extension Option {
@@ -126,6 +131,7 @@ extension Option {
126131
Option.startSessionImmediately,
127132
Option.disableInteractionAccessibilityLabelCapture,
128133
Option.disableInteractionReferencingPropertyCapture,
134+
Option.enableInteractionReferencingPropertyCapture,
129135
Option.interactionHierarchyCaptureLimit,
130136
Option.clearEventPropertiesOnNewUser,
131137
]

0 commit comments

Comments
 (0)