Skip to content

Commit

Permalink
DEMRUM-1188 Annotate deprecated API/methods (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
froseio authored Jan 31, 2025
1 parent b74ba5e commit 735b074
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
INFOPLIST_FILE = SplunkRum/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -1183,7 +1183,7 @@
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -1198,7 +1198,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
INFOPLIST_FILE = SplunkRum/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -1211,7 +1211,7 @@
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = YES;
SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down
6 changes: 6 additions & 0 deletions SplunkRumWorkspace/SplunkRum/SplunkRum/SplunkRum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public let DEFAULT_DISK_CACHE_MAX_SIZE_BYTES: Int64 = 25 * 1024 * 1024
/**
Memberwise initializer
*/
@available(*, deprecated, message: "No longer supported.")
@objc public init(allowInsecureBeacon: Bool = false,
debug: Bool = false,
globalAttributes: [String: Any] = [:],
Expand Down Expand Up @@ -74,6 +75,7 @@ public let DEFAULT_DISK_CACHE_MAX_SIZE_BYTES: Int64 = 25 * 1024 * 1024
/**
Copy constructor
*/
@available(*, deprecated, message: "No longer supported.")
@objc public init(opts: SplunkRumOptions) {
self.allowInsecureBeacon = opts.allowInsecureBeacon
self.debug = opts.debug
Expand All @@ -97,6 +99,7 @@ public let DEFAULT_DISK_CACHE_MAX_SIZE_BYTES: Int64 = 25 * 1024 * 1024
/**
Allows non-https beaconUrls. Default: false
*/
@available(*, deprecated, message: "No longer supported.")
@objc public var allowInsecureBeacon: Bool = false
/**
Turns on debug logging (including printouts of all spans) Default: false
Expand Down Expand Up @@ -155,6 +158,7 @@ public let DEFAULT_DISK_CACHE_MAX_SIZE_BYTES: Int64 = 25 * 1024 * 1024
/**
Enable caching created spans to disk. On successful exports the spans are deleted.
*/
@available(*, deprecated, message: "No longer supported.")
@objc public var enableDiskCache: Bool = false

/**
Expand Down Expand Up @@ -419,6 +423,7 @@ var splunkRumInitializeCalledTime = Date()
/**
Adds a callback whenever the sessionId changes.
*/
@available(*, deprecated, message: "No longer supported.")
public class func addSessionIdChangeCallback(_ callback: @escaping (() -> Void)) {
addSessionIdCallback(callback)
}
Expand Down Expand Up @@ -562,6 +567,7 @@ var splunkRumInitializeCalledTime = Date()
/**
Updates the current location. The latitude and longitude will be appended to every span and event.
*/
@available(*, deprecated, message: "No longer supported.")
@objc public class func setLocation(latitude: Double, longitude: Double) {
setGlobalAttributes(["location.lat": latitude, "location.long": longitude])
}
Expand Down
3 changes: 3 additions & 0 deletions SplunkRumWorkspace/SplunkRum/SplunkRum/SplunkRumBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import Foundation
self.rumAuth = rumAuth
}

@available(*, deprecated, message: "No longer supported.")
@discardableResult
@objc
public func allowInsecureBeacon(enabled: Bool) -> SplunkRumBuilder {
Expand Down Expand Up @@ -111,6 +112,7 @@ import Foundation
return self
}

@available(*, deprecated, message: "No longer supported.")
@discardableResult
@objc
public func spanDiskCacheMaxSize(size: Int64) -> SplunkRumBuilder {
Expand Down Expand Up @@ -153,6 +155,7 @@ import Foundation
return self
}

@available(*, deprecated, message: "No longer supported.")
@discardableResult
@objc
public func setSpanSchedulingDelay(seconds: TimeInterval) -> SplunkRumBuilder {
Expand Down

0 comments on commit 735b074

Please sign in to comment.