guangchao.xu | 739ad96 | 2020-07-06 17:21:09 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | |
| 3 | <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" |
| 4 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 5 | id="cordova-plugin-qqsdk" |
| 6 | version="0.9.7"> |
| 7 | |
| 8 | <name>QQSDK</name> |
| 9 | <description>Cordova Plugin QQSDK</description> |
| 10 | <license>MIT</license> |
| 11 | <keywords>cordova,qq</keywords> |
| 12 | <repo>https://github.com/iVanPan/Cordova_QQ</repo> |
| 13 | <issue>https://github.com/iVanPan/Cordova_QQ/issues</issue> |
| 14 | |
| 15 | <preference name="QQ_APP_ID" /> |
| 16 | |
| 17 | <!--require cordova version --> |
| 18 | <engines> |
| 19 | <engine name="cordova" version=">=4.0.0" /> |
| 20 | <engine name="cordova-android" version=">=7.0.0" /> |
| 21 | </engines> |
| 22 | |
| 23 | <!-- js module--> |
| 24 | <js-module src="www/qq.js" name="QQSDK"> |
| 25 | <clobbers target="QQSDK" /> |
| 26 | </js-module> |
| 27 | |
| 28 | <!-- ios --> |
| 29 | <platform name="ios"> |
| 30 | <config-file target="config.xml" parent="/*"> |
| 31 | <feature name="QQSDK"> |
| 32 | <param name="ios-package" value="CDVQQSDK"/> |
| 33 | </feature> |
| 34 | <preference name="QQ_APP_ID" value="$QQ_APP_ID" /> |
| 35 | </config-file> |
| 36 | |
| 37 | <!--set ios URLTypes for QQ SDK --> |
| 38 | <config-file target="*-Info.plist" parent="CFBundleURLTypes"> |
| 39 | <array> |
| 40 | <dict> |
| 41 | <key>CFBundleTypeRole</key> |
| 42 | <string>Editor</string> |
| 43 | <key>CFBundleURLName</key> |
| 44 | <string>tencentopenapi</string> |
| 45 | <key>CFBundleURLSchemes</key> |
| 46 | <array> |
| 47 | <string>tencent$QQ_APP_ID</string> |
| 48 | </array> |
| 49 | </dict> |
| 50 | </array> |
| 51 | </config-file> |
| 52 | |
| 53 | <!--scheme query whitlist--> |
| 54 | <config-file platform="ios" target="*-Info.plist" parent="LSApplicationQueriesSchemes"> |
| 55 | <array> |
| 56 | <string>mqqapi</string> |
| 57 | <string>mqq</string> |
| 58 | <string>mqqOpensdkSSoLogin</string> |
| 59 | <string>mqqconnect</string> |
| 60 | <string>mqqopensdkdataline</string> |
| 61 | <string>mqqopensdkgrouptribeshare</string> |
| 62 | <string>mqqopensdkfriend</string> |
| 63 | <string>mqqopensdkapi</string> |
| 64 | <string>mqqopensdkapiV2</string> |
| 65 | <string>mqqopensdkapiV3</string> |
| 66 | <string>mqqopensdkapiV4</string> |
| 67 | <string>mqzoneopensdk</string> |
| 68 | <string>wtloginmqq</string> |
| 69 | <string>wtloginmqq2</string> |
| 70 | <string>mqqwpa</string> |
| 71 | <string>mqzone</string> |
| 72 | <string>mqzonev2</string> |
| 73 | <string>mqzoneshare</string> |
| 74 | <string>wtloginqzone</string> |
| 75 | <string>mqzonewx</string> |
| 76 | <string>mqzoneopensdkapiV2</string> |
| 77 | <string>mqzoneopensdkapi19</string> |
| 78 | <string>mqzoneopensdkapi</string> |
| 79 | <string>mqzoneopensdk</string> |
| 80 | <string>mqqgamebindinggroup</string> |
| 81 | <string>tencentapi.qq.reqContent</string> |
| 82 | <string>tencentapi.qzone.reqContent</string> |
| 83 | <string>tim</string> |
| 84 | <string>timapi</string> |
| 85 | <string>timopensdkfriend</string> |
| 86 | <string>timwpa</string> |
| 87 | <string>timgamebindinggroup</string> |
| 88 | <string>timapiwallet</string> |
| 89 | <string>timOpensdkSSoLogin</string> |
| 90 | <string>wtlogintim</string> |
| 91 | <string>timopensdkgrouptribeshare</string> |
| 92 | <string>timopensdkapiV4</string> |
| 93 | <string>timgamebindinggroup</string> |
| 94 | <string>timopensdkdataline</string> |
| 95 | <string>wtlogintimV1</string> |
| 96 | <string>timapiV1</string> |
| 97 | </array> |
| 98 | </config-file> |
| 99 | <header-file src="src/ios/CDVQQSDK.h"/> |
| 100 | <source-file src="src/ios/CDVQQSDK.m"/> |
| 101 | <!--required frameworks for qq sdk--> |
| 102 | <framework src="CoreGraphics.framework" /> |
| 103 | <framework src="CoreTelephony.framework" /> |
| 104 | <framework src="SystemConfiguration.framework" /> |
| 105 | <framework src="Security.framework" /> |
| 106 | <framework src="libiconv.tbd" /> |
| 107 | <framework src="libsqlite3.tbd" /> |
| 108 | <framework src="libstdc++.tbd" /> |
| 109 | <framework src="libz.tbd" /> |
| 110 | <!--QQ SDK version 3.2.3--> |
| 111 | <framework src="src/ios/TencentOpenAPI.framework" custom="true" framework="true"/> |
| 112 | <resource-file src="src/ios/TencentOpenApi_IOS_Bundle.bundle" /> |
| 113 | |
| 114 | <info> |
| 115 | 1.安装完这个插件,请用 Xcode 打开工程,查看 URL Types 里面 QQ 的 URL Type 有没有,如果没有请手动添加。 |
| 116 | 1.after installing this plugin,check the URL Types in your Xcode project.If you don't find URL Types for QQ SDK,manually add it. |
| 117 | </info> |
| 118 | </platform> |
| 119 | |
| 120 | <!-- android --> |
| 121 | <platform name="android"> |
| 122 | <config-file target="res/xml/config.xml" parent="/*"> |
| 123 | <feature name="QQSDK" > |
| 124 | <param name="android-package" value="me.vanpan.qqsdk.QQSDKPlugin"/> |
| 125 | </feature> |
| 126 | <!--whitelist for QQ SDK--> |
| 127 | <access origin = "https://openmobile.qq.com/*"/> |
| 128 | <access origin = "http://qzonestyle.gtimg.cn/*"/> |
| 129 | <access origin = "http://pub.idqqimg.com/*"/> |
| 130 | <access origin = "http://qzs.qq.com/*"/> |
| 131 | <access origin = "http://m.qzone.com/*"/> |
| 132 | <access origin = "http://*.ptlogin2.qq.com/*"/> |
| 133 | <access origin = "http://*.qq.com/*"/> |
| 134 | <access origin = "http://q2.qlogo.cn/*" /> |
| 135 | |
| 136 | <preference name="QQ_APP_ID" value="$QQ_APP_ID" /> |
| 137 | </config-file> |
| 138 | <!--permission for QQ SDK --> |
| 139 | <config-file target="app/src/main/AndroidManifest.xml" parent="/manifest"> |
| 140 | <uses-permission android:name="android.permission.INTERNET" /> |
| 141 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 142 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
| 143 | </config-file> |
| 144 | <!--QQ webview Auth Activity --> |
| 145 | <config-file target="app/src/main/AndroidManifest.xml" parent="/manifest/application"> |
| 146 | <activity |
| 147 | android:name="com.tencent.tauth.AuthActivity" |
| 148 | android:noHistory="true" |
| 149 | android:launchMode="singleTask" > |
| 150 | <intent-filter> |
| 151 | <action android:name="android.intent.action.VIEW" /> |
| 152 | <category android:name="android.intent.category.DEFAULT" /> |
| 153 | <category android:name="android.intent.category.BROWSABLE" /> |
| 154 | <data android:scheme="tencent$QQ_APP_ID"/> |
| 155 | </intent-filter> |
| 156 | </activity> |
| 157 | <activity |
| 158 | android:name="com.tencent.connect.common.AssistActivity" |
| 159 | android:configChanges="orientation|keyboardHidden" |
| 160 | android:screenOrientation="portrait" |
| 161 | android:theme="@android:style/Theme.Translucent.NoTitleBar" > |
| 162 | </activity> |
| 163 | </config-file> |
| 164 | <source-file src="src/android/QQSDKPlugin.java" target-dir="src/me/vanpan/qqsdk" /> |
| 165 | <!--QQ SDK version 3.2.1--> |
| 166 | <source-file src="src/android/open_sdk_r5793.jar" target-dir="app/libs/" /> |
| 167 | <source-file src="src/android/mta-sdk-1.6.2.jar" target-dir="app/libs/" /> |
| 168 | <framework src="com.android.support:support-v4:24.1.1+" /> |
| 169 | </platform> |
| 170 | </plugin> |