| 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 # SearchView is used in website_preferences_menu.xml and is constructed by | 17 # SearchView is used in website_preferences_menu.xml and is constructed by |
| 18 # Android using reflection. | 18 # Android using reflection. |
| 19 -keep class android.support.v7.widget.SearchView { | 19 -keep class android.support.v7.widget.SearchView { |
| 20 public <init>(...); | 20 public <init>(...); |
| 21 } | 21 } |
| 22 | 22 |
| 23 # The Google Play services library depends on the legacy Apache HTTP library, | 23 # The Google Play services library depends on the legacy Apache HTTP library, |
| 24 # and just adding it as proguard time dependency causes the following warnings: | 24 # and just adding it as proguard time dependency causes the following warnings: |
| 25 # `library class org.apache.http.params.HttpConnectionParams depends on program | 25 # `library class org.apache.http.params.HttpConnectionParams depends on program |
| 26 # class org.apache.http.params.HttpParams`. The library has its own | 26 # class org.apache.http.params.HttpParams`. The library has its own |
| 27 # implementation of org.apache.http.params.HttpParams so it can safely be | 27 # implementation of org.apache.http.params.HttpParams so it can safely be |
| 28 # ignored. | 28 # ignored. |
| 29 -dontwarn org.apache.http.params.HttpParams | 29 -dontwarn org.apache.http.params.HttpParams |
| 30 |
| 31 # This class member is referenced in BottomSheetBottomNav as a temporary |
| 32 # measure until the support library contains a solution for disabling shifting |
| 33 # mode. TODO(twellington): remove once support library has a fix and is rolled. |
| 34 -keepclassmembers class android.support.design.internal.BottomNavigationMenuView
{ |
| 35 boolean mShiftingMode; |
| 36 } |
| OLD | NEW |