Skip to content

Commit 04e1ed2

Browse files
committed
v2.0.0
1 parent dbb6350 commit 04e1ed2

File tree

17 files changed

+1095
-371
lines changed

17 files changed

+1095
-371
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [agordn52]

.github/workflows/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# .github/workflows/publish.yml
2+
name: Publish to pub.dev
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v'
8+
9+
# Publish using the reusable workflow from dart-lang.
10+
jobs:
11+
publish-package:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Flutter
19+
uses: subosito/flutter-action@v2
20+
21+
- name: Get dependencies
22+
run: flutter pub get
23+
24+
- name: Format code
25+
run: dart format --fix .
26+
27+
- name: Check publish warnings
28+
run: dart pub publish --dry-run
29+
30+
- name: Publish package
31+
uses: k-paxian/[email protected]
32+
with:
33+
credentialJson: ${{ secrets.CREDENTIAL_SECRET }}
34+
flutter: true
35+
skipTests: true

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [2.0.0] - 2024-03-04
2+
3+
* Dependency updates
4+
* Add new workflow
5+
* Refactor code
6+
* Upgrade environment
7+
18
## [1.0.1] - 2022-12-28
29

310
* Dependency updates

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2023 by WooSignal Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1+
Copyright (c) 2024 by WooSignal Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
22

33
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
44
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

README.md

Lines changed: 2 additions & 2 deletions
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: ^1.0.1
21+
wp_notify: ^2.0.0
2222
```
2323

2424
### Usage example #
@@ -73,7 +73,7 @@ For help getting started with WooSignal, view our
7373
To use this plugin, add `wp_notify` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins).
7474

7575
## Note
76-
Install WordPress plugin "WP Notify" 1.0.x or later for version 1.0.0
76+
Install WordPress plugin "WP Notify" 2.0.x or later for version 2.0.0
7777

7878
Disclaimer: This plugin is not affiliated with or supported by Automattic, Inc. All logos and trademarks are the property of their respective owners.
7979

example/main.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:flutter/material.dart';
2-
import 'package:wp_notify/models/responses/WPStoreTokenResponse.dart';
32
import 'package:wp_notify/wp_notify.dart';
43

54
void main() => runApp(MyApp());
@@ -12,7 +11,7 @@ class MyApp extends StatelessWidget {
1211
theme: ThemeData(
1312
primarySwatch: Colors.blue,
1413
),
15-
home: MyHomePage(title: 'WooSignal Demo Home Page'),
14+
home: MyHomePage(title: 'Wp Notify Demo Home Page'),
1615
);
1716
}
1817
}

0 commit comments

Comments
 (0)