Skip to content

mithio/vault-ios-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 hackathon@mith.io

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors