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

Unified Diff: build/android/play_services/utils.py

Issue 1849403003: [gmscore] Allow specifying resource files to whitelist for preprocess (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add pathname pattern support Created 4 years, 8 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 | « build/android/play_services/preprocess.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/play_services/utils.py
diff --git a/build/android/play_services/utils.py b/build/android/play_services/utils.py
index 0e6d5a8e01c2e7e7aaf2ca1c302ca4940db77e99..acc6cf450962693d28429a214f8508d7ed98f2f8 100644
--- a/build/android/play_services/utils.py
+++ b/build/android/play_services/utils.py
@@ -65,6 +65,11 @@ class ConfigParser(object):
`//chrome/app/generated_resources.grd`
Example: ["am", "ar", "bg", "ca", "cs"]
+ - resource_whitelist
+ List of strings. List of resource files to explicitely keep in the final
+ output. Use it to keep drawables for example, as we currently remove them
+ all.
+ Example: ["play-services-base/res/drawables/foobar.xml"]
'''
_VERSION_NUMBER_KEY = 'version_number'
@@ -95,6 +100,10 @@ class ConfigParser(object):
def locale_whitelist(self):
return self._data.get('locale_whitelist') or []
+ @property
+ def resource_whitelist(self):
+ return self._data.get('resource_whitelist') or []
+
def UpdateVersionNumber(self, new_version_number):
'''Updates the version number and saves it in the configuration file. '''
« no previous file with comments | « build/android/play_services/preprocess.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698