Latest 1.0.0
Homepage https://github.com/mithio/vault-oauth-ios
License MIT
Platforms ios 10.0
Dependencies AppAuth, SwiftyJSON, CryptoSwift
Authors

Mith VAULT SDK for iOS

This open-source library allows you to integrate VAULT into your app.
Learn more about about the provided samples, documentation, integrating the SDK into your app, and more at deck slide

FEATURE

INSTALLATION

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate MithVaultSDK into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'MithVaultSDK'

Then, run the following command:

$ pod install

USAGE

Configure the Info.plist file with an XML snippet that contains client ID, client secret, and minging key of your team.

<key>ClientId</key>
<string>[client ID]</string>
<key>ClientSecret</key>
<string>[client secret]</string>
<key>MiningKey</key>
<string>[minging key]</string>

If the deployment target of your app below iOS 11, also add the following to your Info.plist file

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>vault-[client ID]</string>
        </array>
    </dict>
</array>

If the deployment target of your app below iOS 11, add the following to your AppDelegate class.

Swift

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
    return MithVaultSDK.shared.open(url: url)
}

Objective-C

- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
    return [[MithVaultSDK shared] openWithUrl: url];
}

GIVE FEEDBACK

Please report bugs or issues to [email protected]

Latest podspec

{
    "name": "MithVaultSDK",
    "version": "1.0.0",
    "summary": "The SDK for 2019 Mithril Hackathon",
    "homepage": "https://github.com/mithio/vault-oauth-ios",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Alex Huang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mithio/vault-oauth-ios.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "MithVaultSDK/Classes/**/*",
    "swift_versions": "4.2",
    "dependencies": {
        "AppAuth": [
            "1.0.0.beta1"
        ],
        "SwiftyJSON": [
            "~> 4.2.0"
        ],
        "CryptoSwift": [
            "~> 0.14.0"
        ]
    }
}

Pin It on Pinterest

Share This