Skip to content

Releases: Azure/azure-sdk-for-ios

v0.4.3

18 Jul 12:42
Compare
Choose a tag to compare
v0.4.3 Pre-release
Pre-release

New Features

  • Adds ability to query boolean properties (fixes #130)
  • Better handles queries with strings containing single quotes (fixes #129)

v0.4.2

16 Jul 22:08
Compare
Choose a tag to compare
v0.4.2 Pre-release
Pre-release
v0.4.1 (53)

v0.4.1

28 May 16:01
Compare
Choose a tag to compare
v0.4.1 Pre-release
Pre-release

Bug fixes

v0.4.0

21 May 17:49
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

New Features

  • Updated to use Swift 5.0
  • Added support for querying a subset of documents properties (see the updated documentation for the usage of the new API functions).
  • Added overloads of execute(storedProcedure...) with a new parameter for the partition key.

v0.3.1

21 May 16:32
Compare
Choose a tag to compare
v0.3.1 Pre-release
Pre-release
v0.3.1

v0.3.0

09 Apr 00:54
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

New Features

  • Custom documents are now defined by conforming to the Document protocol. The protocol requires a partition key and an ID.
protocol Document: Codable {
    typealias PartitionKey = KeyPath<Self, String>
    static var partitionKey: PartitionKey?
    var id: String { get }
}

Example of a custom document Person:

final class Person: Document {
    static let partitionKey: PartitionKey? = \.birthCity

    let id: String
    let firstName: String
    let lastName: String
    let birthCity: String

    init(id: String, firstName: String, lastName: String, birthCity: String) {
        self.id = id
        self.firstName = firstName
        self.lastName = lastName
        self.birthCity = birthCity
    }
}
  • Geometric types Point, LineString and Polygon are now available. They can be used as types of properties in user defined documents and in queries (ST_DISTANCE, ST_INTERSECTS and ST_WITHIN).
final class User: Document {
    static let partitionKey: PartitionKey? = nil

    let name: String
    let location: Point

    init(name: String, location: Point) {
        self.name = name
        self.location = location
    }
}
let point = Point(latitude: 12.01, longitude: 98.322)
let polygon = Polygon(...)
let line = LineString(...)
let query = Query
    .select()
    .from("User")
    .where(distanceFrom: "location", to: pointOfInterest, isLessThan: 3000)
    .and("location", isWithin: polygon)
    .and("location", intersects: line)
  • Query results are now available offline. If a query is performed when there is no internet connectivity, the most recent fetched results for that query will be returned.

  • Function in AzureData related to collections, documents and attachments now accept an optional parameter partitionKey.

v0.2.0

03 Oct 20:48
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

Bug Fixes

  • Offline resources were sometimes saved in the wrong directory
  • Crash occurs when an offline resource is created as a child of another offline resource if the process creating the child resource is different from the process that created the parent resource
  • Pending offline writes were not always processed once the network becomes reachable
  • Broken dependencies causing carthage builds to fail

v0.1.7

13 Jun 17:17
Compare
Choose a tag to compare
v0.1.7 Pre-release
Pre-release

Bug Fixes

  • Issue #93: Create empty child directories for resources cached locally
  • Issue #92: Hide objective-c specific types from swift consumers
  • Issue #90: Unexpectedly found nil while unwrapping an Optional value

v0.1.6

13 Jun 16:43
072943c
Compare
Choose a tag to compare
v0.1.6 Pre-release
Pre-release
Merge pull request #94 from Azure/feature/93-create-empty-child-direc…

v0.1.5

08 Jun 20:19
Compare
Choose a tag to compare
v0.1.5 Pre-release
Pre-release
v0.1.5 add AzureMobile