Skip to content
This repository was archived by the owner on Mar 26, 2022. It is now read-only.

Commit f1a28ec

Browse files
author
Michael Klimushyn
committed
Log every registration attempt
1 parent bd52bc0 commit f1a28ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.example.test_plugin
22

33
import androidx.annotation.NonNull;
4+
import android.util.Log;
45
import io.flutter.embedding.engine.plugins.FlutterPlugin
56
import io.flutter.plugin.common.MethodCall
67
import io.flutter.plugin.common.MethodChannel
@@ -11,6 +12,7 @@ import io.flutter.plugin.common.PluginRegistry.Registrar
1112
/** TestPlugin */
1213
public class TestPlugin: FlutterPlugin, MethodCallHandler {
1314
override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
15+
Log.i("xyzzy", "onAttachedToEngine: " + flutterPluginBinding.getFlutterEngine());
1416
val channel = MethodChannel(flutterPluginBinding.getFlutterEngine().getDartExecutor(), "test_plugin")
1517
channel.setMethodCallHandler(TestPlugin());
1618
}
@@ -27,6 +29,7 @@ public class TestPlugin: FlutterPlugin, MethodCallHandler {
2729
companion object {
2830
@JvmStatic
2931
fun registerWith(registrar: Registrar) {
32+
Log.i("xyzzy", "registerWith: " + registrar);
3033
val channel = MethodChannel(registrar.messenger(), "test_plugin")
3134
channel.setMethodCallHandler(TestPlugin())
3235
}

0 commit comments

Comments
 (0)