summaryrefslogtreecommitdiff
path: root/tools/aapt2/cmd/Compile.cpp
diff options
context:
space:
mode:
authorUdam Saini <udam@google.com>2019-06-18 16:50:34 -0700
committerUdam Saini <udam@google.com>2019-06-26 13:30:35 -0700
commitb228df32d9782b4d9c383e82dd1f1ffaf2227e36 (patch)
tree132bd3566c2b953d6c4287ba35502334418c72cd /tools/aapt2/cmd/Compile.cpp
parent9aeeb3e5e921a318cb27e15b9375b5ff68b1d893 (diff)
Allows features to link to other feature splits without namespacing.
Add uses-split dependencies to AppInfo. At link time, this is used and allows features to reference other features, before resource namespacing is implemented in Android Studio. bug:135681292 Test: Link_test, ReferenceLinker_test, and integration tests. Change-Id: Ifdf0067e7370552b6b9d4d6d4713d4484b6ea154
Diffstat (limited to 'tools/aapt2/cmd/Compile.cpp')
-rw-r--r--tools/aapt2/cmd/Compile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/aapt2/cmd/Compile.cpp b/tools/aapt2/cmd/Compile.cpp
index 9b81369fa9f0..c7ac438dacfb 100644
--- a/tools/aapt2/cmd/Compile.cpp
+++ b/tools/aapt2/cmd/Compile.cpp
@@ -629,6 +629,12 @@ class CompileContext : public IAaptContext {
return 0;
}
+ const std::set<std::string>& GetSplitNameDependencies() override {
+ UNIMPLEMENTED(FATAL) << "No Split Name Dependencies be needed in compile phase";
+ static std::set<std::string> empty;
+ return empty;
+ }
+
private:
DISALLOW_COPY_AND_ASSIGN(CompileContext);