Skip to content

Commit

Permalink
Bump natiginfo/action-detekt-all from 1.21.0 to 1.23.1 (#1684)
Browse files Browse the repository at this point in the history
* 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] <support@github.com>

* fix braces

* Add missing trailing comma

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>
  • Loading branch information
dependabot[bot] and buenaflor authored Nov 13, 2023
1 parent bdc7f93 commit 655559e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,6 @@ jobs:
steps:
- uses: actions/checkout@v4
# To recreate baseline run: detekt -i flutter/android,flutter/example/android -b flutter/config/detekt-bl.xml -cb
- uses: natiginfo/action-detekt-all@e01de6ff0eef7c24131e8a133bf598cfac6ceeab # pin@1.21.0
- uses: natiginfo/action-detekt-all@be3c18799c7c392b2f41a674beed9ced7ae2f21b # pin@1.23.1
with:
args: -i flutter/android,flutter/example/android --baseline flutter/config/detekt-bl.xml --jvm-target 1.8 --build-upon-default-config --all-rules
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,33 @@ class MainActivity : FlutterActivity() {

override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
super.configureFlutterEngine(flutterEngine)
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, _channel).setMethodCallHandler {
call, result ->
MethodChannel(
flutterEngine.dartExecutor.binaryMessenger,
_channel,
).setMethodCallHandler { call, result ->
// Note: this method is invoked on the main thread.
when (call.method) {
"throw" -> {
"throw" ->
thread(isDaemon = true) {
throw Exception("Catch this java exception thrown from Kotlin thread!")
}
}
"anr" -> {
Thread.sleep(6_000)
}
"capture" -> {

"anr" -> Thread.sleep(6_000)

"capture" ->
try {
throw RuntimeException("Catch this java exception!")
} catch (e: Exception) {
Sentry.captureException(e)
}
}
"crash" -> {
crash()
}
"cpp_capture_message" -> {
message()
}
"platform_exception" -> {
throw RuntimeException("Catch this platform exception!")
}
else -> {
result.notImplemented()
}

"crash" -> crash()

"cpp_capture_message" -> message()

"platform_exception" -> throw RuntimeException("Catch this platform exception!")

else -> result.notImplemented()
}
result.success("")
}
Expand Down

0 comments on commit 655559e

Please sign in to comment.