Skip to content

Commit 59a935e

Browse files
author
plamen5kov
committed
removed unnecessary code
1 parent 3152c49 commit 59a935e

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

build-artifacts/project-template-gradle/build.gradle

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -582,38 +582,6 @@ task buildMetadata (type: JavaExec) {
582582
from "$projectDir/metadata/output/assets/metadata"
583583
into "$projectDir/src/main/assets/metadata"
584584
}
585-
586-
def files = new File("${buildDir}/intermediates/res").listFiles()
587-
def tmpResourceAPK = null
588-
for (File f: files) {
589-
def name = f.getName();
590-
if (name.endsWith(".ap_")) {
591-
tmpResourceAPK = f;
592-
break;
593-
}
594-
}
595-
596-
def aaptCommand = "${android.getSdkDirectory().getAbsolutePath()}/build-tools/${android.buildToolsVersion}/aapt"
597-
if (isWinOs) {
598-
aaptCommand += ".exe"
599-
}
600-
601-
def tmpAPKPath = tmpResourceAPK.getPath()
602-
603-
def removeCmdParams = new ArrayList<String>([aaptCommand, "remove", tmpAPKPath, "assets/metadata/treeNodeStream.dat", "assets/metadata/treeStringsStream.dat", "assets/metadata/treeValueStream.dat"])
604-
605-
exec {
606-
ignoreExitValue true
607-
workingDir "$projectDir/metadata/output"
608-
commandLine removeCmdParams.toArray()
609-
}
610-
611-
def addCmdParams = new ArrayList<String>([aaptCommand, "add", tmpAPKPath, "assets/metadata/treeNodeStream.dat", "assets/metadata/treeStringsStream.dat", "assets/metadata/treeValueStream.dat"])
612-
613-
exec {
614-
workingDir "$projectDir/metadata/output"
615-
commandLine addCmdParams.toArray()
616-
}
617585
}
618586
}
619587

0 commit comments

Comments
 (0)