Feature 6.0.0 (#93)

flutter upgrade
This commit is contained in:
droplet
2023-06-03 23:37:44 +08:00
committed by GitHub
parent 9b6770bce2
commit f172ff20d8
50 changed files with 685 additions and 540 deletions

View File

@ -3,20 +3,23 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:tencent_kit/src/tencent_kit_method_channel.dart';
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
final MethodChannelTencentKit platform = MethodChannelTencentKit();
const MethodChannel channel = MethodChannel('v7lin.github.io/tencent_kit');
TestWidgetsFlutterBinding.ensureInitialized();
setUp(() {
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel, (MethodCall methodCall) async {
switch (methodCall.method) {
case 'isQQInstalled':
return true;
}
return null;
});
.setMockMethodCallHandler(
channel,
(MethodCall methodCall) async {
switch (methodCall.method) {
case 'isQQInstalled':
return true;
}
return null;
},
);
});
tearDown(() {

View File

@ -1,5 +1,3 @@
import 'dart:async';
import 'package:flutter_test/flutter_test.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'package:tencent_kit/src/constant.dart';