Skip to content

Commit

Permalink
[shared_preferences web/macos] remove unused onMethodCall methods (fl…
Browse files Browse the repository at this point in the history
  • Loading branch information
amirh authored Dec 12, 2019
1 parent 1d16548 commit 509bd31
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.1+2

* Remove unused onMethodCall method.

## 0.0.1+1

* Add an android/ folder with no-op implementation to workaround https://github.com/flutter/flutter/issues/46898.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
package io.flutter.plugins.shared_preferences_macos;

import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
import io.flutter.plugin.common.MethodChannel.Result;
import io.flutter.plugin.common.PluginRegistry.Registrar;

/** SharedPreferencesMacosPlugin */
public class SharedPreferencesMacosPlugin implements FlutterPlugin, MethodCallHandler {
public class SharedPreferencesMacosPlugin implements FlutterPlugin {
@Override
public void onAttachedToEngine(FlutterPluginBinding flutterPluginBinding) {}

public static void registerWith(Registrar registrar) {}

@Override
public void onMethodCall(MethodCall call, Result result) {}

@Override
public void onDetachedFromEngine(FlutterPluginBinding binding) {}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: shared_preferences_macos
description: macOS implementation of the shared_preferences plugin.
version: 0.0.1+1
version: 0.0.1+2
homepage: https://github.com/flutter/plugins/tree/master/packages/shared_preferences/shared_preferences_macos

flutter:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.1.2+2

* Remove unused onMethodCall method.

# 0.1.2+1

* Add an android/ folder with no-op implementation to workaround https://github.com/flutter/flutter/issues/46898.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package io.flutter.plugins.shared_preferences_web;

import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel.Result;
import io.flutter.plugin.common.PluginRegistry.Registrar;

/** SharedPreferencesWebPlugin */
Expand All @@ -12,9 +10,6 @@ public void onAttachedToEngine(FlutterPluginBinding flutterPluginBinding) {}

public static void registerWith(Registrar registrar) {}

@Override
public void onMethodCall(MethodCall call, Result result) {}

@Override
public void onDetachedFromEngine(FlutterPluginBinding binding) {}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: shared_preferences_web
description: Web platform implementation of shared_preferences
homepage: https://github.com/flutter/plugins/tree/master/packages/shared_preferences/shared_preferences_web
version: 0.1.2+1
version: 0.1.2+2

flutter:
plugin:
Expand Down

0 comments on commit 509bd31

Please sign in to comment.