Snapchat / djinni

A tool for generating cross-language type declarations and interface bindings. Djinni's new home is in the Snapchat org.
Apache License 2.0
166 stars 44 forks source link

Force bazel to use d8 instead of dx for Android #148

Closed LiFengSC closed 12 months ago

LiFengSC commented 1 year ago

bazel 5 by default uses dx which is deprecated since 2018 and no longer available in buildtools v31 and later. This change upgrade bazel version to lates v5 release (5.4.1) and added command line flags to .bazelrc to force it to use d8 instead of dx. The hard coded buildtools version number is removed.

LiFengSC commented 1 year ago

IIRC the scala toolchain does not support bazel 6

paulocoutinhox commented 1 year ago

https://github.com/bazelbuild/rules_scala#bazel-compatible-versions

LiFengSC commented 12 months ago

Tested on Ubuntu with sdk33 & ndk21d.