[Add] ZJSDK 2.5.8.12
[CocoaPods.git] / Specs / 3 / c / 8 / NBus / 0.8.0 / NBus.podspec.json
blob1671a6c794e1a623c4b08677288222c18b023ba4
2   "name": "NBus",
3   "version": "0.8.0",
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.8.0"
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\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/SystemHandler": [
32         ]
33       }
34     },
35     {
36       "name": "SDKHandlers",
37       "dependencies": {
38         "NBus/QQSDKHandler": [
40         ],
41         "NBus/WechatSDKHandler": [
43         ],
44         "NBus/WeiboSDKHandler": [
46         ],
47         "NBus/SystemHandler": [
49         ]
50       }
51     },
52     {
53       "name": "Core",
54       "source_files": [
55         "NBus/Classes/Core/Bus+Endpoint.swift",
56         "NBus/Classes/Core/Bus+Error.swift",
57         "NBus/Classes/Core/Bus+Helper.swift",
58         "NBus/Classes/Core/Bus+Wrapper.swift",
59         "NBus/Classes/Core/Bus.swift",
60         "NBus/Classes/Core/Bus+Platform.swift",
61         "NBus/Classes/Core/Bus+Message.swift",
62         "NBus/Classes/Core/Bus+Handler.swift"
63       ]
64     },
65     {
66       "name": "QQSDKHandler",
67       "dependencies": {
68         "NBus/Core": [
70         ],
71         "NBus/QQSDK": [
73         ]
74       },
75       "source_files": [
76         "NBus/Classes/Handler/QQSDKHandler.swift"
77       ]
78     },
79     {
80       "name": "QQHandler",
81       "dependencies": {
82         "NBus/Core": [
84         ]
85       },
86       "source_files": [
87         "NBus/Classes/Handler/QQHandler.swift"
88       ]
89     },
90     {
91       "name": "WechatSDKHandler",
92       "dependencies": {
93         "NBus/Core": [
95         ],
96         "NBus/WechatSDK": [
98         ]
99       },
100       "source_files": [
101         "NBus/Classes/Handler/WechatSDKHandler.swift"
102       ]
103     },
104     {
105       "name": "WeiboSDKHandler",
106       "dependencies": {
107         "NBus/Core": [
109         ],
110         "NBus/WeiboSDK": [
112         ]
113       },
114       "source_files": [
115         "NBus/Classes/Handler/WeiboSDKHandler.swift"
116       ]
117     },
118     {
119       "name": "SystemHandler",
120       "dependencies": {
121         "NBus/Core": [
123         ]
124       },
125       "source_files": [
126         "NBus/Classes/Handler/SystemHandler.swift"
127       ]
128     },
129     {
130       "name": "QQSDK",
131       "vendored_frameworks": [
132         "NBus/Vendor/QQ_SDK/TencentOpenAPI.framework"
133       ],
134       "frameworks": [
135         "SystemConfiguration",
136         "WebKit"
137       ],
138       "source_files": [
139         "NBus/Vendor/QQ_SDK/TencentOpenAPI.framework/Headers/sdkdef.h",
140         "NBus/Vendor/QQ_SDK/TencentOpenAPI.framework/Headers/TencentOAuth.h",
141         "NBus/Vendor/QQ_SDK/TencentOpenAPI.framework/Headers/QQApiInterface.h",
142         "NBus/Vendor/QQ_SDK/TencentOpenAPI.framework/Headers/QQApiInterfaceObject.h"
143       ],
144       "resources": [
145         "NBus/Vendor/QQ_SDK/TencentOpenApi_IOS_Bundle.bundle"
146       ]
147     },
148     {
149       "name": "WechatSDK",
150       "vendored_libraries": [
151         "NBus/Vendor/Wechat_SDK/libWeChatSDK.a"
152       ],
153       "frameworks": [
154         "WebKit"
155       ],
156       "libraries": [
157         "c++"
158       ],
159       "source_files": [
160         "NBus/Vendor/Wechat_SDK/WXApi.h",
161         "NBus/Vendor/Wechat_SDK/WXApiObject.h",
162         "NBus/Vendor/Wechat_SDK/WechatAuthSDK.h"
163       ],
164       "pod_target_xcconfig": {
165         "OTHER_LDFLAGS": "-ObjC -all_load"
166       }
167     },
168     {
169       "name": "WeiboSDK",
170       "vendored_libraries": [
171         "NBus/Vendor/Weibo_SDK/libWeiboSDK.a"
172       ],
173       "source_files": [
174         "NBus/Vendor/Weibo_SDK/WBHttpRequest.h",
175         "NBus/Vendor/Weibo_SDK/WeiboSDK.h"
176       ],
177       "resources": [
178         "NBus/Vendor/Weibo_SDK/WeiboSDK.bundle"
179       ]
180     }
181   ],
182   "swift_version": "5.0"