Skip to content
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

Aar consume #228

Merged
merged 4 commits into from Sep 7, 2013
Merged

Aar consume #228

merged 4 commits into from Sep 7, 2013

Conversation

Shusshu
Copy link
Contributor

@Shusshu Shusshu commented Aug 24, 2013

First step in consuming an .aar library

@Shusshu
Copy link
Contributor Author

Shusshu commented Aug 29, 2013

Still need to properly add the classes.jar before compile time.

I haven't been able to find a proper way to let the compiler know about the classes.jar inside the .aar
To add them to the classpath for the compilation

I see 2 possible solutions:
1° add a new mojo that adds the classes.jar to the classpath before compilation (as the classes.jar is extracted to disk)
2° Enhanced the compile mojo to look inside an aar and take the classes.jar

I tried n°1 but it didn't seem to work by using the following line:

    projectHelper.attachArtifact( this.project, "jar", project.getArtifact().getClassifier(), classesJarFile );

Workaround for the moment
Add a dependency on the "aar" and also on the "jar" but usually the .jar is missing from central (except for actionbarsherlock)

Other things not implemented:

  • Lint
  • proguard
  • \libs

mosabua added a commit that referenced this pull request Sep 7, 2013
@mosabua mosabua merged commit d0bce35 into simpligility:aar Sep 7, 2013
@ankushg
Copy link

ankushg commented Sep 16, 2013

Does this enable any way to use maven-android with aar artifacts in maven central or is this just still a step in that direction?

@mosabua
Copy link
Member

mosabua commented Sep 16, 2013

Step towards it.. aar support is still in progress. Next step is to create example projects and test it. You could try and see how far you get @ankushg

@Shusshu Shusshu deleted the aar-consume branch August 11, 2014 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants