| # Don't obfuscate any NDK/SDK code. This makes the debugging of stack traces in |
| # in release builds easier. |
| -keepnames class com.google.vr.ndk.** { *; } |
| -keepnames class com.google.vr.sdk.** { *; } |
| |
| # These are part of the Java <-> native interfaces for GVR. |
| -keepclasseswithmembernames,includedescriptorclasses class com.google.vr.** { |
| native <methods>; |
| } |
| |
| -keep class com.google.vr.cardboard.UsedByNative |
| -keep @com.google.vr.cardboard.UsedByNative class * |
| -keepclassmembers class * { |
| @com.google.vr.cardboard.UsedByNative *; |
| } |
| |
| -keep class com.google.vr.cardboard.annotations.UsedByNative |
| -keep @com.google.vr.cardboard.annotations.UsedByNative class * |
| -keepclassmembers class * { |
| @com.google.vr.cardboard.annotations.UsedByNative *; |
| } |
| |
| -keep class com.google.vr.cardboard.annotations.UsedByReflection |
| -keep @com.google.vr.cardboard.annotations.UsedByReflection class * |
| -keepclassmembers class * { |
| @com.google.vr.cardboard.annotations.UsedByReflection *; |
| } |
| |
| # All the above is copied from src/proguard-gvr.txt. |
| # Chromium needs the following line to be able to exclude some unused auto generated classes. |
| -dontwarn com.google.common.logging.nano.Vr$** |