[Add] ZJSDK 2.5.8.12
[CocoaPods.git] / Specs / 3 / c / 8 / NBus / 0.5.1 / NBus.podspec.json
blobbaf0b4aea0e0e7194bae9ee7d81798bbd78cc53e
2   "name": "NBus",
3   "version": "0.5.1",
4   "summary": "A short description of NBus.",
5   "homepage": "https://github.com/nuomi1/NBus",
6   "license": {
7     "type": "MIT",
8     "file": "LICENSE"
9   },
10   "authors": {
11     "nuomi1": "nuomi1@qq.com"
12   },
13   "source": {
14     "git": "https://github.com/nuomi1/NBus.git",
15     "tag": "0.5.1"
16   },
17   "platforms": {
18     "ios": "10.0"
19   },
20   "swift_versions": "5.0",
21   "default_subspecs": "SDKHandlers",
22   "prepare_command": "function download_sdk() {\n  local VENDOR=$1\n  local VENDOR_VER=$2\n  local VENDOR_URL=$3\n  local VENDOR_SHA1=$4\n  local VENDOR_FILE=\"Vender_${VENDOR}_${VENDOR_VER}.zip\"\n  local VENDOR_SEARCH=$5\n  local VENDOR_ZIP_DIR=\"${VENDOR}_ZIP\"\n  local VENDOR_SDK_DIR=\"${VENDOR}_SDK\"\n\n  rm -rf ${VENDOR_ZIP_DIR} ${VENDOR_SDK_DIR}\n  mkdir ${VENDOR_SDK_DIR}\n\n  if [ ! -f ${VENDOR_FILE} ]; then\n    wget -c ${VENDOR_URL} -O ${VENDOR_FILE}\n  fi\n\n  ditto -V -x -k --sequesterRsrc --rsrc ${VENDOR_FILE} ${VENDOR_ZIP_DIR}\n\n  for file in $(find -E ${VENDOR_ZIP_DIR}/${VENDOR_SEARCH} -d 1 -regex \".*/*.(bundle|framework|a|h)\"); do\n    cp -r ${file} ${VENDOR_SDK_DIR}\n  done\n}\n\ncd NBus\n\nmkdir -p Vendor\ncd Vendor\n\nQQ=\"QQ\"\nQQ_VER=\"3.3.9\"\nQQ_URL=\"http://d3g.qq.com/qzone/Publish-Sdk${QQ_VER}-Lite.zip\"\nQQ_SHA1=\"edac517333ba92aef666afb8c7fd00e458f37629\"\nQQ_SEARCH=\"Publish-Sdk${QQ_VER}-Lite/sdk-Lite\"\ndownload_sdk ${QQ} ${QQ_VER} ${QQ_URL} ${QQ_SHA1} ${QQ_SEARCH}\n\nWECHAT=\"Wechat\"\nWECHAT_VER=\"1.8.7.1\"\nWECHAT_URL=\"https://res.wx.qq.com/op_res/DHI055JVxYur-5c7ss5McQZj2Y9KZQlp24xwD7FYnF88x8LA8rWCzSfdStN5tiCD\"\nWECHAT_SHA1=\"5359ec0b4fc707f41fcf458fe4faebb83efd4011\"\nWECHAT_SEARCH=\"OpenSDK${WECHAT_VER}\"\ndownload_sdk ${WECHAT} ${WECHAT_VER} ${WECHAT_URL} ${WECHAT_SHA1} ${WECHAT_SEARCH}\n\nWEIBO=\"Weibo\"\nWEIBO_VER=\"3.2.7\"\nWEIBO_URL=\"https://github.com/sinaweibosdk/weibo_ios_sdk/archive/${WEIBO_VER}.zip\"\nWEIBO_SHA1=\"4143bb25b3ac6e865aff281e8d6638e11bc3bebf\"\nWEIBO_SEARCH=\"weibo_ios_sdk-${WEIBO_VER}/libWeiboSDK\"\ndownload_sdk ${WEIBO} ${WEIBO_VER} ${WEIBO_URL} ${WEIBO_SHA1} ${WEIBO_SEARCH}",
23   "subspecs": [
24     {
25       "name": "SDKHandlers",
26       "dependencies": {
27         "NBus/QQSDKHandler": [
29         ],
30         "NBus/WechatSDKHandler": [
32         ],
33         "NBus/WeiboSDKHandler": [
35         ],
36         "NBus/SystemHandler": [
38         ]
39       }
40     },
41     {
42       "name": "Core",
43       "source_files": [
44         "NBus/Classes/Core/**/*.swift"
45       ]
46     },
47     {
48       "name": "QQSDKHandler",
49       "dependencies": {
50         "NBus/Core": [
52         ],
53         "NBus/QQSDK": [
55         ]
56       },
57       "source_files": [
58         "NBus/Classes/Handler/QQSDKHandler.swift"
59       ]
60     },
61     {
62       "name": "WechatSDKHandler",
63       "dependencies": {
64         "NBus/Core": [
66         ],
67         "NBus/WechatSDK": [
69         ]
70       },
71       "source_files": [
72         "NBus/Classes/Handler/WechatSDKHandler.swift"
73       ]
74     },
75     {
76       "name": "WeiboSDKHandler",
77       "dependencies": {
78         "NBus/Core": [
80         ],
81         "NBus/WeiboSDK": [
83         ]
84       },
85       "source_files": [
86         "NBus/Classes/Handler/WeiboSDKHandler.swift"
87       ]
88     },
89     {
90       "name": "SystemHandler",
91       "dependencies": {
92         "NBus/Core": [
94         ]
95       },
96       "source_files": [
97         "NBus/Classes/Handler/SystemHandler.swift"
98       ]
99     },
100     {
101       "name": "QQSDK",
102       "vendored_frameworks": [
103         "NBus/Vendor/QQ_SDK/**/*.framework"
104       ],
105       "frameworks": [
106         "SystemConfiguration",
107         "WebKit"
108       ],
109       "source_files": [
110         "NBus/Vendor/QQ_SDK/**/*.h"
111       ]
112     },
113     {
114       "name": "WechatSDK",
115       "vendored_libraries": [
116         "NBus/Vendor/Wechat_SDK/**/*.a"
117       ],
118       "frameworks": [
119         "WebKit"
120       ],
121       "libraries": [
122         "c++"
123       ],
124       "source_files": [
125         "NBus/Vendor/Wechat_SDK/**/*.h"
126       ],
127       "pod_target_xcconfig": {
128         "OTHER_LDFLAGS": "-ObjC -all_load"
129       }
130     },
131     {
132       "name": "WeiboSDK",
133       "vendored_libraries": [
134         "NBus/Vendor/Weibo_SDK/**/*.a"
135       ],
136       "source_files": [
137         "NBus/Vendor/Weibo_SDK/**/*.h"
138       ],
139       "resources": [
140         "NBus/Vendor/Weibo_SDK/**/*.bundle"
141       ]
142     }
143   ],
144   "swift_version": "5.0"