build.gradle 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. apply plugin: 'com.android.application'
  2. // 极光推送 华为3、
  3. apply plugin: 'com.huawei.agconnect'
  4. apply from: '../dependencies.gradle'
  5. android {
  6. defaultConfig {
  7. applicationId "com.shanp.deerdirector"
  8. // region 极光推送2、 必须配置在 主模块下的build.gradle
  9. manifestPlaceholders = [
  10. JPUSH_PKGNAME: "com.shanp.deerdirector",
  11. JPUSH_APPKEY : "49fb72ec414fb09293cc724a", //JPush 上注册的包名对应的 Appkey.
  12. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
  13. //meizu_config_start
  14. MEIZU_APPKEY : "MZ-魅族的APPKEY",
  15. MEIZU_APPID : "MZ-魅族的APPID",
  16. //meizu_config_end
  17. //xiaomi_config_start
  18. XIAOMI_APPID : "MI-小米的APPID",
  19. XIAOMI_APPKEY : "MI-小米的APPKEY",
  20. //xiaomi_config_end
  21. //oppo_config_start
  22. OPPO_APPKEY : "OP-oppo的APPKEY",
  23. OPPO_APPID : "OP-oppo的APPID",
  24. OPPO_APPSECRET: "OP-oppo的APPSECRET",
  25. //oppo_config_end
  26. //vivo_config_start
  27. VIVO_APPKEY : "vivo的APPKEY",
  28. VIVO_APPID : "vivo的APPID",
  29. //vivo_config_end
  30. ]
  31. // endregion
  32. // 极光推送 华为
  33. // HMS 服务必须要求 app 签名才能注册成功。指纹证书是在终端采用keytool -list -v -keystore keystorefileName 获取偶对应的指纹证书.
  34. // signingConfigs {
  35. // release {
  36. // storeFile file("release.keystore")//签名文件的path
  37. // storePassword "123456"
  38. // keyAlias "android.keystore"
  39. // keyPassword "123456"
  40. // }
  41. // }
  42. //
  43. // buildTypes {
  44. // release {
  45. // minifyEnabled true
  46. // proguardFiles 'proguard-rules.pro'
  47. // signingConfig signingConfigs.release
  48. // }
  49. // debug {
  50. // minifyEnabled false
  51. // signingConfig signingConfigs.release
  52. // }
  53. // }
  54. }
  55. }
  56. dependencies {
  57. //根据是否独立运行,将模块作为apk还是module
  58. if (!singleModule.toBoolean()) {
  59. //其他模块作为app运行的话,就不能依赖库作为lib用
  60. }
  61. implementation project(path: ':service')
  62. implementation project(path: ':demo')
  63. implementation project(path: ':account')
  64. implementation project(path: ':watermark')
  65. implementation project(path: ':document')
  66. }