Skip to content

Commit 3896b62

Browse files
Merge pull request #29 from AppcentMobile/feature/custom-plist
🎷 [FEATURE] Custom plist injection with dynamic properties.
2 parents 9f3477f + d997638 commit 3896b62

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/ACMNetworking/Library/Models/ACMPlistModel.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ open class ACMPlistModel: Codable {
2222
case isLogEnabled
2323
}
2424

25+
public init(baseURL: String, timeout: Double, isLogEnabled: Bool) {
26+
self.baseURL = baseURL
27+
self.timeout = timeout
28+
self.isLogEnabled = isLogEnabled
29+
}
30+
2531
open func encode(to encoder: Encoder) throws {
2632
var container = encoder.container(keyedBy: CodingKeys.self)
2733
try container.encode(baseURL, forKey: .baseURL)

0 commit comments

Comments
 (0)