Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2616)

Unified Diff: chrome/android/chrome_public_apk_tmpl.gni

Issue 2369573002: Add GN arg "enable_proguard_obfuscation" (Closed)
Patch Set: Add GN arg "enable_proguard_obfuscation" Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/java/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/chrome_public_apk_tmpl.gni
diff --git a/chrome/android/chrome_public_apk_tmpl.gni b/chrome/android/chrome_public_apk_tmpl.gni
index b8a922b5b29cb12168608e7c30ce0d23f951d605..c107d629b271a5cfed19f778a3ba05b3d7abc97b 100644
--- a/chrome/android/chrome_public_apk_tmpl.gni
+++ b/chrome/android/chrome_public_apk_tmpl.gni
@@ -24,6 +24,9 @@ declare_args() {
chrome_public_apk_load_library_from_apk =
chromium_linker_supported &&
(current_cpu == "arm64" || current_cpu == "x64")
+
+ # Enables ProGuard obfuscation of Chromium packages.
+ enable_proguard_obfuscation = false
}
default_chrome_public_jinja_variables = [
@@ -51,6 +54,12 @@ template("chrome_public_apk_tmpl") {
"//base/android/proguard/chromium_apk.flags",
"//base/android/proguard/chromium_code.flags",
]
+ if (enable_proguard_obfuscation) {
+ proguard_configs += [ "//chrome/android/java/proguard-obfuscate.flags" ]
+ } else {
+ proguard_configs +=
+ [ "//chrome/android/java/proguard-dont-obfuscate.flags" ]
+ }
}
if (!defined(use_chromium_linker)) {
« no previous file with comments | « no previous file | chrome/android/java/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698