From 89fa5a1fba9ef95dd132c835bb3ad2a83e88062a Mon Sep 17 00:00:00 2001 From: jctaoo Date: Thu, 9 Jan 2025 19:04:15 +0800 Subject: [PATCH] update dart version --- analysis_options.yaml | 2 +- lib/lyrics_parser.dart | 2 -- lib/src/exceptions.dart | 2 +- pubspec.yaml | 10 +++++----- test/lyrics_parser_test.dart | 1 - 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index a686c1b..1f4622f 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,7 +1,7 @@ # Defines a default set of lint rules enforced for # projects at Google. For details and rationale, # see https://github.com/dart-lang/pedantic#enabled-lints. -include: package:pedantic/analysis_options.yaml +include: package:lints/recommended.yaml # For lint rules and documentation, see http://dart-lang.github.io/linter/lints. # Uncomment to specify additional rules. diff --git a/lib/lyrics_parser.dart b/lib/lyrics_parser.dart index 705eb5d..a6bce5c 100644 --- a/lib/lyrics_parser.dart +++ b/lib/lyrics_parser.dart @@ -1,5 +1,3 @@ -library lyrics_parser; - export 'src/lyrics_parser.dart'; export 'src/exceptions.dart'; export 'src/id_tags.dart'; \ No newline at end of file diff --git a/lib/src/exceptions.dart b/lib/src/exceptions.dart index d2d0a95..ed11d4a 100644 --- a/lib/src/exceptions.dart +++ b/lib/src/exceptions.dart @@ -3,5 +3,5 @@ class LyricsParserNotReadyException implements Exception { const LyricsParserNotReadyException(this.message); @override - String toString() => super.toString() + ': ' + message; + String toString() => '${super.toString()}: $message'; } diff --git a/pubspec.yaml b/pubspec.yaml index 9e44fbb..ea783c5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,12 +5,12 @@ version: 1.0.0-nullsafety.0 homepage: https://github.com/fusee-code-lab/lyrics_parser environment: - sdk: '>=2.12.0-0 <3.0.0' + sdk: ">=3.0.0" dependencies: - path: ^1.8.0-nullsafety.3 - characters: ^1.1.0-nullsafety.5 + characters: ^1.4.0 + path: ^1.9.1 dev_dependencies: - pedantic: ^1.10.0-nullsafety.3 - test: ^1.16.0-nullsafety.19 + test: ^1.25.14 + lints: ^5.1.1 diff --git a/test/lyrics_parser_test.dart b/test/lyrics_parser_test.dart index 5007708..503e1d4 100644 --- a/test/lyrics_parser_test.dart +++ b/test/lyrics_parser_test.dart @@ -1,6 +1,5 @@ import 'dart:io'; import 'package:lyrics_parser/lyrics_parser.dart'; -import 'package:lyrics_parser/src/exceptions.dart'; import 'package:test/test.dart'; const lcrContent = "[00:00.000] 作词 : Andrew Cedar/Justin Scott Franks/Charlie Otto Jr. Puth/Cameron Jibril Thomaz\n[00:01.000] 作曲 : Andrew Cedar/Justin Scott Franks/Charlie Otto Jr. Puth/Cameron Jibril Thomaz\n[00:11.210]It's been a long day without you my friend\n[00:17.310]And I'll tell you all about it when I see you again\n[00:23.750]We've come a long way from where we began\n[00:29.250]Oh I'll tell you all about it when I see you again\n[00:35.700]When I see you again\n[00:40.200]Damn who knew all the planes we flew\n[00:43.550]Good things we've been through\n[00:44.850]That I'll be standing right here\n[00:46.950]Talking to you about another path\n[00:47.900]I know we loved to hit the road and laugh\n[00:51.800]But something told me that it wouldn't last\n[00:53.900]Had to switch up look at things different see the bigger picture\n[00:57.750]Those were the days hard work forever pays\n[01:00.650]Now I see you in a better place\n[01:05.700]How could we not talk about family when family's all that we got?\n[01:09.200]Everything I went through you were standing there by my side\n[01:11.950]And now you gonna be with me for the last ride\n[01:14.600]It's been a long day without you my friend\n[01:20.900]And I'll tell you all about it when I see you again\n[01:27.100]We've come a long way from where we began\n[01:32.950]Oh I'll tell you all about it when I see you again\n[01:38.700]When I see you again\n[01:42.150]Ohh~~~\n[01:57.050]First you both go out your way\n[01:58.050]And the vibe is feeling strong and what's small turn to a friendship\n[02:01.450]a friendship turn into a bond and\n[02:03.650]that bond will never be broke and the love will never get lost\n[02:09.250]And when brotherhood come first then the line\n[02:11.350]Will never be crossed established it on our own\n[02:12.850]When that line had to be drawn and that line is what we reach\n[02:17.650]So remember me when I'm gone\n[02:20.550]How could we not talk about family when family's all that we got?\n[02:24.650]Everything I went through you were standing there by my side\n[02:27.800]And now you gonna be with me for the last ride\n[02:30.100]Let the light guide your way\n[02:36.950]Hold every memory as you go\n[02:42.150]And every road you take will always lead you home\n[02:50.350]Hoo\n[02:53.450]It's been a long day without you my friend\n[02:59.650]And I'll tell you all about it when I see you again\n[03:05.850]We've come a long way from where we began\n[03:11.800]Oh I'll tell you all about it when I see you again\n[03:17.850]When I see you again\n[03:26.550]Again\n[03:31.750]When I see you again see you again\n[03:42.500]When I see you again\n";