Mercurial
comparison gara/android/robolectric-testing/WORKSPACE @ 47:829623189a57
[Gara] Android commit. Bazelfied it.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sat, 13 Dec 2025 14:20:34 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 46:b9a40c633c93 | 47:829623189a57 |
|---|---|
| 1 # FIXME(alexeagle): move to bzlmod | |
| 2 workspace(name = "bazel_android_sample_project") | |
| 3 | |
| 4 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
| 5 | |
| 6 ## Android | |
| 7 | |
| 8 http_archive( | |
| 9 name = "build_bazel_rules_android", | |
| 10 sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", | |
| 11 strip_prefix = "rules_android-0.1.1", | |
| 12 urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"], | |
| 13 ) | |
| 14 | |
| 15 load("@build_bazel_rules_android//android:rules.bzl", "android_sdk_repository") | |
| 16 | |
| 17 android_sdk_repository(name = "androidsdk") | |
| 18 | |
| 19 ## Kotlin | |
| 20 | |
| 21 http_archive( | |
| 22 name = "io_bazel_rules_kotlin", | |
| 23 sha256 = "f033fa36f51073eae224f18428d9493966e67c27387728b6be2ebbdae43f140e", | |
| 24 url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.7.0-RC-3/rules_kotlin_release.tgz", | |
| 25 ) | |
| 26 | |
| 27 load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories") | |
| 28 | |
| 29 kotlin_repositories() | |
| 30 | |
| 31 load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains") | |
| 32 | |
| 33 kt_register_toolchains() | |
| 34 | |
| 35 # Android Testing | |
| 36 | |
| 37 http_archive( | |
| 38 name = "robolectric", | |
| 39 sha256 = "7655c49633ec85a18b5a94b1ec36e250671808e45494194959b1d1d7f3e73a23", | |
| 40 strip_prefix = "robolectric-bazel-4.9", | |
| 41 urls = ["https://github.com/robolectric/robolectric-bazel/archive/4.9.tar.gz"], | |
| 42 ) | |
| 43 | |
| 44 load("@robolectric//bazel:robolectric.bzl", "robolectric_repositories") | |
| 45 | |
| 46 robolectric_repositories() |