Skip to content

Commit

Permalink
Fix release build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Nov 29, 2023
1 parent 6f21567 commit ffea66a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions android/app/shrinker-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
}

# This is generated automatically by the Android Gradle plugin.
-dontwarn kotlinx.serialization.KSerializer
-dontwarn kotlinx.serialization.Serializable
-dontwarn kotlinx.serialization.descriptors.PrimitiveKind$STRING
-dontwarn kotlinx.serialization.descriptors.PrimitiveKind
-dontwarn kotlinx.serialization.descriptors.SerialDescriptor
-dontwarn kotlinx.serialization.descriptors.SerialDescriptorsKt
-dontwarn kotlinx.serialization.internal.AbstractPolymorphicSerializer
-dontwarn org.bouncycastle.jsse.BCSSLParameters
-dontwarn org.bouncycastle.jsse.BCSSLSocket
-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
Expand Down
16 changes: 8 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ kotlin.compiler.keepIncrementalCompilationCachesInMemory=true
# Enable AndroidX
android.useAndroidX=true

# Use R8 instead of ProGuard for code shrinking.
android.enableR8.fullMode=true

# Enable non-transitive R class namespacing where each library only contains
# references to the resources it declares instead of declarations plus all
# transitive dependency references.
android.nonTransitiveRClass=true

# Default Android build features
android.defaults.buildfeatures.buildconfig=false
android.defaults.buildfeatures.resvalues=false
Expand All @@ -31,6 +23,14 @@ android.library.defaults.buildfeatures.androidresources=false
# Run Lint on K2
android.lint.useK2Uast=true

# Experimental features
android.useConditionalKeepRules=true
android.keepWorkerActionServicesBetweenBuilds=true
android.enablePartialRIncrementalBuilds=true

# TODO remove once https://issuetracker.google.com/issues/313495194 is fixed
android.enableNewResourceShrinker.preciseShrinking=false

# do not import irrelevant source sets
import_orphan_source_sets=false

Expand Down

0 comments on commit ffea66a

Please sign in to comment.