The documentation was not very helpful for me. Locations I've tried:
- root folder (where
gradle.propertiesand project'sbuild.gradlefiles reside) /appfolder (where app'sbuild.gradlefile 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.