MithVaultSDK 1.0.0

MithVaultSDK 1.0.0

Alex Huang 维护。



 
依赖
AppAuth≥ 1.0.0.beta1
SwiftyJSON~> 4.2.0
CryptoSwift~> 0.14.0
 

  • Alex Huang

Mith VAULT SDK for iOS

这个开源库允许您将 VAULT 集成到您的应用程序中。在幻灯片中了解更多关于提供的示例、文档、集成 SDK 到您的应用程序等内容。

特性

安装

CocoaPods

CocoaPods 是 Cocoa 项目的依赖管理器。您可以使用以下命令来安装它

$ gem install cocoapods

要使用 CocoaPods 将 MithVaultSDK 集成到您的 Xcode 项目中,请在您的 Podfile 中指定它

pod 'MithVaultSDK'

然后,运行以下命令

$ pod install

使用说明

使用XML片段配置Info.plist文件,包含您的团队客户端ID、客户端密钥和mining密钥。

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

如果您的应用的部署目标低于iOS 11,也请将以下内容添加到您的Info.plist文件中。

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

如果您的应用的部署目标低于iOS 11,请将以下内容添加到您的AppDelegate类中。

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];
}

提供反馈

请将错误或问题报告给 [隐私邮箱链接点击显示邮件地址](mailto:hackathon@mith.io)