提交 2d78d6d7 authored 作者: 袁静春's avatar 袁静春

提交:修改插件名字和版本;

上级 73561e5f
name: clx_map_navigation name: clx_map_navigation
description: A new Flutter plugin project. description: A new Flutter plugin project.
version: 0.0.1 version: 1.0.0
homepage: homepage: https://t.clxkj.cn/openSourceLibrary/clx_map_navigation.git
environment: environment:
sdk: ">=2.17.6 <3.0.0" sdk: ">=2.17.6 <3.0.0"
...@@ -36,38 +36,7 @@ flutter: ...@@ -36,38 +36,7 @@ flutter:
plugin: plugin:
platforms: platforms:
android: android:
package: com.clx.navigation.clx_map_navigation package: com.clx.clx_map_navigation
pluginClass: ClxMapNavigationPlugin pluginClass: ClxMapNavigationPlugin
ios: ios:
pluginClass: ClxMapNavigationPlugin pluginClass: ClxMapNavigationPlugin
# To add assets to your plugin package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
#
# For details regarding assets in packages, see
# https://flutter.dev/assets-and-images/#from-packages
#
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
# To add custom fonts to your plugin package, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts in packages, see
# https://flutter.dev/custom-fonts/#from-packages
...@@ -4,26 +4,24 @@ import 'package:clx_map_navigation/core/clx_map_navigation_platform_interface.da ...@@ -4,26 +4,24 @@ import 'package:clx_map_navigation/core/clx_map_navigation_platform_interface.da
import 'package:clx_map_navigation/core/clx_map_navigation_method_channel.dart'; import 'package:clx_map_navigation/core/clx_map_navigation_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'package:plugin_platform_interface/plugin_platform_interface.dart';
class MockClxMapNavigationPlatform // class MockClxMapNavigationPlatform with MockPlatformInterfaceMixin implements ClxMapNavigationPlatform {
with MockPlatformInterfaceMixin //
implements ClxMapNavigationPlatform { // @override
// Future<String?> getPlatformVersion() => Future.value('42');
@override // }
Future<String?> getPlatformVersion() => Future.value('42'); //
} // void main() {
// final ClxMapNavigationPlatform initialPlatform = ClxMapNavigationPlatform.instance;
void main() { //
final ClxMapNavigationPlatform initialPlatform = ClxMapNavigationPlatform.instance; // test('$MethodChannelClxMapNavigation is the default instance', () {
// expect(initialPlatform, isInstanceOf<MethodChannelClxMapNavigation>());
test('$MethodChannelClxMapNavigation is the default instance', () { // });
expect(initialPlatform, isInstanceOf<MethodChannelClxMapNavigation>()); //
}); // test('getPlatformVersion', () async {
// ClxMapNavigation clxMapNavigationPlugin = ClxMapNavigation();
test('getPlatformVersion', () async { // MockClxMapNavigationPlatform fakePlatform = MockClxMapNavigationPlatform();
ClxMapNavigation clxMapNavigationPlugin = ClxMapNavigation(); // ClxMapNavigationPlatform.instance = fakePlatform;
MockClxMapNavigationPlatform fakePlatform = MockClxMapNavigationPlatform(); //
ClxMapNavigationPlatform.instance = fakePlatform; // expect(await clxMapNavigationPlugin.getPlatformVersion(), '42');
// });
expect(await clxMapNavigationPlugin.getPlatformVersion(), '42'); // }
});
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论