• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 The Bazel Authors. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#    http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15"""Skylark rules for building Android apps."""
16
17load(
18    "//rules/aar_import:rule.bzl",
19    _aar_import = "aar_import",
20)
21
22#load(
23#    ":apk_import.bzl",
24#    _apk_import = "apk_import",
25#)
26
27load(
28    ":android_binary.bzl",
29    _android_binary = "android_binary",
30)
31
32# load(
33#     ":android_device.bzl",
34#     _android_device = "android_device",
35# )
36# load(
37#     ":android_device_script_fixture.bzl",
38#     _android_device_script_fixture = "android_device_script_fixture",
39# )
40# load(
41#     ":android_host_service_fixture.bzl",
42#     _android_host_service_fixture = "android_host_service_fixture",
43# )
44# load(
45#     ":android_instrumentation_test.bzl",
46#     _android_instrumentation_test = "android_instrumentation_test",
47# )
48
49load(
50    "//rules/android_library:rule.bzl",
51    _android_library = "android_library_macro",
52)
53
54# load(
55#     ":android_local_test.bzl",
56#     _android_local_test = "android_local_test",
57# )
58
59load(
60    ":android_ndk_repository.bzl",
61    _android_ndk_repository = "android_ndk_repository",
62)
63load(
64    ":android_sdk.bzl",
65    _android_sdk = "android_sdk",
66)
67load(
68    ":android_sdk_repository.bzl",
69    _android_sdk_repository = "android_sdk_repository",
70)
71load(
72    ":android_tools_defaults_jar.bzl",
73    _android_tools_defaults_jar = "android_tools_defaults_jar",
74)
75
76# Current version. Tools may check this to determine compatibility.
77RULES_ANDROID_VERSION = "0.1.0"
78
79aar_import = _aar_import
80
81"""https://docs.bazel.build/versions/master/be/android.html#android_apk_to_bundle"""
82
83android_binary = _android_binary
84
85"""https://docs.bazel.build/versions/master/be/android.html#android_binary"""
86
87#android_device = _android_device
88
89"""https://docs.bazel.build/versions/master/be/android.html#android_device"""
90
91#android_device_script_fixture = _android_device_script_fixture
92
93"""https://docs.bazel.build/versions/master/be/android.html#android_host_service_fixture"""
94
95#android_host_service_fixture = _android_host_service_fixture
96
97"""https://docs.bazel.build/versions/master/be/android.html#android_device_script_fixture"""
98
99#android_instrumentation_test = _android_instrumentation_test
100
101"""https://docs.bazel.build/versions/master/be/android.html#android_instrumentation_test"""
102
103android_library = _android_library
104
105"""https://docs.bazel.build/versions/master/be/android.html#android_library"""
106
107#android_local_test = _android_local_test
108
109"""https://docs.bazel.build/versions/master/be/android.html#android_local_test"""
110
111android_ndk_repository = _android_ndk_repository
112
113"""https://docs.bazel.build/versions/master/be/android.html#android_ndk_repository"""
114
115android_sdk = _android_sdk
116
117"""https://docs.bazel.build/versions/master/be/android.html#android_sdk"""
118
119android_sdk_repository = _android_sdk_repository
120
121"""https://docs.bazel.build/versions/master/be/android.html#android_sdk_repository"""
122
123android_tools_defaults_jar = _android_tools_defaults_jar
124
125"""https://docs.bazel.build/versions/master/be/android.html#android_tools_defaults_jar"""
126
127#apk_import = _apk_import
128#
129#"""https://docs.bazel.build/versions/master/be/android.html#apk_import"""
130