Swiftpack.co - Package - Backendless/Swift-SDK

Build Status CocoaPods Latest Version Platforms License: MIT

Backendless Swift-SDK

backendless.com

GETTING STARTED WITH BACKENDLESS

The simplest way to get started with Backendless is by using a Project Template for iOS:

  1. Register for your free account at https://develop.backendless.com
  2. Login to Backendless Console and create a new app
  3. Click the Download Project Template button: Download Project Template
  4. Double click the iOS icon, then select Objective-C or Swift: iOS Templates
  5. Click the Download button to download a template generated for your Backendless app
  6. Unzip the downloaded file into a directory, let's call it the Project Directory
  7. Open a Terminal window and change the currect directory to the Project Directory
  8. Run the pod install or pod update command. Once all of the pod data is downloaded/updated, the Xcode project workspace file will be created
  9. Open the .xcworkspace file to launch your project.

GETTING STARTED WITH COCOAPODS

To create a new project with CocoaPods, follow the instructions below:

  1. Create a new project in Xcode as you would normally, then close the project
  2. Open a Terminal window, and change the currect directory to the project's directory
  3. Create a Podfile by running the pod init command
  4. Open your Podfile with a text editor, and add the following:
pod 'BackendlessSwift'
  1. Save Podfile, return to Terminal window and run the pod install or pod update command. Once all of the pod data is downloaded/updated, the Xcode project workspace file will be created
  2. Open the .xcworkspace file to launch your project

GETTING STARTED WITH SWIFT PACKAGE MANAGER

Please follow the Apple guide or add the project as a dependency to your Package.swift:

// swift-tools-version:5.2

import PackageDescription

let package = Package(
    name: "SwiftSDK-test",
    products: [
        .executable(name: "SwiftSDK-test", targets: ["YourTargetName"])
    ],
    dependencies: [
        .package(name: "SwiftSDK", url: "https://github.com/Backendless/Swift-SDK", from: "6.0.2")
    ],
    targets: [
        .target(name: "YourTargetName", dependencies: ["SwiftSDK"], path: "./Path/To/Your/Sources")
    ]
)

Github

link
Stars: 8

Dependencies

Used By

Total: 0

Releases

6.0.5 - 2020-09-15 13:13:21

  • added OAuth login methods:
func loginWithOauth2(providerName: String, token: String, fieldsMapping: [String : String], stayLoggedIn: Bool, responseHandler: ((BackendlessUser) -> Void)!, errorHandler: ((Fault) -> Void)!)

func loginWithOauth2(providerName: String, token: String, guestUser: BackendlessUser, fieldsMapping: [String : String], stayLoggedIn: Bool, responseHandler: ((BackendlessUser) -> Void)!, errorHandler: ((Fault) -> Void)!)

func loginWithOauth1(providerName: String, token: String, tokenSecret: String, fieldsMapping: [String : String], stayLoggedIn: Bool, responseHandler: ((BackendlessUser) -> Void)!, errorHandler: ((Fault) -> Void)!)

func loginWithOauth1(providerName: String, token: String, tokenSecret: String, guestUser: BackendlessUser, fieldsMapping: [String : String], stayLoggedIn: Bool, responseHandler: ((BackendlessUser) -> Void)!, errorHandler: ((Fault) -> Void)!)

6.0.4.1 - 2020-08-31 08:27:43

  • fixed issue when FileService rename(), move(), copy() methods responses URLs were encased in quotation marks

6.0.4 - 2020-08-27 09:39:04

  • fixed bug with FileService rename(), move(), copy() methods response
  • fixed FileService tests

6.0.3 - 2020-08-19 15:31:38

  • added SPM support
  • fixed the JSONSerialization issue in custom services

6.0.2 - 2020-08-11 14:43:43

  • added support for JSON data type, added the JSONUpdateBuilder class
  • fixed bug when custom service method returns null in response
  • added tests for the RT Relations Listeners

6.0.1.1 - 2020-07-23 10:02:37

  • fixed transactions fail issue when object is BackendlessUser

6.0.1 - 2020-07-22 16:37:18

  • added RT Listeners for Relations support
  • fixed transactions fail issue when object is BackendlessUser
  • class approach fixed to handle JSON column type correctly

6.0 - 2020-06-17 10:29:18

  • added transactions API
  • most of the get/set methods are marked as deprecated andtheir corresponding properties changed to public. These getters and setters are still available, but will be removed in the future, please use the . to access the properties
  • fixed the issue when relationsDepth = 0 was sent to server even when it wasn't set manually

