Networking v4.0.0 Release Notes

Release Date: 2017-09-27 // over 6 years ago
  • ๐Ÿ‘ Xcode 9 and Swift 4 support!

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿ“‡ Renamed disableErrorLogging to isErrorLoggingEnabled
    • ๐Ÿ”„ Changed initializer to use URLSessionConfiguration instead of the custom ConfigurationType.

    Before

    let networking = Networking(baseURL: "http://httpbin.org", configurationType: .default)
    

    After

    var configuration = URLSessionConfiguration.defaultconfiguration.timeoutIntervalForRequest = TimeInterval(60) configuration.timeoutIntervalForResource = TimeInterval(6048000)let networking = Networking(baseURL: "http://httpbin.org", configuration: configuration)