-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
base: master
Are you sure you want to change the base?
Expose android.car jar from android sdk #20712
Conversation
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. |
e15bcf3
to
f68c332
Compare
There was a problem hiding this 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, | ||
) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
f68c332
to
2853962
Compare
Enable access to android.car library bundled with android sdk
See bazelbuild/rules_android#299