The documentation was not very helpful for me. Locations I've tried:
- root folder (where
gradle.properties
and project'sbuild.gradle
files reside) /app
folder (where app'sbuild.gradle
file is localed)/app/src/main/kotlin
I initialize Sentry on start of my app in class that extends android.app.Application
like so:
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
Sentry.init(AndroidSentryClientFactory(applicationContext))
}
}
And then do a test capture in one of my methods:
Sentry.capture("This is a test capture using Sentry")
I also tried to specify the path to sentry.properties
file explicitly in gradle.properties
with no luck.
When I use Sentry.init()
method that accepts DSN, it works, but this is not desired, because I do not want to check DSN into VCS.
I am aware of other methods of configuration, I just want to use sentry.properties
though.