Skip to content

Commit 8a6f1c7

Browse files
committed
v2.0.3
1 parent 093d8b2 commit 8a6f1c7

File tree

7 files changed

+168
-20
lines changed

7 files changed

+168
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.0.3] - 2024-05-07
2+
3+
* Fix error in API service
4+
15
## [2.0.2] - 2024-03-11
26

37
* Dependency updates

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ In your flutter project add the dependency:
1818
``` dart
1919
dependencies:
2020
...
21-
wp_notify: ^2.0.2
21+
wp_notify: ^2.0.3
2222
```
2323

2424
### Usage example #

example/pubspec.lock

Lines changed: 80 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ packages:
5353
dependency: transitive
5454
description:
5555
name: dio
56-
sha256: "49af28382aefc53562459104f64d16b9dfd1e8ef68c862d5af436cc8356ce5a8"
56+
sha256: "11e40df547d418cc0c4900a9318b26304e665da6fa4755399a9ff9efd09034b5"
5757
url: "https://pub.dev"
5858
source: hosted
59-
version: "5.4.1"
59+
version: "5.4.3+1"
6060
equatable:
6161
dependency: transitive
6262
description:
@@ -65,6 +65,14 @@ packages:
6565
url: "https://pub.dev"
6666
source: hosted
6767
version: "2.0.5"
68+
error_stack:
69+
dependency: transitive
70+
description:
71+
name: error_stack
72+
sha256: a8fc8c21a0e471333d3787ef669f8e072ce7f29122b1b1448dded9dfdd51046f
73+
url: "https://pub.dev"
74+
source: hosted
75+
version: "1.2.1"
6876
fake_async:
6977
dependency: transitive
7078
description:
@@ -265,10 +273,10 @@ packages:
265273
dependency: transitive
266274
description:
267275
name: nylo_support
268-
sha256: "36f7b966fe5a8a53d144f72b31e1eabb926f27d596cc4a766e177a28ac223340"
276+
sha256: "62fdd215433e17b0fb35b2214ec3aef727697bed95e488167cab36be1072979a"
269277
url: "https://pub.dev"
270278
source: hosted
271-
version: "5.54.0"
279+
version: "5.68.1"
272280
page_transition:
273281
dependency: transitive
274282
description:
@@ -441,10 +449,10 @@ packages:
441449
dependency: transitive
442450
description:
443451
name: skeletonizer
444-
sha256: "2eb80153c80507359ff05f6a18ed50ae0bafa1b999aa867a8cef0a53387b5650"
452+
sha256: "50c3fdf3d1bf6182129c03b53bc7ff6dca10ca0b8e71ccdee148b9322caabdba"
445453
url: "https://pub.dev"
446454
source: hosted
447-
version: "1.1.0"
455+
version: "1.1.2+1"
448456
sky_engine:
449457
dependency: transitive
450458
description: flutter
@@ -514,6 +522,70 @@ packages:
514522
url: "https://pub.dev"
515523
source: hosted
516524
version: "1.3.1"
525+
url_launcher:
526+
dependency: transitive
527+
description:
528+
name: url_launcher
529+
sha256: "6ce1e04375be4eed30548f10a315826fd933c1e493206eab82eed01f438c8d2e"
530+
url: "https://pub.dev"
531+
source: hosted
532+
version: "6.2.6"
533+
url_launcher_android:
534+
dependency: transitive
535+
description:
536+
name: url_launcher_android
537+
sha256: "360a6ed2027f18b73c8d98e159dda67a61b7f2e0f6ec26e86c3ada33b0621775"
538+
url: "https://pub.dev"
539+
source: hosted
540+
version: "6.3.1"
541+
url_launcher_ios:
542+
dependency: transitive
543+
description:
544+
name: url_launcher_ios
545+
sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5"
546+
url: "https://pub.dev"
547+
source: hosted
548+
version: "6.2.5"
549+
url_launcher_linux:
550+
dependency: transitive
551+
description:
552+
name: url_launcher_linux
553+
sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811
554+
url: "https://pub.dev"
555+
source: hosted
556+
version: "3.1.1"
557+
url_launcher_macos:
558+
dependency: transitive
559+
description:
560+
name: url_launcher_macos
561+
sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234
562+
url: "https://pub.dev"
563+
source: hosted
564+
version: "3.1.0"
565+
url_launcher_platform_interface:
566+
dependency: transitive
567+
description:
568+
name: url_launcher_platform_interface
569+
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
570+
url: "https://pub.dev"
571+
source: hosted
572+
version: "2.3.2"
573+
url_launcher_web:
574+
dependency: transitive
575+
description:
576+
name: url_launcher_web
577+
sha256: "8d9e750d8c9338601e709cd0885f95825086bd8b642547f26bda435aade95d8a"
578+
url: "https://pub.dev"
579+
source: hosted
580+
version: "2.3.1"
581+
url_launcher_windows:
582+
dependency: transitive
583+
description:
584+
name: url_launcher_windows
585+
sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7
586+
url: "https://pub.dev"
587+
source: hosted
588+
version: "3.1.1"
517589
validated:
518590
dependency: transitive
519591
description:
@@ -560,7 +632,7 @@ packages:
560632
path: ".."
561633
relative: true
562634
source: path
563-
version: "2.0.2"
635+
version: "2.0.3"
564636
xdg_directories:
565637
dependency: transitive
566638
description:
@@ -570,5 +642,5 @@ packages:
570642
source: hosted
571643
version: "1.0.4"
572644
sdks:
573-
dart: ">=3.3.0 <4.0.0"
645+
dart: ">=3.3.3 <4.0.0"
574646
flutter: ">=3.19.0"

