Skip to content

Commit

Permalink
refactor: Configure Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Dec 18, 2024
1 parent 17c27b3 commit 8a908d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ local.properties
*.apk
*.aab
env.properties
/app/release/baselineProfiles
.kotlin/sessions
5 changes: 3 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ val sharedJavaVersion: JavaVersion by rootProject.extra

val envProperties = loadProperties("env.properties")
val sentryAuthToken = envProperties.getProperty("sentryAuthToken").takeIf { it.isNotEmpty() }
?: error("The property must be defined and not empty")
?: error("The `sentryAuthToken` property in `env.properties` must be defined and not empty (see `env.example.properties`).")

android {
namespace = "com.infomaniak.swisstransfer"
Expand Down Expand Up @@ -49,7 +49,8 @@ android {

buildTypes {
release {
isMinifyEnabled = false
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
Expand Down
5 changes: 4 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile

# The TransferTypeUi class is removed when minifying, we don't want that.
-keep class com.infomaniak.swisstransfer.ui.screen.newtransfer.importfiles.components.TransferTypeUi{*;}

0 comments on commit 8a908d3

Please sign in to comment.