blob: 6ddb2739c24564a4e777c6eacdffc1919755f376 [file] [log] [blame]
# Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
# The retrace api is separated out without repackaging which is why this broad
# rule is used.
-keep public class com.android.tools.r8.retrace.* {
public <methods>;
public <fields>;
}
-keepattributes SourceFile, LineNumberTable, InnerClasses, EnclosingMethod, Exceptions, Signature
-keepparameternames
-repackageclasses com.android.tools.r8.retrace_internal
# Keep all things that can be reached from the retrace api
-keep @com.android.tools.r8.KeepForRetraceApi class * { public *; }
-keep,allowshrinking @com.android.tools.r8.Keep class * { public *; }
-keep,allowshrinking @com.android.tools.r8.KeepForSubclassing class * { public *; protected *; }
-keep public class com.android.tools.r8.Version { public static final java.lang.String LABEL; }
-keep public class com.android.tools.r8.Version { public static java.lang.String getVersionString(); }
-keep public class com.android.tools.r8.Version { public static int getMajorVersion(); }
-keep public class com.android.tools.r8.Version { public static int getMinorVersion(); }
-keep public class com.android.tools.r8.Version { public static int getPatchVersion(); }
-keep public class com.android.tools.r8.Version { public static java.lang.String getPreReleaseString(); }
-keep public class com.android.tools.r8.Version { public static boolean isDevelopmentVersion(); }