Skip to content

Commit

Permalink
Clean-up WORKSPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
Kernald committed Jul 12, 2021
1 parent 5d454bf commit 68e2925
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions examples/jetpack_compose/WORKSPACE
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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",
Expand Down Expand Up @@ -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),
],
},
)
Expand Down

0 comments on commit 68e2925

Please sign in to comment.