From 3941b7e93252553513ac4089ad967588ad212bc4 Mon Sep 17 00:00:00 2001 From: csmartdalton Date: Wed, 15 Feb 2023 17:24:54 +0000 Subject: [PATCH] Update ObjC formatting to look more similar to the C++ Also update the auto formatter to run on *.m and *.mm files, and effectively ban breaking on return types entirely, as I think this is ugly. Diffs= c7d125c7d Update ObjC formatting to look more similar to the C++ --- .rive_head | 2 +- example/ios/Runner/AppDelegate.m | 11 ++++++----- example/ios/Runner/main.m | 10 ++++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.rive_head b/.rive_head index 45e5d02..30c2abb 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -a61f4c6b55916294a69226fbd8312b602ad37466 +c7d125c7d4efe1233c16c2a95fb7b637b746b010 diff --git a/example/ios/Runner/AppDelegate.m b/example/ios/Runner/AppDelegate.m index 70e8393..cd106dd 100644 --- a/example/ios/Runner/AppDelegate.m +++ b/example/ios/Runner/AppDelegate.m @@ -3,11 +3,12 @@ @implementation AppDelegate -- (BOOL)application:(UIApplication *)application - didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - [GeneratedPluginRegistrant registerWithRegistry:self]; - // Override point for customization after application launch. - return [super application:application didFinishLaunchingWithOptions:launchOptions]; +- (BOOL)application:(UIApplication*)application + didFinishLaunchingWithOptions:(NSDictionary*)launchOptions +{ + [GeneratedPluginRegistrant registerWithRegistry:self]; + // Override point for customization after application launch. + return [super application:application didFinishLaunchingWithOptions:launchOptions]; } @end diff --git a/example/ios/Runner/main.m b/example/ios/Runner/main.m index dff6597..d8be491 100644 --- a/example/ios/Runner/main.m +++ b/example/ios/Runner/main.m @@ -2,8 +2,10 @@ #import #import "AppDelegate.h" -int main(int argc, char* argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } +int main(int argc, char* argv[]) +{ + @autoreleasepool + { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } }