Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Don't rename anything, it makes stack traces unintelligible. We only allow the | 1 # Don't rename anything, it makes stack traces unintelligible. We only allow the |
| 2 # obfuscation pass to run so that we can discard attributes like local variable | 2 # obfuscation pass to run so that we can discard attributes like local variable |
| 3 # tables. However, we don't want to lose out on optimizations, so although they | 3 # tables. However, we don't want to lose out on optimizations, so although they |
| 4 # can occasionally make the stack trace a bit stranger with inlining, it won't | 4 # can occasionally make the stack trace a bit stranger with inlining, it won't |
| 5 # make a big difference for the users seeing the stacktraces. We can always use | 5 # make a big difference for the users seeing the stacktraces. We can always use |
| 6 # build/android/stacktrace/java_deobfuscate.py to fix the stacktrace up for us. | 6 # build/android/stacktrace/java_deobfuscate.py to fix the stacktrace up for us. |
| 7 -keepnames,allowoptimization class *** { *; } | 7 -keepnames,allowoptimization class *** { *; } |
| 8 | 8 |
| 9 -keepclassmembers class org.chromium.android_webview.AwPdfExporter { | 9 -keepclassmembers class org.chromium.android_webview.AwPdfExporter { |
| 10 android.view.ViewGroup mContainerView; | 10 android.view.ViewGroup mContainerView; |
| 11 } | 11 } |
| 12 | 12 |
| 13 # Keep the factory and its public members; it's the main entry point used by the | 13 # Keep the factory and its public members; it's the main entry point used by the |
| 14 # framework. | 14 # framework. |
| 15 -keep class com.android.webview.chromium.WebViewChromiumFactoryProvider { | 15 -keep class com.android.webview.chromium.WebViewChromiumFactoryProvider { |
| 16 public *; | 16 public *; |
| 17 } | 17 } |
| 18 | 18 |
| 19 # TODO(ntfschr): remove this once Android O is released (crbug/706631) | |
|
sgurun-gerrit only
2017/04/11 00:38:52
I don't think you need to remove it. Just like the
Nate Fischer
2017/04/11 00:58:02
Done
| |
| 20 -keep class com.android.webview.chromium.ContentSettingsAdapter { | |
| 21 public *; | |
| 22 } | |
| 23 | |
| 19 -keep class com.android.webview.chromium.WebViewChromiumFactoryProviderFor* { | 24 -keep class com.android.webview.chromium.WebViewChromiumFactoryProviderFor* { |
| 20 public *; | 25 public *; |
| 21 } | 26 } |
| 22 | 27 |
| 23 -keep class com.android.webview.chromium.WebViewDatabaseAdapter { | 28 -keep class com.android.webview.chromium.WebViewDatabaseAdapter { |
| 24 public *; | 29 public *; |
| 25 } | 30 } |
| 26 | 31 |
| 27 # This is the main entry point for APIs. It is kept to make developing with | 32 # This is the main entry point for APIs. It is kept to make developing with |
| 28 # unreleased Android easier. | 33 # unreleased Android easier. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 PlatformServiceBridgeGoogle(...); | 70 PlatformServiceBridgeGoogle(...); |
| 66 } | 71 } |
| 67 -dontnote com.android.webview.chromium.PlatformServiceBridgeGoogle | 72 -dontnote com.android.webview.chromium.PlatformServiceBridgeGoogle |
| 68 -keep class com.android.webview.chromium.AwSafeBrowsingApiHandler { | 73 -keep class com.android.webview.chromium.AwSafeBrowsingApiHandler { |
| 69 AwSafeBrowsingApiHandler(...); | 74 AwSafeBrowsingApiHandler(...); |
| 70 } | 75 } |
| 71 -dontnote com.android.webview.chromium.AwSafeBrowsingApiHandler | 76 -dontnote com.android.webview.chromium.AwSafeBrowsingApiHandler |
| 72 | 77 |
| 73 # We strip some unused resources when preprocessing the GMS client libs. | 78 # We strip some unused resources when preprocessing the GMS client libs. |
| 74 -dontwarn com.google.android.gms.R** | 79 -dontwarn com.google.android.gms.R** |
| OLD | NEW |