Skip to content

Commit af79877

Browse files
committed
Better proguard rules
1 parent 694d5d7 commit af79877

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ android {
2929
release {
3030
minifyEnabled true
3131
shrinkResources true
32-
// TODO: (2021-07-04): proguard-android-optimize.txt removes used resources.
33-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
32+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
3433
}
3534
}
3635

app/proguard-rules.pro

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,7 @@
3939
-keep class xyz.aprildown.timer.domain.entities.BehaviourType { *; }
4040
-keep class xyz.aprildown.timer.domain.entities.StepType { *; }
4141

42-
# Okio https://square.github.io/okio/#r8-proguard
43-
# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
44-
-dontwarn org.codehaus.mojo.animal_sniffer.*
45-
4642
# MPAndroidChart https://github.com/PhilJay/MPAndroidChart/issues/348
4743
-keep public class com.github.mikephil.charting.animation.* {
4844
public protected *;
4945
}
50-
51-
-assumenosideeffects class kotlin.jvm.internal.Intrinsics {
52-
public static void checkParameterIsNotNull(...);
53-
public static void throwUninitializedPropertyAccessException(...);
54-
}

0 commit comments

Comments
 (0)