v0.6.3 修复bug

master
raoxudong 4 years ago
parent 0d0d85f556
commit e4618b10d5

@ -338,7 +338,7 @@
"languageVersion": "2.1"
}
],
"generated": "2021-01-06T06:14:07.674626Z",
"generated": "2021-01-26T08:47:21.076726Z",
"generator": "pub",
"generatorVersion": "2.10.4"
}

@ -1,4 +1,4 @@
# Generated by pub on 2021-01-06 14:14:07.647799.
# Generated by pub on 2021-01-26 16:47:21.044882.
analyzer:file:///Applications/flutter/.pub-cache/hosted/pub.flutter-io.cn/analyzer-0.37.0/lib/
args:file:///Applications/flutter/.pub-cache/hosted/pub.flutter-io.cn/args-1.5.2/lib/
async:file:///Applications/flutter/.pub-cache/hosted/pub.flutter-io.cn/async-2.3.0/lib/

@ -1,3 +1,5 @@
## 0.6.3
+ 修复Android端获取RegistrationID偶现奔溃问题
## 0.6.2
+ 同步更最新版本SDK
## 0.6.1

@ -16,7 +16,7 @@ dependencies:
// pub 集成
dependencies:
jpush_flutter: 0.6.2
jpush_flutter: 0.6.3
```
### 配置

@ -285,6 +285,11 @@ public class JPushPlugin implements MethodCallHandler {
public void getRegistrationID(MethodCall call, Result result) {
Log.d(TAG,"getRegistrationID: ");
if (registrar == null || registrar.context() == null) {
Log.d(TAG,"register context is nil.");
return;
}
String rid = JPushInterface.getRegistrationID(registrar.context());
if (rid == null || rid.isEmpty()) {
getRidCache.add(result);

@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"jpush_flutter","path":"/Users/raoxudong/JPush/jpush-github/jpush-flutter-plugin/","dependencies":[]}],"android":[{"name":"jpush_flutter","path":"/Users/raoxudong/JPush/jpush-github/jpush-flutter-plugin/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"jpush_flutter","dependencies":[]}],"date_created":"2021-01-06 14:51:34.996891","version":"1.22.5"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"jpush_flutter","path":"/Users/raoxudong/JPush/jpush-github/jpush-flutter-plugin/","dependencies":[]}],"android":[{"name":"jpush_flutter","path":"/Users/raoxudong/JPush/jpush-github/jpush-flutter-plugin/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"jpush_flutter","dependencies":[]}],"date_created":"2021-01-26 16:47:22.148262","version":"1.22.5"}

@ -164,7 +164,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.6.2"
version: "0.6.3"
js:
dependency: transitive
description:

@ -15,7 +15,8 @@ A new flutter plugin project.
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'JPush'
s.dependency 'JCore','2.4.0'
s.dependency 'JPush','3.4.0'
s.ios.deployment_target = '8.0'
s.static_framework = true

@ -1,6 +1,6 @@
name: jpush_flutter
description: JIGUANG officially supported JPush Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件Android & iOS(https://www.jiguang.cn).
version: 0.6.2
version: 0.6.3
# author: xudong.rao <xudong.rao@outlook.com>
homepage: https://www.jiguang.cn

Loading…
Cancel
Save