mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-08 00:17:29 +00:00
Compare commits
1 Commits
8e6c91193d
...
438479837d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
438479837d |
2
.github/workflows/pr-lint.yml
vendored
2
.github/workflows/pr-lint.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
FLUTTER_VERSION: 3.29.1
|
FLUTTER_VERSION: 3.29.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
|||||||
2
.github/workflows/spotube-release-binary.yml
vendored
2
.github/workflows/spotube-release-binary.yml
vendored
@ -20,7 +20,7 @@ on:
|
|||||||
description: Dry run without uploading to release
|
description: Dry run without uploading to release
|
||||||
|
|
||||||
env:
|
env:
|
||||||
FLUTTER_VERSION: 3.29.1
|
FLUTTER_VERSION: 3.29.0
|
||||||
FLUTTER_CHANNEL: master
|
FLUTTER_CHANNEL: master
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@ -96,9 +96,7 @@ class LastFMLoginPage extends HookConsumerWidget {
|
|||||||
FormField(
|
FormField(
|
||||||
label: Text(context.l10n.username),
|
label: Text(context.l10n.username),
|
||||||
key: usernameKey,
|
key: usernameKey,
|
||||||
validator: const NotEmptyValidator(
|
validator: const NotEmptyValidator(),
|
||||||
message: "Username is required",
|
|
||||||
),
|
|
||||||
child: TextField(
|
child: TextField(
|
||||||
autofillHints: const [
|
autofillHints: const [
|
||||||
AutofillHints.username,
|
AutofillHints.username,
|
||||||
@ -109,9 +107,7 @@ class LastFMLoginPage extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
FormField(
|
FormField(
|
||||||
key: passwordKey,
|
key: passwordKey,
|
||||||
validator: const NotEmptyValidator(
|
validator: const NotEmptyValidator(),
|
||||||
message: "Password is required",
|
|
||||||
),
|
|
||||||
label: Text(context.l10n.password),
|
label: Text(context.l10n.password),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
autofillHints: const [
|
autofillHints: const [
|
||||||
|
|||||||
@ -24,9 +24,6 @@ const supportedAudioTypes = [
|
|||||||
"audio/opus",
|
"audio/opus",
|
||||||
"audio/wav",
|
"audio/wav",
|
||||||
"audio/aac",
|
"audio/aac",
|
||||||
"audio/flac",
|
|
||||||
"audio/x-flac",
|
|
||||||
"audio/x-wav",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const imgMimeToExt = {
|
const imgMimeToExt = {
|
||||||
@ -71,16 +68,13 @@ final localTracksProvider =
|
|||||||
await Directory(location).list(recursive: true).toList();
|
await Directory(location).list(recursive: true).toList();
|
||||||
|
|
||||||
entities.addAll(
|
entities.addAll(
|
||||||
dirEntities.where(
|
dirEntities
|
||||||
(e) {
|
.where(
|
||||||
final mime = lookupMimeType(e.path) ??
|
(e) =>
|
||||||
(extension(e.path) == ".opus" ? "audio/opus" : null);
|
e is File &&
|
||||||
|
supportedAudioTypes.contains(lookupMimeType(e.path)),
|
||||||
print("${basename(e.path)}: $mime");
|
)
|
||||||
|
.cast<File>(),
|
||||||
return e is File && supportedAudioTypes.contains(mime);
|
|
||||||
},
|
|
||||||
).cast<File>(),
|
|
||||||
);
|
);
|
||||||
} catch (e, stack) {
|
} catch (e, stack) {
|
||||||
AppLogger.reportError(e, stack);
|
AppLogger.reportError(e, stack);
|
||||||
|
|||||||
@ -1539,10 +1539,10 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: mime
|
name: mime
|
||||||
sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
|
sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.0"
|
version: "1.0.6"
|
||||||
nm:
|
nm:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -88,7 +88,7 @@ dependencies:
|
|||||||
media_kit: ^1.1.10+1
|
media_kit: ^1.1.10+1
|
||||||
media_kit_libs_audio: ^1.0.4
|
media_kit_libs_audio: ^1.0.4
|
||||||
metadata_god: ^1.0.0
|
metadata_god: ^1.0.0
|
||||||
mime: ^2.0.0
|
mime: ^1.0.2
|
||||||
open_file: ^3.5.10
|
open_file: ^3.5.10
|
||||||
package_info_plus: ^6.0.0
|
package_info_plus: ^6.0.0
|
||||||
palette_generator: ^0.3.3
|
palette_generator: ^0.3.3
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user