@@ -7,3 +7,35 @@ bazel_dep(name = "rules_jvm_external", version = "4.5")
77bazel_dep (name = "bazel_skylib" , version = "1.3.0" )
88remote_android_extensions = use_extension ("@bazel_tools//tools/android:android_extensions.bzl" , "remote_android_tools_extensions" )
99use_repo (remote_android_extensions , "android_gmaven_r8" , "android_tools" )
10+
11+ android_sdk_proxy_extensions = use_extension ("@bazel_tools//tools/android:android_extensions.bzl" , "android_sdk_proxy_extensions" )
12+ android_sdk_proxy_extensions .configure (
13+ has_androidsdk = "@androidsdk//:has_androidsdk" ,
14+ dx_jar_import = "@androidsdk//:dx_jar_import" ,
15+ android_sdk_for_testing = "@androidsdk//:files" ,
16+ )
17+ use_repo (android_sdk_proxy_extensions , "android_external" )
18+
19+
20+ bazel_dep (
21+ name = "rules_android" ,
22+ version = "0.1.1" ,
23+ )
24+
25+ local_path_override (
26+ module_name = "rules_android" ,
27+ path = "../../" ,
28+ )
29+
30+ register_toolchains (
31+ "@rules_android//toolchains/android:android_default_toolchain" ,
32+ "@rules_android//toolchains/android_sdk:android_sdk_tools" ,
33+ )
34+
35+ android_sdk_repository_extension = use_extension ("@rules_android//rules/android_sdk_repository:rule.bzl" , "android_sdk_repository_extension" )
36+ use_repo (android_sdk_repository_extension , "androidsdk" )
37+
38+ register_toolchains (
39+ "@androidsdk//:sdk-toolchain" ,
40+ "@androidsdk//:all" ,
41+ )
0 commit comments