4 "summary": "A short description of NBus.",
5 "homepage": "https://github.com/nuomi1/NBus",
11 "nuomi1": "nuomi1@qq.com"
14 "git": "https://github.com/nuomi1/NBus.git",
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 if [ -n \"$(find ${VENDOR_ZIP_DIR} -d 1 -name '*.zip')\" ]; then\n ditto -V -x -k --sequesterRsrc --rsrc ${VENDOR_ZIP_DIR}/*.zip ${VENDOR_ZIP_DIR}\n fi\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.3\"\nQQ_URL=\"https://tangram-1251316161.file.myqcloud.com/qqconnect/OpenSDK_V${QQ_VER}/iOS_V${QQ_VER}_Lite.zip\"\nQQ_SHA1=\"2f9871544e5c448b9c0cae129db48ea11fb85053\"\nQQ_SEARCH=\".\"\ndownload_sdk ${QQ} ${QQ_VER} ${QQ_URL} ${QQ_SHA1} ${QQ_SEARCH}\n\nWECHAT=\"Wechat\"\nWECHAT_VER=\"1.8.9\"\nWECHAT_URL=\"https://res.wx.qq.com/op_res/_Q5kJ9eIC1z-APXT9YPj2uWc-8esYianDXmZnbU7nFSxL_YmuvcoREglWUsrwLInpC6oj7QQB7DhLiZnlcfpGg\"\nWECHAT_SHA1=\"74a45a045602fde939b1a2d9106377993158639f\"\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}",
25 "name": "BusHandlers",
30 "NBus/WechatHandler": [
33 "NBus/WeiboHandler": [
36 "NBus/SystemHandler": [
42 "name": "SDKHandlers",
44 "NBus/QQSDKHandler": [
47 "NBus/WechatSDKHandler": [
50 "NBus/WeiboSDKHandler": [
53 "NBus/SystemHandler": [
61 "NBus/Classes/Core/**/*.swift"
65 "name": "QQSDKHandler",
75 "NBus/Classes/Handler/QQSDKHandler.swift"
86 "NBus/Classes/Handler/QQHandler.swift"
90 "name": "WechatSDKHandler",
100 "NBus/Classes/Handler/WechatSDKHandler.swift"
104 "name": "WechatHandler",
111 "NBus/Classes/Handler/WechatHandler.swift"
115 "name": "WeiboSDKHandler",
125 "NBus/Classes/Handler/WeiboSDKHandler.swift"
129 "name": "WeiboHandler",
136 "NBus/Classes/Handler/WeiboHandler.swift"
140 "name": "SystemHandler",
147 "NBus/Classes/Handler/SystemHandler.swift"
152 "vendored_frameworks": [
153 "NBus/Vendor/QQ_SDK/**/*.framework"
156 "SystemConfiguration",
160 "NBus/Vendor/QQ_SDK/**/*.h"
163 "NBus/Vendor/QQ_SDK/**/*.bundle"
168 "vendored_libraries": [
169 "NBus/Vendor/Wechat_SDK/**/*.a"
178 "NBus/Vendor/Wechat_SDK/**/*.h"
180 "pod_target_xcconfig": {
181 "OTHER_LDFLAGS": "-ObjC -all_load"
186 "vendored_libraries": [
187 "NBus/Vendor/Weibo_SDK/**/*.a"
190 "NBus/Vendor/Weibo_SDK/**/*.h"
193 "NBus/Vendor/Weibo_SDK/**/*.bundle"
197 "swift_version": "5.0"