Skip to content

Commit 9895fcc

Browse files
committed
Preserve SourceFile,LineNumber in stacktrace
1 parent f531eea commit 9895fcc

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/Android-CI-Espresso.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
run: ./gradlew assembleDebug
4848
- name: Run tests
4949
run: ./gradlew test
50+
- name: Test publish to jitpack.io
51+
run: ./gradlew :LogcatCoreLib:assembleRelease :LogcatCoreLib:publishToMavenLocal :LogcatCoreUI:assembleRelease :LogcatCoreUI:publishToMavenLocal :LogcatCrashlyticLib:assembleRelease :LogcatCrashlyticLib:publishToMavenLocal :LogcatCountlyLib:assembleRelease :LogcatCountlyLib:publishToMavenLocal
5052
- name: Run instrumentation tests
5153
uses: hannesa2/action-android/emulator-run-cmd@0.1.16.7
5254
with:

LogcatCoreLib/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ android {
1717
sourceCompatibility JavaVersion.VERSION_17
1818
targetCompatibility JavaVersion.VERSION_17
1919
}
20+
consumerProguardFile "consumer.pro"
2021
}
2122

2223
dependencies {

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)