@@ -2,16 +2,17 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
2
3
3
# Requires ANDROID_HOME set to the path of your Android SDK.
4
4
android_sdk_repository (
5
- name = "androidsdk" ,
5
+ name = "androidsdk" ,
6
6
)
7
7
8
8
RULES_JVM_EXTERNAL_TAG = "2.8"
9
+
9
10
RULES_JVM_EXTERNAL_SHA = "79c9850690d7614ecdb72d68394f994fef7534b292c4867ce5e7dec0aa7bdfad"
10
11
11
12
http_archive (
12
13
name = "rules_jvm_external" ,
13
- strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG ,
14
14
sha256 = RULES_JVM_EXTERNAL_SHA ,
15
+ strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG ,
15
16
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG ,
16
17
)
17
18
@@ -23,19 +24,37 @@ maven_install(
23
24
"com.android.support:appcompat-v7:26.1.0" ,
24
25
"com.android.support.constraint:constraint-layout:1.0.2" ,
25
26
],
27
+ fetch_sources = True ,
26
28
repositories = [
27
29
"https://jcenter.bintray.com/" ,
28
30
"https://maven.google.com" ,
29
31
],
30
- fetch_sources = True ,
31
32
)
32
33
33
34
TOOLS_ANDROID_COMMIT = "0e864ba5a86958513658250de587416d8e17c481"
35
+
34
36
http_archive (
35
- name = "tools_android" ,
36
- strip_prefix = "tools_android-" + TOOLS_ANDROID_COMMIT ,
37
- url = "https://github.com/bazelbuild/ tools_android/archive/%s.tar.gz" % TOOLS_ANDROID_COMMIT ,
38
- sha256 = "57c50d6331ba578fc8adfcede20ef12b437cb4cc2edf60c852e4b834eefee5fc" ,
37
+ name = "tools_android" ,
38
+ sha256 = "57c50d6331ba578fc8adfcede20ef12b437cb4cc2edf60c852e4b834eefee5fc" ,
39
+ strip_prefix = "tools_android-" + TOOLS_ANDROID_COMMIT ,
40
+ url = "https://github.com/bazelbuild/tools_android/archive/%s.tar.gz" % TOOLS_ANDROID_COMMIT ,
39
41
)
42
+
40
43
load ("@tools_android//tools/googleservices:defs.bzl" , "google_services_workspace_dependencies" )
44
+
41
45
google_services_workspace_dependencies ()
46
+
47
+ load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
48
+ http_archive (
49
+ name = "rules_android" ,
50
+ urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip" ],
51
+ sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806" ,
52
+ strip_prefix = "rules_android-0.1.1" ,
53
+ )
54
+
55
+ http_archive (
56
+ name = "rules_cc" ,
57
+ url = "https://github.com/bazelbuild/rules_cc/archive/624b5d59dfb45672d4239422fa1e3de1822ee110.zip" ,
58
+ sha256 = "8c7e8bf24a2bf515713445199a677ee2336e1c487fa1da41037c6026de04bbc3" ,
59
+ strip_prefix = "rules_cc-624b5d59dfb45672d4239422fa1e3de1822ee110" ,
60
+ )
0 commit comments