Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx_map_navigation
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx_map_navigation
Commits
2d78d6d7
提交
2d78d6d7
authored
12月 01, 2022
作者:
袁静春
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交:修改插件名字和版本;
上级
73561e5f
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
57 行删除
+24
-57
pubspec.yaml
pubspec.yaml
+3
-34
clx_map_navigation_test.dart
test/clx_map_navigation_test.dart
+21
-23
没有找到文件。
pubspec.yaml
浏览文件 @
2d78d6d7
name
:
clx_map_navigation
description
:
A new Flutter plugin project.
version
:
0.0.1
homepage
:
version
:
1.0.0
homepage
:
https://t.clxkj.cn/openSourceLibrary/clx_map_navigation.git
environment
:
sdk
:
"
>=2.17.6
<3.0.0"
...
...
@@ -36,38 +36,7 @@ flutter:
plugin
:
platforms
:
android
:
package
:
com.clx.
navigation.
clx_map_navigation
package
:
com.clx.clx_map_navigation
pluginClass
:
ClxMapNavigationPlugin
ios
:
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
test/clx_map_navigation_test.dart
浏览文件 @
2d78d6d7
...
...
@@ -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:plugin_platform_interface/plugin_platform_interface.dart'
;
class
MockClxMapNavigationPlatform
with
MockPlatformInterfaceMixin
implements
ClxMapNavigationPlatform
{
@override
Future
<
String
?>
getPlatformVersion
()
=>
Future
.
value
(
'42'
);
}
void
main
(
)
{
final
ClxMapNavigationPlatform
initialPlatform
=
ClxMapNavigationPlatform
.
instance
;
test
(
'
$MethodChannelClxMapNavigation
is the default instance'
,
()
{
expect
(
initialPlatform
,
isInstanceOf
<
MethodChannelClxMapNavigation
>());
});
test
(
'getPlatformVersion'
,
()
async
{
ClxMapNavigation
clxMapNavigationPlugin
=
ClxMapNavigation
();
MockClxMapNavigationPlatform
fakePlatform
=
MockClxMapNavigationPlatform
();
ClxMapNavigationPlatform
.
instance
=
fakePlatform
;
expect
(
await
clxMapNavigationPlugin
.
getPlatformVersion
(),
'42'
);
});
}
// class MockClxMapNavigationPlatform with MockPlatformInterfaceMixin implements ClxMapNavigationPlatform {
//
// @override
// Future<String?> getPlatformVersion() => Future.value('42');
// }
//
// void main() {
// final ClxMapNavigationPlatform initialPlatform = ClxMapNavigationPlatform.instance;
//
// test('$MethodChannelClxMapNavigation is the default instance', () {
// expect(initialPlatform, isInstanceOf<MethodChannelClxMapNavigation>());
// });
//
// test('getPlatformVersion', () async {
// ClxMapNavigation clxMapNavigationPlugin = ClxMapNavigation();
// MockClxMapNavigationPlatform fakePlatform = MockClxMapNavigationPlatform();
// ClxMapNavigationPlatform.instance = fakePlatform;
//
// expect(await clxMapNavigationPlugin.getPlatformVersion(), '42');
// });
// }
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论