Skip to content

Conversation

@kateliu20
Copy link
Contributor

Running bazel build :lint with bazel version 8 and was able to run successfully after adding rules_android bazel dep.

MODULE.bazel Outdated
compatibility_level = 1,
)

bazel_dep(name = "rules_android", version = "0.5.0")
Copy link
Owner

Choose a reason for hiding this comment

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

There's a newer version out already, might be worth while just using that directly. 6.0.0 should also decouple us from needing the .bazelrc flags for enabling access to the native providers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, I upgraded here: d23ab76

"AndroidLibraryResourceClassJarProvider",
"AndroidLibraryAarInfo"
)

Copy link
Owner

Choose a reason for hiding this comment

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

Can you also add JavaInfo loads as well? They can be loaded from rules_java now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is like this okay? e75150a

Copy link
Owner

Choose a reason for hiding this comment

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

That looks correct!

@Bencodes
Copy link
Owner

@kateliu20 can you take a look at the failing CI checks?

@kateliu20
Copy link
Contributor Author

kateliu20 commented Dec 18, 2024

It seems like the CI checks are all failing because it cannot find rules_android version 6.0.0:
module not found in registries: [email protected] @Bencodes do you have suggestions of what other versions I could use or if I need to upgrade to bazel 8?

edit: I will upgrade to bazel 8

@kateliu20 kateliu20 force-pushed the kl/load-rules-android branch from eb29b36 to 8f26181 Compare January 15, 2025 22:17
@Bencodes Bencodes merged commit 5c79447 into Bencodes:main Jan 17, 2025
4 checks passed
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.

2 participants