Commit da3b771c authored by pengjunjing's avatar pengjunjing

增加raw引用的支持

parent a9389a7e
Pipeline #15492 failed with stages
......@@ -21,9 +21,10 @@ class ParseUtil {
for (readLine in readLines) {
//判断该行是否引用了图片资源
if (readLine.contains("@drawable") //xml引用
|| readLine.contains("@mipmap")
|| readLine.contains("@mipmap")
|| readLine.contains("R.drawable")//java kt代码引用
|| readLine.contains("R.mipmap")
|| readLine.contains("R.mipmap")
|| readLine.contains("R.raw")
) {
result.add(readLine)
}
......
......@@ -40,7 +40,7 @@ class ReadUtil {
companion object {
//排除目录
private val excludeDir = arrayOf("build", ".git", ".gradle")
private val excludeDir = arrayOf("build", ".git", ".gradle",".idea")
/**
* @param fileType 文件后缀名
......
......@@ -10,6 +10,7 @@ fun main(args: Array<String>) {
println(projectRoot.absolutePath)
//要检查资源的目录
val baseFile = File("${projectRoot.absolutePath}${File.separator}laihuaBase${File.separator}src${File.separator}")
// val baseFile = File("${projectRoot.absolutePath}")
println(baseFile.absolutePath + "\n")
val readImageRes = ReadUtil().readImageRes(baseFile)
val readCodeFile = ReadUtil().readCodeFile(projectRootF)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment