Skip to content

Commit

Permalink
Modify Sentry settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Дмитрий Ильченко committed Oct 29, 2020
1 parent f18bc99 commit d101bac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ android {
}
}

Properties properties = new Properties()
properties.load(project.rootProject.file("local.properties").newDataInputStream())

resValue "string", "sentryDSN", properties.getProperty("sentryDSN")
buildConfigField "boolean", "ERROR_REPORTS_ENABLED_BY_DEFAULT", "true"
}

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:name="com.example.barcodescanner.App"
android:name=".App"
>

<meta-data
android:name="io.sentry.dsn"
android:value="https://09f3022eb19f4fa7ba332b1f44188ff1@o432234.ingest.sentry.io/5384638"
android:value="@string/sentryDSN"
/>

<provider
Expand Down

0 comments on commit d101bac

Please sign in to comment.