New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AAR support #10
Comments
While I agree that it would be helpful to see the method and field counts for a library as it is being developed, I'm not sure about the suggested approach. Because AARs don't contain their transient dependencies, the counts we'd obtain from dexing them would be lower-bound approximations only, and dependency resolution is very much out of scope here. Given that, we may as well just examine the .class files in the included JAR directly and count from those. I'd welcome a pull request that does this. A good place to start would be |
Hi guys. Support for library project would be much appreciated indeed. |
+1 |
2 similar comments
+1 |
+1 |
Thanks for your interest. I'm sorry if I was unclear above, but this is not a priority for me and I won't be able to make time for it. If someone wants to tackle this and open a pull request, I'd be happy to accept it! |
+1...hmm...it doesn't look that bad to change this except for figuring out how to test it. |
Yeah but it'll be on |
it's more like $ANDROID_HOME/build-tools/[someVersion]/dx |
I have a fix for this...will submit a PR |
@kenkyee +1 |
AAR support is landed as of 0.4.5-SNAPSHOT; thanks for the good work @kenkyee! |
grrrr...OSX. |
Oh, interesting! I forgot all about that - personally I nearly never build in Android Studio. I suppose we ought to fail gracefully if |
@kenkyee @benjamin-bader Same. I do not even use Android Studio. |
It currently throws an error if ANDROID_HOME is null which stops it, so it's not graceful. |
added a PR for looking in local.properties. There should be no reason to need to fail gracefully if it can't find the SDK location... |
It would be nice to be able to have the methods count for library projects. This means supporting the examination of the
AAR
output.In contrast to
APK
archives,AAR
archives contain aclasses.jar
file inside, instead of aclasses.dex
file.To compile
JAR
files intoDEX
files, one would use thedx
command line tool available in the Android SDK:It would be nice to do this from Java instead of calling an external command line tool to do this conversion. Looking at the source code of the
dx
tool, the method processOne looks like it would be useful for this.The text was updated successfully, but these errors were encountered: