Skip to content

Commit 81c88ea

Browse files
committed
Fix Bazel build
- Pin Bazel version to 7.4.1 with a .bazelversion - Builds are now using SDK 35 - Upgrade to androidx.core:core v1.9.0 to use ContextCompat.RECEIVER_EXPORTED()
1 parent 7a8957b commit 81c88ea

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.bazelversion

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.4.1

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ bazel-bin
33
bazel-out
44
bazel-testlogs
55
**/*.iml
6-
.idea
6+
.idea
7+
*.lock

MODULE.bazel

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
###############################################################################
2+
# Bazel now uses Bzlmod by default to manage external dependencies.
3+
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
4+
#
5+
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
6+
###############################################################################

WORKSPACE

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ workspace(name = "testdpc")
22

33
android_sdk_repository(
44
name = "androidsdk",
5-
api_level = 34,
5+
api_level = 35,
66
)
77

88
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
@@ -49,7 +49,7 @@ maven_install(
4949
"androidx.appcompat:appcompat-resources:1.6.1",
5050
"androidx.collection:collection:1.2.0",
5151
"androidx.constraintlayout:constraintlayout:2.1.3",
52-
"androidx.core:core:1.6.0",
52+
"androidx.core:core:1.9.0",
5353
"androidx.enterprise:enterprise-feedback:1.1.0",
5454
"androidx.legacy:legacy-support-core-ui:1.0.0",
5555
"androidx.legacy:legacy-support-v13:1.0.0",

0 commit comments

Comments
 (0)