Skip to content

Commit 582e077

Browse files
authored
Moved proguard settings into consumer-rules.pro
* Moved proguard settings into consumer-rules.pro * Moved sentry.properties file location to be within app module; force app to minify
1 parent afe7f09 commit 582e077

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ android {
3838

3939
buildTypes {
4040
debug {
41-
debuggable true
42-
minifyEnabled false
41+
debuggable false
42+
minifyEnabled true // Always minify so that we can test proguard
4343
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
4444
}
4545
release {

app/proguard-rules.pro

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,4 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
22-
23-
# Required if you want to use Steamclog Redactable classes, and Proguard/R8 to obsfucate code.
24-
-keep class * extends com.steamclock.steamclog.Redactable { *; }
25-
26-
# Sample specific
27-
-keep public class * { # All public classes
28-
public static *; # All public static fields in those classes
29-
public protected abstract *(...); # All public or protected abstract methods in those classes
30-
}
21+
#-renamesourcefileattribute SourceFile
File renamed without changes.

steamclog/consumer-rules.pro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Required if you want to use Steamclog Redactable classes, and Proguard/R8 to obsfucate code.
2+
-keep class * extends com.steamclock.steamclog.Redactable { *; }
3+
4+
# Sample specific
5+
-keep public class * { # All public classes
6+
public static *; # All public static fields in those classes
7+
public protected abstract *(...); # All public or protected abstract methods in those classes
8+
}

0 commit comments

Comments
 (0)