I'm trying to calculate CRC32 of classes.dex and save as a resource value. Currently I have something like the following but it doesn't work.
tasks.whenTaskAdded { theTask -> if (theTask.name.startsWith("dex")) { theTask.doLast { task -> def classes = new File(task.outputFolder, "classes.dex") // Calculate crc32 of classes.dex file here android.applicationVariants.each { variant -> variant.resValue "string", "CRC", "" + crc } } } } What's the correct way to do this? -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.