Skip to content

Release Notes v1.0.5

Compare
Choose a tag to compare
@cesar-oyarzun-m cesar-oyarzun-m released this 02 Nov 16:29
· 39 commits to master since this release
  • This release works with Xcode 8.0 and Swift 3.0, it also has updated all the project Dependency to the latest of each one, this includes improvements in Alamofire for all the API request and Socket IO connection for the real time communication.
  • If you're using Xcode 7.3 you will have to update to Xcode 8.0. Note this version only works for IOS 9 and up this is because apple is not giving support to IOS 8 anymore.

Library Changes

  • Promisekit Updated from 3.2.1 to 4.0
  • Alamofire Updated from 3.1.5 to 4.0.1
  • SocketIO Updated from 4.1.2 to 8.0.2
  • JSONWebToken Updated from 1.4.1 to 2.0.1

Breaking Changes

  • Promisekit now uses .catch instead of .error.
    Example
ExpSwift.start(host,"74c05552-5b9f-4d06-a3f8-8299ff1e1e3a","7b674d4ab63e80c62591ef3fcb51da1505f420d2a9ffda8ed5d24aa6384ad1c1f10985a4fc858b046b065bcdacc105dd").then{ result -> Void in
            debugPrint(result)
            }.catch { error in
                debugPrint(error)
            }
  • All the dictionary now use Any insetead of AnyObject.
var payload:Dictionary<String,Any> = ["opening":"knock knock?"]
    channel.broadcast("hi", payload: payload1, timeout: "2000").then { result -> Void in
        debugPrint(result)
    }
feed.getData().then { (data: [Any]) -> Void in
        debugPrint(data)
    }.catch { error in
    debugPrint(error)
    }
  • For the data calls now Swift needs to specify the class
 ExpSwift.getData("cats", key: "fluffy2").then { (data:ExpSwift.Data) -> Void in
           debugPrint(data.getDocument().description)
            }.catch { error in
                debugPrint(error)
        }
ExpSwift.findData(["limit":1, "skip":0, "sort":"name"]).then { (datas: SearchResults<ExpSwift.Data>) -> Void in
            for data:ExpSwift.Data in datas
            {
                debugPrint(data.getDocument().description)
            }
            }.catch { error in
                debugPrint(error)
        }