[Add] ZJSDK 2.5.8.12
[CocoaPods.git] / Specs / 3 / c / 8 / NBus / 0.9.1 / NBus.podspec.json
blobb2d415c574a35a921f28217e97d7ddc9d4940e25
2   "name": "NBus",
3   "version": "0.9.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.9.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.5.1\"\nQQ_URL=\"http://d3g.qq.com/qzone/iOS_SDK_${QQ_VER}_Lite.zip\"\nQQ_SHA1=\"15976ed9b90cd340818fe3ae3b1e266c67cf02d9\"\nQQ_SEARCH=\"Lite/TencentOpenApi(Lite)_3\"\ndownload_sdk ${QQ} ${QQ_VER} ${QQ_URL} ${QQ_SHA1} ${QQ_SEARCH}\n\nsed -i \"\" \"s/imoort/import/g\" \"QQ_SDK/TencentOpenAPI.framework/Headers/TencentOpenApiUmbrellaHeader.h\"\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.3.0\"\nWEIBO_URL=\"https://github.com/sinaweibosdk/weibo_ios_sdk/archive/${WEIBO_VER}.zip\"\nWEIBO_SHA1=\"7f3a3a0f4580f8009e2b7b0955e97fa79384538e\"\nWEIBO_SEARCH=\"weibo_ios_sdk-${WEIBO_VER}/libWeiboSDK\"\ndownload_sdk ${WEIBO} ${WEIBO_VER} ${WEIBO_URL} ${WEIBO_SHA1} ${WEIBO_SEARCH}",
23   "subspecs": [
24     {
25       "name": "BusHandlers",
26       "dependencies": {
27         "NBus/QQHandler": [
29         ],
30         "NBus/WeiboHandler": [
32         ],
33         "NBus/SystemHandler": [
35         ]
36       }
37     },
38     {
39       "name": "SDKHandlers",
40       "dependencies": {
41         "NBus/QQSDKHandler": [
43         ],
44         "NBus/WechatSDKHandler": [
46         ],
47         "NBus/WeiboSDKHandler": [
49         ],
50         "NBus/SystemHandler": [
52         ]
53       }
54     },
55     {
56       "name": "Core",
57       "source_files": [
58         "NBus/Classes/Core/**/*.swift"
59       ]
60     },
61     {
62       "name": "QQSDKHandler",
63       "dependencies": {
64         "NBus/Core": [
66         ],
67         "NBus/QQSDK": [
69         ]
70       },
71       "source_files": [
72         "NBus/Classes/Handler/QQSDKHandler.swift"
73       ]
74     },
75     {
76       "name": "QQHandler",
77       "dependencies": {
78         "NBus/Core": [
80         ]
81       },
82       "source_files": [
83         "NBus/Classes/Handler/QQHandler.swift"
84       ]
85     },
86     {
87       "name": "WechatSDKHandler",
88       "dependencies": {
89         "NBus/Core": [
91         ],
92         "NBus/WechatSDK": [
94         ]
95       },
96       "source_files": [
97         "NBus/Classes/Handler/WechatSDKHandler.swift"
98       ]
99     },
100     {
101       "name": "WeiboSDKHandler",
102       "dependencies": {
103         "NBus/Core": [
105         ],
106         "NBus/WeiboSDK": [
108         ]
109       },
110       "source_files": [
111         "NBus/Classes/Handler/WeiboSDKHandler.swift"
112       ]
113     },
114     {
115       "name": "WeiboHandler",
116       "dependencies": {
117         "NBus/Core": [
119         ]
120       },
121       "source_files": [
122         "NBus/Classes/Handler/WeiboHandler.swift"
123       ]
124     },
125     {
126       "name": "SystemHandler",
127       "dependencies": {
128         "NBus/Core": [
130         ]
131       },
132       "source_files": [
133         "NBus/Classes/Handler/SystemHandler.swift"
134       ]
135     },
136     {
137       "name": "QQSDK",
138       "vendored_frameworks": [
139         "NBus/Vendor/QQ_SDK/**/*.framework"
140       ],
141       "frameworks": [
142         "SystemConfiguration",
143         "WebKit"
144       ],
145       "source_files": [
146         "NBus/Vendor/QQ_SDK/**/*.h"
147       ],
148       "resources": [
149         "NBus/Vendor/QQ_SDK/**/*.bundle"
150       ]
151     },
152     {
153       "name": "WechatSDK",
154       "vendored_libraries": [
155         "NBus/Vendor/Wechat_SDK/**/*.a"
156       ],
157       "frameworks": [
158         "WebKit"
159       ],
160       "libraries": [
161         "c++"
162       ],
163       "source_files": [
164         "NBus/Vendor/Wechat_SDK/**/*.h"
165       ],
166       "pod_target_xcconfig": {
167         "OTHER_LDFLAGS": "-ObjC -all_load"
168       }
169     },
170     {
171       "name": "WeiboSDK",
172       "vendored_libraries": [
173         "NBus/Vendor/Weibo_SDK/**/*.a"
174       ],
175       "source_files": [
176         "NBus/Vendor/Weibo_SDK/**/*.h"
177       ],
178       "resources": [
179         "NBus/Vendor/Weibo_SDK/**/*.bundle"
180       ]
181     }
182   ],
183   "swift_version": "5.0"