-
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to override generated target labels (#200)
* Add ability to override generated target labels * formatting * maybe need ndk * Update WORKSPACE * Don't run test on remote * Make tests pass * Add comment * Add docs
- Loading branch information
Showing
9 changed files
with
215 additions
and
9 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.example.bazel" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
|
||
<uses-sdk | ||
android:minSdkVersion="21" | ||
android:targetSdkVersion="26" /> | ||
|
||
|
||
</manifest> |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
load("@bazel_skylib//rules:build_test.bzl", "build_test") | ||
|
||
build_test( | ||
name = "override_targets", | ||
targets = [":app"], | ||
) | ||
|
||
android_binary( | ||
name = "app", | ||
manifest = "AndroidManifest.xml", | ||
custom_package = "not.used", | ||
deps = [ | ||
"@regression_testing//:com_google_ar_sceneform_ux_sceneform_ux" | ||
], | ||
) | ||
|
||
# rendering-1.10.0.aar is known to have an incomplete list of dependencies in | ||
# its POM file. We manually replace the generated target here to work around | ||
# this issue. See https://github.com/bazelbuild/rules_jvm_external/issues/199 | ||
# for more information. | ||
aar_import( | ||
name = "sceneform_rendering", | ||
aar = "@regression_testing//:v1/https/maven.google.com/com/google/ar/sceneform/rendering/1.10.0/rendering-1.10.0.aar", | ||
deps = [ | ||
# Add the missing dependencies | ||
"@regression_testing//:com_google_ar_core", | ||
"@regression_testing//:com_google_ar_sceneform_sceneform_base", | ||
"@regression_testing//:com_google_ar_sceneform_filament_android", | ||
], | ||
tags = ["maven_coordinates=com.google.ar.sceneform:rendering:aar:1.10.0"], | ||
visibility = ["@regression_testing//:__subpackages__"] | ||
) |