Skip to content

Commit 085b2bc

Browse files
committed
Ensure keepOn future finishes
1 parent a50316b commit 085b2bc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@
181181
TargetAttributes = {
182182
97C146ED1CF9000F007C117D = {
183183
CreatedOnToolsVersion = 7.3.1;
184-
DevelopmentTeam = 7X4LHQK32Q;
185184
};
186185
};
187186
};
@@ -430,7 +429,7 @@
430429
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
431430
buildSettings = {
432431
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
433-
DEVELOPMENT_TEAM = 7X4LHQK32Q;
432+
DEVELOPMENT_TEAM = "";
434433
ENABLE_BITCODE = NO;
435434
FRAMEWORK_SEARCH_PATHS = (
436435
"$(inherited)",
@@ -452,7 +451,7 @@
452451
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
453452
buildSettings = {
454453
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
455-
DEVELOPMENT_TEAM = 7X4LHQK32Q;
454+
DEVELOPMENT_TEAM = "";
456455
ENABLE_BITCODE = NO;
457456
FRAMEWORK_SEARCH_PATHS = (
458457
"$(inherited)",

ios/Classes/ScreenPlugin.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
@implementation ScreenPlugin
44
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
55
FlutterMethodChannel* channel = [FlutterMethodChannel
6-
methodChannelWithName:@"github.com/clovisnicolas/flutter_screen"
7-
binaryMessenger:[registrar messenger]];
6+
methodChannelWithName:@"github.com/clovisnicolas/flutter_screen"
7+
binaryMessenger:[registrar messenger]];
88
ScreenPlugin* instance = [[ScreenPlugin alloc] init];
99
[registrar addMethodCallDelegate:instance channel:channel];
1010
}
@@ -25,6 +25,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
2525
else if ([@"keepOn" isEqualToString:call.method]) {
2626
NSNumber *b = call.arguments[@"on"];
2727
[[UIApplication sharedApplication] setIdleTimerDisabled:b.boolValue];
28+
result(nil);
2829
}
2930
else {
3031
result(FlutterMethodNotImplemented);

0 commit comments

Comments
 (0)