Skip to content

Commit

Permalink
Feat: 调整插件包名
Browse files Browse the repository at this point in the history
  • Loading branch information
pandaoh committed Nov 7, 2023
1 parent e9f986f commit 9697d88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import io.flutter.plugin.common.MethodChannel.Result;

public class SbtPlugin implements FlutterPlugin, MethodCallHandler {

private MethodChannel channel;

@Override
Expand All @@ -21,7 +21,7 @@ public void onAttachedToEngine(@NonNull FlutterPlugin.FlutterPluginBinding bindi
@Override
public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
if (call.method.equals("getPlatformVersion")) {
result.success("Android:" + android.os.Build.VERSION.RELEASE);
result.success("Android Version:" + android.os.Build.VERSION.RELEASE);
} else {
result.notImplemented();
}
Expand All @@ -30,5 +30,5 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
@Override
public void onDetachedFromEngine(@NonNull FlutterPlugin.FlutterPluginBinding binding) {
channel.setMethodCallHandler(null);
}
}
}
1 change: 0 additions & 1 deletion lib/sbt_plugin.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import 'dart:async';

import 'package:flutter/services.dart';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ flutter:
plugin:
platforms:
android:
package: com.example.sbt_plugin
package: com.stpass.imes.plugin.sbt
pluginClass: SbtPlugin

# To add assets to your plugin package, add an assets section, like this:
Expand Down

0 comments on commit 9697d88

Please sign in to comment.