-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read android resource package from the manifest instead of using the …
…`AndroidIdeInfo.java_package` provider API. Since the API `AndroidIdeInfo.java_package` cannot always know the actual package that the `R` class is generated in, switch to reading that informatiob from the manifest file. We rely on `AndroidIdeInfo` to provide us with the manifest file location and then parse the package name from that in the IDE. PiperOrigin-RevId: 590919016
- Loading branch information
1 parent
54f4287
commit eabf809
Showing
12 changed files
with
160 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package(default_visibility = [ | ||
"//javatests/com/google/devtools/intellij/blaze/plugin/aswb:__pkg__", | ||
"//querysync:__subpackages__", | ||
]) | ||
|
||
java_library( | ||
name = "artifacts", | ||
srcs = glob(["*.java"]), | ||
) |
16 changes: 16 additions & 0 deletions
16
querysync/java/com/google/idea/blaze/qsync/artifacts/BuildArtifactProvider.java
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,16 @@ | ||
package com.google.idea.blaze.qsync.artifacts; | ||
|
||
import java.nio.file.Path; | ||
import java.util.Optional; | ||
|
||
/** | ||
* An interface to provide absolute paths for build artifacts specified as paths relative the the | ||
* build output path. | ||
* | ||
* <p>The build output path is that reported by a {@code bazel info} invocation with key {@code | ||
* output_path}. | ||
*/ | ||
public interface BuildArtifactProvider { | ||
|
||
Optional<Path> getCachedArtifact(Path buildOutputPathRelativePath); | ||
} |
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
Oops, something went wrong.