From 4f4be9b7d712fe4a7016b19c91fb79598a57ac07 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 18 Jun 2024 16:29:19 +0800 Subject: [PATCH] rename Flutter method channels --- .../main/kotlin/app/polyvox/filament/ThermionFlutterPlugin.kt | 2 +- .../ios/Classes/SwiftThermionFlutterPlugin.swift | 2 +- .../thermion_flutter/linux/thermion_flutter_plugin.cc | 2 +- .../macos/Classes/SwiftThermionFlutterPlugin.swift | 2 +- .../thermion_flutter/windows/thermion_flutter_plugin.cpp | 2 +- .../thermion_flutter_ffi/lib/thermion_flutter_ffi.dart | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/thermion_flutter/thermion_flutter/android/src/main/kotlin/app/polyvox/filament/ThermionFlutterPlugin.kt b/thermion_flutter/thermion_flutter/android/src/main/kotlin/app/polyvox/filament/ThermionFlutterPlugin.kt index 52a5c7cb..ec922948 100644 --- a/thermion_flutter/thermion_flutter/android/src/main/kotlin/app/polyvox/filament/ThermionFlutterPlugin.kt +++ b/thermion_flutter/thermion_flutter/android/src/main/kotlin/app/polyvox/filament/ThermionFlutterPlugin.kt @@ -55,7 +55,7 @@ class RenderCallbackImpl(plugin:ThermionFlutterPlugin) : RenderCallback { class ThermionFlutterPlugin: FlutterPlugin, MethodCallHandler, ActivityAware, LoadFilamentResourceFromOwner, FreeFilamentResourceFromOwner { companion object { - const val CHANNEL_NAME = "app.polyvox.filament/event" + const val CHANNEL_NAME = "dev.thermion.flutter/event" const val TAG = "FilamentPlugin" } diff --git a/thermion_flutter/thermion_flutter/ios/Classes/SwiftThermionFlutterPlugin.swift b/thermion_flutter/thermion_flutter/ios/Classes/SwiftThermionFlutterPlugin.swift index d950a950..473e76e8 100644 --- a/thermion_flutter/thermion_flutter/ios/Classes/SwiftThermionFlutterPlugin.swift +++ b/thermion_flutter/thermion_flutter/ios/Classes/SwiftThermionFlutterPlugin.swift @@ -127,7 +127,7 @@ public class SwiftThermionFlutterPlugin: NSObject, FlutterPlugin { public static func register(with registrar: FlutterPluginRegistrar) { let _messenger = registrar.messenger(); messenger = _messenger; - let channel = FlutterMethodChannel(name: "app.polyvox.filament/event", binaryMessenger: _messenger) + let channel = FlutterMethodChannel(name: "dev.thermion.flutter/event", binaryMessenger: _messenger) let instance = SwiftThermionFlutterPlugin(textureRegistry: registrar.textures(), registrar:registrar) registrar.addMethodCallDelegate(instance, channel: channel) } diff --git a/thermion_flutter/thermion_flutter/linux/thermion_flutter_plugin.cc b/thermion_flutter/thermion_flutter/linux/thermion_flutter_plugin.cc index aa786fee..ac0e64f3 100644 --- a/thermion_flutter/thermion_flutter/linux/thermion_flutter_plugin.cc +++ b/thermion_flutter/thermion_flutter/linux/thermion_flutter_plugin.cc @@ -871,7 +871,7 @@ void thermion_flutter_plugin_register_with_registrar(FlPluginRegistrar* registra g_autoptr(FlStandardMethodCodec) codec = fl_standard_method_codec_new(); g_autoptr(FlMethodChannel) channel = fl_method_channel_new(fl_plugin_registrar_get_messenger(registrar), - "app.polyvox.filament/event", + "dev.thermion.flutter/event", FL_METHOD_CODEC(codec)); fl_method_channel_set_method_call_handler(channel, method_call_cb, g_object_ref(plugin), diff --git a/thermion_flutter/thermion_flutter/macos/Classes/SwiftThermionFlutterPlugin.swift b/thermion_flutter/thermion_flutter/macos/Classes/SwiftThermionFlutterPlugin.swift index 55918f12..ca7ae110 100644 --- a/thermion_flutter/thermion_flutter/macos/Classes/SwiftThermionFlutterPlugin.swift +++ b/thermion_flutter/thermion_flutter/macos/Classes/SwiftThermionFlutterPlugin.swift @@ -65,7 +65,7 @@ public class SwiftThermionFlutterPlugin: NSObject, FlutterPlugin { public static func register(with registrar: FlutterPluginRegistrar) { let _messenger = registrar.messenger; messenger = _messenger; - let channel = FlutterMethodChannel(name: "app.polyvox.filament/event", binaryMessenger: _messenger) + let channel = FlutterMethodChannel(name: "dev.thermion.flutter/event", binaryMessenger: _messenger) let instance = SwiftThermionFlutterPlugin(textureRegistry: registrar.textures, registrar:registrar) registrar.addMethodCallDelegate(instance, channel: channel) } diff --git a/thermion_flutter/thermion_flutter/windows/thermion_flutter_plugin.cpp b/thermion_flutter/thermion_flutter/windows/thermion_flutter_plugin.cpp index 6e870225..b5c0f261 100644 --- a/thermion_flutter/thermion_flutter/windows/thermion_flutter_plugin.cpp +++ b/thermion_flutter/thermion_flutter/windows/thermion_flutter_plugin.cpp @@ -43,7 +43,7 @@ void ThermionFlutterPlugin::RegisterWithRegistrar( flutter::PluginRegistrarWindows *registrar) { auto channel = std::make_unique>( - registrar->messenger(), "app.polyvox.filament/event", + registrar->messenger(), "dev.thermion.flutter/event", &flutter::StandardMethodCodec::GetInstance()); auto plugin = std::make_unique( diff --git a/thermion_flutter/thermion_flutter_ffi/lib/thermion_flutter_ffi.dart b/thermion_flutter/thermion_flutter_ffi/lib/thermion_flutter_ffi.dart index 415925a3..07786138 100644 --- a/thermion_flutter/thermion_flutter_ffi/lib/thermion_flutter_ffi.dart +++ b/thermion_flutter/thermion_flutter_ffi/lib/thermion_flutter_ffi.dart @@ -10,7 +10,7 @@ import 'package:thermion_flutter_platform_interface/thermion_flutter_texture.dar /// to create rendering contexts, callbacks and surfaces (either backing texture(s). /// class ThermionFlutterFFI extends ThermionFlutterPlatform { - final _channel = const MethodChannel("app.polyvox.filament/event"); + final _channel = const MethodChannel("dev.thermion.flutter/event"); late final ThermionViewerFFI viewer;