Skip to content

Commit 6fb536c

Browse files
committed
Fix Documentation.
- Created lastfm_methods library.
1 parent aaa619c commit 6fb536c

File tree

4 files changed

+32
-34
lines changed

4 files changed

+32
-34
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.0.1
2+
#### Fix Documentation.
3+
4+
- Created lastfm_methods library.
5+
16
## 1.0.0
27
### Finally! First Release!
38
#### All methods implemented.

lib/lastfm_methods.dart

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Scrobblenaut - A deadly simple Last.FM API Wrapper for Dart.
3+
* Copyright (c) 2020 Nebulino
4+
*/
5+
6+
/// It contains and group up all the methods.
7+
library lastfm_methods;
8+
9+
export 'package:scrobblenaut/src/methods/album_methods.dart';
10+
export 'package:scrobblenaut/src/methods/artist_methods.dart';
11+
export 'package:scrobblenaut/src/methods/chart_methods.dart';
12+
export 'package:scrobblenaut/src/methods/geo_methods.dart';
13+
export 'package:scrobblenaut/src/methods/library_methods.dart';
14+
export 'package:scrobblenaut/src/methods/tag_methods.dart';
15+
export 'package:scrobblenaut/src/methods/track_methods.dart';
16+
export 'package:scrobblenaut/src/methods/user_methods.dart';

lib/src/scrobblenaut.dart

+9-32
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@
55

66
import 'package:meta/meta.dart';
77
import 'package:scrobblenaut/src/core/lastfm.dart';
8-
import 'package:scrobblenaut/src/methods/album_methods.dart';
9-
import 'package:scrobblenaut/src/methods/artist_methods.dart';
10-
import 'package:scrobblenaut/src/methods/chart_methods.dart';
11-
import 'package:scrobblenaut/src/methods/geo_methods.dart';
12-
import 'package:scrobblenaut/src/methods/library_methods.dart';
13-
import 'package:scrobblenaut/src/methods/tag_methods.dart';
14-
import 'package:scrobblenaut/src/methods/track_methods.dart';
15-
import 'package:scrobblenaut/src/methods/user_methods.dart';
8+
import 'package:scrobblenaut/lastfm_methods.dart';
169

1710
/// This connects all the various methods [LastFM] can provide.
1811
///
@@ -46,43 +39,27 @@ class Scrobblenaut {
4639
/// It returns the LastFM object created.
4740
LastFM get api => _api;
4841

49-
/// Use this to use [Album's methods].
50-
///
51-
/// [Album's methods]: [AlbumMethods]
42+
/// Use this to use [AlbumMethods].
5243
AlbumMethods get album => _albumMethods;
5344

54-
/// Use this to use [Artist's methods].
55-
///
56-
/// [Artist's methods]: [ArtistMethods]
45+
/// Use this to use [ArtistMethods].
5746
ArtistMethods get artist => _artistMethods;
5847

59-
/// Use this to use [Chart's methods].
60-
///
61-
/// [Chart's methods]: [ChartMethods]
48+
/// Use this to use [ChartMethods].
6249
ChartMethods get chart => _chartMethods;
6350

64-
/// Use this to use [Geo's methods].
65-
///
66-
/// [Geo's methods]: [GeoMethods]
51+
/// Use this to use [GeoMethods].
6752
GeoMethods get geo => _geoMethods;
6853

69-
/// Use this to use [Library's methods].
70-
///
71-
/// [Library's methods]: [LibraryMethods]
54+
/// Use this to use [LibraryMethods].
7255
LibraryMethods get library => _libraryMethods;
7356

74-
/// Use this to use [Tag's methods].
75-
///
76-
/// [Tag's methods]: [TagMethods]
57+
/// Use this to use [TagMethods].
7758
TagMethods get tag => _tagMethods;
7859

79-
/// Use this to use [Track's methods].
80-
///
81-
/// [Track's methods]: [TrackMethods]
60+
/// Use this to use [TrackMethods].
8261
TrackMethods get track => _trackMethods;
8362

84-
/// Use this to use [User's methods].
85-
///
86-
/// [User's methods]: [UserMethods]
63+
/// Use this to use [UserMethods].
8764
UserMethods get user => _userMethods;
8865
}

pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: scrobblenaut
2-
description: A deadly simple Last.FM API Wrapper for Dart.
3-
version: 1.0.0
2+
description: A deadly simple LastFM API Wrapper for Dart. So deadly simple that it's gonna hit the mark.
3+
version: 1.0.1
44
homepage: https://github.com/Nebulino/Scrobblenaut
55
issue_tracker: https://github.com/Nebulino/Scrobblenaut/issues
66

0 commit comments

Comments
 (0)