-
-
Notifications
You must be signed in to change notification settings - Fork 515
/
WORKSPACE
46 lines (31 loc) · 1.35 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# FIXME(alexeagle): move to bzlmod
workspace(name = "bazel_android_sample_project")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
## Android
http_archive(
name = "build_bazel_rules_android",
sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806",
strip_prefix = "rules_android-0.1.1",
urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"],
)
load("@build_bazel_rules_android//android:rules.bzl", "android_sdk_repository")
android_sdk_repository(name = "androidsdk")
## Kotlin
http_archive(
name = "io_bazel_rules_kotlin",
sha256 = "f033fa36f51073eae224f18428d9493966e67c27387728b6be2ebbdae43f140e",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.7.0-RC-3/rules_kotlin_release.tgz",
)
load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
kotlin_repositories()
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
kt_register_toolchains()
# Android Testing
http_archive(
name = "robolectric",
sha256 = "7655c49633ec85a18b5a94b1ec36e250671808e45494194959b1d1d7f3e73a23",
strip_prefix = "robolectric-bazel-4.9",
urls = ["https://github.com/robolectric/robolectric-bazel/archive/4.9.tar.gz"],
)
load("@robolectric//bazel:robolectric.bzl", "robolectric_repositories")
robolectric_repositories()