I am using App Inventor Sources to create my extension. I want to use Proguard to obfuscate the code but when I run ant extensions -Dproguard=1 extension doesn't builds and throws the following error.
you can't run it with a command like that you have to run it with a command like this :
ant extensions -Dproguard=1
Look at this Message in your build.xml which is in components folder :
ProGuard: obfuscates and minifies the AndroidRuntime.jar file, containingthe extensions source code. Only runs if the task has been calledlike "ant extensions -Dproguard=1".
Okay for extension that contains lib.
Should look at this message in your build.xml and I hope your problem can be solved
<!-- FOR DEVELOPER: Add the needed libraries for your extension right herelike the ones above, just after copying them to the depsdirectory.<libraryjar file="${public.deps.dir}/my-awesome-library.jar" /> -->
Did you also add the relevant libraries to the CopyComponentLibraries target? Do you see that target being run in the ant log? If that target doesn't run, the libraries won't be in the expected location.