Skip to content

Commit

Permalink
Fix multiple injection bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchengdong committed Nov 13, 2018
1 parent 6223beb commit c23cfc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file removed app/libs/hianalytics_v2.9.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,15 @@ class AutoInjectTransform extends Transform {

transformInvocation.getInputs().each { TransformInput input ->
input.directoryInputs.each { DirectoryInput directoryInput ->
AutoInjector.findTargetAndInject(directoryInput.file)

def dest = transformInvocation.outputProvider.getContentLocation(directoryInput.name,
directoryInput.contentTypes, directoryInput.scopes, Format.DIRECTORY)
FileUtils.copyDirectory(directoryInput.file, dest)
AutoInjector.findTargetAndInject(dest)
}
input.jarInputs.each { JarInput jarInput ->
AutoInjector.findTargetAndInject(jarInput.file)

def dest = transformInvocation.outputProvider.getContentLocation(jarInput.name, jarInput.contentTypes, jarInput.scopes, Format.JAR)
FileUtils.copyFile(jarInput.file, dest)
AutoInjector.findTargetAndInject(dest)
}
}

Expand Down

0 comments on commit c23cfc1

Please sign in to comment.