This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 3 files changed +5
-5
lines changed
testing/scenario_app/ios/Scenarios
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
@interface ScreenBeforeFlutter : UIViewController
8
8
9
- - (id )initWithEngineRunCompletion : (void (^)( void ) )engineRunCompletion ;
10
- - (FlutterViewController*)showFlutter : (void (^)( void ) )showCompletion ;
9
+ - (id )initWithEngineRunCompletion : (dispatch_block_t )engineRunCompletion ;
10
+ - (FlutterViewController*)showFlutter : (dispatch_block_t )showCompletion ;
11
11
12
12
@property (nonatomic , readonly ) FlutterEngine* engine;
13
13
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ @implementation ScreenBeforeFlutter
9
9
10
10
@synthesize engine = _engine;
11
11
12
- - (id )initWithEngineRunCompletion : (void (^)( void ) )engineRunCompletion {
12
+ - (id )initWithEngineRunCompletion : (dispatch_block_t )engineRunCompletion {
13
13
self = [super init ];
14
14
_engine = [[FlutterEngine alloc ] initWithScenario: @" poppable_screen"
15
15
withCompletion: engineRunCompletion];
@@ -39,7 +39,7 @@ - (void)viewDidLoad {
39
39
[_engine runWithEntrypoint: nil ];
40
40
}
41
41
42
- - (FlutterViewController*)showFlutter : (void (^)( void ) )showCompletion {
42
+ - (FlutterViewController*)showFlutter : (dispatch_block_t )showCompletion {
43
43
FlutterViewController* flutterVC = [[FlutterViewController alloc ] initWithEngine: _engine
44
44
nibName: nil
45
45
bundle: nil ];
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ - (void)setUp {
48
48
[self expectationForNotification: UIApplicationDidBecomeActiveNotification
49
49
object: self
50
50
handler: nil ];
51
- [self waitForExpectationsWithTimeout: 10 .0 handler: nil ];
51
+ [self waitForExpectationsWithTimeout: 30 .0 handler: nil ];
52
52
}
53
53
XCTAssertEqual ([UIApplication sharedApplication ].applicationState , UIApplicationStateActive);
54
54
}
You can’t perform that action at this time.
0 commit comments