-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathWORKSPACE
72 lines (62 loc) · 2.53 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
android_sdk_repository(
name = "androidsdk",
api_level = 29,
build_tools_version = "29.0.2"
)
http_archive(
name = "rules_android",
urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"],
sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806",
strip_prefix = "rules_android-0.1.1",
)
RULES_JVM_EXTERNAL_TAG = "2.2"
RULES_JVM_EXTERNAL_SHA = "f1203ce04e232ab6fdd81897cf0ff76f2c04c0741424d192f28e65ae752ce2d6"
http_archive(
name = "rules_jvm_external",
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
sha256 = RULES_JVM_EXTERNAL_SHA,
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
)
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
artifacts = [
"androidx.appcompat:appcompat:1.0.2",
"androidx.fragment:fragment:1.0.0",
"androidx.core:core:1.0.1",
"androidx.lifecycle:lifecycle-runtime:2.0.0",
"androidx.lifecycle:lifecycle-viewmodel:2.0.0",
"androidx.lifecycle:lifecycle-common:2.0.0",
"androidx.drawerlayout:drawerlayout:1.0.0",
"androidx.constraintlayout:constraintlayout:1.1.3",
"com.google.android.material:material:1.0.0",
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2",
"org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.2"
],
repositories = [
"https://maven.google.com",
"https://jcenter.bintray.com",
],
fetch_sources = True,
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
kotlin_version = "1.3.61"
kotlin_release_sha = "3901151ad5d94798a268d1771c6c0b7e305a608c2889fc98a674802500597b1c"
rules_kotlin_compiler_release = {
"urls": [
"https://github.com/JetBrains/kotlin/releases/download/v{v}/kotlin-compiler-{v}.zip".format(v = kotlin_version),
],
"sha256": kotlin_release_sha,
}
rules_kotlin_version = "legacy-1.3.0-rc1"
rules_kotlin_sha = "9de078258235ea48021830b1669bbbb678d7c3bdffd3435f4c0817c921a88e42"
http_archive(
name = "io_bazel_rules_kotlin",
urls = ["https://github.com/bazelbuild/rules_kotlin/archive/%s.zip" % rules_kotlin_version],
type = "zip",
strip_prefix = "rules_kotlin-%s" % rules_kotlin_version,
sha256 = rules_kotlin_sha
)
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
kotlin_repositories(compiler_release = rules_kotlin_compiler_release)
kt_register_toolchains()