From 647c473d1dd98f27bdbe1fc665e7518451e1ea78 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Sat, 26 Oct 2024 01:41:10 -0500 Subject: [PATCH] Update proguard config for WearOS --- wear/proguard-rules.pro | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/wear/proguard-rules.pro b/wear/proguard-rules.pro index 481bb4348..3d17f7151 100644 --- a/wear/proguard-rules.pro +++ b/wear/proguard-rules.pro @@ -1,21 +1,13 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html +-dontobfuscate +-keepattributes SourceFile,LineNumberTable -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} +-keep class org.tasks.** { *; } -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable +# remove logging statements +-assumenosideeffects class timber.log.Timber* { + public static *** v(...); + public static *** d(...); + public static *** i(...); +} -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +-dontwarn com.google.android.gms.** \ No newline at end of file