5.7.17 - 2020-05-29 11:23:08

  • the currentUser property in UserSevice changed to public and can be set manually. Current user is saved after the application restarts only when stayLoggedIn = true

5.7.16 - 2020-05-20 08:25:03

  • the BackendlessUser and UserService properties became public, get/set methods are marked as deprecated
  • fixed crash when saving object which doesn't have the objectId property
  • fixed the BackendlessDataCollection issue when trying to delette the last object from the collection
  • the Backendless Identifiable protocol for the BackendlessDataCollection renamed to BLIdentifiable to avoid the confusion with Swift's Identifiable protocol

5.7.15 - 2020-05-07 11:43:09

  • fixed issue when custom class object attached to current BackendlessUser was Null when stayLoggedIn is true

5.7.14 - 2020-05-06 08:41:59

  • fixed issue when user property is object of custom class
  • fixed issue with class casting when Bunlde Name and Bundle Executable Name have different values

5.7.13 - 2020-04-30 16:47:13

  • fixed the FileService remove method response
  • tests fixed

5.7.12 - 2020-04-28 13:37:09

  • the EmailBodyparts class renamed to the EmailBodyParts
  • fixed issue with BLGeometry in BackendlessUser properties

5.7.11 - 2020-04-27 09:51:04

  • fixed issue with current user after the Twitter login

5.7.10 - 2020-04-22 07:46:26

  • DataQueryBuilder excludedProperties renamed to excludeProperties

5.7.9 - 2020-04-10 12:59:17

  • added support for smart-text in rich media url

5.7.8 - 2020-04-06 10:04:30

  • fixed issue with Backendless.shared.customService.invoke callback crash

5.7.7 - 2020-03-17 10:35:21

  • the properties of DataQueryBuilder and LoadRelationsQueryBuilder fixed to return all values when user set only one property as empty string
  • the addAllProperties, excludeProperty, excludeProperties methods added to the DataQueryBuilder
  • fixed issue when DataStore methods didn't process Backendless types in response

5.7.6 - 2020-02-25 15:55:39

  • fixed class to table mapping issue
  • fixed type casting for Backendless types

5.7.5 - 2020-02-20 15:41:29

  • fixed issue when parsing Geometry types for Flutter-SDK

5.7.4 - 2020-02-14 18:46:56

  • code refactored
  • added the PersistenceHelper class
  • classes related to current GeoService marked as deprecated
  • fixed Backendless system classes conversion when working with dictionary approach

5.7.3 - 2020-01-28 12:46:09

  • fixed isValidUserToken method to return error when Internet connection is not available
  • refactored Fault contructor to handle URLSession errors correctly
  • fixed tests according to the last server changes

5.7.2 - 2020-01-24 08:37:47

  • fixed the DataQueryBuilder properties property to work correctly in search queries
  • fixed BLGeometry tests and methods that allow to get geometry objects from WKT or GeoJSON
  • BackendlessDataCollection fixed

5.7.1 - 2020-01-15 09:26:25

  • fixed issue when BackendlessUser object lost its objectId while decoding
  • fixed issue when RT disconnect listener didn't trigger when internet disappeared

5.7.0 - 2020-01-10 12:39:07

  • added Spatial Data support
  • added guest login with social account:
public func loginWithFacebook(accessToken: String, guestUser: BackendlessUser, fieldsMapping: [String: String], responseHandler: ((BackendlessUser) -> Void)!, errorHandler: ((Fault) -> Void)!)

func loginWithTwitter(authToken: String, authTokenSecret: String, guestUser: BackendlessUser, fieldsMapping: [String: String], responseHandler: ((BackendlessUser) -> Void)!, errorHandler: ((Fault) -> Void)!)

func loginWithGoogle(accessToken: String, guestUser: BackendlessUser, fieldsMapping: [String: String], responseHandler: ((BackendlessUser) -> Void)!, errorHandler: ((Fault) -> Void)!)
  • added function to DataQueryBuilder and LoadRelationsQueryBuilder:
func addProperties(properties: String...)
  • fixed issue when RT-subscriptions were lost after socket reconnection

5.6.6 - 2019-12-06 10:09:14

  • fixed the geolocation search in radius issue when all category points returned

5.6.5 - 2019-11-29 09:16:22

  • fixed LoadRelationsQueryBuilder issue with Users table
  • fixed problems with saving/getting objects with File Reference property

5.6.4 - 2019-11-21 13:21:12

  • customized encoding/decoding for DataQueryBuilder

5.6.3 - 2019-11-19 15:52:10

  • fixed Units in the BackendlessGeoQuery which was broken for Objective-C in v5.6.2