forked from android/testing-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
72 lines (56 loc) · 1.86 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")
# Set the path to your local SDK installation, or use the ANDROID_HOME environment variable.
android_sdk_repository(
name = "androidsdk",
api_level = 28,
build_tools_version = "28.0.2",
# path = "/path/to/sdk",
)
# Android Test Support
#
# This repository contains the supporting tools to run Android instrumentation tests,
# like the emulator definitions (android_device) and the device broker/test runner.
ATS_COMMIT = "10c8fdf6a1c9c48a268e2db19646732c62c1313c"
ATS_SHA256 = "f427adae66469846e41b16b49062a8e320fed5a426ec7072f9bf5cc064450418"
http_archive(
name = "android_test_support",
sha256 = ATS_SHA256,
strip_prefix = "android-test-%s" % ATS_COMMIT,
urls = ["https://github.com/android/android-test/archive/%s.tar.gz" % ATS_COMMIT],
)
load("@android_test_support//:repo.bzl", "android_test_repositories")
android_test_repositories()
# Google Maven Repository
# This repository contains the external dependency definitions for Google Maven artifacts.
GMAVEN_TAG = "20181206-1"
http_archive(
name = "gmaven_rules",
strip_prefix = "gmaven_rules-%s" % GMAVEN_TAG,
url = "https://github.com/bazelbuild/gmaven_rules/archive/%s.tar.gz" % GMAVEN_TAG,
)
load("@gmaven_rules//:gmaven.bzl", "gmaven_rules")
gmaven_rules()
maven_jar(
name = "com_google_inject_guice",
artifact = "com.google.inject:guice:4.0",
)
maven_jar(
name = "junit_junit",
artifact = "junit:junit:4.12",
)
maven_jar(
name = "javax_inject_javax_inject",
artifact = "javax.inject:javax.inject:1",
)
maven_jar(
name = "org_hamcrest_java_hamcrest",
artifact = "org.hamcrest:java-hamcrest:2.0.0.0",
)
maven_jar(
name = "com_google_guava_guava",
artifact = "com.google.guava:guava:26.0-android",
)
maven_jar(
name = "truth",
artifact = "com.google.truth:truth:0.42",
)