Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_34031325
engine
提交
1280c527
E
engine
项目概览
qq_34031325
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1280c527
编写于
7月 12, 2016
作者:
C
Collin Jackson
提交者:
GitHub
7月 12, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make FlutterAppDelegate an empty AppDelegate (#2792)
上级
fe69b034
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
6 addition
and
53 deletion
+6
-53
sky/shell/platform/ios/framework/Headers/FlutterAppDelegate.h
...shell/platform/ios/framework/Headers/FlutterAppDelegate.h
+2
-3
sky/shell/platform/ios/framework/Source/FlutterAppDelegate.mm
...shell/platform/ios/framework/Source/FlutterAppDelegate.mm
+0
-49
sky/shell/platform/ios/framework/Source/FlutterViewController.mm
...ll/platform/ios/framework/Source/FlutterViewController.mm
+4
-1
未找到文件。
sky/shell/platform/ios/framework/Headers/FlutterAppDelegate.h
浏览文件 @
1280c527
...
...
@@ -9,9 +9,8 @@
#include "FlutterMacros.h"
// A simple app delegate that creates a single full-screen Flutter application.
// Using FlutterAppDelegate is optional. The framework provides this interface
// to make it easy to get started with simple Flutter apps.
// Empty implementation of UIApplicationDelegate, for simple apps
// that don't need to customize the application delegate.
FLUTTER_EXPORT
@interface
FlutterAppDelegate
:
UIResponder
<
UIApplicationDelegate
>
...
...
sky/shell/platform/ios/framework/Source/FlutterAppDelegate.mm
浏览文件 @
1280c527
...
...
@@ -3,56 +3,7 @@
// found in the LICENSE file.
#include "sky/shell/platform/ios/framework/Headers/FlutterAppDelegate.h"
#include "sky/shell/platform/ios/framework/Headers/FlutterViewController.h"
@implementation
FlutterAppDelegate
-
(
BOOL
)
application
:(
UIApplication
*
)
application
didFinishLaunchingWithOptions
:(
NSDictionary
*
)
launchOptions
{
FlutterDartProject
*
project
=
[[
FlutterDartProject
alloc
]
initFromDefaultSourceForConfiguration
];
CGRect
frame
=
[
UIScreen
mainScreen
].
bounds
;
UIWindow
*
window
=
[[
UIWindow
alloc
]
initWithFrame
:
frame
];
FlutterViewController
*
viewController
=
[[
FlutterViewController
alloc
]
initWithProject
:
project
nibName:
nil
bundle:
nil
];
[
project
release
];
window
.
rootViewController
=
viewController
;
[
viewController
release
];
self
.
window
=
window
;
[
window
release
];
[
self
.
window
makeKeyAndVisible
];
return
YES
;
}
// Use the NSNotificationCenter to notify services when we're opened with URLs.
// TODO(jackson): Revisit this API once we have more services using URLs to make
// it more typed and less brittle
-
(
BOOL
)
application
:(
UIApplication
*
)
app
openURL
:(
NSURL
*
)
url
sourceApplication
:(
NSString
*
)
sourceApplication
annotation
:(
id
)
annotation
{
NSDictionary
*
dict
=
[@{
@"handled"
:
[
NSMutableDictionary
dictionary
],
@"url"
:
url
,
@"sourceApplication"
:
sourceApplication
,
}
mutableCopy
];
if
(
annotation
!=
nil
)
[
dict
setValue
:
annotation
forKey
:
@"annotation"
];
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
@"openURL"
object:
self
userInfo:
dict
];
BOOL
handled
=
((
NSNumber
*
)
dict
[
@"handled"
][
@"value"
]).
boolValue
;
[
dict
release
];
return
handled
;
}
@end
sky/shell/platform/ios/framework/Source/FlutterViewController.mm
浏览文件 @
1280c527
...
...
@@ -65,6 +65,9 @@ void FlutterInit(int argc, const char* argv[]) {
self
=
[
super
initWithNibName
:
nibNameOrNil
bundle
:
nibBundleOrNil
];
if
(
self
)
{
if
(
project
==
nil
)
_dartProject
.
reset
([[
FlutterDartProject
alloc
]
initFromDefaultSourceForConfiguration
]);
else
_dartProject
.
reset
([
project
retain
]);
[
self
performCommonViewControllerInitialization
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录