|
|
@@ -17,7 +17,7 @@ import io.flutter.plugin.common.PluginRegistry.Registrar; |
|
|
|
public class JdsdkPlugin implements FlutterPlugin, MethodCallHandler, ActivityAware { |
|
|
|
public static JDHelper mJDHelper; |
|
|
|
private MethodChannel channel; |
|
|
|
|
|
|
|
private ActivityPluginBinding binding; |
|
|
|
@Override |
|
|
|
public void onAttachedToEngine(FlutterPluginBinding flutterPluginBinding) { |
|
|
|
// mJDHelper = JDHelper.getInstance(flutterPluginBinding.getApplicationContext()); |
|
|
@@ -56,6 +56,7 @@ public class JdsdkPlugin implements FlutterPlugin, MethodCallHandler, ActivityAw |
|
|
|
@Override |
|
|
|
public void onAttachedToActivity(ActivityPluginBinding binding) { |
|
|
|
Log.d("flutter-taoke", "onAttachedToActivity" + binding); |
|
|
|
this.binding=binding; |
|
|
|
mJDHelper = JDHelper.getInstance(binding); |
|
|
|
} |
|
|
|
|
|
|
|