xmlclassguard.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. apply plugin: "xml-class-guard"
  2. //以下均为非必须,根据自己需要配置即可
  3. xmlClassGuard {
  4. /*
  5. * 是否查找约束布局的constraint_referenced_ids属性的值,并添加到AabResGuard的白名单中,
  6. * 是的话,要求你在XmlClassGuard前依赖AabResGuard插件,默认false
  7. */
  8. findAabConstraintReferencedIds = true
  9. /*
  10. * 是否查找约束布局的constraint_referenced_ids属性的值,并添加到AndResGuard的白名单中,
  11. * 是的话,要求你在XmlClassGuard前依赖AabResGuard插件,默认false
  12. */
  13. findAndConstraintReferencedIds = false
  14. //混淆映射文件
  15. mappingFile = file("xml-class-mapping.txt")
  16. //更改manifest里package属性
  17. packageChange = ["com.ljx.example": "ab.cd",
  18. "com.ljx.base" : "ggg.kkk",
  19. "com.ljx.kts" : "ff.dd"]
  20. //移动目录,支持同时移动多个目录
  21. moveDir = ["com.ljx.example": "ef.gh",
  22. "com.ljx.base" : "zzzz.hhhh",
  23. "com.ljx.kts" : "ddd.xxx"]
  24. classMapName = "classnameMap.txt"
  25. packageNameMapName = "packagenameMap.txt"
  26. }