Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
liujiuri
engine
提交
36562788
E
engine
项目概览
liujiuri
/
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,发现更多精彩内容 >>
未验证
提交
36562788
编写于
2月 28, 2018
作者:
M
Mikkel Nygaard Ravn
提交者:
GitHub
2月 28, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make deprecated API unavailable (#4722)
上级
b05efc20
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
40 addition
and
39 deletion
+40
-39
shell/platform/android/io/flutter/app/FlutterActivityDelegate.java
...tform/android/io/flutter/app/FlutterActivityDelegate.java
+8
-6
shell/platform/android/io/flutter/app/FlutterActivityEvents.java
...latform/android/io/flutter/app/FlutterActivityEvents.java
+0
-2
shell/platform/android/io/flutter/app/FlutterPluginRegistry.java
...latform/android/io/flutter/app/FlutterPluginRegistry.java
+16
-17
shell/platform/android/io/flutter/plugin/common/PluginRegistry.java
...form/android/io/flutter/plugin/common/PluginRegistry.java
+16
-14
未找到文件。
shell/platform/android/io/flutter/app/FlutterActivityDelegate.java
浏览文件 @
36562788
...
...
@@ -125,12 +125,14 @@ public final class FlutterActivityDelegate
return
flutterView
.
getPluginRegistry
().
onRequestPermissionsResult
(
requestCode
,
permissions
,
grantResults
);
}
@Override
@Deprecated
public
boolean
onRequestPermissionResult
(
int
requestCode
,
String
[]
permissions
,
int
[]
grantResults
)
{
return
onRequestPermissionsResult
(
requestCode
,
permissions
,
grantResults
);
}
/*
* Method onRequestPermissionResult(int, String[], int[]) was made
* unavailable on 2018-02-28, following deprecation. This comment is left as
* a temporary tombstone for reference, to be removed on 2018-03-28 (or at
* least four weeks after release of unavailability).
*
* https://github.com/flutter/flutter/wiki/Changelog#typo-fixed-in-flutter-engine-android-api
*/
@Override
public
boolean
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
...
...
shell/platform/android/io/flutter/app/FlutterActivityEvents.java
浏览文件 @
36562788
...
...
@@ -8,7 +8,6 @@ import android.content.ComponentCallbacks2;
import
android.content.Intent
;
import
android.os.Bundle
;
import
io.flutter.plugin.common.PluginRegistry.ActivityResultListener
;
import
io.flutter.plugin.common.PluginRegistry.RequestPermissionResultListener
;
import
io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
;
/**
...
...
@@ -24,7 +23,6 @@ import io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener;
public
interface
FlutterActivityEvents
extends
ComponentCallbacks2
,
ActivityResultListener
,
RequestPermissionResultListener
,
RequestPermissionsResultListener
{
/**
* @see android.app.Activity#onCreate(android.os.Bundle)
...
...
shell/platform/android/io/flutter/app/FlutterPluginRegistry.java
浏览文件 @
36562788
...
...
@@ -20,7 +20,6 @@ import java.util.Map;
public
class
FlutterPluginRegistry
implements
PluginRegistry
,
PluginRegistry
.
RequestPermissionResultListener
,
PluginRegistry
.
RequestPermissionsResultListener
,
PluginRegistry
.
ActivityResultListener
,
PluginRegistry
.
NewIntentListener
,
...
...
@@ -118,17 +117,14 @@ public class FlutterPluginRegistry
return
this
;
}
@Override
@Deprecated
public
Registrar
addRequestPermissionResultListener
(
final
RequestPermissionResultListener
listener
)
{
return
addRequestPermissionsResultListener
(
new
RequestPermissionsResultListener
()
{
@Override
public
boolean
onRequestPermissionsResult
(
int
requestCode
,
String
[]
permissions
,
int
[]
grantResults
)
{
return
listener
.
onRequestPermissionResult
(
requestCode
,
permissions
,
grantResults
);
}
});
}
/*
* Method addRequestPermissionResultListener(RequestPermissionResultListener)
* was made unavailable on 2018-02-28, following deprecation.
* This comment is left as a temporary tombstone for reference, to be removed
* on 2018-03-28 (or at least four weeks after release of unavailability).
*
* https://github.com/flutter/flutter/wiki/Changelog#typo-fixed-in-flutter-engine-android-api
*/
@Override
public
Registrar
addRequestPermissionsResultListener
(
...
...
@@ -172,11 +168,14 @@ public class FlutterPluginRegistry
return
false
;
}
@Deprecated
@Override
public
boolean
onRequestPermissionResult
(
int
requestCode
,
String
[]
permissions
,
int
[]
grantResults
)
{
return
onRequestPermissionsResult
(
requestCode
,
permissions
,
grantResults
);
}
/*
* Method onRequestPermissionResult(int, String[], int[]) was made
* unavailable on 2018-02-28, following deprecation. This comment is left as
* a temporary tombstone for reference, to be removed on 2018-03-28 (or at
* least four weeks after release of unavailability).
*
* https://github.com/flutter/flutter/wiki/Changelog#typo-fixed-in-flutter-engine-android-api
*/
@Override
public
boolean
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
...
...
shell/platform/android/io/flutter/plugin/common/PluginRegistry.java
浏览文件 @
36562788
...
...
@@ -132,7 +132,14 @@ public interface PluginRegistry {
*/
Registrar
addRequestPermissionsResultListener
(
RequestPermissionsResultListener
listener
);
/**
/*
* Method addRequestPermissionResultListener(RequestPermissionResultListener listener)
* was made unavailable on 2018-02-28, leaving this comment as a temporary
* tombstone for reference. This comment will be removed on 2018-03-28
* (or at least four weeks after the unavailability is released).
*
* https://github.com/flutter/flutter/wiki/Changelog#typo-fixed-in-flutter-engine-android-api
*
* Adds a callback allowing the plugin to take part in handling incoming
* calls to {@code Activity#onRequestPermissionsResult(int, String[], int[])}
* or {@code android.support.v4.app.ActivityCompat.OnRequestPermissionsResultCallback#onRequestPermissionsResult(int, String[], int[])}.
...
...
@@ -144,8 +151,6 @@ public interface PluginRegistry {
* on 2018-02-06 (or at least four weeks after the deprecation is released). Use
* {@link #addRequestPermissionsResultListener(RequestPermissionsResultListener)} instead.
*/
@Deprecated
Registrar
addRequestPermissionResultListener
(
RequestPermissionResultListener
listener
);
/**
* Adds a callback allowing the plugin to take part in handling incoming
...
...
@@ -195,7 +200,14 @@ public interface PluginRegistry {
boolean
onRequestPermissionsResult
(
int
requestCode
,
String
[]
permissions
,
int
[]
grantResults
);
}
/**
/*
* interface RequestPermissionResultListener was made unavailable on
* 2018-02-28, leaving this comment as a temporary tombstone for reference.
* This comment will be removed on 2018-03-28 (or at least four weeks after
* the unavailability is released).
*
* https://github.com/flutter/flutter/wiki/Changelog#typo-fixed-in-flutter-engine-android-api
*
* Delegate interface for handling result of permissions requests on
* behalf of the main {@link Activity}.
*
...
...
@@ -203,16 +215,6 @@ public interface PluginRegistry {
* unavailable on 2018-02-06 (or at least four weeks after the deprecation is released).
* Use {@link RequestPermissionsResultListener} instead.
*/
interface
RequestPermissionResultListener
{
/**
* @return true if the result has been handled.
* @deprecated on 2018-01-02 because of misspelling. This method will be made
* unavailable on 2018-02-06 (or at least four weeks after the deprecation is released).
* Use {@link RequestPermissionsResultListener} instead.
*/
@Deprecated
boolean
onRequestPermissionResult
(
int
requestCode
,
String
[]
permissions
,
int
[]
grantResults
);
}
/**
* Delegate interface for handling activity results on behalf of the main
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录