chore: Fix linter issues
This commit is contained in:
@@ -3,7 +3,8 @@ import 'package:pigeon/pigeon.dart';
|
||||
@ConfigurePigeon(
|
||||
PigeonOptions(
|
||||
dartOut: 'lib/pigeon/cryptography.g.dart',
|
||||
kotlinOut: 'android/src/main/kotlin/org/moxxy/moxxy_native/cryptography/CryptographyApi.kt',
|
||||
kotlinOut:
|
||||
'android/src/main/kotlin/org/moxxy/moxxy_native/cryptography/CryptographyApi.kt',
|
||||
kotlinOptions: KotlinOptions(
|
||||
package: 'org.moxxy.moxxy_native.cryptography',
|
||||
),
|
||||
@@ -24,11 +25,28 @@ class CryptographyResult {
|
||||
@HostApi()
|
||||
abstract class MoxxyCryptographyApi {
|
||||
@async
|
||||
CryptographyResult? encryptFile(String sourcePath, String destPath, Uint8List key, Uint8List iv, CipherAlgorithm algorithm, String hashSpec);
|
||||
CryptographyResult? encryptFile(
|
||||
String sourcePath,
|
||||
String destPath,
|
||||
Uint8List key,
|
||||
Uint8List iv,
|
||||
CipherAlgorithm algorithm,
|
||||
String hashSpec,
|
||||
);
|
||||
|
||||
@async
|
||||
CryptographyResult? decryptFile(String sourcePath, String destPath, Uint8List key, Uint8List iv, CipherAlgorithm algorithm, String hashSpec);
|
||||
CryptographyResult? decryptFile(
|
||||
String sourcePath,
|
||||
String destPath,
|
||||
Uint8List key,
|
||||
Uint8List iv,
|
||||
CipherAlgorithm algorithm,
|
||||
String hashSpec,
|
||||
);
|
||||
|
||||
@async
|
||||
Uint8List? hashFile(String sourcePath, String hashSpec);
|
||||
Uint8List? hashFile(
|
||||
String sourcePath,
|
||||
String hashSpec,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3,13 +3,13 @@ import 'package:pigeon/pigeon.dart';
|
||||
@ConfigurePigeon(
|
||||
PigeonOptions(
|
||||
dartOut: 'lib/pigeon/media.g.dart',
|
||||
kotlinOut: 'android/src/main/kotlin/org/moxxy/moxxy_native/media/MediaApi.kt',
|
||||
kotlinOut:
|
||||
'android/src/main/kotlin/org/moxxy/moxxy_native/media/MediaApi.kt',
|
||||
kotlinOptions: KotlinOptions(
|
||||
package: 'org.moxxy.moxxy_native.media',
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
@HostApi()
|
||||
abstract class MoxxyMediaApi {
|
||||
bool generateVideoThumbnail(String src, String dest, int maxWidth);
|
||||
|
||||
@@ -3,7 +3,8 @@ import 'package:pigeon/pigeon.dart';
|
||||
@ConfigurePigeon(
|
||||
PigeonOptions(
|
||||
dartOut: 'lib/pigeon/notifications.g.dart',
|
||||
kotlinOut: 'android/src/main/kotlin/org/moxxy/moxxy_native/notifications/NotificationsApi.kt',
|
||||
kotlinOut:
|
||||
'android/src/main/kotlin/org/moxxy/moxxy_native/notifications/NotificationsApi.kt',
|
||||
kotlinOptions: KotlinOptions(
|
||||
package: 'org.moxxy.moxxy_native.notifications',
|
||||
),
|
||||
@@ -54,9 +55,16 @@ class NotificationMessage {
|
||||
}
|
||||
|
||||
class MessagingNotification {
|
||||
const MessagingNotification(this.title, this.id, this.jid, this.messages,
|
||||
this.channelId, this.isGroupchat, this.extra,
|
||||
{this.groupId});
|
||||
const MessagingNotification(
|
||||
this.title,
|
||||
this.id,
|
||||
this.jid,
|
||||
this.messages,
|
||||
this.channelId,
|
||||
this.isGroupchat,
|
||||
this.extra, {
|
||||
this.groupId,
|
||||
});
|
||||
|
||||
/// The title of the conversation.
|
||||
final String title;
|
||||
@@ -91,8 +99,13 @@ enum NotificationIcon {
|
||||
|
||||
class RegularNotification {
|
||||
const RegularNotification(
|
||||
this.title, this.body, this.channelId, this.id, this.icon,
|
||||
{this.groupId});
|
||||
this.title,
|
||||
this.body,
|
||||
this.channelId,
|
||||
this.id,
|
||||
this.icon, {
|
||||
this.groupId,
|
||||
});
|
||||
|
||||
/// The title of the notification.
|
||||
final String title;
|
||||
@@ -165,6 +178,7 @@ class NotificationGroup {
|
||||
final String description;
|
||||
}
|
||||
|
||||
// ignore: constant_identifier_names
|
||||
enum NotificationChannelImportance { MIN, HIGH, DEFAULT }
|
||||
|
||||
class NotificationChannel {
|
||||
|
||||
@@ -3,13 +3,13 @@ import 'package:pigeon/pigeon.dart';
|
||||
@ConfigurePigeon(
|
||||
PigeonOptions(
|
||||
dartOut: 'lib/pigeon/picker.g.dart',
|
||||
kotlinOut: 'android/src/main/kotlin/org/moxxy/moxxy_native/picker/PickerApi.kt',
|
||||
kotlinOut:
|
||||
'android/src/main/kotlin/org/moxxy/moxxy_native/picker/PickerApi.kt',
|
||||
kotlinOptions: KotlinOptions(
|
||||
package: 'org.moxxy.moxxy_native.picker',
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
enum FilePickerType {
|
||||
/// Pick only image(s)
|
||||
image,
|
||||
|
||||
@@ -3,13 +3,13 @@ import 'package:pigeon/pigeon.dart';
|
||||
@ConfigurePigeon(
|
||||
PigeonOptions(
|
||||
dartOut: 'lib/pigeon/platform.g.dart',
|
||||
kotlinOut: 'android/src/main/kotlin/org/moxxy/moxxy_native/platform/PlatformApi.kt',
|
||||
kotlinOut:
|
||||
'android/src/main/kotlin/org/moxxy/moxxy_native/platform/PlatformApi.kt',
|
||||
kotlinOptions: KotlinOptions(
|
||||
package: 'org.moxxy.moxxy_native.platform',
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
@HostApi()
|
||||
abstract class MoxxyPlatformApi {
|
||||
String getPersistentDataPath();
|
||||
|
||||
Reference in New Issue
Block a user