| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # Fragments are loaded using reflection via Fragment.instantiate(Context,String) | 5 # Fragments are loaded using reflection via Fragment.instantiate(Context,String) |
| 6 # This can be improved upon - see crbug.com/622023. | 6 # This can be improved upon - see crbug.com/622023. |
| 7 -keep public class com.google.android.apps.chrome** extends android.app.Fragment | 7 -keep public class com.google.android.apps.chrome** extends android.app.Fragment |
| 8 -keep public class org.chromium** extends android.app.Fragment | 8 -keep public class org.chromium** extends android.app.Fragment |
| 9 | 9 |
| 10 # These classes aren't themselves referenced, but __ProcessService[0,1,2...] are | 10 # These classes aren't themselves referenced, but __ProcessService[0,1,2...] are |
| 11 # referenced, and we look up these services by appending a number onto the name | 11 # referenced, and we look up these services by appending a number onto the name |
| 12 # of the base class. Thus, we need to keep the base class name around so that | 12 # of the base class. Thus, we need to keep the base class name around so that |
| 13 # the child classes can be looked up. | 13 # the child classes can be looked up. |
| 14 -keep class org.chromium.content.app.SandboxedProcessService | 14 -keep class org.chromium.content.app.SandboxedProcessService |
| 15 -keep class org.chromium.content.app.PrivilegedProcessService | 15 -keep class org.chromium.content.app.PrivilegedProcessService |
| 16 | 16 |
| 17 # TODO(ianwen): remove this config once proguard file inclusion from AAR is supp
orted. | 17 # TODO(ianwen): remove this config once proguard file inclusion from AAR is supp
orted. |
| 18 # CoordinatorLayout resolves the behaviors of its child components with reflecti
on. | 18 # CoordinatorLayout resolves the behaviors of its child components with reflecti
on. |
| 19 -keep public class * extends android.support.design.widget.CoordinatorLayout$Beh
avior { | 19 -keep public class * extends android.support.design.widget.CoordinatorLayout$Beh
avior { |
| 20 public <init>(android.content.Context, android.util.AttributeSet); | 20 public <init>(android.content.Context, android.util.AttributeSet); |
| 21 public <init>(); | 21 public <init>(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 # SearchView is used in website_preferences_menu.xml and is constructed by | 24 # SearchView is used in website_preferences_menu.xml and is constructed by |
| 25 # Android using reflection. | 25 # Android using reflection. |
| 26 -keep class android.support.v7.widget.SearchView { | 26 -keep class android.support.v7.widget.SearchView { |
| 27 public <init>(...); | 27 public <init>(...); |
| 28 } | 28 } |
| 29 | 29 |
| 30 # Google Play Services warnings are about its resources. | |
| 31 -dontwarn com.google.android.gms.R** | |
| 32 | |
| 33 # The Google Play services library depends on the legacy Apache HTTP library, | 30 # The Google Play services library depends on the legacy Apache HTTP library, |
| 34 # and just adding it as proguard time dependency causes the following warnings: | 31 # and just adding it as proguard time dependency causes the following warnings: |
| 35 # `library class org.apache.http.params.HttpConnectionParams depends on program | 32 # `library class org.apache.http.params.HttpConnectionParams depends on program |
| 36 # class org.apache.http.params.HttpParams`. The library has its own | 33 # class org.apache.http.params.HttpParams`. The library has its own |
| 37 # implementation of org.apache.http.params.HttpParams so it can safely be | 34 # implementation of org.apache.http.params.HttpParams so it can safely be |
| 38 # ignored. | 35 # ignored. |
| 39 -dontwarn org.apache.http.params.HttpParams | 36 -dontwarn org.apache.http.params.HttpParams |
| OLD | NEW |