ignore com.google.android.gms proguard warnings

This commit is contained in:
Carmelo Messina
2023-08-08 11:28:42 +02:00
parent 978258a071
commit 0596bf43a7
@@ -25,6 +25,7 @@ Parts of this patch were developed by csagan5, uazo and others.
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
---
...em_webview_bundle.AndroidManifest.expected | 5 -
build/android/gyp/proguard.py | 2 +
chrome/android/BUILD.gn | 48 +-
chrome/android/chrome_java_sources.gni | 5 -
.../features/cablev2_authenticator/BUILD.gn | 2 -
@@ -103,7 +104,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
.../gms/ChromiumPlayServicesAvailability.java | 10 +-
weblayer/browser/java/BUILD.gn | 1 -
weblayer/public/java/BUILD.gn | 1 -
79 files changed, 94 insertions(+), 1978 deletions(-)
80 files changed, 96 insertions(+), 1978 deletions(-)
diff --git a/android_webview/expectations/system_webview_bundle.AndroidManifest.expected b/android_webview/expectations/system_webview_bundle.AndroidManifest.expected
--- a/android_webview/expectations/system_webview_bundle.AndroidManifest.expected
@@ -127,6 +128,18 @@ diff --git a/android_webview/expectations/system_webview_bundle.AndroidManifest.
<meta-data android:name="org.chromium.content.browser.NUM_PRIVILEGED_SERVICES" android:value="0"/>
<meta-data android:name="org.chromium.content.browser.NUM_SANDBOXED_SERVICES" android:value="40"/>
<provider # DIFF-ANCHOR: a5e78e63
diff --git a/build/android/gyp/proguard.py b/build/android/gyp/proguard.py
--- a/build/android/gyp/proguard.py
+++ b/build/android/gyp/proguard.py
@@ -52,6 +52,8 @@ _IGNORE_WARNINGS = (
r'EditorDialogToolbar',
# https://crbug.com/1441226
r'PaymentRequest[BH]',
+ # com.google.android.gms.cast is stripped down from the build
+ r'class com\.google\.android\.gms\.',
]) + ')',
# TODO(agrieve): Remove once we update to U SDK.
r'OnBackAnimationCallback',
diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn
--- a/chrome/android/BUILD.gn
+++ b/chrome/android/BUILD.gn