Skip to content

Commit be7a831

Browse files
authored
feat: reenable windows obfuscation support (#2426)
* Revert "chore: temporarily disable sentry-native Windows integration (#2363)" This reverts commit 752e1cb. * update sentry plugin dependency * chore: update changelog * roll back sentry-native to v0.7.2
1 parent 07cd9e8 commit be7a831

File tree

8 files changed

+22
-36
lines changed

8 files changed

+22
-36
lines changed

CHANGELOG.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Changelog
22

33
## Unreleased
4-
4+
55
### Features
66

7+
- Windows native error & obfuscation support ([#2286](https://github.com/getsentry/sentry-dart/pull/2286), [#2426](https://github.com/getsentry/sentry-dart/pull/2426))
78
- Improve app start measurements by using `addTimingsCallback` instead of `addPostFrameCallback` to determine app start end ([#2405](https://github.com/getsentry/sentry-dart/pull/2405))
89
- ⚠️ This change may result in reporting of shorter app start durations
910
- Improve frame tracking accuracy ([#2372](https://github.com/getsentry/sentry-dart/pull/2372))
@@ -14,7 +15,7 @@
1415
void main() async {
1516
// Replace WidgetsFlutterBinding.ensureInitialized()
1617
SentryWidgetsFlutterBinding.ensureInitialized();
17-
18+
1819
await SentryFlutter.init(...);
1920
runApp(MyApp());
2021
}
@@ -24,7 +25,7 @@
2425
### Enhancements
2526

2627
- Only send debug images referenced in the stacktrace for events ([#2329](https://github.com/getsentry/sentry-dart/pull/2329))
27-
- Remove `sentry` frames if SDK falls back to current stack trace ([#2351](https://github.com/getsentry/sentry-dart/pull/2351))
28+
- Remove `sentry` frames if SDK falls back to current stack trace ([#2351](https://github.com/getsentry/sentry-dart/pull/2351))
2829
- Flutter doesn't always provide stack traces for unhandled errors - this is normal Flutter behavior
2930
- When no stack trace is provided (in Flutter errors, `captureException`, or `captureMessage`):
3031
- SDK creates a synthetic trace using `StackTrace.current`
@@ -44,9 +45,6 @@
4445
- Bump Android SDK from v7.16.0 to v7.18.0 ([#2408](https://github.com/getsentry/sentry-dart/pull/2408), [#2419](https://github.com/getsentry/sentry-dart/pull/2419))
4546
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7180)
4647
- [diff](https://github.com/getsentry/sentry-java/compare/7.16.0...7.18.0)
47-
- Bump Native SDK from v0.7.12 to v0.7.13 ([#2420](https://github.com/getsentry/sentry-dart/pull/2420))
48-
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0713)
49-
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.12...0.7.13)
5048

5149
## 8.10.1
5250

@@ -101,15 +99,15 @@
10199
),
102100
);
103101
```
104-
102+
105103
- Add screenshot to `SentryFeedbackWidget` ([#2369](https://github.com/getsentry/sentry-dart/pull/2369))
106104
- Use `SentryFlutter.captureScreenshot` to create a screenshot attachment
107105
- Call `SentryFeedbackWidget` with this attachment to add it to the user feedback
108106

109107
```dart
110108
final id = await Sentry.captureMessage('UserFeedback');
111109
final screenshot = await SentryFlutter.captureScreenshot();
112-
110+
113111
Navigator.push(
114112
context,
115113
MaterialPageRoute(
@@ -127,7 +125,7 @@
127125
- Avoid sending too many empty client reports when Http Transport is used ([#2380](https://github.com/getsentry/sentry-dart/pull/2380))
128126
- Cache parsed DSN ([#2365](https://github.com/getsentry/sentry-dart/pull/2365))
129127
- Handle backpressure earlier in pipeline ([#2371](https://github.com/getsentry/sentry-dart/pull/2371))
130-
- Drops max un-awaited parallel tasks earlier, so event processors & callbacks are not executed for them.
128+
- Drops max un-awaited parallel tasks earlier, so event processors & callbacks are not executed for them.
131129
- Change by setting `SentryOptions.maxQueueSize`. Default is 30.
132130
- Use native spotlight integrations on Flutter Android, iOS, macOS ([#2285](https://github.com/getsentry/sentry-dart/pull/2285))
133131
- Improve app start integration ([#2266](https://github.com/getsentry/sentry-dart/pull/2266))
@@ -154,7 +152,7 @@
154152

155153
- Metrics API ([#2312](https://github.com/getsentry/sentry-dart/pull/2312))
156154
- Learn more: https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Metrics-Beta-Coming-to-an-End
157-
155+
158156
### Dependencies
159157

160158
- Bump Native SDK from v0.7.10 to v0.7.12 ([#2390](https://github.com/getsentry/sentry-dart/pull/2390))

dart/lib/src/platform_checker.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ class PlatformChecker {
4444
// the OS checks return true when the browser runs on the checked platform.
4545
// Example: platform.isAndroid return true if the browser is used on an
4646
// Android device.
47-
return platform.isAndroid || platform.isIOS || platform.isMacOS;
48-
// Temporarily disabled due to https://github.com/getsentry/sentry-dart-plugin/issues/270
49-
// platform.isWindows
47+
return platform.isAndroid ||
48+
platform.isIOS ||
49+
platform.isMacOS ||
50+
platform.isWindows;
5051
}
5152

5253
static bool _isWebWithWasmSupport() {

flutter/example/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies:
3838

3939
dev_dependencies:
4040
flutter_lints: ^2.0.0
41-
sentry_dart_plugin: ^1.1.0
41+
sentry_dart_plugin: ^2.2.0
4242
integration_test:
4343
sdk: flutter
4444
flutter_test:
@@ -61,3 +61,4 @@ sentry:
6161
commits: true
6262
ignore_missing: true
6363
log_level: info
64+
symbols_path: build/symbols

flutter/sentry-native/CMakeCache.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Basically, this is a properties file we use both in CMake and update-deps.yml to update dependencies.
33

44
repo=https://github.com/getsentry/sentry-native
5-
version=0.7.13
5+
version=0.7.12

flutter/test/sentry_flutter_test.dart

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,8 @@ void main() {
249249
hasFileSystemTransport: false,
250250
);
251251

252-
// Temporarily disabled due to https://github.com/getsentry/sentry-dart-plugin/issues/270
253-
// testScopeObserver(
254-
// options: sentryFlutterOptions, expectedHasNativeScopeObserver: true);
255252
testScopeObserver(
256-
options: sentryFlutterOptions, expectedHasNativeScopeObserver: false);
253+
options: sentryFlutterOptions, expectedHasNativeScopeObserver: true);
257254

258255
testConfiguration(
259256
integrations: integrations,
@@ -274,9 +271,7 @@ void main() {
274271
beforeIntegration: WidgetsFlutterBindingIntegration,
275272
afterIntegration: OnErrorIntegration);
276273

277-
// Temporarily disabled due to https://github.com/getsentry/sentry-dart-plugin/issues/270
278-
// expect(SentryFlutter.native, isNotNull);
279-
expect(SentryFlutter.native, isNull);
274+
expect(SentryFlutter.native, isNotNull);
280275
expect(Sentry.currentHub.profilerFactory, isNull);
281276
}, testOn: 'vm');
282277

flutter/test/sentry_native/sentry_native_test.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,4 @@ import 'sentry_native_test_web.dart'
1212

1313
// Defining main() here allows us to manually run/debug from VSCode.
1414
// If we didn't need that, we could just `export` above.
15-
16-
// Temporarily disabled due to https://github.com/getsentry/sentry-dart-plugin/issues/270
17-
// void main() => actual.main();
18-
void main() {}
15+
void main() => actual.main();

flutter/windows/CMakeLists.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44
# customers of the plugin.
55
cmake_minimum_required(VERSION 3.14)
66

7-
# Temporarily disabled due to https://github.com/getsentry/sentry-dart-plugin/issues/270
8-
# include("${CMAKE_CURRENT_SOURCE_DIR}/../sentry-native/sentry-native.cmake")
7+
include("${CMAKE_CURRENT_SOURCE_DIR}/../sentry-native/sentry-native.cmake")
98

10-
# # Even though sentry_flutter doesn't actually provide a useful plugin, we need to accomodate the Flutter tooling.
11-
# # sentry_flutter/sentry_flutter_plugin.h is included by the flutter-tool generated plugin registrar:
12-
# target_include_directories(sentry INTERFACE ${CMAKE_CURRENT_LIST_DIR})
13-
14-
# Temp code: replace with the previous code when sentry-native is enabled
15-
add_library(sentry_flutter_plugin temp.cpp)
16-
target_include_directories(sentry_flutter_plugin INTERFACE ${CMAKE_CURRENT_LIST_DIR})
9+
# Even though sentry_flutter doesn't actually provide a useful plugin, we need to accomodate the Flutter tooling.
10+
# sentry_flutter/sentry_flutter_plugin.h is included by the flutter-tool generated plugin registrar:
11+
target_include_directories(sentry INTERFACE ${CMAKE_CURRENT_LIST_DIR})

flutter/windows/temp.cpp

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)