Latest 0.0.5
Homepage https://github.com/mygaru-technologies-limited/mygarusdkios
License Apache License, Version 2.0
Platforms ios 11.0
Dependencies RxSwift, RxCocoa, RxOptional, Alamofire, AlamofireImage, Moya, Moya/RxSwift, ObjectMapper, Moya-ObjectMapper, Moya-ObjectMapper/RxSwift, KeychainSwift, Starscream
Frameworks UIKit, CoreLocation, CoreAudio, EventKit, Contacts, Photos
Authors

CI Status
Version
License
Platform

Warning

!! This SDK is not considered ready for production use.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

MyGaruSDK compatible with both Swift and Objective-C.
You will need Swift 5.0+ and Xcode 10.2+

Getting API Key

First, you’ll need to get your myGaruSDK iOS API key. To find these, just contact our team [email protected] .

Installation

MyGaruSDK is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'MyGaruSDK'

Initialization

For every file that are using MyGaruSDK, add:

import MyGaruSDK

Then, initialize MyGaruSDK by adding the following to your AppDelegate class:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    MyGaruSDK.initialization(apiKey: "YOUR_API_KEY", appIdentifier: "APP_BUNDLE_ID")
}

Usage

To take advantage of MyGaruSDK functionality, your user must login first into MyGaru. For this, present login flow use following code:

do {
    let myGaruVC = try MyGaruSDK.showDashboard()
    self.present(myGaruVC, animated: true, completion: nil)
} catch (let error) {
    print("Couldn't start an SDK: (error)")
}

To send data to MyGaru, use following:

do {
    let parameters = ["lucky_number": 42]
    try MyGaruSDK.sendData(description: "Test Collection", parameters: parameters) { (result: Bool) in
        result ? print("YAY!") : print("NOOO!")
    }
} catch (let error) {
    print("Couldn't send data: (error)")
}

See Example project for more information.

Author

myGaru Technologies,
Oleg Agapov, [email protected]

License

MyGaruSDK is available under the Apache License, Version 2.0. See the LICENSE file for more info.

Latest podspec

{
    "name": "MyGaruSDK",
    "version": "0.0.5",
    "summary": "SDK for MyGaru.",
    "description": "Protect user data",
    "homepage": "https://github.com/mygaru-technologies-limited/mygarusdkios",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Oleg Agapov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mygaru-technologies-limited/mygarusdkios.git",
        "tag": "0.0.5"
    },
    "platforms": {
        "ios": "11.0"
    },
    "swift_version": "5.0",
    "vendored_frameworks": "MyGaruSDK/Frameworks/MyGaruSDK.framework",
    "frameworks": [
        "UIKit",
        "CoreLocation",
        "CoreAudio",
        "EventKit",
        "Contacts",
        "Photos"
    ],
    "dependencies": {
        "RxSwift": [
            "~> 4.4"
        ],
        "RxCocoa": [
            "~> 4.4"
        ],
        "RxOptional": [
            "~> 3.6"
        ],
        "Alamofire": [
            "~> 4.8"
        ],
        "AlamofireImage": [
            "~> 3.5"
        ],
        "Moya": [
            "~> 12.0"
        ],
        "Moya/RxSwift": [],
        "ObjectMapper": [
            "~> 3.4"
        ],
        "Moya-ObjectMapper": [
            "~> 2.8"
        ],
        "Moya-ObjectMapper/RxSwift": [],
        "KeychainSwift": [
            "~> 13.0"
        ],
        "Starscream": [
            "~> 3.1"
        ]
    }
}

Pin It on Pinterest

Share This