Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğecko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Ğecko
Commits
fb1d6709
Commit
fb1d6709
authored
2 months ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
set sentry replay sessions
parent
f1951ff2
No related branches found
No related tags found
No related merge requests found
Pipeline
#40126
waiting for manual action
Stage: format
Stage: build_and_test
Stage: package
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/main.dart
+16
-6
16 additions, 6 deletions
lib/main.dart
pubspec.lock
+4
-4
4 additions, 4 deletions
pubspec.lock
pubspec.yaml
+1
-1
1 addition, 1 deletion
pubspec.yaml
with
21 additions
and
11 deletions
lib/main.dart
+
16
−
6
View file @
fb1d6709
...
@@ -62,14 +62,24 @@ Future<void> main() async {
...
@@ -62,14 +62,24 @@ Future<void> main() async {
if
(
kReleaseMode
&&
enableSentry
)
{
if
(
kReleaseMode
&&
enableSentry
)
{
await
SentryFlutter
.
init
((
options
)
{
await
SentryFlutter
.
init
((
options
)
{
options
.
dsn
=
'https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110'
;
options
.
dsn
=
'https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110'
;
options
.
experimental
.
replay
.
sessionSampleRate
=
1.0
;
options
.
experimental
.
replay
.
onErrorSampleRate
=
1.0
;
// Privacy settings for PII masking
//TODO: Set this to false in production for Ğ1
options
.
experimental
.
privacy
.
maskAllText
=
false
;
options
.
experimental
.
privacy
.
maskAllImages
=
false
;
},
},
appRunner:
()
=
>
SystemChrome
.
setPreferredOrientations
([
DeviceOrientation
.
portraitUp
])
.
then
((
_
)
{
appRunner:
()
=
>
SystemChrome
.
setPreferredOrientations
([
DeviceOrientation
.
portraitUp
])
.
then
((
_
)
{
runApp
(
EasyLocalization
(
runApp
(
SentryWidget
(
child:
EasyLocalization
(
supportedLocales:
const
[
Locale
(
'en'
),
Locale
(
'fr'
),
Locale
(
'es'
),
Locale
(
'it'
)],
supportedLocales:
const
[
Locale
(
'en'
),
Locale
(
'fr'
),
Locale
(
'es'
),
Locale
(
'it'
)],
path:
'assets/translations'
,
path:
'assets/translations'
,
fallbackLocale:
const
Locale
(
'en'
),
fallbackLocale:
const
Locale
(
'en'
),
child:
const
Gecko
(),
child:
const
Gecko
(),
));
),
),
);
}));
}));
}
else
{
}
else
{
log
.
i
(
'Debug mode enabled: No sentry alert'
);
log
.
i
(
'Debug mode enabled: No sentry alert'
);
...
...
This diff is collapsed.
Click to expand it.
pubspec.lock
+
4
−
4
View file @
fb1d6709
...
@@ -1471,18 +1471,18 @@ packages:
...
@@ -1471,18 +1471,18 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
name: sentry
name: sentry
sha256: "
90c2f956c146bcc9c4843406dd4a65d08b25575828dc2ad51de0ca5cd713209f
"
sha256: "
3a64dd001bff768ce5ab6fc3608deef4dde22acd4b5d947763557b20db9e2a32
"
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "8.1
3.2
"
version: "8.1
4.0
"
sentry_flutter:
sentry_flutter:
dependency: "direct main"
dependency: "direct main"
description:
description:
name: sentry_flutter
name: sentry_flutter
sha256:
ee6b41956ad570706bf5c2489915d71d75522d154200c0df24be2c4e5654ca21
sha256:
"3d361f2d5f805783e2e4ed1bd475ef126b36cf525b359dc3627a765a3fb7424d"
url: "https://pub.dev"
url: "https://pub.dev"
source: hosted
source: hosted
version: "8.1
3.2
"
version: "8.1
4.0
"
shared_preferences:
shared_preferences:
dependency: transitive
dependency: transitive
description:
description:
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
1
−
1
View file @
fb1d6709
...
@@ -26,7 +26,7 @@ dependencies:
...
@@ -26,7 +26,7 @@ dependencies:
barcode_scan2
:
^4.5.0
barcode_scan2
:
^4.5.0
qr_flutter
:
^4.1.0
qr_flutter
:
^4.1.0
responsive_framework
:
^1.5.1
responsive_framework
:
^1.5.1
sentry_flutter
:
^8.1
3.2
sentry_flutter
:
^8.1
4.0
truncate
:
^3.0.1
truncate
:
^3.0.1
unorm_dart
:
^0.3.0
unorm_dart
:
^0.3.0
dio
:
^5.8.0+1
dio
:
^5.8.0+1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment