Skip to content

Commit 72a4800

Browse files
committed
chore: update dependencies, fix pigeon
Signed-off-by: Denis Dobanda <[email protected]>
1 parent da17f8a commit 72a4800

File tree

10 files changed

+50
-49
lines changed

10 files changed

+50
-49
lines changed

android/src/main/kotlin/com/exxeta/security_toolkit/ThreatCenterApi.g.kt

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Autogenerated from Pigeon (v22.7.4), do not edit directly.
1+
// Autogenerated from Pigeon (v26.0.1), do not edit directly.
22
// See also: https://pub.dev/packages/pigeon
33
@file:Suppress("UNCHECKED_CAST", "ArrayInDataClass")
44

@@ -12,24 +12,26 @@ import io.flutter.plugin.common.StandardMethodCodec
1212
import io.flutter.plugin.common.StandardMessageCodec
1313
import java.io.ByteArrayOutputStream
1414
import java.nio.ByteBuffer
15+
private object ThreatCenterApiPigeonUtils {
1516

16-
private fun wrapResult(result: Any?): List<Any?> {
17-
return listOf(result)
18-
}
17+
fun wrapResult(result: Any?): List<Any?> {
18+
return listOf(result)
19+
}
1920

20-
private fun wrapError(exception: Throwable): List<Any?> {
21-
return if (exception is FlutterError) {
22-
listOf(
23-
exception.code,
24-
exception.message,
25-
exception.details
26-
)
27-
} else {
28-
listOf(
29-
exception.javaClass.simpleName,
30-
exception.toString(),
31-
"Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception)
32-
)
21+
fun wrapError(exception: Throwable): List<Any?> {
22+
return if (exception is FlutterError) {
23+
listOf(
24+
exception.code,
25+
exception.message,
26+
exception.details
27+
)
28+
} else {
29+
listOf(
30+
exception.javaClass.simpleName,
31+
exception.toString(),
32+
"Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception)
33+
)
34+
}
3335
}
3436
}
3537

@@ -75,7 +77,7 @@ interface ThreatCenterApi {
7577
val wrapped: List<Any?> = try {
7678
listOf(api.areRootPrivilegesDetected())
7779
} catch (exception: Throwable) {
78-
wrapError(exception)
80+
ThreatCenterApiPigeonUtils.wrapError(exception)
7981
}
8082
reply.reply(wrapped)
8183
}
@@ -90,7 +92,7 @@ interface ThreatCenterApi {
9092
val wrapped: List<Any?> = try {
9193
listOf(api.areHooksDetected())
9294
} catch (exception: Throwable) {
93-
wrapError(exception)
95+
ThreatCenterApiPigeonUtils.wrapError(exception)
9496
}
9597
reply.reply(wrapped)
9698
}
@@ -105,7 +107,7 @@ interface ThreatCenterApi {
105107
val wrapped: List<Any?> = try {
106108
listOf(api.isSimulatorDetected())
107109
} catch (exception: Throwable) {
108-
wrapError(exception)
110+
ThreatCenterApiPigeonUtils.wrapError(exception)
109111
}
110112
reply.reply(wrapped)
111113
}

example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
1113
migrate_working_dir/
1214

1315
# IntelliJ related

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ EXTERNAL SOURCES:
2626

2727
SPEC CHECKSUMS:
2828
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
29-
flutter_security_toolkit: 82972aec2bbed79dc6b22fac76aed57419e24c73
30-
integration_test: ce0a3ffa1de96d1a89ca0ac26fca7ea18a749ef4
29+
flutter_security_toolkit: 5c7cdc15de3e06faac5827d79d8d14e0c258d76a
30+
integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e
3131
SecurityToolkit: 51927d4723e634bddb83a4d16e86940b344fa6a4
3232

3333
PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796

example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Flutter
22
import UIKit
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

example/pubspec.lock

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ packages:
7979
dependency: "direct dev"
8080
description:
8181
name: flutter_lints
82-
sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
82+
sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
8383
url: "https://pub.dev"
8484
source: hosted
85-
version: "3.0.2"
85+
version: "5.0.0"
8686
flutter_security_toolkit:
8787
dependency: "direct main"
8888
description:
@@ -133,10 +133,10 @@ packages:
133133
dependency: transitive
134134
description:
135135
name: lints
136-
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
136+
sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7
137137
url: "https://pub.dev"
138138
source: hosted
139-
version: "3.0.0"
139+
version: "5.1.1"
140140
matcher:
141141
dependency: transitive
142142
description:
@@ -177,14 +177,6 @@ packages:
177177
url: "https://pub.dev"
178178
source: hosted
179179
version: "3.1.5"
180-
plugin_platform_interface:
181-
dependency: transitive
182-
description:
183-
name: plugin_platform_interface
184-
sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
185-
url: "https://pub.dev"
186-
source: hosted
187-
version: "2.1.8"
188180
process:
189181
dependency: transitive
190182
description:
@@ -279,5 +271,5 @@ packages:
279271
source: hosted
280272
version: "3.0.4"
281273
sdks:
282-
dart: ">=3.4.3 <4.0.0"
274+
dart: ">=3.6.0 <4.0.0"
283275
flutter: ">=3.18.0-18.0.pre.54"

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies:
2727

2828
# The following adds the Cupertino Icons font to your application.
2929
# Use with the CupertinoIcons class for iOS style icons.
30-
cupertino_icons: ^1.0.6
30+
cupertino_icons: ^1.0.8
3131

3232
dev_dependencies:
3333
integration_test:
@@ -40,7 +40,7 @@ dev_dependencies:
4040
# activated in the `analysis_options.yaml` file located at the root of your
4141
# package. See that file for information about deactivating specific lint
4242
# rules and activating additional ones.
43-
flutter_lints: ^3.0.0
43+
flutter_lints: ^5.0.0
4444

4545
# For information on the generic Dart part of this file, see the
4646
# following page: https://dart.dev/tools/pub/pubspec

ios/Classes/ThreatCenterApi.g.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Autogenerated from Pigeon (v22.7.4), do not edit directly.
1+
// Autogenerated from Pigeon (v26.0.1), do not edit directly.
22
// See also: https://pub.dev/packages/pigeon
33

44
import Foundation
@@ -15,9 +15,9 @@ import Foundation
1515
final class PigeonError: Error {
1616
let code: String
1717
let message: String?
18-
let details: Any?
18+
let details: Sendable?
1919

20-
init(code: String, message: String?, details: Any?) {
20+
init(code: String, message: String?, details: Sendable?) {
2121
self.code = code
2222
self.message = message
2323
self.details = details
@@ -26,7 +26,7 @@ final class PigeonError: Error {
2626
var localizedDescription: String {
2727
return
2828
"PigeonError(code: \(code), message: \(message ?? "<nil>"), details: \(details ?? "<nil>")"
29-
}
29+
}
3030
}
3131

3232
private func wrapResult(_ result: Any?) -> [Any?] {
@@ -64,6 +64,7 @@ private func nilOrValue<T>(_ value: Any?) -> T? {
6464
return value as! T?
6565
}
6666

67+
6768
private class ThreatCenterApiPigeonCodecReader: FlutterStandardReader {
6869
}
6970

lib/src/threat_center_api.g.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Autogenerated from Pigeon (v22.7.4), do not edit directly.
1+
// Autogenerated from Pigeon (v26.0.1), do not edit directly.
22
// See also: https://pub.dev/packages/pigeon
33
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers
44

@@ -57,8 +57,9 @@ class ThreatCenterApi {
5757
pigeonChannelCodec,
5858
binaryMessenger: pigeonVar_binaryMessenger,
5959
);
60+
final Future<Object?> pigeonVar_sendFuture = pigeonVar_channel.send(null);
6061
final List<Object?>? pigeonVar_replyList =
61-
await pigeonVar_channel.send(null) as List<Object?>?;
62+
await pigeonVar_sendFuture as List<Object?>?;
6263
if (pigeonVar_replyList == null) {
6364
throw _createConnectionError(pigeonVar_channelName);
6465
} else if (pigeonVar_replyList.length > 1) {
@@ -84,8 +85,9 @@ class ThreatCenterApi {
8485
pigeonChannelCodec,
8586
binaryMessenger: pigeonVar_binaryMessenger,
8687
);
88+
final Future<Object?> pigeonVar_sendFuture = pigeonVar_channel.send(null);
8789
final List<Object?>? pigeonVar_replyList =
88-
await pigeonVar_channel.send(null) as List<Object?>?;
90+
await pigeonVar_sendFuture as List<Object?>?;
8991
if (pigeonVar_replyList == null) {
9092
throw _createConnectionError(pigeonVar_channelName);
9193
} else if (pigeonVar_replyList.length > 1) {
@@ -111,8 +113,9 @@ class ThreatCenterApi {
111113
pigeonChannelCodec,
112114
binaryMessenger: pigeonVar_binaryMessenger,
113115
);
116+
final Future<Object?> pigeonVar_sendFuture = pigeonVar_channel.send(null);
114117
final List<Object?>? pigeonVar_replyList =
115-
await pigeonVar_channel.send(null) as List<Object?>?;
118+
await pigeonVar_sendFuture as List<Object?>?;
116119
if (pigeonVar_replyList == null) {
117120
throw _createConnectionError(pigeonVar_channelName);
118121
} else if (pigeonVar_replyList.length > 1) {

lib/src/pigeon.dart renamed to pigeons/threat_center_api.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'package:pigeon/pigeon.dart';
2+
13
@ConfigurePigeon(PigeonOptions(
24
dartOut: 'lib/src/threat_center_api.g.dart',
35
dartOptions: DartOptions(),

pubspec.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
plugin_platform_interface: ^2.1.8
1413

1514
dev_dependencies:
1615
flutter_test:
1716
sdk: flutter
18-
flutter_lints: ^4.0.0
19-
pigeon: ^22.6.4
17+
flutter_lints: ^5.0.0
18+
pigeon: ^26.0.1
2019

2120
flutter:
2221
plugin:

0 commit comments

Comments
 (0)