Skip to content

Commit

Permalink
Merge pull request #245 from yaakovschectman/v1_removal
Browse files Browse the repository at this point in the history
Removes references to Flutter v1 android embedding classes
  • Loading branch information
jaumard authored Nov 9, 2024
2 parents 93e8a4e + 8af9246 commit 4d6f836
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.4.1

* Removes references to Flutter v1 android embedding classes.

## 2.4.0

* Fix android 14 crash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
import io.flutter.plugin.common.MethodChannel.Result;
import io.flutter.plugin.common.PluginRegistry;
import io.flutter.plugin.common.PluginRegistry.Registrar;

/**
* SmsAutoFillPlugin
Expand Down Expand Up @@ -79,23 +78,10 @@ public boolean onActivityResult(int requestCode, int resultCode, Intent data) {
public SmsAutoFillPlugin() {
}

private SmsAutoFillPlugin(Registrar registrar) {
activity = registrar.activity();
setupChannel(registrar.messenger());
registrar.addActivityResultListener(activityResultListener);
}

public void setCode(String code) {
channel.invokeMethod("smscode", code);
}

/**
* Plugin registration.
*/
public static void registerWith(Registrar registrar) {
new SmsAutoFillPlugin(registrar);
}

@Override
public void onMethodCall(MethodCall call, @NonNull final Result result) {
switch (call.method) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: sms_autofill
description: Flutter plugin to provide SMS code autofill support
version: 2.4.0
version: 2.4.1
homepage: https://github.com/jaumard/sms_autofill

environment:
Expand Down

0 comments on commit 4d6f836

Please sign in to comment.