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

Expose android.car jar from android sdk #20712

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nikolai-manzhos
Copy link

Enable access to android.car library bundled with android sdk
See bazelbuild/rules_android#299

Copy link

google-cla bot commented Jan 2, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added team-Android Issues for Android team awaiting-review PR is awaiting review from an assigned reviewer labels Jan 2, 2024
Copy link
Contributor

@ahumesky ahumesky left a comment

Choose a reason for hiding this comment

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

consider also making this change to the starlark version of the rules here:

https://github.com/bazelbuild/rules_android/blob/main/rules/android_sdk_repository/helper.bzl

native.alias(
name = "android_car",
actual = ":android_car-%d" % default_api_level,
)
Copy link
Contributor

@ahumesky ahumesky Jan 3, 2024

Choose a reason for hiding this comment

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

this should probably go inside the if above so that the all and ... target patterns still work when the api level is < 29

Copy link
Author

Choose a reason for hiding this comment

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

Good point, I'll move it. Perhaps we should also consider doing the same thing for org_apache_http_legacy.

Copy link
Author

Choose a reason for hiding this comment

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

Ended up adding additional check for default_api_level. Moving this to the if statement above could potentially result in creating alias multiple times.

Copy link
Author

Choose a reason for hiding this comment

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

@ahumesky could you take a look again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review PR is awaiting review from an assigned reviewer team-Android Issues for Android team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants