Added emitGradleZip
Change-Id: I9d46b22319d76f69d6f14c2e8fc7674c390d5839
diff --git a/build.gradle b/build.gradle
index 840a787..f459fc7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -212,3 +212,15 @@
into(".") {from("${srcPath}/AndroidManifest.xml")}
}
}
+
+task emitGradleZip(dependsOn: [emitBrowseable, emitGradle], type:Zip) {
+ def outputPath = "${samplegen.pathToBuild}/out/browseable"
+ def folderName = "${samplegen.targetSampleName()}"
+ archiveName = "${samplegen.targetSampleName()}.zip"
+ def inputPath = outPath("gradle")
+ from inputPath
+ into folderName
+ include "**"
+ def outDir = project.file(outputPath)
+ destinationDir = outDir
+}