Latest 1.0.0.1
Homepage https://github.com/d2space/DS_RootSDK
License MIT
Platforms ios 9.0
Dependencies DS_ModelSDK
Frameworks Foundation
Authors

more frameworks relationship Test

此demo演示的是:通过pods实现多Framework之间的依赖及相互调用。

/**

  • 测试代码:
  • import UIKit
  • import DS_RootSDK
  • @objcMembers
  • class Bank: NSObject{
  • var id: String?
  • var name: String?
  • }
  • @objcMembers
  • class Card: NSObject{
  • var id: String?
  • var name: String?
  • var bank: Bank?
  • }
  • @objcMembers
  • class User: NSObject{
  • var name: String?
  • var age: Int = 0
  • var cards:[Card]?
  • var card: Card?
  • }
  • class ViewController: UIViewController {
  • override func viewDidLoad() {
  • super.viewDidLoad()
  • let dic = ["name": "d2space",
  • "age": "22",
  • "cards":[["name":"联璧金融","id":"1"],["name":"联璧智仟汇","id": "2"]],
  • "card":["name": "乐口福", "id": "1005","bank":["id": "005","name": "工商银行"]]] as [String : Any]
  • let u: User = DS_Register.callDS_ModelSDK(dic)
  • print((u.name)!)
  • print((u.card?.name)!)
  • print((u.card?.bank?.name)!)
  • }

  • override func didReceiveMemoryWarning() {
  • super.didReceiveMemoryWarning()
  • // Dispose of any resources that can be recreated.
  • }
  • }
  • */

Latest podspec

{
    "name": "DS_RootSDK",
    "version": "1.0.0.1",
    "license": "MIT",
    "summary": "JSON to model for iOS.",
    "homepage": "https://github.com/d2space/DS_RootSDK",
    "authors": {
        "d2space": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/d2space/DS_RootSDK.git",
        "tag": "1.0.0.1"
    },
    "exclude_files": "Classes/Exclude",
    "frameworks": "Foundation",
    "vendored_frameworks": "DS_RootSDK.framework",
    "dependencies": {
        "DS_ModelSDK": [
            "~> 1.0.0.1"
        ]
    }
}

Pin It on Pinterest

Share This