MobSDK.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. apply plugin: 'com.mob.sdk'
  2. MobSDK {
  3. appKey "305b8b15f68f8"
  4. appSecret "a3cbdab31615a26ada9781d91e1e7d16"
  5. ShareSDK {
  6. //平台配置信息
  7. devInfo {
  8. /* Wechat微信和WechatMoments微信朋友圈的appid是一样的;
  9. 注意:开发者不能用我们这两个平台的appid,否则分享不了
  10. 微信测试的时候,微信测试需要先签名打包出apk,
  11. sample测试微信,要先签名打包,keystore在sample项目中,密码123456
  12. BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过
  13. 审核的应用也可以执行分享,但是仅限于分享文字和图片,不能分享其他类型,
  14. 默认值为false。此外,微信收藏不支持此字段。wx4868b35061f87885
  15. <!--要分享微信小应用程序时用userName,path-->*/
  16. Wechat {
  17. id 1
  18. sortId 1
  19. appId "wx9455bd2742259ef7"
  20. appSecret "c58946da98393252077073c29c828d08"
  21. userName "gh_afb25ac019c9"
  22. path "pages/index/index.html?id=1"
  23. withShareTicket true
  24. miniprogramType 0
  25. bypassApproval true
  26. enable true
  27. }
  28. WechatMoments {
  29. id 2
  30. sortId 2
  31. appId "wx9455bd2742259ef7"
  32. appSecret "c58946da98393252077073c29c828d08"
  33. bypassApproval true
  34. enable true
  35. }
  36. QQ {
  37. id 3
  38. sortId 3
  39. appId "1110701531"
  40. appKey "mqpLODH4ZANANt85"
  41. shareByAppClient true
  42. bypassApproval false
  43. enable true
  44. }
  45. QZone {
  46. id 4
  47. sortId 4
  48. appId "1110701531"
  49. appKey "mqpLODH4ZANANt85"
  50. shareByAppClient true
  51. bypassApproval false
  52. enable true
  53. }
  54. }
  55. }
  56. }