From 1baa803443ca67fd803a1902bef361a654126b53 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Tue, 19 Jan 2021 15:36:24 +0100 Subject: [PATCH] ios: Fix gitDefaultBranch --- ios/Runner/AppDelegate.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/Runner/AppDelegate.m b/ios/Runner/AppDelegate.m index d80e9963..bd167009 100644 --- a/ios/Runner/AppDelegate.m +++ b/ios/Runner/AppDelegate.m @@ -55,6 +55,11 @@ static FlutterMethodChannel* gitChannel = 0; [self handleMethodCallAsync:call result:result]; }); } + else if ([@"gitDefaultBranch" isEqualToString:method]) { + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ + [self handleMethodCallAsync:call result:result]; + }); + } else if ([@"gitAdd" isEqualToString:method]) { NSString *folderPath = arguments[@"folderPath"]; NSString *filePattern = arguments[@"filePattern"];