Bump version

This commit is contained in:
Tommy Chow 2022-01-13 15:54:32 -05:00
parent 00ba8a5b49
commit 71e761664c
4 changed files with 4 additions and 10 deletions

View file

@ -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;

View file

@ -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(

View file

@ -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();
}