Skip to content

Commit 65b6531

Browse files
committed
Merge branch 'main' into feat/isar
# Conflicts: # flutter/example/lib/main.dart
2 parents 34920d4 + 117d988 commit 65b6531

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1409
-157
lines changed

.github/workflows/drift.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
steps:
6767
- uses: actions/checkout@v4
6868

69-
- uses: actions/setup-java@v3
69+
- uses: actions/setup-java@v4
7070
if: ${{ matrix.target == 'android' }}
7171
with:
7272
java-version: "11"

.github/workflows/flutter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
steps:
7171
- uses: actions/checkout@v4
7272

73-
- uses: actions/setup-java@v3
73+
- uses: actions/setup-java@v4
7474
if: ${{ matrix.target == 'android' }}
7575
with:
7676
java-version: "11"

.github/workflows/flutter_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: checkout
3636
uses: actions/checkout@v4
3737

38-
- uses: actions/setup-java@v3
38+
- uses: actions/setup-java@v4
3939
with:
4040
distribution: "adopt"
4141
java-version: "11"

.github/workflows/metrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
with:
5858
flutter-version: ${{ steps.conf.outputs.flutter }}
5959

60-
- uses: actions/setup-java@v3
60+
- uses: actions/setup-java@v4
6161
if: ${{ matrix.platform == 'android' }}
6262
with:
6363
java-version: "11"

.github/workflows/min_version_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v4
3131

32-
- uses: actions/setup-java@v3
32+
- uses: actions/setup-java@v4
3333
with:
3434
distribution: "adopt"
3535
java-version: "11"

.github/workflows/sqflite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
steps:
6767
- uses: actions/checkout@v4
6868

69-
- uses: actions/setup-java@v3
69+
- uses: actions/setup-java@v4
7070
if: ${{ matrix.target == 'android' }}
7171
with:
7272
java-version: "11"

CHANGELOG.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Unreleased
3+
## 7.14.0
44

55
### Features
66

