mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-07-29 23:38:50 +02:00
Remove the never-called checkAvailability chain end to end (Dart bridge + provider, Android/iOS MethodChannel handlers, Go exports) and stop restoring its persistent lookup cache on every cold start; the legacy prefs key is cleared on next cache reset. Delete dead Go: romaji.go (test-only), the no-op pre-warm chain (PreWarmTrackCache/PreWarmCache/…), retired Download stubs, and a batch of exports with no Dart/Kotlin/Swift/Go caller. Kept GetTrackCacheSize/ ClearTrackIDCache (Settings cache screen), SetAllowedDownloadDirs and Clear/GetItemProgress (live test seams). Dedup: single updateFlacVorbis + replaceFlacPictures helper behind the six FLAC tag writers; merge byte-identical extractCommentFrame/extractLyricsFrame into extractLangTextFrame. go build/vet + 237 go tests, flutter analyze + tests green.
34 lines
1004 B
Go
34 lines
1004 B
Go
package gobackend
|
|
|
|
func SetLibraryCoverCacheDirJSON(cacheDir string) {
|
|
SetLibraryCoverCacheDir(cacheDir)
|
|
}
|
|
|
|
func ScanLibraryFolderJSON(folderPath string) (string, error) {
|
|
return ScanLibraryFolder(folderPath)
|
|
}
|
|
|
|
func ScanLibraryFolderIncrementalJSON(folderPath, existingFilesJSON string) (string, error) {
|
|
return ScanLibraryFolderIncremental(folderPath, existingFilesJSON)
|
|
}
|
|
|
|
func ScanLibraryFolderIncrementalFromSnapshotJSON(folderPath, snapshotPath string) (string, error) {
|
|
return ScanLibraryFolderIncrementalFromSnapshot(folderPath, snapshotPath)
|
|
}
|
|
|
|
func GetLibraryScanProgressJSON() string {
|
|
return GetLibraryScanProgress()
|
|
}
|
|
|
|
func CancelLibraryScanJSON() {
|
|
CancelLibraryScan()
|
|
}
|
|
|
|
func ReadAudioMetadataJSON(filePath string) (string, error) {
|
|
return ReadAudioMetadata(filePath)
|
|
}
|
|
|
|
func ReadAudioMetadataWithHintAndCoverCacheKeyJSON(filePath, displayName, coverCacheKey string) (string, error) {
|
|
return ReadAudioMetadataWithDisplayNameAndCoverCacheKey(filePath, displayName, coverCacheKey)
|
|
}
|