Commit 001679bd by sikang

test

parent a771d819
......@@ -39,7 +39,7 @@ class PackageGarble:
# 搜集混淆字典
def __find_pkgs(self, path):
for root, dirs, files in os.walk(path):
if len(dirs) == 0:
if len(dirs) == 0 and ("main/java" in root or "main/kotlin" in root):
mp_path = root.split("main/java/")[1].replace("/", ".")
if "main/kotlin" in root:
mp_path = root.split("main/kotlin/")[1].replace("/", ".")
......@@ -79,9 +79,11 @@ class PackageGarble:
def __rename_pkg(self,path):
mapping = {}
for root, dirs, files in os.walk(path):
if "main/java" in root:
if "main/java" in root or "main/kotlin" in root:
root += "/"
mp_path = root.split("main/java/")[1].replace("/", ".")
if "main/kotlin" in root:
mp_path = root.split("main/kotlin/")[1].replace("/", ".")
for dir in dirs:
pkg_path = "%s%s"%(mp_path,dir)
for (key,value) in self.pkg_mapping.items():
......
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