Bläddra i källkod

code improvements

milan jurkulák 2 år sedan
förälder
incheckning
c3adae2c6e

+ 0 - 0
app/consumer-rules.pro


+ 2 - 0
buildSrc/src/main/kotlin/org/mjdev/gradle/plugin/LibPlugin.kt

@@ -87,6 +87,7 @@ class LibPlugin : BasePlugin() {
             buildTypes {
                 debug {
                     isMinifyEnabled = false
+                    isShrinkResources = false
                     proguardFiles(
                         getDefaultProguardFile(projectProguardFile),
                         projectProguardRulesFile
@@ -94,6 +95,7 @@ class LibPlugin : BasePlugin() {
                 }
                 release {
                     isMinifyEnabled = true
+                    isShrinkResources = false
                     proguardFiles(
                         getDefaultProguardFile(projectProguardFile),
                         projectProguardRulesFile

+ 37 - 3
tvlib/proguard-rules.pro

@@ -1,6 +1,6 @@
 # Add project specific ProGuard rules here.
 # You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
+# proguardFiles setting in build.gradle.kts.
 #
 # For more details, see
 #   http://developer.android.com/guide/developing/tools/proguard.html
@@ -14,8 +14,42 @@
 
 # Uncomment this to preserve the line number information for
 # debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
+-keepattributes SourceFile,LineNumberTable
 
 # If you keep the line number information, uncomment this to
 # hide the original source file name.
-#-renamesourcefileattribute SourceFile
+#-renamesourcefileattribute SourceFile
+
+-dontwarn javax.servlet.ServletContainerInitializer
+-dontwarn org.apache.bsf.BSFManager
+
+-keep,allowobfuscation,allowshrinking interface retrofit2.Call
+-keep,allowobfuscation,allowshrinking class retrofit2.Response
+-keep,allowobfuscation,allowshrinking class kotlin.coroutines.*
+
+-dontwarn java.lang.invoke.StringConcatFactory
+-dontwarn java.awt.font.FontRenderContext
+-dontwarn java.awt.font.LineBreakMeasurer
+-dontwarn java.awt.font.TextLayout
+-dontwarn java.awt.geom.AffineTransform
+-dontwarn java.beans.BeanDescriptor
+-dontwarn java.beans.BeanInfo
+-dontwarn java.beans.IntrospectionException
+-dontwarn java.beans.Introspector
+-dontwarn java.beans.PropertyDescriptor
+-dontwarn javax.imageio.ImageIO
+-dontwarn javax.imageio.ImageReader
+-dontwarn javax.imageio.stream.ImageInputStream
+-dontwarn javax.lang.model.SourceVersion
+-dontwarn javax.naming.InvalidNameException
+-dontwarn javax.naming.NamingException
+-dontwarn javax.naming.directory.Attribute
+-dontwarn javax.naming.directory.Attributes
+-dontwarn javax.naming.ldap.LdapName
+-dontwarn javax.naming.ldap.Rdn
+-dontwarn org.ietf.jgss.GSSContext
+-dontwarn org.ietf.jgss.GSSCredential
+-dontwarn org.ietf.jgss.GSSException
+-dontwarn org.ietf.jgss.GSSManager
+-dontwarn org.ietf.jgss.GSSName
+-dontwarn org.ietf.jgss.Oid