Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 58f7062

Browse filesBrowse files
committed
binder: support building using bazel too
1 parent 92f94ce commit 58f7062
Copy full SHA for 58f7062

4 files changed

+34-2Lines changed: 34 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.bazelrc‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
22

3-
common:skip_android --deleted_packages=android
3+
common:skip_android --deleted_packages=android,binder
Collapse file

‎MODULE.bazel‎

Copy file name to clipboardExpand all lines: MODULE.bazel
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,7 @@ maven.override(
202202
coordinates = "io.grpc:grpc-util",
203203
target = "@io_grpc_grpc_java//util",
204204
)
205+
maven.override(
206+
coordinates = "io.grpc:grpc-binder",
207+
target = "@io_grpc_grpc_java//binder",
208+
)
Collapse file

‎binder/BUILD.bazel‎

Copy file name to clipboard
+27Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
load("@rules_android//rules:rules.bzl", "android_library")
2+
load("@rules_jvm_external//:defs.bzl", "artifact")
3+
4+
licenses(["notice"])
5+
6+
android_library(
7+
name = "binder",
8+
srcs = glob([
9+
"src/main/java/**/*.java",
10+
]),
11+
manifest = "src/main/AndroidManifest.xml",
12+
custom_package = "io.grpc.binder",
13+
visibility = ["//visibility:public"],
14+
exports = ["@grpc_android_maven//:androidx_annotation_annotation"],
15+
deps = [
16+
"//api",
17+
"//core:internal",
18+
# Resolve android deps from the isolated grpc_android_maven repository.
19+
"@grpc_android_maven//:androidx_annotation_annotation",
20+
"@grpc_android_maven//:androidx_annotation_annotation_jvm",
21+
"@grpc_android_maven//:androidx_core_core",
22+
"@grpc_android_maven//:androidx_lifecycle_lifecycle_common",
23+
artifact("com.google.code.findbugs:jsr305"),
24+
artifact("com.google.errorprone:error_prone_annotations"),
25+
artifact("com.google.guava:guava"),
26+
],
27+
)
Collapse file

‎buildscripts/kokoro/android.sh‎

Copy file name to clipboardExpand all lines: buildscripts/kokoro/android.sh
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export PATH=/tmp/bazelisk:$PATH
4343
# TODO(jdcormie): Use the same SDK version as build.gradle's compileSdkVersion.
4444
"${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager" --install "platforms;android-34"
4545
bazelisk build \
46-
//android
46+
//android \
47+
//binder
4748

4849
curl -Ls https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3-linux-x86_64.tar.gz | \
4950
tar xz -C /tmp

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.