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

Cherrypick for 4.2.0: Support extracting aar files. #13768

Merged
merged 1 commit into from
Jul 29, 2021
Merged

Cherrypick for 4.2.0: Support extracting aar files. #13768

merged 1 commit into from
Jul 29, 2021

Conversation

cpsauer
Copy link
Contributor

@cpsauer cpsauer commented Jul 28, 2021

@katre, any chance this one could still go into 4.2.0 (#13558)?

It's a cherrypick of 9055c67.

This is handy, though not essential, for manipulating Android aars in repository rules. It only slightly generalizes an existing interface, without changing or removing any existing functionality.

Original commit message below:

Hey awesome Bazel team,

Would you consider allowing extract, download_and_extract, and http_archive to decompress .aar android archives? Figured I'd just toss up a PR to ask because it was such an easy addition; aars are just zip files under the hood, totally parallel to the jar/war cases already in the codebase.

The motivation is that you'll need this basic functionality to be able to depend on the native interface of an aar, which Android Studio & co are working on in prefabs. I ran into the lack of support while trying to hack myself support for #13092.

Thanks for your consideration!
Chris

Closes #13098.

PiperOrigin-RevId: 387384152

Hey awesome Bazel team,

Would you consider allowing extract, download_and_extract, and http_archive to decompress .aar android archives? Figured I'd just toss up a PR to ask because it was such an easy addition; aars are just zip files under the hood, totally parallel to the jar/war cases already in the codebase.

The motivation is that you'll need this basic functionality to be able to depend on the native interface of an aar, which Android Studio & co are working on in [prefabs](https://developer.android.com/studio/build/native-dependencies). I ran into the lack of support while trying to hack myself support for #13092.

Thanks for your consideration!
Chris

Closes #13098.

PiperOrigin-RevId: 387384152
@google-cla google-cla bot added the cla: yes label Jul 28, 2021
@aiuto aiuto requested a review from katre July 29, 2021 15:01
@katre
Copy link
Member

katre commented Jul 29, 2021

Yes, we're still accepting cherrypicks, I'll take a look and merge this today if I can.

@katre katre merged commit afb8196 into bazelbuild:release-4.2.0-patches Jul 29, 2021
@katre katre mentioned this pull request Jul 29, 2021
9 tasks
@cpsauer
Copy link
Contributor Author

cpsauer commented Jul 29, 2021

Thanks so much, @katre!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants