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