Skip to content

Commit 7a4dca6

Browse files
authored
Merge pull request #750 from AppDevNext/PreserveLinenumber
Preserve linenumber
2 parents 10fa07d + c0d13dc commit 7a4dca6

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

LogcatCoreLib/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ android {
1111

1212
minSdkVersion 21
1313
project.archivesBaseName = "LogcatCore"
14+
consumerProguardFiles "consumer.pro"
1415
}
1516
namespace 'info.hannes.logcat'
1617
compileOptions {

LogcatCoreLib/consumer.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Keep source file names and line numbers for better stack traces
2+
-keepattributes SourceFile,LineNumberTable
3+
4+
# Optional: Keep parameter names for better debugging
5+
-keepattributes MethodParameters

0 commit comments

Comments
 (0)