diff --git a/Project.swift b/Project.swift index db484ea8..dccd28a6 100644 --- a/Project.swift +++ b/Project.swift @@ -116,6 +116,7 @@ let project = Project( destinations: .iOS, product: .framework, bundleId: "com.embraceio.EmbraceConfiguration", + deploymentTargets: .iOS("13.0"), sources: ["Sources/EmbraceConfiguration/**"], dependencies: [], settings: .settings(base: [ diff --git a/Sources/EmbraceConfiguration/NetworkPayloadCaptureRule.swift b/Sources/EmbraceConfiguration/NetworkPayloadCaptureRule.swift index 021ec9b0..f3fbf4d9 100644 --- a/Sources/EmbraceConfiguration/NetworkPayloadCaptureRule.swift +++ b/Sources/EmbraceConfiguration/NetworkPayloadCaptureRule.swift @@ -5,7 +5,7 @@ import Foundation @objc -public final class NetworkPayloadCaptureRule: NSObject { +public final class NetworkPayloadCaptureRule: NSObject, Decodable { public let id: String public let urlRegex: String public let statusCodes: [Int]? @@ -34,7 +34,7 @@ public final class NetworkPayloadCaptureRule: NSObject { } } -extension NetworkPayloadCaptureRule: Decodable { +extension NetworkPayloadCaptureRule { enum CodingKeys: String, CodingKey { case id case urlRegex = "url"