diff --git a/.packages b/.packages index 9388018..9034cfe 100644 --- a/.packages +++ b/.packages @@ -1,4 +1,4 @@ -# Generated by pub on 2018-12-18 14:03:59.641763. +# Generated by pub on 2018-12-28 11:16:51.907295. analyzer:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.33.0/lib/ args:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/args-1.5.0/lib/ async:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.0.8/lib/ diff --git a/CHANGELOG.md b/CHANGELOG.md index d287b4a..a98df54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.9 + +android: 修复 JPushReceiver 类型转换的错误。 + ## 0.0.8 更新 setup 方法,android 端现在支持 channel 字段,用于动态设置 channel,和 iOS 保持一致。 diff --git a/android/src/main/java/com/jiguang/jpush/JPushPlugin.java b/android/src/main/java/com/jiguang/jpush/JPushPlugin.java index ca3aeca..511cb48 100644 --- a/android/src/main/java/com/jiguang/jpush/JPushPlugin.java +++ b/android/src/main/java/com/jiguang/jpush/JPushPlugin.java @@ -240,7 +240,7 @@ public class JPushPlugin implements MethodCallHandler { public static class JPushReceiver extends BroadcastReceiver { private static final List IGNORED_EXTRAS_KEYS = Arrays.asList("cn.jpush.android.TITLE", - "cn.jpush.android.MESSAGE", "cn.jpush.android.APPKEY", "cn.jpush.android.NOTIFICATION_CONTENT_TITLE"); + "cn.jpush.android.MESSAGE", "cn.jpush.android.APPKEY", "cn.jpush.android.NOTIFICATION_CONTENT_TITLE", "key_show_entity", "platform"); public JPushReceiver() { } diff --git a/example/pubspec.lock b/example/pubspec.lock index cbc6640..0229094 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -133,9 +133,9 @@ packages: jpush_flutter: dependency: "direct dev" description: - path: ".." - relative: true - source: path + name: jpush_flutter + url: "https://pub.dartlang.org" + source: hosted version: "0.0.8" js: dependency: transitive diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 22d4aef..0fc4fd1 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -26,8 +26,8 @@ dev_dependencies: flutter_test: sdk: flutter - jpush_flutter: - path: ../ + jpush_flutter: ^0.0.8 + # path: ../ # For information on the generic Dart part of this file, see the # following page: https://www.dartlang.org/tools/pub/pubspec diff --git a/pubspec.yaml b/pubspec.yaml index afd28b8..d796a2f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: jpush_flutter description: Offically supported JPush Flutter plugin. -version: 0.0.8 +version: 0.0.9 author: huminios homepage: https://www.jiguang.cn