Merge "Do not rename R.java package" am: 5691fb68fd

Change-Id: I903ac98bb5bf99598cbbf9a79dd11315f4304f99
This commit is contained in:
Liz Kammer
2020-05-21 20:26:45 +00:00
committed by Automerger Merge Worker

View File

@@ -1659,10 +1659,8 @@ class Linker {
return 1;
}
// Determine the package name under which to merge resources.
if (options_.rename_resources_package) {
context_->SetCompilationPackage(options_.rename_resources_package.value());
} else if (Maybe<AppInfo> maybe_app_info =
// First extract the package name without modifying it (via --rename-manifest-package).
if (Maybe<AppInfo> maybe_app_info =
ExtractAppInfoFromManifest(manifest_xml.get(), context_->GetDiagnostics())) {
// Extract the package name from the manifest ignoring the value of --rename-manifest-package.
const AppInfo& app_info = maybe_app_info.value();