From 14c476d78c8b117800099ce799094e6b3a348811 Mon Sep 17 00:00:00 2001 From: shikk Date: Mon, 22 Jul 2019 15:11:43 +0800 Subject: [PATCH] =?UTF-8?q?V=200.0.12=20=E4=BF=AE=E5=A4=8DLocalNotificatio?= =?UTF-8?q?n=20=20extra=E5=AD=97=E6=AE=B5=E4=B8=8D=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .packages | 1 - CHANGELOG.md | 4 ++++ README.md | 2 +- lib/jpush_flutter.dart | 6 +++--- pubspec.yaml | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.packages b/.packages index 9034cfe..3ac23c1 100644 --- a/.packages +++ b/.packages @@ -8,7 +8,6 @@ collection:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/colle convert:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.0.2/lib/ crypto:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/crypto-2.0.6/lib/ csslib:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/csslib-0.14.6/lib/ -flutter:file:///Applications/flutter/packages/flutter/lib/ front_end:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.6/lib/ glob:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/glob-1.1.7/lib/ html:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/html-0.13.3+3/lib/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c5b4a1..13e2f8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.12 + +featurn: 修改LocalNotification的属性名为"extra" + ## 0.0.11 iOS: 修复 getLaunchAppNotification 返回 null 的情况。 diff --git a/README.md b/README.md index b1dea86..c7e786e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ```yaml dependencies: - jpush_flutter: 0.0.11 + jpush_flutter: 0.0.12 ``` ### 配置 diff --git a/lib/jpush_flutter.dart b/lib/jpush_flutter.dart index b8b6e87..503d1cd 100644 --- a/lib/jpush_flutter.dart +++ b/lib/jpush_flutter.dart @@ -258,7 +258,7 @@ class LocalNotification { final int id; final String title; final String content; - final Map extras;//? + final Map extra;//? final DateTime fireTime; final int badge;//? final String soundName;//? @@ -270,7 +270,7 @@ class LocalNotification { @required this.content, @required this.fireTime, this.buildId, - this.extras, + this.extra, this.badge = 0, this.soundName, this.subtitle @@ -287,7 +287,7 @@ class LocalNotification { 'content': content, 'fireTime': fireTime.millisecondsSinceEpoch, 'buildId': buildId, - 'extras': extras, + 'extra': extra, 'badge': badge, 'soundName': soundName, 'subtitle': subtitle diff --git a/pubspec.yaml b/pubspec.yaml index 8203ba7..8400e7f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: jpush_flutter description: Offically supported JPush Flutter plugin. -version: 0.0.11 +version: 0.0.12 author: huminios homepage: https://www.jiguang.cn