@@ -12,11 +12,21 @@
1212
- Add debug_meta to all events ([#1756](https://github.com/getsentry/sentry-dart/pull/1756))
1313
- Fixes obfuscated stacktraces when `captureMessage` or `captureEvent` is called with `attachStacktrace` option
1414

15+
### Features
16+
17+
- Add option to opt out of fatal level for automatically collected errors ([#1738](https://github.com/getsentry/sentry-dart/pull/1738))
18+
- Add `Hive` breadcrumbs ([#1773](https://github.com/getsentry/sentry-dart/pull/1773))
19+
- Add `ConnectivityIntegration` for web ([#1765](https://github.com/getsentry/sentry-dart/pull/1765))
20+
- We only get the info if online/offline on web platform. The added breadcrumb is set to either `wifi` or `none`.
21+
1522
### Dependencies
1623

17-
- Bump Cocoa SDK from v8.15.2 to v8.17.1 ([#1761](https://github.com/getsentry/sentry-dart/pull/1761), [#1771](https://github.com/getsentry/sentry-dart/pull/1771))
18-
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8171)
19-
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.15.2...8.17.1)
24+
- Bump Android SDK from v6.34.0 to v7.0.0 ([#1768](https://github.com/getsentry/sentry-dart/pull/1768))
25+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#700)
26+
- [diff](https://github.com/getsentry/sentry-java/compare/6.34.0...7.0.0)
27+
- Bump Cocoa SDK from v8.15.2 to v8.17.2 ([#1761](https://github.com/getsentry/sentry-dart/pull/1761), [#1771](https://github.com/getsentry/sentry-dart/pull/1771), [#1787](https://github.com/getsentry/sentry-dart/pull/1787))
28+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8172)
29+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.15.2...8.17.2)
2030

2131
## 7.13.2
2232

dart/lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
library version;
1010

1111
/// The SDK version reported to Sentry.io in the submitted events.
12-
const String sdkVersion = '7.13.2';
12+
const String sdkVersion = '7.14.0';
1313

1414
String sdkName(bool isWeb) => isWeb ? _browserSdkName : _ioSdkName;
1515

dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sentry
2-
version: 7.13.2
2+
version: 7.14.0
33
description: >
44
A crash reporting library for Dart that sends crash reports to Sentry.io.
55
This library supports Dart VM and Web. For Flutter consider sentry_flutter instead.

dio/lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// The SDK version reported to Sentry.io in the submitted events.
2-
const String sdkVersion = '7.13.2';
2+
const String sdkVersion = '7.14.0';
33

44
/// The package name reported to Sentry.io in the submitted events.
55
const String packageName = 'pub:sentry_dio';

dio/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sentry_dio
22
description: An integration which adds support for performance tracing for the Dio package.
3-
version: 7.13.2
3+
version: 7.14.0
44
homepage: https://docs.sentry.io/platforms/dart/
55
repository: https://github.com/getsentry/sentry-dart
66
issue_tracker: https://github.com/getsentry/sentry-dart/issues
@@ -11,7 +11,7 @@ environment:
1111

1212
dependencies:
1313
dio: ^5.0.0
14-
sentry: 7.13.2
14+
sentry: 7.14.0
1515

1616
dev_dependencies:
1717
meta: ^1.3.0

docs/new-package-release-checklist.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# New Package Release Checklist
2+
3+
This page serves as a checklist of what to do when releasing a new package for the first time.
4+
5+
## Release Preparation
6+
7+
- [ ] Make sure the project is set up
8+
- [ ] The package only exports the public API
9+
- [ ] The package contains an example folder
10+
- [ ] The package contains a README.md file
11+
- [ ] CI badges show a status
12+
- [ ] The package contains a CHANGELOG.md file (symlink to the root changelog)
13+
- [ ] The package contains a dartdoc_options.yaml file (symlink to the root file)
14+
- [ ] The package contains a LICENSE (default is `MIT`)
15+
- [ ] The package contains a pubspec.yaml file
16+
- [ ] The package contains a analysis_options.yaml file
17+
18+
- [ ] Update the [Flutter example](https://github.com/getsentry/sentry-dart/tree/main/flutter/example) to use your new package if applicable
19+
20+
- [ ] Make sure your new package has a `version.dart` in the `lib/src` folder.
21+
- This is used to set the version and package in the `Hub`. See this [example](https://github.com/getsentry/sentry-dart/blob/8609bd8dd7ea572e5d241a59643c7570e5621bda/sqflite/lib/src/sentry_database.dart#L69).
22+
- The version will be updated to the newest version after triggering the release process.
23+
24+
- [ ] Create a new workflow called `your-package-name.yml` for building and testing the package.
25+
26+
- [ ] Excluding `your-package-name.yml`, add the package to the `paths-ignore` section of all package workflow files.
27+
- For examples see `sqflite.yml`, `dio.yml` etc...
28+
29+
- [ ] Add an entry to [diagram.yml](https://github.com/getsentry/sentry-dart/blob/main/.github/workflows/diagrams.yml) for your package.
30+
31+
- [ ] In the root `.gitignore` file add the package coverage as ignored.
32+
33+
The `analyze` workflow will fail in your PR and in the main branch because the package is not released yet and the `pubspec.yaml` is not 'valid' according to the analyzer.
34+
This is expected - it will succeed after the release.
35+
- [ ] Make sure the analyze workflow doesn't have other failures, only the one mentioned above.
36+
37+
- [ ] **Very important**: add your package to `scripts/bump-version.sh`.
38+
39+
## Doing the Release
40+
41+
Do these steps in the **correct order**
42+
43+
- [ ] Add your package only as a `pub-dev` target in `.craft.yml`. (**not registry**)
44+
- The release process might fail if you add it to the registry at this point.
45+
- [ ] Trigger the release
46+
- [ ] Check that the release bot successfully updated the versions in `version.dart` and `pubspec.yaml` in the release branch.
47+
48+
## After the first release
49+
50+
- [ ] Check if package is succesfully released on `pub.dev`
51+
- [ ] Add the package to the Sentry Release Registry
52+
- Instructions on how to do this can be found [here](https://github.com/getsentry/sentry-release-registry#adding-new-sdks)
53+
- [Example PR](https://github.com/getsentry/sentry-release-registry/pull/136)
54+
- [ ] Add an entry to `.craft.yml` for the package in the `registry` section.
55+
- Now all future releases will be added to the registry automatically.
56+
- [ ] Update the repo's `README.md`
57+
- [ ] Prepare and merge [Sentry documentation](https://github.com/getsentry/sentry-docs/)

drift/lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// The SDK version reported to Sentry.io in the submitted events.
2-
const String sdkVersion = '7.13.2';
2+
const String sdkVersion = '7.14.0';
33

44
/// The package name reported to Sentry.io in the submitted events.
55
const String packageName = 'pub:sentry_drift';

drift/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sentry_drift
22
description: An integration which adds support for performance tracing for the drift package.
3-
version: 7.13.2
3+
version: 7.14.0
44
homepage: https://docs.sentry.io/platforms/flutter/
55
repository: https://github.com/getsentry/sentry-dart
66
issue_tracker: https://github.com/getsentry/sentry-dart/issues
@@ -10,7 +10,7 @@ environment:
1010
flutter: '>=3.3.0'
1111

1212
dependencies:
13-
sentry: 7.13.2
13+
sentry: 7.14.0
1414
meta: ^1.3.0
1515
drift: ^2.13.0
1616

file/lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// The SDK version reported to Sentry.io in the submitted events.
2-
const String sdkVersion = '7.13.2';
2+
const String sdkVersion = '7.14.0';
33

44
/// The package name reported to Sentry.io in the submitted events.
55
const String packageName = 'pub:sentry_file';

file/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sentry_file
22
description: An integration which adds support for performance tracing for dart.io.File.
3-
version: 7.13.2
3+
version: 7.14.0
44
homepage: https://docs.sentry.io/platforms/dart/
55
repository: https://github.com/getsentry/sentry-dart
66
issue_tracker: https://github.com/getsentry/sentry-dart/issues
@@ -10,7 +10,7 @@ environment:
1010
sdk: '>=2.19.0 <4.0.0'
1111

1212
dependencies:
13-
sentry: 7.13.2
13+
sentry: 7.14.0
1414
meta: ^1.3.0
1515

1616
dev_dependencies:

flutter/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ android {
6060
}
6161

6262
dependencies {
63-
api 'io.sentry:sentry-android:6.34.0'
63+
api 'io.sentry:sentry-android:7.0.0'
6464
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
6565

6666
// Required -- JUnit 4 framework
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:sentry/sentry.dart';
3+
4+
/// This screen is only used to demonstrate how route navigation works.
5+
/// Init will create a child span and pop the screen after 3 seconds.
6+
/// Afterwards the transaction should be seen on the performance page.
7+
class AutoCloseScreen extends StatefulWidget {
8+
const AutoCloseScreen({super.key});
9+
10+
@override
11+
AutoCloseScreenState createState() => AutoCloseScreenState();
12+
}
13+
14+
class AutoCloseScreenState extends State<AutoCloseScreen> {
15+
static const delayInSeconds = 3;
16+
17+
@override
18+
void initState() {
19+
super.initState();
20+
_doComplexOperationThenClose();
21+
}
22+
23+
Future<void> _doComplexOperationThenClose() async {
24+
final activeSpan = Sentry.getSpan();
25+
final childSpan = activeSpan?.startChild('complex operation',
26+
description: 'running a $delayInSeconds seconds operation');
27+
await Future.delayed(const Duration(seconds: delayInSeconds));
28+
childSpan?.finish();
29+
// ignore: use_build_context_synchronously
30+
Navigator.of(context).pop();
31+
}
32+
33+
@override
34+
Widget build(BuildContext context) {
35+
return Scaffold(
36+
appBar: AppBar(
37+
title: const Text('Delayed Screen'),
38+
),
39+
body: const Center(
40+
child: Text(
41+
'This screen will automatically close in $delayInSeconds seconds...',
42+
textAlign: TextAlign.center,
43+
),
44+
),
45+
);
46+
}
47+
}

0 commit comments

Comments
 (0)