1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-08 07:57:28 +00:00
BarInsta/app/sentry.gradle
Ammar Githam 5bdfb7df51 Add sentry to github builds
This commit adds github and fdroid product flavors.
Sentry is added only to github builds.
Sentry is opt-in.
2021-03-21 22:50:23 +09:00

13 lines
340 B
Groovy

def dsnKey = 'DSN'
def defaultDsn = '\"\"'
final Properties properties = new Properties()
File propertiesFile = rootProject.file('sentry.properties')
if (!propertiesFile.exists()) {
propertiesFile.createNewFile()
}
properties.load(new FileInputStream(propertiesFile))
ext{
SENTRY_DSN = properties.getProperty(dsnKey, defaultDsn)
}