Skip to content

Commit

Permalink
add isWebViewInspectionEnabled config field (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apekka authored Aug 1, 2024
1 parent 4aa07eb commit 9d13eb3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ios/AirshipFrameworkProxy/ProxyConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,25 @@ public struct ProxyConfig: Codable {
public let itunesID: String?
public let messageCenterStyleConfig: String?
public let useUserPreferredLocale: Bool?

public let isWebViewInspectionEnabled: Bool?

public init(
itunesID: String? = nil,
messageCenterStyleConfig: String? = nil,
useUserPreferredLocale: Bool? = nil
useUserPreferredLocale: Bool? = nil,
isWebViewInspectionEnabled: Bool? = nil
) {
self.itunesID = itunesID
self.messageCenterStyleConfig = messageCenterStyleConfig
self.useUserPreferredLocale = useUserPreferredLocale
self.isWebViewInspectionEnabled = isWebViewInspectionEnabled
}

private enum CodingKeys: String, CodingKey {
case itunesID = "itunesId"
case messageCenterStyleConfig
case useUserPreferredLocale
case isWebViewInspectionEnabled
}
}

Expand Down Expand Up @@ -230,6 +233,10 @@ extension AirshipConfig {
self.itunesID = itunesID
}

if let isWebViewInspectionEnabled = proxyConfig.ios?.isWebViewInspectionEnabled {
self.isWebViewInspectionEnabled = isWebViewInspectionEnabled
}

if let messageCenterStyleConfig = proxyConfig.ios?.messageCenterStyleConfig {
self.messageCenterStyleConfig = messageCenterStyleConfig
}
Expand Down

0 comments on commit 9d13eb3

Please sign in to comment.