2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
4
5
- // TODO(cyanglaz): Remove once https://github.com/flutter/flutter/issues/59879 is fixed.
6
- // @dart = 2.9
7
-
8
5
import 'package:flutter/services.dart' ;
9
6
import 'package:flutter_test/flutter_test.dart' ;
10
7
import 'package:device_info_platform_interface/device_info_platform_interface.dart' ;
@@ -14,7 +11,7 @@ void main() {
14
11
TestWidgetsFlutterBinding .ensureInitialized ();
15
12
16
13
group ("$MethodChannelDeviceInfo " , () {
17
- MethodChannelDeviceInfo methodChannelDeviceInfo;
14
+ late MethodChannelDeviceInfo methodChannelDeviceInfo;
18
15
19
16
setUp (() async {
20
17
methodChannelDeviceInfo = MethodChannelDeviceInfo ();
@@ -162,7 +159,7 @@ void main() {
162
159
group (
163
160
"$MethodChannelDeviceInfo handles null value in the map returned from method channel" ,
164
161
() {
165
- MethodChannelDeviceInfo methodChannelDeviceInfo;
162
+ late MethodChannelDeviceInfo methodChannelDeviceInfo;
166
163
167
164
setUp (() async {
168
165
methodChannelDeviceInfo = MethodChannelDeviceInfo ();
@@ -261,7 +258,7 @@ void main() {
261
258
});
262
259
263
260
group ("$MethodChannelDeviceInfo handles method channel returns null" , () {
264
- MethodChannelDeviceInfo methodChannelDeviceInfo;
261
+ late MethodChannelDeviceInfo methodChannelDeviceInfo;
265
262
266
263
setUp (() async {
267
264
methodChannelDeviceInfo = MethodChannelDeviceInfo ();
@@ -329,7 +326,7 @@ void main() {
329
326
});
330
327
331
328
group ("$MethodChannelDeviceInfo android handles null values in list" , () {
332
- MethodChannelDeviceInfo methodChannelDeviceInfo;
329
+ late MethodChannelDeviceInfo methodChannelDeviceInfo;
333
330
334
331
setUp (() async {
335
332
methodChannelDeviceInfo = MethodChannelDeviceInfo ();
@@ -339,17 +336,16 @@ void main() {
339
336
switch (methodCall.method) {
340
337
case 'getAndroidDeviceInfo' :
341
338
return ({
342
- "supported32BitAbis" : < String > ["x86" , null ],
343
- "supported64BitAbis" : < String > ["x86_64" , null ],
344
- "supportedAbis" : < String > ["x86_64" , "x86" , null ],
339
+ "supported32BitAbis" : < String > ["x86" ],
340
+ "supported64BitAbis" : < String > ["x86_64" ],
341
+ "supportedAbis" : < String > ["x86_64" , "x86" ],
345
342
"systemFeatures" : < String > [
346
343
"android.hardware.sensor.proximity" ,
347
344
"android.software.adoptable_storage" ,
348
345
"android.hardware.sensor.accelerometer" ,
349
346
"android.hardware.faketouch" ,
350
347
"android.software.backup" ,
351
348
"android.hardware.touchscreen" ,
352
- null
353
349
],
354
350
});
355
351
default :
0 commit comments