-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use module_extension for androidsdk & prepare bzlmod for example/basi…
…capp
- Loading branch information
JiaYan Lin
committed
Mar 1, 2024
1 parent
0a68ba6
commit 2406e2e
Showing
10 changed files
with
173 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
# Empty build file to satisfy gazelle for rules_go. | ||
# Empty build file to satisfy gazelle for rules_go. | ||
|
||
# TODO: remove these alias when ../..//BUILD remove them | ||
alias( | ||
name = "androidsdk_sdk", | ||
actual = "@androidsdk//:sdk", | ||
) | ||
|
||
alias( | ||
name = "androidsdk_d8_jar_import", | ||
actual = "@androidsdk//:d8_jar_import", | ||
) | ||
|
||
alias( | ||
name = "androidsdk_dx_jar_import", | ||
actual = "@androidsdk//:dx_jar_import", | ||
) | ||
|
||
alias( | ||
name = "androidsdk_files", | ||
actual = "@androidsdk//:files", | ||
) | ||
|
||
alias( | ||
name = "androidsdk_has_android_sdk", | ||
actual = "@androidsdk//:has_android_sdk", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
local_repository( | ||
name = "rules_android", | ||
path = "../..", # rules_android's WORKSPACE relative to this inner workspace | ||
) | ||
workspace(name = "basicapp") | ||
|
||
load("@rules_android//:prereqs.bzl", "rules_android_prereqs") | ||
rules_android_prereqs() | ||
load("@rules_android//:defs.bzl", "rules_android_workspace") | ||
rules_android_workspace() | ||
|
||
load("@rules_android//rules:rules.bzl", "android_sdk_repository") | ||
android_sdk_repository( | ||
name = "androidsdk", | ||
) | ||
|
||
register_toolchains( | ||
"@rules_android//toolchains/android:android_default_toolchain", | ||
"@rules_android//toolchains/android_sdk:android_sdk_tools", | ||
) | ||
# local_repository( | ||
# name = "rules_android", | ||
# path = "../../" | ||
# ) | ||
|
||
# load("@rules_android//rules/android_sdk_repository:rule.bzl", "android_sdk_repository") | ||
# android_sdk_repository(name = "androidsdk") | ||
|
||
# Temporary until we break all //external:android dependency | ||
bind(name = "android/sdk", actual = "@//:androidsdk_sdk") | ||
bind(name = "android/dx_jar_import", actual = "@//:androidsdk_dx_jar_import") | ||
bind(name = "android_sdk_for_testing", actual = "//:androidsdk_files") | ||
bind(name = "has_android_sdk", actual = "//:androidsdk_has_android_sdk") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters