Skip to content

Commit

Permalink
Merge pull request #49 from Giphy/task/test-plist-om-flag
Browse files Browse the repository at this point in the history
Task/test plist om flag
  • Loading branch information
cgmaier authored Jul 2, 2019
2 parents 4b33c30 + 55aa949 commit a942df8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/GiphyCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Foundation

@objc public class GiphyCore: NSObject {
static let enableLogs = false
static let enableOM = false
static var enableOM = false
class func log(_ items: Any..., separator: String = " ", terminator: String = "\n") {
if GiphyCore.enableLogs {
print(items,separator,terminator)
Expand All @@ -36,6 +36,11 @@ import Foundation
#if os(iOS)
GiphyPingbacks.configure(apiKey: apiKey)
GiphyPingbacks.enableDebugLogging(false)

if let omVal = Bundle.main.object(forInfoDictionaryKey: "GiphyDisableOpenMeasurement") as? Bool,
omVal == true {
GiphyCore.enableOM = false
}
GiphyCore.setupOpenMeasurement()

#endif
Expand Down

0 comments on commit a942df8

Please sign in to comment.