Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_34031325
engine
提交
7c4f6a68
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
7c4f6a68
编写于
6月 19, 2019
作者:
D
Dan Field
提交者:
GitHub
6月 19, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Wire intent args for observatory port (#9378)
上级
54f88ab5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
0 deletion
+13
-0
shell/platform/android/io/flutter/app/FlutterActivityDelegate.java
...tform/android/io/flutter/app/FlutterActivityDelegate.java
+7
-0
shell/platform/android/io/flutter/embedding/engine/FlutterShellArgs.java
...android/io/flutter/embedding/engine/FlutterShellArgs.java
+6
-0
未找到文件。
shell/platform/android/io/flutter/app/FlutterActivityDelegate.java
浏览文件 @
7c4f6a68
...
...
@@ -312,6 +312,13 @@ public final class FlutterActivityDelegate
if
(
intent
.
getBooleanExtra
(
"verbose-logging"
,
false
))
{
args
.
add
(
"--verbose-logging"
);
}
final
int
observatoryPort
=
intent
.
getIntExtra
(
"observatory-port"
,
0
);
if
(
observatoryPort
>
0
)
{
args
.
add
(
"--observatory-port="
+
Integer
.
toString
(
observatoryPort
));
}
if
(
intent
.
getBooleanExtra
(
"disable-service-auth-codes"
,
false
))
{
args
.
add
(
"--disable-service-auth-codes"
);
}
// NOTE: all flags provided with this argument are subject to filtering
// based on a whitelist in shell/common/switches.cc. If any flag provided
// is not present in the whitelist, the process will immediately
...
...
shell/platform/android/io/flutter/embedding/engine/FlutterShellArgs.java
浏览文件 @
7c4f6a68
...
...
@@ -43,6 +43,8 @@ public class FlutterShellArgs {
public
static
final
String
ARG_DUMP_SHADER_SKP_ON_SHADER_COMPILATION
=
"--dump-skp-on-shader-compilation"
;
public
static
final
String
ARG_KEY_VERBOSE_LOGGING
=
"verbose-logging"
;
public
static
final
String
ARG_VERBOSE_LOGGING
=
"--verbose-logging"
;
public
static
final
String
ARG_KEY_OBSERVATORY_PORT
=
"observatory-port"
;
public
static
final
String
ARG_OBSERVATORY_PORT
=
"--observatory-port="
;
@NonNull
public
static
FlutterShellArgs
fromIntent
(
@NonNull
Intent
intent
)
{
...
...
@@ -58,6 +60,10 @@ public class FlutterShellArgs {
if
(
intent
.
getBooleanExtra
(
ARG_KEY_START_PAUSED
,
false
))
{
args
.
add
(
ARG_START_PAUSED
);
}
final
int
observatoryPort
=
intent
.
getIntExtra
(
ARG_KEY_OBSERVATORY_PORT
,
0
);
if
(
observatoryPort
>
0
)
{
args
.
add
(
ARG_OBSERVATORY_PORT
+
Integer
.
toString
(
observatoryPort
));
}
if
(
intent
.
getBooleanExtra
(
ARG_KEY_DISABLE_SERVICE_AUTH_CODES
,
false
))
{
args
.
add
(
ARG_DISABLE_SERVICE_AUTH_CODES
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录