1
0
mirror of https://github.com/rive-app/rive-flutter.git synced 2025-07-30 11:53:00 +08:00

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++
This commit is contained in:
csmartdalton
2023-02-15 17:24:54 +00:00
parent 00798ca173
commit 3941b7e932
3 changed files with 13 additions and 10 deletions

@ -1 +1 @@
a61f4c6b55916294a69226fbd8312b602ad37466 c7d125c7d4efe1233c16c2a95fb7b637b746b010

@ -4,7 +4,8 @@
@implementation AppDelegate @implementation AppDelegate
- (BOOL)application:(UIApplication*)application - (BOOL)application:(UIApplication*)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
[GeneratedPluginRegistrant registerWithRegistry:self]; [GeneratedPluginRegistrant registerWithRegistry:self];
// Override point for customization after application launch. // Override point for customization after application launch.
return [super application:application didFinishLaunchingWithOptions:launchOptions]; return [super application:application didFinishLaunchingWithOptions:launchOptions];

@ -2,8 +2,10 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "AppDelegate.h" #import "AppDelegate.h"
int main(int argc, char* argv[]) { int main(int argc, char* argv[])
@autoreleasepool { {
@autoreleasepool
{
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
} }
} }