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

Change .kotlin_module generated name #347

Merged
merged 1 commit into from
May 20, 2020
Merged

Change .kotlin_module generated name #347

merged 1 commit into from
May 20, 2020

Conversation

crgarridos
Copy link
Contributor

@crgarridos crgarridos commented May 20, 2020

Hi, I confronted the following error while building with barista and an internal company's library.

Duplicate files copied in APK META-INF/library_release.kotlin_module

And found out that barista is taking this name too:
image

I've already fixed on our side but think this could be useful for other barista users.


This PR has as purpose avoid taking the name of the current folder to generate the
kotlin_module generated into the .aar/META-INF.

In practice, rename "META-INF/library_release.kotlin_module" to
"META-INF/barista.kotlin_module".

This avoid Barista consumers to exclude this file if another library
generated the same one.

See: https://stackoverflow.com/q/4450960

This avoid taking the name of the current folder to generate the
kotlin_module generated into the .aar/META-INF.
In practice, rename "META-INF/library_release.kotlin_module" to
"META-INF/barista.kotlin_module".

This avoid Barista consumers to exclude this file if another library
generated the same one.
See: https://stackoverflow.com/q/44509608
@crgarridos crgarridos marked this pull request as ready for review May 20, 2020 02:44
@rocboronat
Copy link
Member

Seems legit to me 😅 Thanks for the PR! Going to try it in localhost because honesty, I (and I think we) never faced the issue 👯

Copy link
Member

@Sloy Sloy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @crgarridos! 👋
We didn't encounter this either, but your fix sounds right.
Thank you!

@rocboronat
Copy link
Member

I didn't find any reason not to go forward with it 😄

Any feedback guys? @Sloy @alorma

@rocboronat
Copy link
Member

Oh, just read you @Sloy, didn't refresh the page.

So... merge at will then 👍

Thanks @crgarridos for this lovely contribution!

@Sloy Sloy merged commit b88507a into AdevintaSpain:master May 20, 2020
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

4 participants