Bump version
This commit is contained in:
parent
00ba8a5b49
commit
71e761664c
4 changed files with 4 additions and 10 deletions
|
|
@ -5,7 +5,7 @@ const clientId = String.fromEnvironment('CLIENT_ID');
|
|||
const secret = String.fromEnvironment('SECRET');
|
||||
|
||||
/// The current version of the app.
|
||||
const appVersion = '1.0.0-beta+5';
|
||||
const appVersion = '1.0.0-beta+6';
|
||||
|
||||
/// The tracesSampleRate for sentry crash reporting.
|
||||
const sampleRate = 1.0;
|
||||
|
|
|
|||
|
|
@ -35,11 +35,7 @@ Future<void> main() async {
|
|||
autorun((_) => preferences.setString('settings', jsonEncode(settingsStore)));
|
||||
|
||||
if (settingsStore.sendCrashLogs) {
|
||||
await SentryFlutter.init(
|
||||
(options) {
|
||||
options.tracesSampleRate = sampleRate;
|
||||
},
|
||||
);
|
||||
await SentryFlutter.init((options) => options.tracesSampleRate = sampleRate);
|
||||
}
|
||||
|
||||
runApp(
|
||||
|
|
|
|||
|
|
@ -35,9 +35,7 @@ class OtherSettings extends StatelessWidget {
|
|||
value: settingsStore.sendCrashLogs,
|
||||
onChanged: (newValue) {
|
||||
if (newValue == true) {
|
||||
SentryFlutter.init((options) {
|
||||
options.tracesSampleRate = sampleRate;
|
||||
});
|
||||
SentryFlutter.init((options) => options.tracesSampleRate = sampleRate);
|
||||
} else {
|
||||
Sentry.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue