Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds LD_OBJC_EXCLUDE_PURE_SWIFT_APIS compiler flag. #386

Merged
merged 1 commit into from
May 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions LaunchDarkly/LaunchDarkly/ObjectiveC/ObjcLDConfig.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import Foundation

#if !(LD_OBJC_EXCLUDE_PURE_SWIFT_APIS)
import OSLog
#endif

/**
Use LDConfig to configure the LDClient. When initialized, a LDConfig contains the default values which can be changed as needed.
Expand Down Expand Up @@ -164,17 +167,20 @@ public final class ObjcLDConfig: NSObject {
set { config.wrapperName = newValue }
}


/// For use by wrapper libraries to report the version of the library in use. If the `wrapperName` has not been set this field will be ignored. Otherwise the verison strill will be included with the `wrapperName` in the "X-LaunchDarkly-Wrapper" header on requests to the LaunchDarkly servers.
@objc public var wrapperVersion: String? {
get { config.wrapperVersion }
set { config.wrapperVersion = newValue }
}

#if !(LD_OBJC_EXCLUDE_PURE_SWIFT_APIS)
/// Configure the logger that will be used by the rest of the SDK.
@objc public var logger: OSLog {
get { config.logger }
set { config.logger = newValue }
}
#endif

/**
Returns a Dictionary of identifying names to unique mobile keys to access secondary environments.
Expand Down