lib/networking/wp_notify_api_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class WpNotifyApiService extends NyApiService {
3737

3838
/// Sends a request to store a user's FCM token into WordPress
3939
/// using a valid [userToken], set optional parameters for updating user.
40-
Future<WPStoreTokenResponse> wpNotifyStoreToken(
40+
Future<WPStoreTokenResponse?> wpNotifyStoreToken(
4141
{required String token, int? userId}) async {
4242
Map<String, dynamic> payload = {"token": token};
4343

@@ -60,7 +60,7 @@ class WpNotifyApiService extends NyApiService {
6060

6161
/// Sends a request to update a user's FCM token into WordPress
6262
/// using a valid [token] and [status].
63-
Future<WPUpdateTokenResponse> wpNotifyUpdateToken(
63+
Future<WPUpdateTokenResponse?> wpNotifyUpdateToken(
6464
{required String token, required bool status}) async {
6565
Map<String, dynamic> payload = {"token": token};
6666
payload["status"] = status;

lib/wp_notify.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export '/models/responses/wp_update_token_response.dart';
2121
export '/networking/wp_notify_api_service.dart';
2222

2323
/// MediaPro version
24-
const String _wpNotify = '2.0.2';
24+
const String _wpNotify = '2.0.3';
2525

2626
/// The [WPNotifyAPI] class is used to configure the WPNotify package.
2727
class WPNotifyAPI {

pubspec.lock

Lines changed: 79 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ packages:
5353
dependency: transitive
5454
description:
5555
name: dio
56-
sha256: "49af28382aefc53562459104f64d16b9dfd1e8ef68c862d5af436cc8356ce5a8"
56+
sha256: "11e40df547d418cc0c4900a9318b26304e665da6fa4755399a9ff9efd09034b5"
5757
url: "https://pub.dev"
5858
source: hosted
59-
version: "5.4.1"
59+
version: "5.4.3+1"
6060
equatable:
6161
dependency: transitive
6262
description:
@@ -65,6 +65,14 @@ packages:
6565
url: "https://pub.dev"
6666
source: hosted
6767
version: "2.0.5"
68+
error_stack:
69+
dependency: transitive
70+
description:
71+
name: error_stack
72+
sha256: a8fc8c21a0e471333d3787ef669f8e072ce7f29122b1b1448dded9dfdd51046f
73+
url: "https://pub.dev"
74+
source: hosted
75+
version: "1.2.1"
6876
fake_async:
6977
dependency: transitive
7078
description:
@@ -265,10 +273,10 @@ packages:
265273
dependency: "direct main"
266274
description:
267275
name: nylo_support
268-
sha256: "36f7b966fe5a8a53d144f72b31e1eabb926f27d596cc4a766e177a28ac223340"
276+
sha256: "62fdd215433e17b0fb35b2214ec3aef727697bed95e488167cab36be1072979a"
269277
url: "https://pub.dev"
270278
source: hosted
271-
version: "5.54.0"
279+
version: "5.68.1"
272280
page_transition:
273281
dependency: transitive
274282
description:
@@ -441,10 +449,10 @@ packages:
441449
dependency: transitive
442450
description:
443451
name: skeletonizer
444-
sha256: "2eb80153c80507359ff05f6a18ed50ae0bafa1b999aa867a8cef0a53387b5650"
452+
sha256: "50c3fdf3d1bf6182129c03b53bc7ff6dca10ca0b8e71ccdee148b9322caabdba"
445453
url: "https://pub.dev"
446454
source: hosted
447-
version: "1.1.0"
455+
version: "1.1.2+1"
448456
sky_engine:
449457
dependency: transitive
450458
description: flutter
@@ -514,6 +522,70 @@ packages:
514522
url: "https://pub.dev"
515523
source: hosted
516524
version: "1.3.1"
525+
url_launcher:
526+
dependency: transitive
527+
description:
528+
name: url_launcher
529+
sha256: "6ce1e04375be4eed30548f10a315826fd933c1e493206eab82eed01f438c8d2e"
530+
url: "https://pub.dev"
531+
source: hosted
532+
version: "6.2.6"
533+
url_launcher_android:
534+
dependency: transitive
535+
description:
536+
name: url_launcher_android
537+
sha256: "360a6ed2027f18b73c8d98e159dda67a61b7f2e0f6ec26e86c3ada33b0621775"
538+
url: "https://pub.dev"
539+
source: hosted
540+
version: "6.3.1"
541+
url_launcher_ios:
542+
dependency: transitive
543+
description:
544+
name: url_launcher_ios
545+
sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5"
546+
url: "https://pub.dev"
547+
source: hosted
548+
version: "6.2.5"
549+
url_launcher_linux:
550+
dependency: transitive
551+
description:
552+
name: url_launcher_linux
553+
sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811
554+
url: "https://pub.dev"
555+
source: hosted
556+
version: "3.1.1"
557+
url_launcher_macos:
558+
dependency: transitive
559+
description:
560+
name: url_launcher_macos
561+
sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234
562+
url: "https://pub.dev"
563+
source: hosted
564+
version: "3.1.0"
565+
url_launcher_platform_interface:
566+
dependency: transitive
567+
description:
568+
name: url_launcher_platform_interface
569+
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
570+
url: "https://pub.dev"
571+
source: hosted
572+
version: "2.3.2"
573+
url_launcher_web:
574+
dependency: transitive
575+
description:
576+
name: url_launcher_web
577+
sha256: "8d9e750d8c9338601e709cd0885f95825086bd8b642547f26bda435aade95d8a"
578+
url: "https://pub.dev"
579+
source: hosted
580+
version: "2.3.1"
581+
url_launcher_windows:
582+
dependency: transitive
583+
description:
584+
name: url_launcher_windows
585+
sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7
586+
url: "https://pub.dev"
587+
source: hosted
588+
version: "3.1.1"
517589
validated:
518590
dependency: transitive
519591
description:
@@ -563,5 +635,5 @@ packages:
563635
source: hosted
564636
version: "1.0.4"
565637
sdks:
566-
dart: ">=3.3.0 <4.0.0"
638+
dart: ">=3.3.3 <4.0.0"
567639
flutter: ">=3.19.0"

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: wp_notify
22
description: Send push notification from WordPress using Firebase Cloud Messaging. This package automatically pushes your FCM token to WordPress to start sending notifications. Features include the ability to assign a WordPress user with an FCM token and send push notifications to IOS/Android devices using our API in WordPress.
3-
version: 2.0.2
3+
version: 2.0.3
44
homepage: https://woosignal.com
55
repository: https://github.com/woosignal/wp-notify-flutter
66
issue_tracker: https://github.com/woosignal/wp-notify-flutter/issues

0 commit comments

Comments
 (0)