scorocode-SDK-swift 1.1.2

scorocode-SDK-swift 1.1.2

测试已测试
Lang语言 SwiftSwift
许可证 MIT
发布最后发布2016年7月
SPM支持 SPM

Evgeniy Branitsky 维护。



 
依赖项
Alamofire~> 3.3
SwiftyJSON>= 0
 

  • Scorocode

scorocode-SDK-swift

SDK 提供了对 Scorocode 平台访问权限,用于构建基于 Swift 的应用程序。详细信息请访问我们的网站:[https://scorocode.ru](https://scorocode.ru)

安装

将库连接到项目

安装 Carthage

创建应用程序

在项目根目录下创建一个名为 “Cartfile” 的文件,并记录以下行

github "Alamofire/Alamofire" ~> 3.3
github "SwiftyJSON/SwiftyJSON"

关闭 Xcode 项目,并在控制台中启动

carthage update --platform iOS,Mac

重新打开 Xcode 项目。在 Target -> General -> Linked Frameworks and Libraries 中,从 <项目目录> -> Carthage -> Build -> iOS 拖动 2 个文件

Alamofire.framework
SwiftyJSON.framework

在 Target -> Build Phases 中添加 New Run Script Phase

脚本

/usr/local/bin/carthage copy-frameworks

两个输入文件

$(SRCROOT)/Carthage/Build/iOS/Alamofire.framework

$(SRCROOT)/Carthage/Build/iOS/SwiftyJSON.framework

如果没有创建桥接头,请创建一个包含以下内容的桥接头:

#import "BSONSerialization.h"

在项目中创建一个新的组(例如,SCLib)

从从仓库中获取的项目目录中的 SCLib 文件夹创建该组的 3 个文件夹(BSON、API、Model)

在 AppDelegate.swift 中的 didFinishLaunchingWithOptions 方法中指定 API 初始化参数的值

let applicationId = ""
let clientId = ""
let accessKey = ""
let fileKey = ""
let messageKey = ""

许可证

MIT License

Copyright (c) 2016 ProfIT-Ventures LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.