You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

proguard.gradle 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. apply plugin: 'AndResGuard'
  2. andResGuard {
  3. // mappingFile = file("./resource_mapping.txt")
  4. mappingFile = null
  5. use7zip = true
  6. useSign = true
  7. // 是否混淆资源的路径
  8. keepRoot = false
  9. // 资源混淆白名单
  10. whiteList = [
  11. // for your icon
  12. "R.drawable.icon",
  13. // for fabric
  14. "R.string.com.crashlytics.*",
  15. // for google-services
  16. "R.string.google_app_id",
  17. "R.string.gcm_defaultSenderId",
  18. "R.string.default_web_client_id",
  19. "R.string.ga_trackingId",
  20. "R.string.firebase_database_url",
  21. "R.string.google_api_key",
  22. "R.string.google_crash_reporting_api_key"
  23. ]
  24. compressFilePattern = [
  25. "*.png",
  26. "*.jpg",
  27. "*.jpeg",
  28. "*.gif",
  29. ]
  30. sevenzip {
  31. artifact = 'com.tencent.mm:SevenZip:1.2.17'
  32. //path = "/usr/local/bin/7za"
  33. }
  34. // 是否合并所有哈希值重复的资源(官方解释:不要过度依赖这个功能去除去冗余资源)
  35. //mergeDuplicatedRes = true
  36. /**
  37. * 可选: 如果不设置则会默认覆盖assemble输出的apk
  38. **/
  39. // finalApkBackupPath = "${project.rootDir}/final.apk"
  40. /**
  41. * 可选: 指定v1签名时生成jar文件的摘要算法
  42. * 默认值为“SHA-1”
  43. **/
  44. // digestalg = "SHA-256"
  45. }