|
| 1 | +module(name = "jetpack_compose") |
| 2 | + |
| 3 | +bazel_dep(name = "platforms", version = "0.0.11") |
| 4 | +bazel_dep(name = "rules_java", version = "8.14.0") |
| 5 | +bazel_dep(name = "rules_kotlin", version = "1.9.5") |
| 6 | +local_path_override( |
| 7 | + module_name = "rules_kotlin", |
| 8 | + path = "../..", |
| 9 | +) |
| 10 | + |
| 11 | +bazel_dep(name = "bazel_skylib", version = "1.7.1") |
| 12 | +bazel_dep(name = "rules_jvm_external", version = "6.7") |
| 13 | +bazel_dep(name = "rules_shell", version = "0.4.1") |
| 14 | +bazel_dep(name = "rules_android", version = "0.6.6") |
| 15 | + |
| 16 | +register_toolchains( |
| 17 | + "@rules_android//toolchains/android:android_default_toolchain", |
| 18 | + "@rules_android//toolchains/android_sdk:android_sdk_tools", |
| 19 | +) |
| 20 | + |
| 21 | +android_sdk_repository_extension = use_extension("@rules_android//rules/android_sdk_repository:rule.bzl", "android_sdk_repository_extension") |
| 22 | +use_repo(android_sdk_repository_extension, "androidsdk") |
| 23 | + |
| 24 | +register_toolchains("@androidsdk//:sdk-toolchain", "@androidsdk//:all") |
| 25 | + |
| 26 | +bazel_dep(name = "rules_android_ndk", version = "0.1.3") |
| 27 | + |
| 28 | +android_ndk_repository_extension = use_extension("@rules_android_ndk//:extension.bzl", "android_ndk_repository_extension") |
| 29 | +use_repo(android_ndk_repository_extension, "androidndk") |
| 30 | + |
| 31 | +register_toolchains("@androidndk//:all") |
| 32 | + |
| 33 | +bazel_dep(name = "rules_robolectric", version = "4.14.1.2", repo_name = "robolectric") |
| 34 | + |
| 35 | +maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") |
| 36 | +maven.install( |
| 37 | + name = "maven_rules_kotlin_example", |
| 38 | + aar_import_bzl_label = "@rules_android//rules:rules.bzl", |
| 39 | + artifacts = [ |
| 40 | + "org.jetbrains.kotlin:kotlin-compose-compiler-plugin-embeddable:2.1.20", |
| 41 | + "androidx.core:core-ktx:1.15.0", |
| 42 | + "androidx.appcompat:appcompat:1.7.0", |
| 43 | + "androidx.activity:activity-compose:1.7.0", |
| 44 | + "androidx.collection:collection:1.5.0-alpha06", |
| 45 | + "androidx.lifecycle:lifecycle-runtime:2.6.1", |
| 46 | + "androidx.lifecycle:lifecycle-common:2.6.1", |
| 47 | + "androidx.compose.material:material:1.7.6", |
| 48 | + "androidx.compose.ui:ui:1.7.6", |
| 49 | + "androidx.compose.ui:ui-tooling:1.7.6", |
| 50 | + "androidx.compose.runtime:runtime:1.7.6", |
| 51 | + ], |
| 52 | + fetch_sources = True, |
| 53 | + lock_file = "//:maven_install.json", |
| 54 | + repositories = [ |
| 55 | + "https://maven.google.com", |
| 56 | + "https://repo1.maven.org/maven2", |
| 57 | + ], |
| 58 | + resolver = "maven", |
| 59 | + use_starlark_android_rules = True, |
| 60 | +) |
| 61 | +use_repo(maven, "maven_rules_kotlin_example") |
0 commit comments