Skip to content

Commit

Permalink
fix flutter analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Sep 26, 2024
1 parent b6fade7 commit 935da64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flutter/example/android/app/local.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Tue Sep 10 17:20:30 CEST 2024
sdk.dir=/Users/giancarlobuenaflor/Library/Android/sdk
6 changes: 6 additions & 0 deletions flutter/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -539,17 +539,23 @@ class MainScaffold extends StatelessWidget {
Sentry.startTransaction(
'testMetrics', 'span summary example',
bindToScope: true);
// ignore: deprecated_member_use
Sentry.metrics().increment('increment key',
unit: DurationSentryMeasurementUnit.day);
// ignore: deprecated_member_use
Sentry.metrics().distribution('distribution key',
value: Random().nextDouble() * 10);
// ignore: deprecated_member_use
Sentry.metrics().set('set int key',
value: Random().nextInt(100),
tags: {'myTag': 'myValue', 'myTag2': 'myValue2'});
// ignore: deprecated_member_use
Sentry.metrics().set('set string key',
stringValue: 'Random n ${Random().nextInt(100)}');
// ignore: deprecated_member_use
Sentry.metrics()
.gauge('gauge key', value: Random().nextDouble() * 10);
// ignore: deprecated_member_use
Sentry.metrics().timing(
'timing key',
function: () async => await Future.delayed(
Expand Down

0 comments on commit 935da64

Please sign in to comment.