@@ -23,7 +23,7 @@ - (void)testPluginPickImageDeviceBack {
2323 return ;
2424 }
2525 FLTImagePickerPlugin *plugin =
26- [[FLTImagePickerPlugin alloc ] initWithViewController: [UIViewController new ] ];
26+ [[FLTImagePickerPlugin alloc ] init ];
2727 FlutterMethodCall *call =
2828 [FlutterMethodCall methodCallWithMethodName: @" pickImage"
2929 arguments: @{@" source" : @(0 ), @" cameraDevice" : @(0 )}];
@@ -39,7 +39,7 @@ - (void)testPluginPickImageDeviceFront {
3939 return ;
4040 }
4141 FLTImagePickerPlugin *plugin =
42- [[FLTImagePickerPlugin alloc ] initWithViewController: [UIViewController new ] ];
42+ [[FLTImagePickerPlugin alloc ] init ];
4343 FlutterMethodCall *call =
4444 [FlutterMethodCall methodCallWithMethodName: @" pickImage"
4545 arguments: @{@" source" : @(0 ), @" cameraDevice" : @(1 )}];
@@ -55,7 +55,7 @@ - (void)testPluginPickVideoDeviceBack {
5555 return ;
5656 }
5757 FLTImagePickerPlugin *plugin =
58- [[FLTImagePickerPlugin alloc ] initWithViewController: [UIViewController new ] ];
58+ [[FLTImagePickerPlugin alloc ] init ];
5959 FlutterMethodCall *call =
6060 [FlutterMethodCall methodCallWithMethodName: @" pickVideo"
6161 arguments: @{@" source" : @(0 ), @" cameraDevice" : @(0 )}];
@@ -71,7 +71,7 @@ - (void)testPluginPickVideoDeviceFront {
7171 return ;
7272 }
7373 FLTImagePickerPlugin *plugin =
74- [[FLTImagePickerPlugin alloc ] initWithViewController: [UIViewController new ] ];
74+ [[FLTImagePickerPlugin alloc ] init ];
7575 FlutterMethodCall *call =
7676 [FlutterMethodCall methodCallWithMethodName: @" pickVideo"
7777 arguments: @{@" source" : @(0 ), @" cameraDevice" : @(1 )}];
@@ -85,7 +85,7 @@ - (void)testPluginPickVideoDeviceFront {
8585#pragma mark - Test video duration
8686- (void )testPickingVideoWithDuration {
8787 FLTImagePickerPlugin *plugin =
88- [[FLTImagePickerPlugin alloc ] initWithViewController: [UIViewController new ] ];
88+ [[FLTImagePickerPlugin alloc ] init ];
8989 FlutterMethodCall *call = [FlutterMethodCall
9090 methodCallWithMethodName: @" pickVideo"
9191 arguments: @{@" source" : @(0 ), @" cameraDevice" : @(0 ), @" maxDuration" : @95 }];
@@ -97,7 +97,7 @@ - (void)testPickingVideoWithDuration {
9797
9898- (void )testPluginPickImageSelectMultipleTimes {
9999 FLTImagePickerPlugin *plugin =
100- [[FLTImagePickerPlugin alloc ] initWithViewController: [UIViewController new ] ];
100+ [[FLTImagePickerPlugin alloc ] init ];
101101 FlutterMethodCall *call =
102102 [FlutterMethodCall methodCallWithMethodName: @" pickImage"
103103 arguments: @{@" source" : @(0 ), @" cameraDevice" : @(0 )}];
0 commit comments