Skip to content

Commit 655559e

Browse files
Bump natiginfo/action-detekt-all from 1.21.0 to 1.23.1 (#1684)
* Bump natiginfo/action-detekt-all from 1.21.0 to 1.23.1 Bumps [natiginfo/action-detekt-all](https://github.com/natiginfo/action-detekt-all) from 1.21.0 to 1.23.1. - [Release notes](https://github.com/natiginfo/action-detekt-all/releases) - [Commits](natiginfo/action-detekt-all@e01de6f...be3c187) --- updated-dependencies: - dependency-name: natiginfo/action-detekt-all dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix braces * Add missing trailing comma --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Giancarlo Buenaflor <[email protected]>
1 parent bdc7f93 commit 655559e

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

.github/workflows/flutter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,6 @@ jobs:
200200
steps:
201201
- uses: actions/checkout@v4
202202
# To recreate baseline run: detekt -i flutter/android,flutter/example/android -b flutter/config/detekt-bl.xml -cb
203-
- uses: natiginfo/action-detekt-all@e01de6ff0eef7c24131e8a133bf598cfac6ceeab # pin@1.21.0
203+
- uses: natiginfo/action-detekt-all@be3c18799c7c392b2f41a674beed9ced7ae2f21b # pin@1.23.1
204204
with:
205205
args: -i flutter/android,flutter/example/android --baseline flutter/config/detekt-bl.xml --jvm-target 1.8 --build-upon-default-config --all-rules

flutter/example/android/app/src/main/kotlin/io/sentry/samples/flutter/MainActivity.kt

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,33 @@ class MainActivity : FlutterActivity() {
1111

1212
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
1313
super.configureFlutterEngine(flutterEngine)
14-
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, _channel).setMethodCallHandler {
15-
call, result ->
14+
MethodChannel(
15+
flutterEngine.dartExecutor.binaryMessenger,
16+
_channel,
17+
).setMethodCallHandler { call, result ->
1618
// Note: this method is invoked on the main thread.
1719
when (call.method) {
18-
"throw" -> {
20+
"throw" ->
1921
thread(isDaemon = true) {
2022
throw Exception("Catch this java exception thrown from Kotlin thread!")
2123
}
22-
}
23-
"anr" -> {
24-
Thread.sleep(6_000)
25-
}
26-
"capture" -> {
24+
25+
"anr" -> Thread.sleep(6_000)
26+
27+
"capture" ->
2728
try {
2829
throw RuntimeException("Catch this java exception!")
2930
} catch (e: Exception) {
3031
Sentry.captureException(e)
3132
}
32-
}
33-
"crash" -> {
34-
crash()
35-
}
36-
"cpp_capture_message" -> {
37-
message()
38-
}
39-
"platform_exception" -> {
40-
throw RuntimeException("Catch this platform exception!")
41-
}
42-
else -> {
43-
result.notImplemented()
44-
}
33+
34+
"crash" -> crash()
35+
36+
"cpp_capture_message" -> message()
37+
38+
"platform_exception" -> throw RuntimeException("Catch this platform exception!")
39+
40+
else -> result.notImplemented()
4541
}
4642
result.success("")
4743
}

0 commit comments

Comments
 (0)