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 dae811b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
20 changes: 11 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
*.iml
.gradle
/local.properties
/.idea
.cxx
.DS_Store
build/
/captures
.externalNativeBuild
.cxx
local.properties
*.apk
.gradle
.kotlin/sessions
*.aab
*.apk
*.iml
env.properties
local.properties
build/
/.idea
/app/release/baselineProfiles
/captures
/local.properties
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 dae811b

Please sign in to comment.