Download flutter/dev/integration_tests/flavors/ios/Runner/AppDelegate.m from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/integration_tests/flavors/ios/Runner/AppDelegate.m
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/dev/integration_tests/flavors/ios/Runner/AppDelegate.m
-
curl -L -o AppDelegate.m https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/integration_tests/flavors/ios/Runner/AppDelegate.m
1.01 kB
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #import "AppDelegate.h" | |
| #import "GeneratedPluginRegistrant.h" | |
| @implementation AppDelegate | |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
| [GeneratedPluginRegistrant registerWithRegistry:self]; | |
| // Override point for customization after application launch. | |
| FlutterViewController* controller = (FlutterViewController*)self.window.rootViewController; | |
| FlutterMethodChannel* flavorChannel = [FlutterMethodChannel methodChannelWithName:@"flavor" binaryMessenger:controller]; | |
| [flavorChannel setMethodCallHandler:^(FlutterMethodCall *call, FlutterResult result) { | |
| NSString* flavor = (NSString*)[[NSBundle mainBundle].infoDictionary valueForKey:@"Flavor"]; | |
| result(flavor); | |
| }]; | |
| return [super application:application didFinishLaunchingWithOptions:launchOptions]; | |
| } | |
| @end | |