Commit cbdf89ed authored by paulmiller's avatar paulmiller Committed by Commit bot

Add GMS to WebView build

This grows standalone WebView APKs by ~1MB. Ameliorating the growth is
tracked in the same bug.

BUG=662166

Review-Url: https://codereview.chromium.org/2541993002
Cr-Commit-Position: refs/heads/master@{#436097}
parent aa20953b
...@@ -622,6 +622,8 @@ android_library("android_webview_java") { ...@@ -622,6 +622,8 @@ android_library("android_webview_java") {
"//net/android:net_java", "//net/android:net_java",
"//third_party/android_tools:android_support_annotations_java", "//third_party/android_tools:android_support_annotations_java",
"//ui/android:ui_java", "//ui/android:ui_java",
google_play_services_library,
google_play_services_resources,
] ]
if (enable_configuration_policy) { if (enable_configuration_policy) {
......
...@@ -63,3 +63,6 @@ ...@@ -63,3 +63,6 @@
public void setDisabledActionModeMenuItems(int); public void setDisabledActionModeMenuItems(int);
public int getDisabledActionModeMenuItems(); public int getDisabledActionModeMenuItems();
} }
# We strip some unused resources when preprocessing the GMS client libs.
-dontwarn com.google.android.gms.R**
...@@ -49,5 +49,13 @@ public class PlatformServiceBridge { ...@@ -49,5 +49,13 @@ public class PlatformServiceBridge {
return sInstance; return sInstance;
} }
// Try to enable WebView to use Google Play Services (a.k.a. GMS) APIs. Return true on success.
// Do not use GMS APIs before this has returned true, or if it returns false. This can be called
// from multiple threads, so long as no thread uses GMS APIs before at least one call has
// returned true. (The easy way is for each thread to wait for its own call to return true.)
public boolean tryEnableGms() {
return false;
}
public void setMetricsSettingListener(ValueCallback<Boolean> callback) {} public void setMetricsSettingListener(ValueCallback<Boolean> callback) {}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment