添加微信分分享按钮
diff --git a/platforms/android/android.json b/platforms/android/android.json
index 105b5f2..02e24ed 100644
--- a/platforms/android/android.json
+++ b/platforms/android/android.json
@@ -107,6 +107,14 @@
{
"xml": "<preference name=\"QQ_APP_ID\" value=\"101885581\" />",
"count": 1
+ },
+ {
+ "xml": "<feature name=\"Wechat\"><param name=\"android-package\" value=\"xu.li.cordova.wechat.Wechat\" /></feature>",
+ "count": 1
+ },
+ {
+ "xml": "<preference name=\"WECHATAPPID\" value=\"wxa483e2c392b08993\" />",
+ "count": 1
}
]
}
@@ -116,7 +124,7 @@
"/*": [
{
"xml": "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />",
- "count": 2
+ "count": 3
},
{
"xml": "<uses-permission android:name=\"android.permission.CAMERA\" android:required=\"false\" />",
@@ -137,6 +145,22 @@
{
"xml": "<uses-permission android:name=\"android.permission.USE_FINGERPRINT\" />",
"count": 1
+ },
+ {
+ "xml": "<uses-permission android:name=\"android.permission.INTERNET\" />",
+ "count": 1
+ },
+ {
+ "xml": "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />",
+ "count": 1
+ },
+ {
+ "xml": "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\" />",
+ "count": 1
+ },
+ {
+ "xml": "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\" />",
+ "count": 1
}
],
"/manifest": [
@@ -283,6 +307,14 @@
{
"xml": "<activity android:exported=\"true\" android:name=\"de.niklasmerz.cordova.biometric.BiometricActivity\" android:theme=\"@style/TransparentTheme\" />",
"count": 1
+ },
+ {
+ "xml": "<activity android:exported=\"true\" android:label=\"@string/launcher_name\" android:launchMode=\"singleTask\" android:name=\".wxapi.WXEntryActivity\" android:taskAffinity=\"com.dalipolice.app\"><intent-filter><action android:name=\"android.intent.action.VIEW\" /><category android:name=\"android.intent.category.DEFAULT\" /><data android:scheme=\"wxa483e2c392b08993\" /></intent-filter></activity>",
+ "count": 1
+ },
+ {
+ "xml": "<activity android:exported=\"true\" android:label=\"@string/launcher_name\" android:launchMode=\"singleTop\" android:name=\".wxapi.WXPayEntryActivity\"><intent-filter><action android:name=\"android.intent.action.VIEW\" /><category android:name=\"android.intent.category.DEFAULT\" /><data android:scheme=\"wxa483e2c392b08993\" /></intent-filter></activity>",
+ "count": 1
}
]
}
@@ -401,6 +433,11 @@
"cordova-plugin-qqsdk": {
"QQ_APP_ID": "101885581",
"PACKAGE_NAME": "com.dalipolice.app"
+ },
+ "cordova-plugin-wechat": {
+ "WECHATAPPID": "wxa483e2c392b08993",
+ "UNIVERSALLINK": "YOUR_UNIVERSAL_LINK",
+ "PACKAGE_NAME": "com.dalipolice.app"
}
},
"dependent_plugins": {},
@@ -764,6 +801,14 @@
"clobbers": [
"QQSDK"
]
+ },
+ {
+ "id": "cordova-plugin-wechat.Wechat",
+ "file": "plugins/cordova-plugin-wechat/www/wechat.js",
+ "pluginId": "cordova-plugin-wechat",
+ "clobbers": [
+ "Wechat"
+ ]
}
],
"plugin_metadata": {
@@ -786,6 +831,7 @@
"cordova-plugin-brightness": "0.1.5",
"cordova-plugin-fingerprint-aio": "3.0.1",
"cordova-plugin-prevent-screenshot-coffice": "1.0.1",
- "cordova-plugin-qqsdk": "0.9.7"
+ "cordova-plugin-qqsdk": "0.9.7",
+ "cordova-plugin-wechat": "3.0.0"
}
}