Compare commits

...

2 Commits

Author SHA1 Message Date
dffa91eb23 chore(release): publish packages
- wyatt_medium_feeds@1.0.1
2022-05-05 21:29:48 +02:00
164877bb0b fix(medium): remove useless example file 2022-05-05 21:29:25 +02:00
4 changed files with 26 additions and 49 deletions

View File

@ -3,6 +3,27 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 2022-05-05
### Changes
---
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
- [`wyatt_medium_feeds` - `v1.0.1`](#wyatt_medium_feeds---v101)
---
#### `wyatt_medium_feeds` - `v1.0.1`
- **FIX**: remove useless example file.
## 2022-05-02
### Changes

View File

@ -1,3 +1,7 @@
## 1.0.1
- **FIX**: remove useless example file.
## 1.0.0
- Initial version.

View File

@ -1,48 +0,0 @@
// ignore_for_file: avoid_print
import 'package:wyatt_medium_feeds/wyatt_medium_feeds.dart';
Future<void> main() async {
final mediumFeed = MediumFeed.fromPublicationName('flutter');
await mediumFeed.parse();
print(mediumFeed.url);
final feed = mediumFeed.feed;
print(feed.title);
print('${feed.image?.url}\n');
// if ((feed.items?.length ?? 0) > 0) {
// for (final item in feed.items!) {
// print(item.title);
// print(item.pubDate?.toIso8601String());
// print(item.guid);
// print(item.dc?.creator);
// print('${item.content?.value.readingTime().inMinutes} min read');
// if ((item.categories?.length ?? 0) > 0) {
// final StringBuffer categories = StringBuffer('[');
// for (final category in item.categories!) {
// categories.write('"${category.value}"');
// if (item.categories!.indexOf(category) <
// item.categories!.length - 1) {
// categories.write(', ');
// }
// }
// categories.write(']');
// print(categories);
// }
// print('\n');
// }
// }
for (final MediumArticle a in mediumFeed.articles) {
print(a.title);
print(a.author);
print(a.guid);
print(a.summary);
print(a.publishDate);
print(a.readingTime);
print('\n');
}
}

View File

@ -1,7 +1,7 @@
name: wyatt_medium_feeds
description: Medium flux read for Flutter
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_medium_feeds
version: 1.0.0
version: 1.0.1
environment:
sdk: '>=2.16.2 <3.0.0'