diff --git a/examples/jetpack_compose/WORKSPACE b/examples/jetpack_compose/WORKSPACE index f70936578..916c9013c 100644 --- a/examples/jetpack_compose/WORKSPACE +++ b/examples/jetpack_compose/WORKSPACE @@ -1,7 +1,11 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +_COMPOSE_VERSION = "1.0.0-beta07" + _KOTLIN_COMPILER_VERSION = "1.4.32" +_KOTLIN_COMPILER_SHA = "dfef23bb86bd5f36166d4ec1267c8de53b3827c446d54e82322c6b6daad3594c" + ## JVM External _RULES_JVM_EXTERNAL_VERSION = "4.0" @@ -26,10 +30,10 @@ maven_install( "androidx.appcompat:appcompat:1.3.0", "com.google.android.material:material:1.3.0", "androidx.activity:activity-compose:1.3.0-alpha08", - "androidx.compose.material:material:1.0.0-beta07", - "androidx.compose.ui:ui:1.0.0-beta07", - "androidx.compose.ui:ui-tooling:1.0.0-beta07", - "androidx.compose.compiler:compiler:1.0.0-beta07", + "androidx.compose.material:material:{}".format(_COMPOSE_VERSION), + "androidx.compose.ui:ui:{}".format(_COMPOSE_VERSION), + "androidx.compose.ui:ui-tooling:{}".format(_COMPOSE_VERSION), + "androidx.compose.compiler:compiler:{}".format(_COMPOSE_VERSION), ], repositories = [ "https://maven.google.com", @@ -141,13 +145,13 @@ load("@io_bazel_rules_kotlin//kotlin:dependencies.bzl", "kt_download_local_dev_d kt_download_local_dev_dependencies() -load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains") +load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories") kotlin_repositories( compiler_release = { - "sha256": "dfef23bb86bd5f36166d4ec1267c8de53b3827c446d54e82322c6b6daad3594c", + "sha256": _KOTLIN_COMPILER_SHA, "urls": [ - "https://github.com/JetBrains/kotlin/releases/download/v1.4.32/kotlin-compiler-1.4.32.zip", + "https://github.com/JetBrains/kotlin/releases/download/v{}/kotlin-compiler-{}.zip".format(_KOTLIN_COMPILER_VERSION, _KOTLIN_COMPILER_VERSION), ], }, )