Open-source alternative Instagram client on Android. More maintainers needed!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
340 B

  1. def dsnKey = 'DSN'
  2. def defaultDsn = '\"\"'
  3. final Properties properties = new Properties()
  4. File propertiesFile = rootProject.file('sentry.properties')
  5. if (!propertiesFile.exists()) {
  6. propertiesFile.createNewFile()
  7. }
  8. properties.load(new FileInputStream(propertiesFile))
  9. ext{
  10. SENTRY_DSN = properties.getProperty(dsnKey, defaultDsn)
  11. }