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
Support libs are now AARs #74
Comments
https://github.com/pfn/android-common/blob/master/build.sbt This might do what you want Sent from my phone
|
Ps, just compile and publish as if it were a non-android project. Don't Sent from my phone
|
I decided to try publishing to AAR with Regarding my comment about that line, Finally, notice that |
How do I make |
So this is due to
This works:
In the first case, consider this code. |
Ooops! Seems like my comment was not sent. This is regarding the above. Could you look into this artifact? It looks ok to me, but when included with |
I dug a bit deeper. I think it’s an sbt bug or at least weirdness. @jsuereth
In the context of this plugin, it’s probably enough to cut the suffix in |
publishArtifact in (Compile,packageSrc) := true I don't recall why I disabled publishing sources, I'll look at removing the As for the module string weirdness, I'll look at making a workaround for it Sent from my phone
|
Thanks a lot! Just confirmed that all three sub-issues are solved. A small question: is there any particular reason why transitive AAR dependencies are not supported? |
Because library projects pull in aar/apklib transitively, and the main project doesn't know that they're transitive and would duplicately process them. That is unwanted |
Couldn’t the extraction of AARs/apklibs be centralized? |
No, because they are a build dependency of the library project, and On Mon, Jul 7, 2014 at 9:45 AM, Nick notifications@github.com wrote:
|
Ok, I see. But how many people actually use unmanaged library projects? These days most libraries are published as AARs. Maybe unmanaged libraries could be handled by publishing and including them as AARs as well? I think it’s a question of what should be given preference and extra ease of use — managed or unmanaged dependencies. As you may know, I am a proponent of the former and think that’s the way to go. But right now when I try to include Maybe this could be discussed on the mailing list? |
bad reference as in android.support is undefined, that's a pretty clear Unfortunately, multi-project builds are still common enough that's it's On Mon, Jul 7, 2014 at 9:59 AM, Nick notifications@github.com wrote:
|
Would you mind sharing your data (I’m not saying I have any myself, but my anecdotal experience obviously differs)? |
There's no real data, but about half of the apps I build for my clients (and apps of my own) involve multi-project builds. The multi-project builds are used mostly as a workaround for the lack of build variants. |
Both
support-v4
andsupport-v13
, since version20.0.0
. What a pity!I am not sure, but this code will probably have to be modified.
There is also another problem: in Macroid I was happily including the dependencies the simple way:
Now that I have to unpack the AAR, it would make more sense to just use the plugin. However I don’t rely on resource ids, don’t have an
AndroidManifest.xml
, don’t want to publish as AAR instead of plain Scala library. Do you think I actually should? Or would it be possible to include the plugin without all that and just useaar
to extract the jar from the AAR?The text was updated successfully, but these errors were encountered: