From 0861de43033ea21c23c36b941cb5ab9b1b737a78 Mon Sep 17 00:00:00 2001 From: Gautier de Lataillade Date: Tue, 10 Dec 2024 19:33:38 +0100 Subject: [PATCH] Fix Pigeon migration by specifying Kotlin package and refactoring imports --- .../com/gdelataillade/alarm/generated/FlutterBindings.g.kt | 5 ++++- ios/Classes/generated/FlutterBindings.g.swift | 4 +--- lib/src/generated/platform_bindings.g.dart | 2 +- pigeons/alarm_api.dart | 3 +++ 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/android/src/main/kotlin/com/gdelataillade/alarm/generated/FlutterBindings.g.kt b/android/src/main/kotlin/com/gdelataillade/alarm/generated/FlutterBindings.g.kt index a280c79d..2dc9e283 100644 --- a/android/src/main/kotlin/com/gdelataillade/alarm/generated/FlutterBindings.g.kt +++ b/android/src/main/kotlin/com/gdelataillade/alarm/generated/FlutterBindings.g.kt @@ -1,12 +1,15 @@ -// Autogenerated from Pigeon (v22.6.3), do not edit directly. +// Autogenerated from Pigeon (v22.7.0), do not edit directly. // See also: https://pub.dev/packages/pigeon @file:Suppress("UNCHECKED_CAST", "ArrayInDataClass") +package com.gdelataillade.alarm.generated import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger +import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec +import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer diff --git a/ios/Classes/generated/FlutterBindings.g.swift b/ios/Classes/generated/FlutterBindings.g.swift index 6a0fb168..f214450c 100644 --- a/ios/Classes/generated/FlutterBindings.g.swift +++ b/ios/Classes/generated/FlutterBindings.g.swift @@ -1,4 +1,4 @@ -// Autogenerated from Pigeon (v22.6.3), do not edit directly. +// Autogenerated from Pigeon (v22.7.0), do not edit directly. // See also: https://pub.dev/packages/pigeon import Foundation @@ -97,7 +97,6 @@ struct AlarmSettingsWire { var androidFullScreenIntent: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AlarmSettingsWire? { let id = pigeonVar_list[0] as! Int64 @@ -203,7 +202,6 @@ struct NotificationSettingsWire { var icon: String? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NotificationSettingsWire? { let title = pigeonVar_list[0] as! String diff --git a/lib/src/generated/platform_bindings.g.dart b/lib/src/generated/platform_bindings.g.dart index 2eb191ef..9e4203b2 100644 --- a/lib/src/generated/platform_bindings.g.dart +++ b/lib/src/generated/platform_bindings.g.dart @@ -1,4 +1,4 @@ -// Autogenerated from Pigeon (v22.6.3), do not edit directly. +// Autogenerated from Pigeon (v22.7.0), do not edit directly. // See also: https://pub.dev/packages/pigeon // 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 diff --git a/pigeons/alarm_api.dart b/pigeons/alarm_api.dart index cd6ca99c..634a8700 100644 --- a/pigeons/alarm_api.dart +++ b/pigeons/alarm_api.dart @@ -10,6 +10,9 @@ import 'package:pigeon/pigeon.dart'; swiftOut: 'ios/Classes/generated/FlutterBindings.g.swift', kotlinOut: 'android/src/main/kotlin/com/gdelataillade/alarm/generated/FlutterBindings.g.kt', + kotlinOptions: KotlinOptions( + package: 'com.gdelataillade.alarm.generated', + ), ), ) class AlarmSettingsWire {