Mercurial
comparison gara/android/jetpack-compose/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 _KOTLIN_COMPILER_VERSION = "1.7.20" | |
| 7 | |
| 8 _KOTLIN_COMPILER_SHA = "5e3c8d0f965410ff12e90d6f8dc5df2fc09fd595a684d514616851ce7e94ae7d" | |
| 9 | |
| 10 ## Android | |
| 11 | |
| 12 http_archive( | |
| 13 name = "build_bazel_rules_android", | |
| 14 sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", | |
| 15 strip_prefix = "rules_android-0.1.1", | |
| 16 urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"], | |
| 17 ) | |
| 18 | |
| 19 load("@build_bazel_rules_android//android:rules.bzl", "android_sdk_repository") | |
| 20 | |
| 21 android_sdk_repository(name = "androidsdk") | |
| 22 | |
| 23 ## Kotlin | |
| 24 | |
| 25 http_archive( | |
| 26 name = "io_bazel_rules_kotlin", | |
| 27 sha256 = "f033fa36f51073eae224f18428d9493966e67c27387728b6be2ebbdae43f140e", | |
| 28 url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.7.0-RC-3/rules_kotlin_release.tgz", | |
| 29 ) | |
| 30 | |
| 31 load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories", "kotlinc_version") | |
| 32 | |
| 33 kotlin_repositories( | |
| 34 compiler_release = kotlinc_version( | |
| 35 release = _KOTLIN_COMPILER_VERSION, | |
| 36 sha256 = _KOTLIN_COMPILER_SHA, | |
| 37 ), | |
| 38 ) | |
| 39 | |
| 40 load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains") | |
| 41 | |
| 42 kt_register_toolchains() |