|
39 | 39 | import io.flutter.plugin.common.MethodChannel.Result; |
40 | 40 | import io.flutter.plugin.common.PluginRegistry; |
41 | 41 | import io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener; |
42 | | -import io.flutter.plugin.common.PluginRegistry.Registrar; |
43 | | -import io.flutter.view.FlutterMain; |
44 | 42 |
|
45 | 43 | import io.radar.sdk.Radar; |
46 | 44 | import io.radar.sdk.RadarReceiver; |
|
63 | 61 | import io.flutter.embedding.engine.dart.DartExecutor; |
64 | 62 | import io.flutter.embedding.engine.dart.DartExecutor.DartCallback; |
65 | 63 |
|
66 | | -import io.flutter.view.FlutterNativeView; |
67 | 64 | import io.flutter.view.FlutterRunArguments; |
68 | 65 | import io.flutter.view.FlutterCallbackInformation; |
69 | 66 |
|
@@ -117,15 +114,6 @@ public void onReattachedToActivityForConfigChanges(ActivityPluginBinding binding |
117 | 114 | binding.addRequestPermissionsResultListener(this); |
118 | 115 | } |
119 | 116 |
|
120 | | - public static void registerWith(Registrar registrar) { |
121 | | - mContext = registrar.context(); |
122 | | - mActivity = registrar.activity(); |
123 | | - |
124 | | - channel = new MethodChannel(registrar.messenger(), "flutter_radar"); |
125 | | - callHandler = new RadarMethodCallHandler(); |
126 | | - channel.setMethodCallHandler(callHandler); |
127 | | - } |
128 | | - |
129 | 117 | private static void runOnMainThread(final Runnable runnable) { |
130 | 118 | Handler handler = new Handler(Looper.getMainLooper()); |
131 | 119 | handler.post(runnable); |
@@ -294,7 +282,7 @@ private static void initialize(MethodCall call, Result result) { |
294 | 282 | String publishableKey = call.argument("publishableKey"); |
295 | 283 | SharedPreferences.Editor editor = mContext.getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit(); |
296 | 284 | editor.putString("x_platform_sdk_type", "Flutter"); |
297 | | - editor.putString("x_platform_sdk_version", "3.12.3"); |
| 285 | + editor.putString("x_platform_sdk_version", "3.12.4"); |
298 | 286 | editor.apply(); |
299 | 287 | Radar.initialize(mContext, publishableKey); |
300 | 288 | Radar.setReceiver(new RadarFlutterReceiver(channel)); |
|
0 commit comments