forked from bazelbuild/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
63 lines (51 loc) · 2.03 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
workspace(name = "bazel_android_sample_project")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
## rules_jvm_external
http_archive(
name = "rules_jvm_external",
sha256 = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea15e9e5ba1ca",
strip_prefix = "rules_jvm_external-4.2",
url = "https://github.com/bazelbuild/rules_jvm_external/archive/4.2.zip",
)
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
name = "maven",
artifacts = [
"androidx.appcompat:appcompat:1.5.1",
"androidx.constraintlayout:constraintlayout:2.1.4",
# Needed to enforce version conflict resolution
"androidx.savedstate:savedstate:1.2.0",
"androidx.lifecycle:lifecycle-livedata-core:2.5.1",
"androidx.lifecycle:lifecycle-livedata:2.5.1",
"androidx.lifecycle:lifecycle-process:2.5.1",
"androidx.lifecycle:lifecycle-runtime:2.5.1",
"androidx.lifecycle:lifecycle-service:2.5.1",
"androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1",
"androidx.lifecycle:lifecycle-viewmodel:2.5.1",
],
repositories = [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
)
## Android
http_archive(
name = "build_bazel_rules_android",
sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806",
strip_prefix = "rules_android-0.1.1",
urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"],
)
load("@build_bazel_rules_android//android:rules.bzl", "android_sdk_repository")
android_sdk_repository(
name = "androidsdk",
)
http_archive(
name = "rules_android_ndk",
sha256 = "3fa4a58f4df356bca277219763f91c64f33dcc59e10843e9762fc5e7947644f9",
strip_prefix = "rules_android_ndk-63fa7637902fb1d7db1bf86182e939ed3fe98477",
url = "https://github.com/bazelbuild/rules_android_ndk/archive/63fa7637902fb1d7db1bf86182e939ed3fe98477.zip",
)
load("@rules_android_ndk//:rules.bzl", "android_ndk_repository")
android_ndk_repository(
name = "androidndk",
)