Full Code of Shabinder/SpotiFlyer for AI

main 42b2d542e731 cached
448 files
980.6 KB
260.6k tokens
49 symbols
1 requests
Download .txt
Showing preview only (1,115K chars total). Download the full file or copy to clipboard to get everything.
Repository: Shabinder/SpotiFlyer
Branch: main
Commit: 42b2d542e731
Files: 448
Total size: 980.6 KB

Directory structure:
gitextract_3r9508kv/

├── .github/
│   ├── FUNDING.yml
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug-report.md
│   │   └── feature_request.md
│   ├── dependabot.yml
│   └── workflows/
│       ├── Release.yml
│       ├── build-and-publish-kjs.yml
│       ├── build-release-binaries.yml
│       ├── maintenance.yml
│       └── tf-refresh.yml
├── .gitignore
├── .gitmodules
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── android/
│   ├── build.gradle.kts
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           ├── java/
│           │   └── com/
│           │       └── shabinder/
│           │           └── spotiflyer/
│           │               ├── App.kt
│           │               ├── MainActivity.kt
│           │               ├── di/
│           │               │   └── AppModule.kt
│           │               ├── service/
│           │               │   ├── ForegroundService.kt
│           │               │   ├── Message.kt
│           │               │   ├── TrackStatusFlowMap.kt
│           │               │   └── Utils.kt
│           │               ├── ui/
│           │               │   ├── AnalyticsDialog.kt
│           │               │   ├── NetworkDialog.kt
│           │               │   ├── PermissionDialog.kt
│           │               │   └── SplashScreenActivity.kt
│           │               └── utils/
│           │                   ├── SignatureVerification.kt
│           │                   ├── UtilFunctions.kt
│           │                   └── autoclear/
│           │                       ├── AutoClear.kt
│           │                       ├── AutoClearFragment.kt
│           │                       ├── LifecycleAutoInitializer.kt
│           │                       └── lifecycleobservers/
│           │                           ├── LifecycleCreateAndDestroyObserver.kt
│           │                           ├── LifecycleResumeAndPauseObserver.kt
│           │                           └── LifecycleStartAndStopObserver.kt
│           └── res/
│               ├── drawable/
│               │   └── ic_splash.xml
│               ├── mipmap-anydpi-v26/
│               │   ├── ic_launcher.xml
│               │   └── ic_launcher_round.xml
│               └── values/
│                   ├── colors.xml
│                   ├── ic_launcher_background.xml
│                   └── themes.xml
├── build.gradle.kts
├── buildSrc/
│   ├── build.gradle.kts
│   ├── buildSrc/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       └── main/
│   │           └── kotlin/
│   │               └── Versions.kt
│   ├── deps.versions.toml
│   ├── settings.gradle.kts
│   └── src/
│       └── main/
│           └── kotlin/
│               ├── android-setup.gradle.kts
│               ├── compiler-args.gradle.kts
│               ├── ktlint-setup.gradle.kts
│               ├── multiplatform-compose-setup.gradle.kts
│               ├── multiplatform-setup-test.gradle.kts
│               └── multiplatform-setup.gradle.kts
├── common/
│   ├── compose/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   ├── AndroidManifest.xml
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── uikit/
│   │       │                       ├── AndroidDialog.kt
│   │       │                       ├── AndroidImageLoad.kt
│   │       │                       ├── AndroidImages.kt
│   │       │                       ├── AndroidScrollBars.kt
│   │       │                       └── configurations/
│   │       │                           └── AndroidTypography.kt
│   │       ├── commonMain/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── uikit/
│   │       │                       ├── ExpectDialog.kt
│   │       │                       ├── ExpectImageLoad.kt
│   │       │                       ├── ExpectImages.kt
│   │       │                       ├── ScrollBars.kt
│   │       │                       ├── Toast.kt
│   │       │                       ├── configurations/
│   │       │                       │   ├── Color.kt
│   │       │                       │   ├── Shape.kt
│   │       │                       │   ├── Theme.kt
│   │       │                       │   └── Type.kt
│   │       │                       ├── dialogs/
│   │       │                       │   ├── Donation.kt
│   │       │                       │   └── ErrorInfoDialog.kt
│   │       │                       ├── screens/
│   │       │                       │   ├── SpotiFlyerListUi.kt
│   │       │                       │   ├── SpotiFlyerMainUi.kt
│   │       │                       │   ├── SpotiFlyerPreferenceUi.kt
│   │       │                       │   ├── SpotiFlyerRootUi.kt
│   │       │                       │   └── splash/
│   │       │                       │       └── Splash.kt
│   │       │                       └── utils/
│   │       │                           ├── Colors.kt
│   │       │                           └── GradientScrim.kt
│   │       └── desktopMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── uikit/
│   │                               ├── DesktopDialog.kt
│   │                               ├── DesktopImageLoad.kt
│   │                               ├── DesktopImages.kt
│   │                               ├── DesktopScrollBar.kt
│   │                               ├── DesktopToast.kt
│   │                               └── configurations/
│   │                                   └── DesktopTypography.kt
│   ├── core-components/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   ├── AndroidManifest.xml
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── core_components/
│   │       │                       ├── AndroidNetworkObserver.kt
│   │       │                       ├── LiveDataExt.kt
│   │       │                       ├── analytics/
│   │       │                       │   └── AndroidAnalyticsManager.kt
│   │       │                       ├── file_manager/
│   │       │                       │   └── AndroidFileManager.kt
│   │       │                       ├── media_converter/
│   │       │                       │   ├── AndroidMediaConverter.kt
│   │       │                       │   └── AudioTagging.kt
│   │       │                       ├── picture/
│   │       │                       │   ├── AndroidPicture.kt
│   │       │                       │   └── Picture.kt
│   │       │                       └── utils/
│   │       │                           └── AndroidHttpClient.kt
│   │       ├── commonMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.core_components/
│   │       │           ├── CoreComponentsModule.kt
│   │       │           ├── analytics/
│   │       │           │   ├── AnalyticsManager.kt
│   │       │           │   ├── Events.kt
│   │       │           │   └── Views.kt
│   │       │           ├── file_manager/
│   │       │           │   └── FileManager.kt
│   │       │           ├── media_converter/
│   │       │           │   └── MediaConverter.kt
│   │       │           ├── parallel_executor/
│   │       │           │   └── ParallelExecutor.kt
│   │       │           ├── picture/
│   │       │           │   └── Picture.kt
│   │       │           ├── preference_manager/
│   │       │           │   └── PreferenceManager.kt
│   │       │           └── utils/
│   │       │               ├── NetworkingExt.kt
│   │       │               └── StoreExt.kt
│   │       ├── desktopMain/
│   │       │   └── kotlin/
│   │       │       ├── com/
│   │       │       │   └── shabinder/
│   │       │       │       └── common/
│   │       │       │           └── core_components/
│   │       │       │               └── utils/
│   │       │       │                   └── DesktopHttpClient.kt
│   │       │       └── com.shabinder.common.core_components/
│   │       │           ├── analytics/
│   │       │           │   └── DesktopAnalyticsManager.kt
│   │       │           ├── file_manager/
│   │       │           │   └── DesktopFileManager.kt
│   │       │           ├── media_converter/
│   │       │           │   ├── DesktopMediaConverter.kt
│   │       │           │   └── ID3Tagging.kt
│   │       │           └── picture/
│   │       │               └── Picture.kt
│   │       ├── iosMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.core_components/
│   │       │           ├── IOSDeps.kt
│   │       │           ├── IOSDir.kt
│   │       │           ├── IOSTagging.kt
│   │       │           ├── IOSUtils.kt
│   │       │           └── picture/
│   │       │               └── IOSPicture.kt
│   │       └── jsMain/
│   │           └── kotlin/
│   │               └── com.shabinder.common.core_components/
│   │                   ├── FileSave.kt
│   │                   ├── ID3Writer.kt
│   │                   ├── analytics/
│   │                   │   └── WebAnalyticsManager.kt
│   │                   ├── file_manager/
│   │                   │   └── WebFileManager.kt
│   │                   ├── media_converter/
│   │                   │   └── WebMediaConverter.kt
│   │                   ├── picture/
│   │                   │   └── Picture.kt
│   │                   └── utils/
│   │                       └── WebHttpClient.kt
│   ├── data-models/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   ├── AndroidManifest.xml
│   │       │   ├── kotlin/
│   │       │   │   └── com.shabinder.common.models/
│   │       │   │       ├── AndroidAtomicReference.kt
│   │       │   │       ├── AndroidDispatcher.kt
│   │       │   │       └── AndroidPlatformActions.kt
│   │       │   └── res/
│   │       │       └── drawable/
│   │       │           └── jio_saavn.xml
│   │       ├── commonMain/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   ├── caching/
│   │       │                   │   ├── Cache.kt
│   │       │                   │   ├── FakeTimeSource.kt
│   │       │                   │   ├── RealCache.kt
│   │       │                   │   └── ReorderingIsoMutableSet.kt
│   │       │                   ├── models/
│   │       │                   │   ├── Actions.kt
│   │       │                   │   ├── AudioFormat.kt
│   │       │                   │   ├── AudioQuality.kt
│   │       │                   │   ├── Consumer.kt
│   │       │                   │   ├── CorsProxy.kt
│   │       │                   │   ├── Dispatcher.kt
│   │       │                   │   ├── DownloadObject.kt
│   │       │                   │   ├── DownloadRecord.kt
│   │       │                   │   ├── DownloadResult.kt
│   │       │                   │   ├── NativeAtomicReference.kt
│   │       │                   │   ├── PlatformActions.kt
│   │       │                   │   ├── PlatformQueryResult.kt
│   │       │                   │   ├── SpotiFlyerException.kt
│   │       │                   │   ├── Status.kt
│   │       │                   │   ├── YoutubeTrack.kt
│   │       │                   │   ├── event/
│   │       │                   │   │   ├── Event.kt
│   │       │                   │   │   ├── Factory.kt
│   │       │                   │   │   ├── Validation.kt
│   │       │                   │   │   └── coroutines/
│   │       │                   │   │       ├── SuspendableEvent.kt
│   │       │                   │   │       └── SuspendedValidation.kt
│   │       │                   │   ├── gaana/
│   │       │                   │   │   ├── Artist.kt
│   │       │                   │   │   ├── CustomArtworks.kt
│   │       │                   │   │   ├── GaanaAlbum.kt
│   │       │                   │   │   ├── GaanaArtistDetails.kt
│   │       │                   │   │   ├── GaanaArtistTracks.kt
│   │       │                   │   │   ├── GaanaPlaylist.kt
│   │       │                   │   │   ├── GaanaSong.kt
│   │       │                   │   │   ├── GaanaTrack.kt
│   │       │                   │   │   ├── Genre.kt
│   │       │                   │   │   └── Tags.kt
│   │       │                   │   ├── saavn/
│   │       │                   │   │   ├── MoreInfo.kt
│   │       │                   │   │   ├── SaavnAlbum.kt
│   │       │                   │   │   ├── SaavnPlaylist.kt
│   │       │                   │   │   ├── SaavnSearchResult.kt
│   │       │                   │   │   └── SaavnSong.kt
│   │       │                   │   ├── soundcloud/
│   │       │                   │   │   ├── Badges.kt
│   │       │                   │   │   ├── CreatorSubscription.kt
│   │       │                   │   │   ├── Format.kt
│   │       │                   │   │   ├── Media.kt
│   │       │                   │   │   ├── Product.kt
│   │       │                   │   │   ├── PublisherMetadata.kt
│   │       │                   │   │   ├── Transcoding.kt
│   │       │                   │   │   ├── User.kt
│   │       │                   │   │   ├── Visual.kt
│   │       │                   │   │   ├── Visuals.kt
│   │       │                   │   │   └── resolvemodel/
│   │       │                   │   │       └── SoundCloudResolveResponseBase.kt
│   │       │                   │   ├── spotify/
│   │       │                   │   │   ├── Album.kt
│   │       │                   │   │   ├── Artist.kt
│   │       │                   │   │   ├── Copyright.kt
│   │       │                   │   │   ├── Episodes.kt
│   │       │                   │   │   ├── Followers.kt
│   │       │                   │   │   ├── Image.kt
│   │       │                   │   │   ├── LinkedTrack.kt
│   │       │                   │   │   ├── PagingObjectPlaylistTrack.kt
│   │       │                   │   │   ├── PagingObjectTrack.kt
│   │       │                   │   │   ├── Playlist.kt
│   │       │                   │   │   ├── PlaylistTrack.kt
│   │       │                   │   │   ├── Source.kt
│   │       │                   │   │   ├── SpotifyCredentials.kt
│   │       │                   │   │   ├── TokenData.kt
│   │       │                   │   │   ├── Track.kt
│   │       │                   │   │   ├── UserPrivate.kt
│   │       │                   │   │   └── UserPublic.kt
│   │       │                   │   └── wynk/
│   │       │                   │       ├── AlbumRefWynk.kt
│   │       │                   │       ├── HtDataWynk.kt
│   │       │                   │       ├── ItemWynk.kt
│   │       │                   │       ├── ShortURLWynk.kt
│   │       │                   │       └── SingerWynk.kt
│   │       │                   └── utils/
│   │       │                       ├── Ext.kt
│   │       │                       ├── JsonUtils.kt
│   │       │                       └── Utils.kt
│   │       ├── desktopMain/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── models/
│   │       │                       ├── DesktopAtomicReference.kt
│   │       │                       ├── DesktopDispacthers.kt
│   │       │                       └── DesktopPlatformActions.kt
│   │       ├── iosMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.models/
│   │       │           └── IOSPlatformActions.kt
│   │       ├── jsMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.models/
│   │       │           ├── JSPlatformActions.kt
│   │       │           ├── WebActual.kt
│   │       │           └── WebAtomicReference.kt
│   │       └── main/
│   │           └── res/
│   │               └── drawable/
│   │                   ├── ic_arrow.xml
│   │                   ├── ic_download_arrow.xml
│   │                   ├── ic_error.xml
│   │                   ├── ic_gaana.xml
│   │                   ├── ic_github.xml
│   │                   ├── ic_heart.xml
│   │                   ├── ic_indian_rupee.xml
│   │                   ├── ic_instagram.xml
│   │                   ├── ic_jio_saavn_logo.xml
│   │                   ├── ic_linkedin.xml
│   │                   ├── ic_mug.xml
│   │                   ├── ic_musicplaceholder.xml
│   │                   ├── ic_opencollective_icon.xml
│   │                   ├── ic_paypal_logo.xml
│   │                   ├── ic_refreshgradient.xml
│   │                   ├── ic_round_cancel_24.xml
│   │                   ├── ic_share_open.xml
│   │                   ├── ic_song_placeholder.xml
│   │                   ├── ic_soundcloud.xml
│   │                   ├── ic_spotiflyer_logo.xml
│   │                   ├── ic_spotify_logo.xml
│   │                   ├── ic_tick.xml
│   │                   ├── ic_youtube.xml
│   │                   ├── ic_youtube_music_logo.xml
│   │                   ├── music.xml
│   │                   └── soundbound_app_logo.xml
│   ├── database/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   ├── AndroidManifest.xml
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── database/
│   │       │                       └── ActualAndroid.kt
│   │       ├── commonMain/
│   │       │   ├── kotlin/
│   │       │   │   └── com/
│   │       │   │       └── shabinder/
│   │       │   │           └── common/
│   │       │   │               └── database/
│   │       │   │                   ├── Expect.kt
│   │       │   │                   └── SpotiFlyerDatabase.kt
│   │       │   └── sqldelight/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── database/
│   │       │                       ├── DownloadRecordDatabase.sq
│   │       │                       └── TokenDB.sq
│   │       ├── desktopMain/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── database/
│   │       │                       └── ActualDesktop.kt
│   │       ├── iosMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.database/
│   │       │           └── ActualIos.kt
│   │       └── jsMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── database/
│   │                               └── ActualJs.kt
│   ├── dependency-injection/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   └── AndroidManifest.xml
│   │       └── commonMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── di/
│   │                               ├── ApplicationInit.kt
│   │                               └── DI.kt
│   ├── list/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   └── AndroidManifest.xml
│   │       └── commonMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── list/
│   │                               ├── SpotiFlyerList.kt
│   │                               ├── integration/
│   │                               │   └── SpotiFlyerListImpl.kt
│   │                               └── store/
│   │                                   ├── InstanceKeeperExt.kt
│   │                                   ├── SpotiFlyerListStore.kt
│   │                                   └── SpotiFlyerListStoreProvider.kt
│   ├── main/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   └── AndroidManifest.xml
│   │       └── commonMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── main/
│   │                               ├── SpotiFlyerMain.kt
│   │                               ├── integration/
│   │                               │   └── SpotiFlyerMainImpl.kt
│   │                               └── store/
│   │                                   ├── InstanceKeeperExt.kt
│   │                                   ├── SpotiFlyerMainStore.kt
│   │                                   └── SpotiFlyerMainStoreProvider.kt
│   ├── preference/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   └── AndroidManifest.xml
│   │       └── commonMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── preference/
│   │                               ├── SpotiFlyerPreference.kt
│   │                               ├── integration/
│   │                               │   └── SpotiFlyerPreferenceImpl.kt
│   │                               └── store/
│   │                                   ├── InstanceKeeperExt.kt
│   │                                   ├── SpotiFlyerPreferenceStore.kt
│   │                                   └── SpotiFlyerPreferenceStoreProvider.kt
│   ├── providers/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   ├── AndroidManifest.xml
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── providers/
│   │       │                       ├── AndroidActual.kt
│   │       │                       └── saavn/
│   │       │                           └── requests/
│   │       │                               └── decryptURL.kt
│   │       ├── commonMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.providers/
│   │       │           ├── Expect.kt
│   │       │           ├── FetchPlatformQueryResult.kt
│   │       │           ├── ProvidersModule.kt
│   │       │           ├── gaana/
│   │       │           │   ├── GaanaProvider.kt
│   │       │           │   └── requests/
│   │       │           │       └── GaanaRequests.kt
│   │       │           ├── saavn/
│   │       │           │   ├── SaavnProvider.kt
│   │       │           │   └── requests/
│   │       │           │       ├── JioSaavnRequests.kt
│   │       │           │       └── JioSaavnUtils.kt
│   │       │           ├── sound_cloud/
│   │       │           │   ├── SoundCloudProvider.kt
│   │       │           │   └── requests/
│   │       │           │       └── SoundCloudRequests.kt
│   │       │           ├── spotify/
│   │       │           │   ├── SpotifyProvider.kt
│   │       │           │   ├── requests/
│   │       │           │   │   ├── SpotifyAuth.kt
│   │       │           │   │   └── SpotifyRequests.kt
│   │       │           │   └── token_store/
│   │       │           │       └── TokenStore.kt
│   │       │           ├── youtube/
│   │       │           │   └── YoutubeProvider.kt
│   │       │           ├── youtube_music/
│   │       │           │   └── YoutubeMusic.kt
│   │       │           └── youtube_to_mp3/
│   │       │               └── requests/
│   │       │                   ├── YoutubeMp3.kt
│   │       │                   └── Yt1sMp3.kt
│   │       ├── commonTest/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── providers/
│   │       │                       ├── TestSpotifyTrackMatching.kt
│   │       │                       ├── placeholders/
│   │       │                       │   ├── FileManager.kt
│   │       │                       │   ├── MediaConverter.kt
│   │       │                       │   └── PreferenceManager.kt
│   │       │                       └── utils/
│   │       │                           ├── CommonUtils.kt
│   │       │                           └── SpotifyUtils.kt
│   │       ├── desktopMain/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── providers/
│   │       │                       ├── DesktopActual.kt
│   │       │                       └── saavn/
│   │       │                           └── requests/
│   │       │                               └── decryptURL.kt
│   │       ├── iosMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.providers/
│   │       │           ├── IOSActual.kt
│   │       │           └── saavn.requests/
│   │       │               └── decryptURL.kt
│   │       └── jsMain/
│   │           └── kotlin/
│   │               └── com.shabinder.common.providers/
│   │                   ├── WebActual.kt
│   │                   └── saavn/
│   │                       └── requests/
│   │                           └── decryptURL.kt
│   └── root/
│       ├── build.gradle.kts
│       └── src/
│           ├── androidMain/
│           │   └── AndroidManifest.xml
│           └── commonMain/
│               └── kotlin/
│                   └── com/
│                       └── shabinder/
│                           └── common/
│                               └── root/
│                                   ├── SpotiFlyerRoot.kt
│                                   ├── callbacks/
│                                   │   └── SpotiFlyerRootCallBacks.kt
│                                   └── integration/
│                                       └── SpotiFlyerRootImpl.kt
├── console-app/
│   ├── build.gradle.kts
│   └── src/
│       └── main/
│           └── java/
│               ├── common/
│               │   ├── Common.kt
│               │   └── Parameters.kt
│               ├── main.kt
│               └── utils/
│                   ├── Exceptions.kt
│                   ├── Ext.kt
│                   └── TestClass.kt
├── desktop/
│   ├── build.gradle.kts
│   └── src/
│       └── jvmMain/
│           ├── kotlin/
│           │   └── Main.kt
│           └── resources/
│               └── drawable/
│                   └── spotiflyer.icns
├── fastlane/
│   ├── Appfile
│   ├── Fastfile
│   └── metadata/
│       └── android/
│           └── en-US/
│               ├── changelogs/
│               │   ├── 20.txt
│               │   ├── 21.txt
│               │   ├── 22.txt
│               │   ├── 24.txt
│               │   ├── 25.txt
│               │   ├── 26.txt
│               │   ├── 27.txt
│               │   ├── 28.txt
│               │   ├── 29.txt
│               │   ├── 30.txt
│               │   ├── 31.txt
│               │   └── 32.txt
│               ├── full_description.txt
│               ├── short_description.txt
│               └── title.txt
├── ffmpeg/
│   ├── android-ffmpeg/
│   │   ├── .gitignore
│   │   ├── build.gradle.bak
│   │   ├── build.gradle.kts
│   │   ├── gradle.properties
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── nl/
│   │                   └── bravobit/
│   │                       └── ffmpeg/
│   │                           ├── CommandResult.java
│   │                           ├── CpuArch.java
│   │                           ├── CpuArchHelper.java
│   │                           ├── ExecuteBinaryResponseHandler.java
│   │                           ├── FFbinaryContextProvider.java
│   │                           ├── FFbinaryInterface.java
│   │                           ├── FFbinaryObserver.java
│   │                           ├── FFcommandExecuteAsyncTask.java
│   │                           ├── FFcommandExecuteResponseHandler.java
│   │                           ├── FFmpeg.kt
│   │                           ├── FFprobe.java
│   │                           ├── FFtask.kt
│   │                           ├── FileUtils.kt
│   │                           ├── Log.kt
│   │                           ├── ResponseHandler.kt
│   │                           ├── ShellCommand.kt
│   │                           └── Util.kt
│   └── copy-ffmpeg-executables.sh
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── infra/
│   ├── .terraform.lock.hcl
│   ├── main.tf
│   ├── outputs.tf
│   └── variables.tf
├── maintenance-tasks/
│   ├── build.gradle.kts
│   └── src/
│       └── main/
│           └── java/
│               ├── common/
│               │   ├── Common.kt
│               │   ├── ContentUpdation.kt
│               │   ├── Date.kt
│               │   ├── GithubService.kt
│               │   ├── HCTIService.kt
│               │   └── Secrets.kt
│               ├── main.kt
│               ├── models/
│               │   ├── github/
│               │   │   ├── Asset.kt
│               │   │   ├── Author.kt
│               │   │   ├── GithubFileContent.kt
│               │   │   ├── GithubReleaseInfoItem.kt
│               │   │   ├── GithubReleasesInfo.kt
│               │   │   ├── Reactions.kt
│               │   │   └── Uploader.kt
│               │   └── matomo/
│               │       ├── MatomoDownloads.kt
│               │       └── MatomoDownloadsItem.kt
│               ├── scripts/
│               │   ├── UpdateAnalyticsImage.kt
│               │   └── UpdateDownloadCards.kt
│               └── utils/
│                   ├── Exceptions.kt
│                   ├── Ext.kt
│                   └── TestClass.kt
├── scripts/
│   └── build-ffmpeg.sh
├── settings.gradle.kts
├── translations/
│   ├── Strings_cn.properties.xml
│   ├── Strings_cro.properties
│   ├── Strings_cs.properties
│   ├── Strings_de.properties
│   ├── Strings_en.properties
│   ├── Strings_es.properties
│   ├── Strings_fa.properties
│   ├── Strings_fr.properties
│   ├── Strings_hi.properties
│   ├── Strings_id.properties
│   ├── Strings_it.properties
│   ├── Strings_ja.properties.xml
│   ├── Strings_jp.properties
│   ├── Strings_ml.properties
│   ├── Strings_ne.properties
│   ├── Strings_nl.properties
│   ├── Strings_pl.properties
│   ├── Strings_pt.properties
│   ├── Strings_pt_BR.properties
│   ├── Strings_ro.properties
│   ├── Strings_ru.properties
│   ├── Strings_tl.properties
│   ├── Strings_tr.properties
│   ├── Strings_tw.properties
│   ├── Strings_uk.properties
│   └── Strings_ur.properties.xml
└── web-app/
    ├── build.gradle.kts
    └── src/
        └── main/
            ├── kotlin/
            │   ├── App.kt
            │   ├── Styles.kt
            │   ├── client.kt
            │   ├── extras/
            │   │   ├── RenderableComponent.kt
            │   │   ├── UniqueId.kt
            │   │   └── Utils.kt
            │   ├── home/
            │   │   ├── HomeScreen.kt
            │   │   ├── IconList.kt
            │   │   ├── Message.kt
            │   │   └── Searchbar.kt
            │   ├── list/
            │   │   ├── CircularProgressBar.kt
            │   │   ├── CoverImage.kt
            │   │   ├── DownloadAllButton.kt
            │   │   ├── DownloadButton.kt
            │   │   ├── ListScreen.kt
            │   │   ├── LoadingAnim.kt
            │   │   ├── LoadingSpinner.kt
            │   │   └── TrackItem.kt
            │   ├── navbar/
            │   │   ├── NavBar.kt
            │   │   └── NavBarStyles.kt
            │   └── root/
            │       └── RootR.kt
            └── resources/
                ├── css-circular-prog-bar.css
                ├── index.html
                └── styles.css

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
ko_fi: shabinder # Replace with a single Ko-fi username
open_collective: spotiflyer # Replace with a single Open Collective username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ["https://paypal.me/shabinder","https://rzp.io/l/9J3UBYiU"]
# Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']


================================================
FILE: .github/ISSUE_TEMPLATE/bug-report.md
================================================
---
name: Bug Report
about: Create a bug report to help us improve
title: "[BUG] : <Issue_Title>"
labels: bug
assignees: ''

---

<!---
	READ THIS!
	If some Song Download Failed with StackTrace having any of the following reason:
		- DownloadLinkFetchFailed(trackName=For Those About to Race, jioSaavnError=java.util.NoSuchElementException: Collection is empty., ytMusicError=MP3ConversionFailed(extraInfo=Client request invalid: 404 Not Found. Text: "Not Found", message=MP3 Converter unreachable, probably BUSY !
			- Please Dont Open issue! , Online Converter Was Busy! , try again after some time and download will be successfull . 
-->

**Describe the bug:**
<!--- A clear and concise description of what the bug is. --->

**Media Links Used:** 
<!---  - Paste Song/Album/Playlist Link where you encountered this issue --->

**Expected behavior**
<!--- A clear and concise description of what you expected to happen. --->

**Screenshots:**
<!--- If applicable, add screenshots / screenrecording to help explain your problem. --->

**StackTrace:**
```
Paste Stacktrace here if available
```

**Device Info (please complete the following information):**
 - Device:   [e.g. iPhone6, Samsung J2, PocoF1]
 - OS:   [e.g. iOS, Android 10, WinOS, MacOS]
 - Version:   [e.g. 3.2.1]
 - Country: [eg: India, will help in detecting if service is accessible to u]

**Additional context:**
<!--- Add any other context about the problem here. --->


================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.md
================================================
---
name: Feature request
about: Suggest an idea for this project
title: "[Feature-Request]: <Feature_Title>"
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.


================================================
FILE: .github/dependabot.yml
================================================
version: 2
updates:
  - package-ecosystem: "github-actions"
    directory: "/.github/workflows"
    schedule:
      interval: "daily"
  - package-ecosystem: "gradle"
    directory: "/"
    schedule:
      interval: "daily"
  - package-ecosystem: "terraform"
    directory: "/infra"
    schedule:
      interval: "daily"


================================================
FILE: .github/workflows/Release.yml
================================================
name: Release

on:
  [workflow_dispatch]

#  workflow_dispatch:
#  release:
#    types: [ created ]

jobs:
  build:
    name: Build App
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Restore Gradle cache
        id: cache
        uses: actions/cache@v2.1.4
        with:
          path: |
            ~/.gradle/caches
            ~/.gradle/wrapper
          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
          restore-keys: |
            ${{ runner.os }}-gradle-
      - uses: actions/setup-java@v2
        with:
          distribution: 'zulu'
          java-version: 8
      - name: Build Web App
        run: ./gradlew :web-app:build
      - name: Upload Static Web App Artifact
        uses: actions/upload-artifact@v2
        id: upload
        with:
          path: web-app/build/distributions
          name: static-web-app
          if-no-files-found: error

  deploy-Infrastructure:
    runs-on: ubuntu-latest
    name: Deploy Main Infrastructure
    needs: [ build ]
    env:
      ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USER }}
      ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
      ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
      ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
      ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
      ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup Terraform environment
        uses: little-core-labs/install-terraform@v2.0.0
        with:
          version: 0.14.5
      - name: Terraform init
        run: terraform init
        working-directory: infra
      - name: Terraform apply
        run: terraform apply -auto-approve
        working-directory: infra
        env:
          TF_VAR_docker_registry_username: ${{ secrets.GH_PKG_USER }}
          TF_VAR_docker_registry_password: ${{ secrets.GH_PKG_PASSWORD }}
          TF_VAR_cors_anywhere_allow_list: ""
          TF_VAR_cors_anywhere_rate_limit: ""

  deploy-StaticWebApp:
    runs-on: ubuntu-latest
    name: Deploy Static Web App
    needs: [ build ]
    steps:
      - uses: actions/checkout@v2
      - name: Download Static Web App Artifact
        uses: actions/download-artifact@v2
        with:
          name: static-web-app
          path: dist/
      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@4.1.0
        with:
          BRANCH: gh-pages # The branch the action should deploy to.
          FOLDER: dist/ # The folder the action should deploy.
          CLEAN: true # Automatically remove deleted files from the deploy branch
#      - name: Deploy Azure Static Web App
#        uses: Azure/static-web-apps-deploy@v0.0.1-preview
#        with:
#          azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_WATER_0BC116E03 }}
#          repo_token: ${{ github.token }} # Used for Github integrations (i.e. PR comments)
#          action: "upload"
#          ###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
#          # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
#          app_location: "/dist"
#          ###### End of Repository/Build Configurations ######


================================================
FILE: .github/workflows/build-and-publish-kjs.yml
================================================
name: Build and Publish
on: [ pull_request ]
jobs:
  build:
    name: Test and Build
    runs-on: ubuntu-latest
    steps:

      # Setup Java 1.8 environment for the next steps
      - name: Setup Java
        uses: actions/setup-java@v2
        with:
          distribution: 'zulu'
          java-version: 15

      # Check out current repository
      - name: Fetch Sources
        uses: actions/checkout@v2.3.1

      # Build Android application
      - name: Android App
        run: ./gradlew :android:build

      # Build Desktop application
      - name: Desktop App
        run: ./gradlew :desktop:build

      # Build Web application
      - name: Web App
        run: ./gradlew :web-app:build


================================================
FILE: .github/workflows/build-release-binaries.yml
================================================
name: Build Release Binaries

on:
  [ workflow_dispatch ]

jobs:
  create-linux-package:
    runs-on: ubuntu-latest
    name: Create Deb Package
    steps:
      # Setup Java environment for the next steps
      - name: Setup Java
        uses: actions/setup-java@v2
        with:
          distribution: 'zulu'
          java-version: 15

      # Check out current repository
      - name: Fetch Sources
        uses: actions/checkout@v2.3.1

      # Build Desktop Uber Jar application
      - name: Desktop Uber Jar
        run: ./gradlew :desktop:packageUberJarForCurrentOS

      # Build Desktop Packaged application
      - name: Desktop App Package
        run: ./gradlew :desktop:packageDeb

      # Create a Draft Release
      - name: Draft Release
        uses: ncipollo/release-action@v1
        with:
          draft: true
          allowUpdates: true
          tag: "v3.6.4"
          artifacts: "desktop/build/compose/jars/*.jar,desktop/build/compose/binaries/main/*/*"
          token: ${{ secrets.GH_TOKEN }}


  # Windows Package
  create-win-package:
    runs-on: windows-latest
    name: Create Windows Package
    steps:
      # Setup Java environment for the next steps
      - name: Setup Java
        uses: actions/setup-java@v2
        with:
          distribution: 'zulu'
          java-version: 15

      # Check out current repository
      - name: Fetch Sources
        uses: actions/checkout@v2.3.1

      # Build Desktop Uber Jar application
      - name: Desktop Uber Jar
        run: ./gradlew :desktop:packageUberJarForCurrentOS

      # Build Desktop Packaged application
      - name: Desktop App Package
        run: ./gradlew :desktop:packageMsi

      # Build Android App
      - name: Generate Release APK
        run: ./gradlew :android:assembleRelease

      # Sign Android Apk
      - name: Sign APK
        uses: r0adkll/sign-android-release@v1
        id: sign_app
        with:
          releaseDirectory: android/build/outputs/apk/release
          signingKeyBase64: ${{ secrets.SIGNING_KEY }}
          alias: ${{ secrets.ALIAS }}
          keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
          keyPassword: ${{ secrets.KEY_PASSWORD }}

      # Create a Draft Release
      - name: Draft Release
        uses: ncipollo/release-action@v1
        with:
          draft: true
          allowUpdates: true
          tag: "v3.6.4"
          artifacts: "desktop/build/compose/jars/*.jar,desktop/build/compose/binaries/main/*/*,android/build/outputs/apk/release/*signed.apk"
          token: ${{ secrets.GH_TOKEN }}


  create-mac-package:
    runs-on: macos-latest
    name: Create Mac Package
    steps:
      # Setup Java environment for the next steps
      - name: Setup Java
        uses: actions/setup-java@v2
        with:
          distribution: 'zulu'
          java-version: 15

      # Check out current repository
      - name: Fetch Sources
        uses: actions/checkout@v2.3.1

      # Build Desktop Uber Jar application
      - name: Desktop Uber Jar
        run: ./gradlew :desktop:packageUberJarForCurrentOS

      # Build Desktop Packaged application
      - name: Desktop App Package
        run: ./gradlew :desktop:packageDmg

      # Create a Draft Release
      - name: Draft Release
        uses: ncipollo/release-action@v1
        with:
          draft: true
          allowUpdates: true
          tag: "v3.6.4"
          artifacts: "desktop/build/compose/jars/*.jar,desktop/build/compose/binaries/main/*/*"
          token: ${{ secrets.GH_TOKEN }}


================================================
FILE: .github/workflows/maintenance.yml
================================================
name: Maintenance

on: [ pull_request ]
  #workflow_dispatch:
  #schedule:
  #  - cron: '0 0 * * *' #once a day

jobs:
  build:
    name: Maintenance Time
    runs-on: ubuntu-latest
    steps:

      # Setup Java environment for the next steps
      - name: Setup Java
        uses: actions/setup-java@v2
        with:
          distribution: 'zulu'
          java-version: 15

      # Check out current repository
      - name: Fetch Sources
        uses: actions/checkout@v2.3.1

      # Run Maintenance Tasks
      - name: Maintenance Run
        run: ./gradlew :maintenance-tasks:run
        env:
          GH_TOKEN: ${{ secrets.GH_TOKEN }}
          OWNER_NAME: 'Shabinder'
          REPO_NAME: 'SpotiFlyer'
          BRANCH_NAME: 'main'
          FILE_PATH: 'README.md'
          IMAGE_DESCRIPTION: 'Analytics'
          COMMIT_MESSAGE: 'Analytics & Download Card Updated'
          TAG_NAME: 'HTI'


================================================
FILE: .github/workflows/tf-refresh.yml
================================================
name: Refresh Terraform State

on:
  workflow_dispatch:
  schedule:
    - cron: '0 0 * * 0'

jobs:
  refresh-Infrastructure:
    runs-on: ubuntu-latest
    name: Refresh Main Infrastructure
    env:
      ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USER }}
      ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
      ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
      ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
      ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
      ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup Terraform environment
        uses: little-core-labs/install-terraform@v2.0.0
        with:
          version: 0.14.5
      - name: Terraform init
        run: terraform init
        working-directory: infra
      - name: Terraform refresh
        run: terraform refresh
        working-directory: infra
        env:
          TF_VAR_docker_registry_username: ${{ secrets.GH_PKG_USER }}
          TF_VAR_docker_registry_password: ${{ secrets.GH_PKG_PASSWORD }}


================================================
FILE: .gitignore
================================================
.idea/
local.properties
/android/release/
/android/google-services.json
build/
.gradle/
terraform.tfvars
.terraform/
/spotiflyer-ios/Pods/
/fastlane/report.xml
/fastlane/README.md
Gemfile
Gemfile.lock
/maintenance-tasks/build/
/android/.cxx/Debug/5k2s1t1p/x86/
/ffmpeg/ffmpeg-kit-android-lib/.cxx/Debug/


================================================
FILE: .gitmodules
================================================
[submodule "spotiflyer-ios"]
	path = spotiflyer-ios
	url = https://github.com/Shabinder/spotiflyer-ios
[submodule "ffmpeg/ffmpeg-android-maker"]
	path = ffmpeg/ffmpeg-android-maker
	url = https://github.com/Shabinder/ffmpeg-android-maker/


================================================
FILE: CONTRIBUTING.md
================================================
### Contributing Translations:

 - **Fork** this repo (Button at top Right Corner)
 
 - Create **`Strings_{language-code}.properties.xml`**  in  **`/translations/`**
   
   - Refer to the **Default file** - *English **(en)*** => [`Strings_en.properties`](https://github.com/Shabinder/SpotiFlyer/blob/main/translations/Strings_en.properties)
   
       - For example, if you want to translate the app to **French** , create **`Strings_fr.properties`**
   
   - **Copy** all Key-Value pairs from **`Strings_en.properties`** to your newly created **`Strings_fr.properties`** and Translate all Values.
 
 - **Commit** your Changes to your Fork and then **Create a Pull Request** to this Repo.
 
 - **Sit Back and Relax**... and **kudos** for your contibution! Your effort and contribution will benefit lots of people. 🙏😊

If You Need any Help with Anything, just create an issue asking about the same.


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: README.md
================================================
 We will from now on publish **[PLUGINS](https://gitlab.com/shabinder/soundbound#-disclaimer)** for **[Soundbound](https://soundbound.app)**, which users can install **explicitly** on their own responsibility [(*disclaimer*)](https://gitlab.com/shabinder/soundbound#-disclaimer).

 - [Soundbound Installation Guide.](https://soundbound.app/install)
   - [Wiki](https://soundbound.app/wiki)
   - [Telegram](https://soundbound.app/telegram)

![Feature Soundbound](art/soundbound-feature.jpg)

# Soundbound - [Get Now!](https://soundbound.app/) 

---
> Please refer above for latest updates.
>  - Spotiflyer itself won't be getting any more updates, 
>  We all thank you for your support and hope to see you in [Soundbound Telegram Community](https://soundbound.app/telegram). 
---
![Web Cover](art/cover-web.jpg)
![Android Cover](art/cover-android.jpg)
![Desktop Cover](art/cover-desktop.jpg)


<a href="https://github.com/Shabinder/SpotiFlyer"><img src="https://github.com/Shabinder/SpotiFlyer/blob/Compose/art/SpotiFlyer.svg" align="left" height="80" width="80" ></a>

# [SpotiFlyer](https://spotiflyer.in/)
- **Kotlin Multiplatform** Music Downloader ,supports **Spotify, Youtube, Gaana, Jio-Saavn and SoundCloud**.

Supports- Playlist, Albums, Tracks. _(If You know Any Source for Episodes/Podcasts create an Issue sharing It.)_

 **Currently running on:**
 - [Android (Jetpack Compose)](https://github.com/Shabinder/SpotiFlyer#-install) 
 - [Desktop (Compose for Desktop) <sup>β</sup>](https://github.com/Shabinder/SpotiFlyer#-install)
 - [Web (Kotlin/JS + React Wrapper) <sup>β</sup>](https://shabinder.github.io/SpotiFlyer/)
 - [_(WIP)_ IOS SOON (SWIFTUI)](https://github.com/Shabinder/spotiflyer-ios)

<!--[![Build Status](https://github.com/Shabinder/SpotiFlyer/blob/master/app/build_passing.svg)](https://github.com/Shabinder/SpotiFlyer/releases)
![API](https://img.shields.io/badge/API-26%2B-brightgreen.svg)
</br>-->
[![GitHub stars](https://img.shields.io/github/stars/Shabinder/SpotiFlyer?style=social)](https://github.com/Shabinder/SpotiFlyer/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/Shabinder/SpotiFlyer?style=social)](https://github.com/Shabinder/SpotiFlyer/network/members)
[![GitHub watchers](https://img.shields.io/github/watchers/Shabinder/SpotiFlyer?style=social)](https://github.com/Shabinder/SpotiFlyer/watchers)

***Encourage this repo by giving it a Star⭐ .***

[SpotiFlyer](https://app.spotiflyer.in/) is an **App**(Written in **Kotlin**), which **aims** to work as:
  - **Downloads**: Albums, Tracks and Playlists,etc 
  - **Save your Data** ,by not **_Streaming_** your Fav Songs Online again & again(Just Download Them!)
  - **No ADS!** 
  - **Works straight out of the box** and does not require you to generate or mess with your API keys (already included).
  
### Supported Platforms:
- Spotify
- Gaana
- Youtube
- Youtube Music
- Jio-Saavn
- SoundCloud
- _(more coming soon)_

<!--START_SECTION:DCI 
<a href="https://github.com/Shabinder/SpotiFlyer/releases/latest"><img src="https://hcti.io/v1/image/53d51dc7-91c7-4b9d-b923-2ea32e6b17ad" height="125" width="280" alt="Total Downloads"></a>
<!--END_SECTION:DCI-->

        

## 💻 Install 

| Platform | Download | Status |
|----------|----------|--------|
| Android    |[![Download Button](https://img.shields.io/github/v/release/Shabinder/SpotiFlyer?color=7885FF&label=Android-Apk&logo=android&style=for-the-badge)](https://github.com/Shabinder/SpotiFlyer/releases/download/v3.6.3/SpotiFlyer-3.6.3.apk)| ✅ Stable | 
| Windows    |[![Download Button](https://img.shields.io/github/v/release/Shabinder/SpotiFlyer?color=00A8E8&label=Windows-msi&logo=windows&style=for-the-badge)](https://github.com/Shabinder/SpotiFlyer/releases/download/v3.6.3/SpotiFlyer-3.6.3.msi)| ✅ Stable | 
| Windows-JAR   |[![Download Button](https://img.shields.io/github/v/release/Shabinder/SpotiFlyer?color=00719c&label=Windows-jar&logo=windows&style=for-the-badge)](https://github.com/Shabinder/SpotiFlyer/releases/download/v3.6.3/SpotiFlyer-windows-x64-3.6.3.jar)| ✅ Stable | 
| MacOS-JAR    |[![Download Button](https://img.shields.io/github/v/release/Shabinder/SpotiFlyer?color=5F85CE&label=MacOS-jar&logo=apple&style=for-the-badge)](https://github.com/Shabinder/SpotiFlyer/releases/download/v3.6.3/SpotiFlyer-macos-x64-3.6.3.jar) | ✅ Stable |
| Linux-DEB    |[![Download Button](https://img.shields.io/github/v/release/Shabinder/SpotiFlyer?color=D0074E&label=Linux-deb&logo=debian&style=for-the-badge)](https://github.com/Shabinder/SpotiFlyer/releases/download/v3.6.3/spotiflyer_3.6.3-1_amd64.deb)| ✅ Stable |
| Linux-JAR    |[![Download Button](https://img.shields.io/github/v/release/Shabinder/SpotiFlyer?color=EBA201&label=Linux-jar&logo=linux&style=for-the-badge)](https://github.com/Shabinder/SpotiFlyer/releases/download/v3.6.3/SpotiFlyer-linux-x64-3.6.3.jar)| ✅ Stable | 
| Web    |[![Download Button](https://img.shields.io/github/v/release/Shabinder/SpotiFlyer?color=FF7139&label=SpotiFlyer&logo=firefox&style=for-the-badge)](https://shabinder.github.io/SpotiFlyer/) | ⚠️ Beta | 

- To run the `jar` version, you need JAVA installed.
- MacOs DMG is not notarized and signed using a certificate , so Use jar in mac for now.

<!-- [![Latest Download](https://img.shields.io/github/downloads/Shabinder/SpotiFlyer/total?style=for-the-badge&color=17B2E7)](https://github.com/Shabinder/SpotiFlyer/releases/latest) -->

<a href="https://f-droid.org/packages/com.shabinder.spotiflyer">
    <img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
    alt="Get it on F-Droid"
    height="110">
</a>

### Want to Contribute 🙋‍♂️?
Want to contribute? Great!
All contributions are welcome, from code to documentation to graphics to design suggestions to bug reports. Please use GitHub to its fullest-- contribute Pull Requests, contribute tutorials or other wiki content-- whatever you have to offer, we can use it!

 - For **Translations** , read [Contributing.md](https://github.com/Shabinder/SpotiFlyer/blob/main/CONTRIBUTING.md)

**Please Donate to support me and my work!**
</br>
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/R6R84CS1D)
</br>
<a href="https://opencollective.com/spotiflyer/donate">
    <img src="https://opencollective.com/spotiflyer/tiers/donate.svg?avatarHeight=52">
</a>
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://paypal.me/shabinder)

### Want to discuss? 💬
Have any questions, doubts or want to present your opinions, views? You're always welcome. You can [start discussions](https://github.com/Shabinder/SpotiFlyer/discussions).

### Todos 📄
 - Write **Tests**.
 - Support for Podcasts/Episodes and Shows.
 - Build a Media Player into this app. [#113](https://github.com/Shabinder/SpotiFlyer/issues/113) 
 
### Note
The availability of YouTube Music / JioSaavn in your country is important for this app to work. The reason behind this is, we use YouTube Music / JioSaavn to filter out our search results and get the desired song downloaded from Youtube Music OR other providers we may use(like Jio Saavn).
To check if YouTube Music is available in your country, visit [YouTube Music](https://music.youtube.com).

I am hosting a **server for WEB APP on my own personal device** , so expect some downtimes, If you have a **server** available and would like to share , open an issue or ping me wherever you can get a hold of me.


### Permissions Info:
 - **NETWORK**- *(INTERNET, ACCESS_NETWORK_STATE, ACCESS_WIFI_STATE)*: to access the online streaming services, and Confirm Network Connectivity.
 - **STORAGE**- *READ_STORAGE_PERMISSION, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, MANAGE_EXTERNAL_STORAGE)*: to save Downloaded Media Files.
 - **QUERY_ALL_PACKAGES**- in order to check if Youtube Music, Spotify, Gaana, JioSaavn, etc apps are installed and if they are, user can directly open them.
 - **REQUEST_IGNORE_BATTERY_OPTIMIZATIONS**: User Allows App to Run in Background at runtime in Permission Dialog.
 - **Wake Lock**: Don't let Wifi/Internet Sleep in screen off / dozing state when Songs are being downloaded.
 - **Foreground Service**: Service responsible to download and save songs to storage even after app is exited/background. 
 - **NOTE**: Analytics and Crashlytics are **OPT-IN** *(Disabled by Default)* and are **Self-Hosted**.

License
![GPL-License](https://img.shields.io/github/license/Shabinder/SpotiFlyer?style=flat-square)
----
**GPL-3.0 License**
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

***Free Software, Hell Yeah!***


Credits
----
 - Some Logos are Based on Logos by [Freepik](https://www.freepik.com/).
  
  
Disclaimer
----
Downloading copyright songs may be illegal in your country. This tool is for educational purposes only and was created only to show how Music Platform's Apis like Spotify's API can be exploited to download music. Please support the artists by buying their music.



================================================
FILE: android/build.gradle.kts
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
import org.jetbrains.compose.compose

plugins {
    id("com.android.application")
    kotlin("android")
    id("kotlin-parcelize")
    id("org.jetbrains.compose")
    id("ktlint-setup")
}

group = "com.shabinder"
version = Versions.versionName

repositories {
    google()
    mavenCentral()
}

android {
    val props = gradleLocalProperties(rootDir)
    if (props.containsKey("storeFileDir")) {
        signingConfigs {
            create("release") {
                storeFile = file(props.getProperty("storeFileDir"))
                storePassword = props.getProperty("storePassword")
                keyAlias = props.getProperty("keyAlias")
                keyPassword = props.getProperty("keyPassword")
            }
        }
    }

    compileSdk = Versions.compileSdkVersion
    buildToolsVersion = "30.0.3"

    defaultConfig {
        applicationId = "com.shabinder.spotiflyer"
        minSdk = Versions.minSdkVersion
        targetSdk = Versions.targetSdkVersion
        versionCode = Versions.versionCode
        versionName = Versions.versionName
        ndkVersion = "21.4.7075529"
    }
    buildTypes {
        getByName("release") {
            isMinifyEnabled = true
            // isShrinkResources = true
            if (props.containsKey("storeFileDir")) {
                signingConfig = signingConfigs.getByName("release")
            }
            proguardFiles(
                getDefaultProguardFile("proguard-android-optimize.txt"),
                "proguard-rules.pro"
            )
        }
    }
    kotlinOptions {
        jvmTarget = "1.8"
    }
    compileOptions {
        // Flag to enable support for the new language APIs
        isCoreLibraryDesugaringEnabled = true
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
    packagingOptions {
        exclude("META-INF/*")
    }
}
dependencies {
    implementation(compose.material)
    implementation(compose.materialIconsExtended)
    implementation(deps.androidx.activity)

    // Project's SubModules
    implementation(project(":common:database"))
    implementation(project(":common:compose"))
    implementation(project(":common:root"))
    implementation(project(":common:dependency-injection"))
    implementation(project(":common:data-models"))
    implementation(project(":common:core-components"))
    implementation(project(":common:providers"))

    with(deps) {

        // Koin
        with(koin) {
            implementation(androidx.compose)
            implementation(android)
        }

        // DECOMPOSE
        with(decompose) {
            implementation(dep)
            implementation(extensions.compose)
        }

        implementation(countly.android)
        implementation(android.app.notifier)
        implementation(storage.chooser)

        with(bundles) {
            implementation(ktor)
            implementation(mviKotlin)
            implementation(androidx.lifecycle)
            implementation(accompanist.inset)
        }

        // Test
        testImplementation(junit)
        androidTestImplementation(androidx.junit)
        androidTestImplementation(androidx.expresso)

        // Desugar
        coreLibraryDesugaring(androidx.desugar)

        // Debug
        debugImplementation(leak.canary)
    }
}


================================================
FILE: android/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations
-keepattributes SourceFile,LineNumberTable        # Keep file names and line numbers.
-keep public class * extends java.lang.Exception  # Optional: Keep custom exceptions.

# kotlinx-serialization-json specific. Add this if you have java.lang.NoClassDefFoundError kotlinx.serialization.json.JsonObjectSerializer
-keepclassmembers class kotlinx.serialization.json.** {
    *** Companion;
}
-keepclasseswithmembers class kotlinx.serialization.json.** {
    kotlinx.serialization.KSerializer serializer(...);
}
-keep class com.shabinder.** { *; }
-keep class com.mpatric.** { *; }
-keep,includedescriptorclasses class com.shabinder.**$$serializer { *; } # <-- change package name to your app's
-keepclassmembers class com.shabinder.** { # <-- change package name to your app's
    *** Companion;
}
-keepclasseswithmembers class com.shabinder.** { # <-- change package name to your app's
    kotlinx.serialization.KSerializer serializer(...);
}
# Ktor
-keep class io.ktor.** { *; }
-keep class kotlinx.coroutines.** { *; }

================================================
FILE: android/src/main/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~  * Copyright (c)  2021  Shabinder Singh
  ~  * This program is free software: you can redistribute it and/or modify
  ~  * it under the terms of the GNU General Public License as published by
  ~  * the Free Software Foundation, either version 3 of the License, or
  ~  * (at your option) any later version.
  ~  *
  ~  * This program is distributed in the hope that it will be useful,
  ~  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~  * GNU General Public License for more details.
  ~  *
  ~  *  You should have received a copy of the GNU General Public License
  ~  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.shabinder.spotiflyer">

    <queries>
        <package android:name="com.gaana" />
        <package android:name="com.spotify.music" />
        <package android:name="com.jio.media.jiobeats" />
        <package android:name="com.soundcloud.android" />
        <package android:name="com.google.android.youtube" />
        <package android:name="com.google.android.apps.youtube.music" />
    </queries>

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
        tools:ignore="ScopedStorage" />
    <uses-permission android:name="android.permission.READ_STORAGE_PERMISSION" />
    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
        tools:ignore="ProtectedPermissions,ScopedStorage" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />

    <application
        android:name=".App"
        android:allowBackup="false"
        android:supportsRtl="true"
        android:usesCleartextTraffic="true"
        android:theme="@style/Theme.AppCompat.Light.NoActionBar"
        android:icon="@mipmap/ic_launcher"
        android:hardwareAccelerated="true"
        android:largeHeap="true"
        android:label="SpotiFlyer"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:configChanges="orientation|screenSize"
        android:forceDarkAllowed="true"
        android:extractNativeLibs="true"
        android:requestLegacyExternalStorage="true"
        tools:targetApi="q">
        <activity
            android:name=".ui.SplashScreenActivity"
            android:theme="@style/SplashTheme"
            android:hardwareAccelerated="true"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity android:name=".MainActivity"
            android:launchMode="singleTask"
            android:hardwareAccelerated="true"
            android:theme="@style/Theme.SpotiFlyer"
            >
            <intent-filter>
                <category android:name="android.intent.category.DEFAULT" />
                <action android:name="android.intent.action.SEND" />
                <data android:mimeType="text/plain" />
            </intent-filter>
        </activity>

        <service android:name=".service.ForegroundService"/>
        <service android:name="org.openudid.OpenUDID_service"
            tools:ignore="ExportedService,IntentFilterExportedReceiver">
            <intent-filter>
                <action android:name="org.openudid.GETUDID" />
            </intent-filter>
        </service>

        <receiver android:name="ly.count.android.sdk.ReferrerReceiver" android:exported="true"
            tools:ignore="ExportedReceiver">
            <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
            </intent-filter>
        </receiver>
    </application>
</manifest>

================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/App.kt
================================================
/*
 * Copyright (c)  2021  Shabinder Singh
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package com.shabinder.spotiflyer

import android.app.Application
import com.shabinder.common.di.initKoin
import com.shabinder.spotiflyer.di.appModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.component.KoinComponent
import org.koin.core.logger.Level

class App : Application(), KoinComponent {

    companion object {
        const val SIGNATURE_HEX = "53304f6d75736a2f30484230334c454b714753525763724259444d3d0a"
    }

    override fun onCreate() {
        super.onCreate()

        val loggingEnabled = true
        // KOIN - DI
        initKoin(loggingEnabled) {
            androidLogger(Level.NONE) // No virtual method elapsedNow
            androidContext(this@App)
            modules(appModule(loggingEnabled))
        }
    }
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/MainActivity.kt
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package com.shabinder.spotiflyer

import android.annotation.SuppressLint
import android.content.*
import android.content.pm.PackageManager
import android.media.MediaScannerConnection
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.IBinder
import android.os.PowerManager
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalView
import androidx.core.content.ContextCompat
import androidx.core.view.WindowCompat
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.decompose.defaultComponentContext
import com.arkivanov.mvikotlin.logging.store.LoggingStoreFactory
import com.arkivanov.mvikotlin.main.store.DefaultStoreFactory
import com.codekidlabs.storagechooser.R
import com.codekidlabs.storagechooser.StorageChooser
import com.google.accompanist.insets.ProvideWindowInsets
import com.google.accompanist.insets.navigationBarsPadding
import com.google.accompanist.insets.statusBarsHeight
import com.google.accompanist.insets.statusBarsPadding
import com.shabinder.common.core_components.ConnectionLiveData
import com.shabinder.common.core_components.analytics.AnalyticsManager
import com.shabinder.common.core_components.file_manager.FileManager
import com.shabinder.common.core_components.preference_manager.PreferenceManager
import com.shabinder.common.di.ApplicationInit
import com.shabinder.common.di.observeAsState
import com.shabinder.common.models.*
import com.shabinder.common.models.PlatformActions.Companion.SharedPreferencesKey
import com.shabinder.common.providers.FetchPlatformQueryResult
import com.shabinder.common.root.SpotiFlyerRoot
import com.shabinder.common.root.callbacks.SpotiFlyerRootCallBacks
import com.shabinder.common.translations.Strings
import com.shabinder.common.uikit.configurations.SpotiFlyerTheme
import com.shabinder.common.uikit.configurations.colorOffWhite
import com.shabinder.common.uikit.screens.SpotiFlyerRootContent
import com.shabinder.spotiflyer.service.ForegroundService
import com.shabinder.spotiflyer.ui.AnalyticsDialog
import com.shabinder.spotiflyer.ui.NetworkDialog
import com.shabinder.spotiflyer.ui.PermissionDialog
import com.shabinder.spotiflyer.utils.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.conflate
import kotlinx.coroutines.flow.emitAll
import kotlinx.coroutines.flow.flowOn
import kotlinx.coroutines.launch
import org.koin.android.ext.android.inject
import org.koin.core.parameter.parametersOf
import java.io.File

@OptIn(ExperimentalAnimationApi::class)
class MainActivity : ComponentActivity() {

    private val fetcher: FetchPlatformQueryResult by inject()
    private val fileManager: FileManager by inject()
    private val preferenceManager: PreferenceManager by inject()
    private val analyticsManager: AnalyticsManager by inject { parametersOf(this) }
    private val applicationInit: ApplicationInit by inject()
    private val callBacks: SpotiFlyerRootCallBacks get() = this.rootComponent.callBacks
    private val trackStatusFlow = MutableSharedFlow<HashMap<String, DownloadStatus>>(1)
    private var permissionGranted = mutableStateOf(true)
    private val internetAvailability by lazy { ConnectionLiveData(applicationContext) }
    private lateinit var rootComponent: SpotiFlyerRoot
    // private val visibleChild get(): SpotiFlyerRoot.Child = root.routerState.value.activeChild.instance

    // Variable for storing instance of our service class
    var foregroundService: ForegroundService? = null

    // Boolean to check if our activity is bound to service or not
    var isServiceBound: Boolean? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        preferenceManager.analyticsManager = analyticsManager
        // This app draws behind the system bars, so we want to handle fitting system windows
        WindowCompat.setDecorFitsSystemWindows(window, false)
        this.rootComponent = spotiFlyerRoot(defaultComponentContext())
        setContent {
            SpotiFlyerTheme {
                Surface(contentColor = colorOffWhite) {
                    ProvideWindowInsets {
                        permissionGranted = remember { mutableStateOf(true) }
                        val view = LocalView.current

                        Box {
                            SpotiFlyerRootContent(
                                this@MainActivity.rootComponent,
                                Modifier.statusBarsPadding().navigationBarsPadding(),
                                showSplash = false // We already show System-Native Splash
                            )
                            Spacer(
                                Modifier
                                    .statusBarsHeight()
                                    .fillMaxWidth()
                                    .background(MaterialTheme.colors.background.copy(alpha = 0.65f))
                            )
                        }

                        NetworkDialog(isInternetAvailableState())

                        PermissionDialog(
                            permissionGranted.value,
                            { requestStoragePermission() },
                            { disableDozeMode(disableDozeCode) },
                        )

                        var askForAnalyticsPermission by remember { mutableStateOf(false) }
                        AnalyticsDialog(
                            askForAnalyticsPermission,
                            enableAnalytics = {
                                preferenceManager.toggleAnalytics(true)
                                preferenceManager.firstLaunchDone()
                            },
                            dismissDialog = {
                                askForAnalyticsPermission = false
                                preferenceManager.firstLaunchDone()
                            }
                        )

                        LaunchedEffect(view) {
                            permissionGranted.value = checkPermissions()
                            if (preferenceManager.isFirstLaunch) {
                                delay(2500)
                                // Ask For Analytics Permission on first Dialog
                                askForAnalyticsPermission = true
                            }
                        }
                    }
                }
            }
        }
        initialise()
    }

    private fun initialise() {
        val isGithubRelease = checkAppSignature(this)
        /*
        * Only Send an `Update Notification` on Github Release Builds
        * and Track Downloads for all other releases like F-Droid,
        * for `Github Downloads` we will track Downloads using : https://tooomm.github.io/github-release-stats/?username=Shabinder&repository=SpotiFlyer
        * */
        if (isGithubRelease) {
            checkIfLatestVersion()
        }
        // TODO Track Download Event
        handleIntentFromExternalActivity()

        initForegroundService()
    }

    /*START: Foreground Service Handlers*/
    private fun initForegroundService() {
        // Start and then Bind to the Service
        ContextCompat.startForegroundService(
            this@MainActivity,
            Intent(this, ForegroundService::class.java)
        )
        bindService()
    }

    /**
     * Interface for getting the instance of binder from our service class
     * So client can get instance of our service class and can directly communicate with it.
     */
    private val serviceConnection = object : ServiceConnection {
        val tag = "Service Connection"

        override fun onServiceConnected(className: ComponentName, iBinder: IBinder) {
            Log.d(tag, "connected to service.")
            // We've bound to MyService, cast the IBinder and get MyBinder instance
            val binder = iBinder as ForegroundService.DownloadServiceBinder
            foregroundService = binder.service
            isServiceBound = true
            lifecycleScope.launch {
                repeatOnLifecycle(Lifecycle.State.STARTED) {
                    foregroundService?.trackStatusFlowMap?.statusFlow?.let {
                        trackStatusFlow.emitAll(it.conflate().flowOn(Dispatchers.Default))
                    }
                }
            }
        }

        override fun onServiceDisconnected(arg0: ComponentName) {
            Log.d(tag, "disconnected from service.")
            isServiceBound = false
        }
    }

    /*Used to bind to our service class*/
    private fun bindService() {
        Intent(this, ForegroundService::class.java).also { intent ->
            bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE)
        }
    }

    /*Used to unbind from our service class*/
    private fun unbindService() {
        Intent(this, ForegroundService::class.java).also {
            unbindService(serviceConnection)
        }
    }
    /*END: Foreground Service Handlers*/

    @Composable
    private fun isInternetAvailableState(): State<Boolean?> {
        return internetAvailability.observeAsState()
    }

    private fun showPopUpMessage(string: String, long: Boolean = false) {
        runOnUiThread {
            android.widget.Toast.makeText(
                applicationContext,
                string,
                if (long) android.widget.Toast.LENGTH_LONG else android.widget.Toast.LENGTH_SHORT
            ).show()
        }
        Log.i("Toasting", string)
    }

    @Suppress("DEPRECATION")
    override fun onRequestPermissionsResult(
        requestCode: Int,
        permissions: Array<out String>,
        grantResults: IntArray
    ) {
        super.onRequestPermissionsResult(requestCode, permissions, grantResults)
        permissionGranted.value = checkPermissions()
    }

    private fun spotiFlyerRoot(componentContext: ComponentContext): SpotiFlyerRoot =
        SpotiFlyerRoot(
            componentContext,
            dependencies = object : SpotiFlyerRoot.Dependencies {
                override val storeFactory = LoggingStoreFactory(DefaultStoreFactory())
                override val database = this@MainActivity.fileManager.db
                override val fetchQuery = this@MainActivity.fetcher
                override val fileManager: FileManager = this@MainActivity.fileManager
                override val preferenceManager = this@MainActivity.preferenceManager
                override val analyticsManager: AnalyticsManager = this@MainActivity.analyticsManager
                override val downloadProgressFlow: MutableSharedFlow<HashMap<String, DownloadStatus>> =
                    trackStatusFlow
                override val appInit: ApplicationInit = applicationInit
                override val actions = object : Actions {

                    override val platformActions = object : PlatformActions {
                        override val imageCacheDir: String =
                            applicationContext.cacheDir.absolutePath + File.separator
                        override val sharedPreferences = applicationContext.getSharedPreferences(
                            SharedPreferencesKey,
                            MODE_PRIVATE
                        )

                        override fun addToLibrary(path: String) {
                            MediaScannerConnection.scanFile(
                                applicationContext,
                                listOf(path).toTypedArray(), null, null
                            )
                        }

                        override fun sendTracksToService(array: List<TrackDetails>) {
                            for (chunk in array.chunked(25)) {
                                if (foregroundService == null) initForegroundService()
                                foregroundService?.downloadAllTracks(chunk)
                            }
                        }
                    }

                    override fun showPopUpMessage(string: String, long: Boolean) =
                        this@MainActivity.showPopUpMessage(string, long)

                    override fun setDownloadDirectoryAction(callBack: (String) -> Unit) =
                        setUpOnPrefClickListener(callBack)

                    override fun queryActiveTracks() = this@MainActivity.queryActiveTracks()

                    override fun giveDonation() {
                        openPlatform(
                            "",
                            platformLink = "https://razorpay.com/payment-button/pl_GnKuuDBdBu0ank/view/?utm_source=payment_button&utm_medium=button&utm_campaign=payment_button"
                        )
                    }

                    override fun shareApp() {
                        val sendIntent: Intent = Intent().apply {
                            action = Intent.ACTION_SEND
                            putExtra(Intent.EXTRA_TEXT, Strings.shareMessage())
                            type = "text/plain"
                        }

                        val shareIntent = Intent.createChooser(sendIntent, null)
                        startActivity(shareIntent)
                    }

                    override fun copyToClipboard(text: String) {
                        val clipboard = getSystemService(CLIPBOARD_SERVICE) as ClipboardManager
                        val clip = ClipData.newPlainText("SpotiFlyer Selection", text)
                        clipboard.setPrimaryClip(clip)

                        showPopUpMessage("Text Copied to Clipboard.")
                    }

                    override fun openPlatform(packageID: String, platformLink: String) {
                        val manager: PackageManager = applicationContext.packageManager
                        try {
                            val intent = manager.getLaunchIntentForPackage(packageID)
                                ?: throw PackageManager.NameNotFoundException()
                            intent.addCategory(Intent.CATEGORY_LAUNCHER)
                            startActivity(intent)
                        } catch (e: PackageManager.NameNotFoundException) {
                            val uri: Uri =
                                Uri.parse(platformLink)
                            val intent = Intent(Intent.ACTION_VIEW, uri)
                            startActivity(intent)
                        }
                    }

                    override fun writeMp3Tags(trackDetails: TrackDetails) {
                        /*IMPLEMENTED*/
                    }

                    override val isInternetAvailable get() = internetAvailability.value ?: true
                }
            }
        )

    private fun queryActiveTracks() {
        lifecycleScope.launch {
            foregroundService?.trackStatusFlowMap?.let { tracksStatus ->
                trackStatusFlow.emit(tracksStatus)
            }
        }
    }

    override fun onResume() {
        super.onResume()
        queryActiveTracks()
    }

    @Suppress("DEPRECATION")
    private fun setUpOnPrefClickListener(callBack: (String) -> Unit) {
        // Initialize Builder
        val chooser = StorageChooser.Builder()
            .withActivity(this)
            .withFragmentManager(fragmentManager)
            .withMemoryBar(true)
            .setTheme(
                StorageChooser.Theme(applicationContext).apply {
                    scheme = applicationContext.resources.getIntArray(R.array.default_dark)
                }
            )
            .setDialogTitle(Strings.setDownloadDirectory())
            .allowCustomPath(true)
            .setType(StorageChooser.DIRECTORY_CHOOSER)
            .build()

        // get path that the user has chosen
        chooser.setOnSelectListener { path ->
            Log.d("Setting Base Path", path)
            val f = File(path)
            if (f.canWrite()) {
                // hell yeah :)
                preferenceManager.setDownloadDirectory(path)
                callBack(path)
                showPopUpMessage(Strings.downloadDirectorySetTo("\n${fileManager.defaultDir()}"))
            } else {
                showPopUpMessage(Strings.noWriteAccess("\n$path "))
            }
        }

        // Show dialog whenever you want by
        chooser.show()
    }

    @Suppress("DEPRECATION")
    @SuppressLint("ObsoleteSdkInt")
    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        super.onActivityResult(requestCode, resultCode, data)
        if (requestCode == disableDozeCode) {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
                val pm =
                    getSystemService(Context.POWER_SERVICE) as PowerManager
                val isIgnoringBatteryOptimizations =
                    pm.isIgnoringBatteryOptimizations(packageName)
                if (isIgnoringBatteryOptimizations) {
                    // Ignoring battery optimization
                    permissionGranted.value = true
                } else {
                    disableDozeMode(disableDozeCode) // Again Ask For Permission!!
                }
            }
        }
    }

    override fun onNewIntent(intent: Intent?) {
        super.onNewIntent(intent)
        handleIntentFromExternalActivity(intent)
    }

    private fun handleIntentFromExternalActivity(intent: Intent? = getIntent()) {
        if (intent?.action == Intent.ACTION_SEND) {
            if ("text/plain" == intent.type) {
                intent.getStringExtra(Intent.EXTRA_TEXT)?.let {
                    val filterLinkRegex = """http.+\w""".toRegex()
                    val string = it.replace("\n".toRegex(), " ")
                    val link = filterLinkRegex.find(string)?.value.toString()
                    Log.i("Intent", link)
                    lifecycleScope.launch {
                        while (!this@MainActivity::rootComponent.isInitialized) {
                            delay(100)
                        }
                        if (Actions.instance.isInternetAvailable) callBacks.searchLink(link)
                    }
                }
            }
        }
    }

    override fun onDestroy() {
        super.onDestroy()
        unbindService()
    }

    override fun onStart() {
        super.onStart()
        analyticsManager.onStart()
    }

    override fun onStop() {
        super.onStop()
        analyticsManager.onStop()
    }

    companion object {
        const val disableDozeCode = 1223
    }
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/di/AppModule.kt
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package com.shabinder.spotiflyer.di

import org.koin.dsl.module

fun appModule(enableLogging: Boolean = false) = module {}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/service/ForegroundService.kt
================================================
/*
 * Copyright (c)  2021  Shabinder Singh
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package com.shabinder.spotiflyer.service

import android.annotation.SuppressLint
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Binder
import android.os.Build
import android.os.IBinder
import android.os.PowerManager
import android.util.Log
import androidx.core.app.NotificationCompat
import androidx.lifecycle.LifecycleService
import androidx.lifecycle.lifecycleScope
import co.touchlab.kermit.Kermit
import com.shabinder.common.core_components.file_manager.FileManager
import com.shabinder.common.core_components.file_manager.downloadFile
import com.shabinder.common.core_components.parallel_executor.ParallelExecutor
import com.shabinder.common.models.DownloadResult
import com.shabinder.common.models.DownloadStatus
import com.shabinder.common.models.TrackDetails
import com.shabinder.common.models.event.coroutines.SuspendableEvent
import com.shabinder.common.models.event.coroutines.failure
import com.shabinder.common.providers.FetchPlatformQueryResult
import com.shabinder.common.translations.Strings
import com.shabinder.spotiflyer.R
import io.ktor.client.HttpClient
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import org.koin.android.ext.android.inject
import java.io.File

class ForegroundService : LifecycleService() {

    private lateinit var downloadService: ParallelExecutor
    val trackStatusFlowMap = TrackStatusFlowMap(
        MutableSharedFlow(replay = 1),
        lifecycleScope
    )

    private val fetcher: FetchPlatformQueryResult by inject()
    private val logger: Kermit by inject()
    private val dir: FileManager by inject()
    private val httpClient: HttpClient by inject()

    private var messageList =
        java.util.Collections.synchronizedList(MutableList(5) { emptyMessage })
    private var wakeLock: PowerManager.WakeLock? = null
    private var isServiceStarted = false
    private val cancelIntent: PendingIntent by lazy {
        val intent = Intent(this, ForegroundService::class.java).apply { action = "kill" }
        val flags = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
        } else {
            PendingIntent.FLAG_UPDATE_CURRENT
        }
        PendingIntent.getService(this, 0, intent, flags)
    }

    /* Variables Holding Download State */
    private var total = 0
    private var converted = 0
    private var downloaded = 0
    private var failed = 0
    private val isFinished get() = converted + failed == total
    private var isSingleDownload = false

    inner class DownloadServiceBinder : Binder() {
        val service get() = this@ForegroundService
    }

    private val myBinder: IBinder = DownloadServiceBinder()

    override fun onBind(intent: Intent): IBinder {
        super.onBind(intent)
        return myBinder
    }

    override fun onCreate() {
        super.onCreate()
        downloadService = ParallelExecutor(Dispatchers.IO)
        trackStatusFlowMap.scope = lifecycleScope
        createNotificationChannel(CHANNEL_ID, "Downloader Service")
    }

    @SuppressLint("WakelockTimeout")
    override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
        super.onStartCommand(intent, flags, startId)
        downloadService.reviveIfClosed()
        // Send a notification that service is started
        Log.i(TAG, "Foreground Service Started.")
        startForeground(NOTIFICATION_ID, createNotification())

        intent?.let {
            when (it.action) {
                "kill" -> killService()
            }
        }

        // Wake locks and misc tasks from here :
        return if (isServiceStarted) {
            // Service Already Started
            START_STICKY
        } else {
            isServiceStarted = true
            Log.i(TAG, "Starting the foreground service task")
            wakeLock =
                (getSystemService(Context.POWER_SERVICE) as PowerManager).run {
                    newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "EndlessService::lock").apply {
                        acquire()
                    }
                }
            START_STICKY
        }
    }

    /**
     * Function To Download All Tracks Available in a List
     **/
    fun downloadAllTracks(trackList: List<TrackDetails>) {
        downloadService.reviveIfClosed()
        trackList.size.also { size ->
            total += size
            isSingleDownload = (size == 1)
            updateNotification()
        }

        for (track in trackList) {
            trackStatusFlowMap[track.title] = DownloadStatus.Queued
            lifecycleScope.launch {
                downloadService.executeSuspending {
                    fetcher.findBestDownloadLink(track).fold(
                        success = { res ->
                            enqueueDownload(res.first, track.apply { audioQuality = res.second })
                        },
                        failure = { error ->
                            failed++
                            updateNotification()
                            trackStatusFlowMap[track.title] = DownloadStatus.Failed(error)
                        }
                    )
                }
            }
        }
    }

    private suspend fun enqueueDownload(url: String, track: TrackDetails) {
        // Initiating Download
        addToNotification(Message(track.title, DownloadStatus.Downloading()))
        trackStatusFlowMap[track.title] = DownloadStatus.Downloading()

        // Enqueueing Download
        httpClient.downloadFile(url).collect {
            when (it) {
                is DownloadResult.Error -> {
                    logger.d(TAG) { it.message }
                    failed++
                    trackStatusFlowMap[track.title] =
                        DownloadStatus.Failed(it.cause ?: Exception(it.message))
                    removeFromNotification(Message(track.title, DownloadStatus.Downloading()))
                }

                is DownloadResult.Progress -> {
                    trackStatusFlowMap[track.title] = DownloadStatus.Downloading(it.progress)
                    // updateProgressInNotification(Message(track.title,DownloadStatus.Downloading(it.progress)))
                }

                is DownloadResult.Success -> {
                    coroutineScope {
                        SuspendableEvent {
                            // Save File and Embed Metadata
                            val job = launch(Dispatchers.Default) {
                                dir.saveFileWithMetadata(
                                    it.byteArray,
                                    track
                                ).fold(
                                    failure = { throwable ->
                                        throwable.printStackTrace()
                                        throw throwable
                                    }, success = {}
                                )
                            }

                            // Send Converting Status
                            trackStatusFlowMap[track.title] = DownloadStatus.Converting
                            addToNotification(Message(track.title, DownloadStatus.Converting))

                            // All Processing Completed for this Track
                            job.invokeOnCompletion { throwable ->
                                if (throwable != null /*&& throwable !is CancellationException*/) {
                                    // handle error
                                    failed++
                                    trackStatusFlowMap[track.title] =
                                        DownloadStatus.Failed(throwable)
                                    removeFromNotification(
                                        Message(
                                            track.title,
                                            DownloadStatus.Converting
                                        )
                                    )
                                    return@invokeOnCompletion
                                }
                                converted++
                                trackStatusFlowMap[track.title] = DownloadStatus.Downloaded
                                removeFromNotification(
                                    Message(
                                        track.title,
                                        DownloadStatus.Converting
                                    )
                                )
                            }
                            logger.d(TAG) { "${track.title} Download Completed" }
                            downloaded++
                        }.failure { error ->
                            error.printStackTrace()
                            // Download Failed
                            failed++
                            trackStatusFlowMap[track.title] = DownloadStatus.Failed(error)
                        }
                        removeFromNotification(Message(track.title, DownloadStatus.Downloading()))
                    }
                }
            }
        }
    }

    private fun releaseWakeLock() {
        logger.d(TAG) { "Releasing Wake Lock" }
        try {
            wakeLock?.let {
                if (it.isHeld) {
                    it.release()
                }
            }
        } catch (e: Exception) {
            logger.d(TAG) { "Service stopped without being started: ${e.message}" }
        }
        isServiceStarted = false
    }

    @Suppress("SameParameterValue")
    private fun createNotificationChannel(channelId: String, channelName: String) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            val channel = NotificationChannel(
                channelId,
                channelName, NotificationManager.IMPORTANCE_DEFAULT
            )
            channel.lockscreenVisibility = Notification.VISIBILITY_PUBLIC
            val service = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
            service.createNotificationChannel(channel)
        }
    }

    /*
    * Time To Wrap UP
    *  - `Clean Up` and `Stop this Foreground Service`
    * */
    private fun killService() {
        lifecycleScope.launch {
            logger.d(TAG) { "Killing Self" }
            resetVar()
            messageList = messageList.getEmpty().apply {
                set(index = 0, Message(Strings.cleaningAndExiting(), DownloadStatus.NotDownloaded))
            }
            downloadService.close()
            updateNotification()
            trackStatusFlowMap.apply {
                clear()
                scope = null
            }
            cleanFiles(File(dir.defaultDir()))
            // cleanFiles(File(dir.imageCacheDir()))
            messageList = messageList.getEmpty()
            releaseWakeLock()
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
                stopForeground(true)
                stopSelf()
            } else {
                stopSelf()
            }
        }
    }

    private fun resetVar() {
        total = 0
        downloaded = 0
        failed = 0
        converted = 0
    }

    private fun createNotification(): Notification =
        NotificationCompat.Builder(this, CHANNEL_ID).run {
            setSmallIcon(R.drawable.ic_download_arrow)
            setContentTitle("${Strings.total()}: $total  ${Strings.completed()}:$converted  ${Strings.failed()}:$failed")
            setSilent(true)
            setProgress(total, failed + converted, false)
            setStyle(
                NotificationCompat.InboxStyle().run {
                    addLine(messageList[messageList.size - 1].asString())
                    addLine(messageList[messageList.size - 2].asString())
                    addLine(messageList[messageList.size - 3].asString())
                    addLine(messageList[messageList.size - 4].asString())
                    addLine(messageList[messageList.size - 5].asString())
                }
            )
            addAction(R.drawable.ic_round_cancel_24, Strings.exit(), cancelIntent)
            build()
        }

    private fun addToNotification(message: Message) {
        synchronized(messageList) {
            messageList.add(message)
        }
        updateNotification()
    }

    private fun removeFromNotification(message: Message) {
        synchronized(messageList) {
            messageList.removeAll { it.title == message.title }
        }
        updateNotification()
    }

    @Suppress("unused")
    private fun updateProgressInNotification(message: Message) {
        synchronized(messageList) {
            val index = messageList.indexOfFirst { it.title == message.title }
            messageList[index] = message
        }
        updateNotification()
    }

    // Update Notification only if Service is Still Active
    private fun updateNotification() {
        if (!downloadService.isClosed.value) {
            val mNotificationManager: NotificationManager =
                getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
            mNotificationManager.notify(NOTIFICATION_ID, createNotification())
        } else {
            // Service is Inactive so clear residual status
            resetVar()
        }
    }

    override fun onDestroy() {
        super.onDestroy()
        if (isFinished) {
            killService()
        }
    }

    override fun onTaskRemoved(rootIntent: Intent?) {
        super.onTaskRemoved(rootIntent)
        if (isFinished) {
            killService()
        }
    }

    companion object {
        private const val TAG: String = "Foreground Service"
        private const val CHANNEL_ID = "ForegroundDownloaderService"
        private const val NOTIFICATION_ID = 101
    }
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/service/Message.kt
================================================
package com.shabinder.spotiflyer.service

import com.shabinder.common.models.DownloadStatus
import com.shabinder.common.translations.Strings

typealias Message = Pair<String, DownloadStatus>

val Message.title: String get() = first

val Message.downloadStatus: DownloadStatus get() = second

val Message.progress: String get() = when (downloadStatus) {
    is DownloadStatus.Downloading -> "-> ${(downloadStatus as DownloadStatus.Downloading).progress}%"
    is DownloadStatus.Converting -> "-> 100%"
    is DownloadStatus.Downloaded -> "-> ${Strings.downloadDone}"
    is DownloadStatus.Failed -> "-> ${Strings.failed()}"
    is DownloadStatus.Queued -> "-> ${Strings.queued()}"
    is DownloadStatus.NotDownloaded -> ""
}

val emptyMessage = Message("", DownloadStatus.NotDownloaded)

// `Progress` is not being shown because we don't get get consistent Updates from Download Fun ,
//  all Progress data is emitted all together from fun
fun Message.asString(): String {
    val statusString = when (downloadStatus) {
        is DownloadStatus.Downloading -> Strings.downloading()
        is DownloadStatus.Converting -> Strings.processing()
        else -> ""
    }
    return "$statusString $title ${""/*progress*/}".trim()
}

fun List<Message>.getEmpty(): MutableList<Message> = java.util.Collections.synchronizedList(MutableList(size) { emptyMessage })


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/service/TrackStatusFlowMap.kt
================================================
package com.shabinder.spotiflyer.service

import com.shabinder.common.models.DownloadStatus
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.launch

class TrackStatusFlowMap(
    val statusFlow: MutableSharedFlow<HashMap<String, DownloadStatus>>,
    var scope: CoroutineScope?
) : HashMap<String, DownloadStatus>() {
    override fun put(key: String, value: DownloadStatus): DownloadStatus? {
        synchronized(this) {
            val res = super.put(key, value)
            emitValue(this)
            return res
        }
    }

    override fun clear() {
        synchronized(this) {
            // Reset Statuses
            this.forEach { (title, status) ->
                if(status !is DownloadStatus.Failed && status !is DownloadStatus.Downloaded) {
                    super.put(title,DownloadStatus.NotDownloaded)
                }
            }
            emitValue(this)
            super.clear()
            emitValue(this)
        }
    }

    private fun emitValue(map: HashMap<String,DownloadStatus>) {
        scope?.launch { statusFlow.emit(map) }
    }
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/service/Utils.kt
================================================
package com.shabinder.spotiflyer.service

import android.util.Log
import java.io.File

/**
 * Cleaning All Residual Files except Mp3 Files
 **/
fun cleanFiles(dir: File) {
    try {
        Log.d("File Cleaning", "Starting Cleaning in ${dir.path} ")
        val fList = dir.listFiles()
        fList?.let {
            for (file in fList) {
                if (file.isDirectory) {
                    cleanFiles(file)
                } else if (file.isFile) {
                    val filePath = file.path.toString()
                    if (filePath.substringAfterLast(".") != "mp3" || filePath.isTempFile()) {
                        Log.d("Files Cleaning", "Cleaning $filePath")
                        file.delete()
                    }
                }
            }
        }
    } catch (e: Exception) {
        e.printStackTrace()
    }
}

private fun String.isTempFile(): Boolean {
    return substringBeforeLast(".").takeLast(5) == ".temp"
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/ui/AnalyticsDialog.kt
================================================
package com.shabinder.spotiflyer.ui

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.AlertDialog
import androidx.compose.material.ButtonDefaults
import androidx.compose.material.Icon
import androidx.compose.material.OutlinedButton
import androidx.compose.material.Text
import androidx.compose.material.TextButton
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.Insights
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.compose.ui.window.DialogProperties
import com.shabinder.common.translations.Strings
import com.shabinder.common.uikit.configurations.SpotiFlyerShapes
import com.shabinder.common.uikit.configurations.SpotiFlyerTypography
import com.shabinder.common.uikit.configurations.colorPrimary

@ExperimentalAnimationApi
@Composable
fun AnalyticsDialog(
    isVisible: Boolean,
    enableAnalytics: () -> Unit,
    dismissDialog: () -> Unit,
) {
    // Analytics Permission Dialog
    AnimatedVisibility(isVisible) {
        AlertDialog(
            onDismissRequest = dismissDialog,
            title = {
                Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.SpaceEvenly) {
                    Icon(Icons.Rounded.Insights, Strings.analytics(), Modifier.size(42.dp))
                    Spacer(Modifier.padding(horizontal = 8.dp))
                    Text(Strings.grantAnalytics(), style = SpotiFlyerTypography.h5, textAlign = TextAlign.Center)
                }
            },
            backgroundColor = Color.DarkGray,
            buttons = {
                Column {
                    OutlinedButton(
                        onClick = dismissDialog,
                        Modifier.padding(horizontal = 8.dp).fillMaxWidth()
                            .background(Color.DarkGray, shape = SpotiFlyerShapes.medium)
                            .padding(horizontal = 8.dp),
                        shape = SpotiFlyerShapes.medium,
                        colors = ButtonDefaults.buttonColors(backgroundColor = Color(0xFF303030))
                    ) {
                        Text(Strings.no(), color = colorPrimary, fontSize = 18.sp, textAlign = TextAlign.Center)
                    }
                    Spacer(Modifier.padding(vertical = 4.dp))
                    TextButton(
                        onClick = {
                            dismissDialog()
                            enableAnalytics()
                        },
                        Modifier.padding(bottom = 16.dp, start = 16.dp, end = 16.dp).fillMaxWidth()
                            .background(colorPrimary, shape = SpotiFlyerShapes.medium)
                            .padding(horizontal = 8.dp),
                        shape = SpotiFlyerShapes.medium
                    ) {
                        Text(Strings.yes(), color = Color.Black, fontSize = 18.sp, textAlign = TextAlign.Center)
                    }
                }
            },
            text = {
                Text(Strings.analyticsDescription(), style = SpotiFlyerTypography.body2, textAlign = TextAlign.Center)
            },
            properties = DialogProperties(dismissOnBackPress = false, dismissOnClickOutside = false)
        )
    }
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/ui/NetworkDialog.kt
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package com.shabinder.spotiflyer.ui

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.AlertDialog
import androidx.compose.material.Text
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.CloudOff
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.State
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import com.shabinder.common.translations.Strings
import com.shabinder.common.uikit.configurations.SpotiFlyerShapes
import com.shabinder.common.uikit.configurations.SpotiFlyerTypography
import com.shabinder.common.uikit.configurations.colorOffWhite
import kotlinx.coroutines.delay

@ExperimentalAnimationApi
@Composable
fun NetworkDialog(
    networkAvailability: State<Boolean?>
) {
    var visible by remember { mutableStateOf(false) }

    LaunchedEffect(Unit) {
        delay(2600)
        visible = true
    }

    AnimatedVisibility(
        networkAvailability.value == false && visible
    ) {
        AlertDialog(
            onDismissRequest = {},
            buttons = {
                /*    TextButton({
                        //Retry Network Connection
                    },
                        Modifier.padding(bottom = 16.dp,start = 16.dp,end = 16.dp).fillMaxWidth().background(Color(0xFFFC5C7D),shape = RoundedCornerShape(size = 8.dp)).padding(horizontal = 8.dp),
                    ){
                        Text("Retry",color = Color.Black,fontSize = 18.sp,textAlign = TextAlign.Center)
                        Icon(Icons.Rounded.SyncProblem,"Check Network Connection Again")
                    }
                */
            },
            title = {
                Text(
                    Strings.noInternetConnection(),
                    style = SpotiFlyerTypography.h5,
                    textAlign = TextAlign.Center
                )
            },
            backgroundColor = Color.DarkGray,
            text = {
                Column(horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center) {
                    Spacer(modifier = Modifier.padding(8.dp))
                    Row(
                        verticalAlignment = Alignment.CenterVertically,
                        modifier = Modifier.fillMaxWidth().padding(vertical = 6.dp)
                    ) {
                        Image(
                            Icons.Rounded.CloudOff,
                            Strings.noInternetConnection(), Modifier.size(42.dp),
                            colorFilter = ColorFilter.tint(
                                colorOffWhite
                            )
                        )
                        Spacer(modifier = Modifier.padding(start = 16.dp))
                        Text(
                            text = Strings.checkInternetConnection(),
                            style = SpotiFlyerTypography.subtitle1
                        )
                    }
                }
            },
            shape = SpotiFlyerShapes.medium
        )
    }
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/ui/PermissionDialog.kt
================================================
package com.shabinder.spotiflyer.ui

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.AlertDialog
import androidx.compose.material.Icon
import androidx.compose.material.Text
import androidx.compose.material.TextButton
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.SdStorage
import androidx.compose.material.icons.rounded.SystemSecurityUpdate
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.shabinder.common.translations.Strings
import com.shabinder.common.uikit.configurations.SpotiFlyerShapes
import com.shabinder.common.uikit.configurations.SpotiFlyerTypography
import com.shabinder.common.uikit.configurations.colorPrimary
import kotlinx.coroutines.delay

@ExperimentalAnimationApi
@Composable
fun PermissionDialog(
    permissionGranted: Boolean,
    requestStoragePermission: () -> Unit,
    disableDozeMode: () -> Unit,
) {
    var askForPermission by remember { mutableStateOf(false) }
    LaunchedEffect(Unit) {
        delay(2600)
        askForPermission = true
    }

    AnimatedVisibility(
        askForPermission && !permissionGranted
    ) {
        AlertDialog(
            onDismissRequest = {},
            buttons = {
                TextButton(
                    {
                        requestStoragePermission()
                        disableDozeMode()
                    },
                    Modifier.padding(bottom = 16.dp, start = 16.dp, end = 16.dp).fillMaxWidth()
                        .background(colorPrimary, shape = SpotiFlyerShapes.medium)
                        .padding(horizontal = 8.dp),
                ) {
                    Text(Strings.grantPermissions(), color = Color.Black, fontSize = 18.sp, textAlign = TextAlign.Center)
                }
            },
            title = { Text(Strings.requiredPermissions(), style = SpotiFlyerTypography.h5, textAlign = TextAlign.Center) },
            backgroundColor = Color.DarkGray,
            text = {
                Column {
                    Spacer(modifier = Modifier.padding(8.dp))
                    Row(
                        verticalAlignment = Alignment.CenterVertically,
                        modifier = Modifier.fillMaxWidth().padding(vertical = 6.dp)
                    ) {
                        Icon(Icons.Rounded.SdStorage, Strings.storagePermission())
                        Spacer(modifier = Modifier.padding(start = 16.dp))
                        Column {
                            Text(
                                text = Strings.storagePermission(),
                                style = SpotiFlyerTypography.h6.copy(fontWeight = FontWeight.SemiBold)
                            )
                            Text(
                                text = Strings.storagePermissionReason(),
                                style = SpotiFlyerTypography.subtitle2,
                            )
                        }
                    }
                    Row(
                        modifier = Modifier.fillMaxWidth().padding(top = 6.dp),
                        verticalAlignment = Alignment.CenterVertically
                    ) {
                        Icon(Icons.Rounded.SystemSecurityUpdate, Strings.backgroundRunning())
                        Spacer(modifier = Modifier.padding(start = 16.dp))
                        Column {
                            Text(
                                text = Strings.backgroundRunning(),
                                style = SpotiFlyerTypography.h6.copy(fontWeight = FontWeight.SemiBold)
                            )
                            Text(
                                text = Strings.backgroundRunningReason(),
                                style = SpotiFlyerTypography.subtitle2,
                            )
                        }
                    }
                    /*Row(
                        modifier = Modifier.fillMaxWidth().padding(top = 6.dp),
                        verticalAlignment = Alignment.CenterVertically
                    ) {
                        Icon(Icons.Rounded.Insights,"Analytics")
                        Spacer(modifier = Modifier.padding(start = 16.dp))
                        Column {
                            Text(
                                text = "Analytics",
                                style = SpotiFlyerTypography.h6.copy(fontWeight = FontWeight.SemiBold)
                            )
                            Text(
                                text = "Share Analytics Data (optional) with App Devs (Self-Hosted), It will never be used/shared/sold to any third party service.",
                                style = SpotiFlyerTypography.subtitle2,
                            )
                        }
                    }*/
                }
            }
        )
    }
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/ui/SplashScreenActivity.kt
================================================
package com.shabinder.spotiflyer.ui

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.lifecycle.lifecycleScope
import com.shabinder.common.core_components.analytics.AnalyticsManager
import com.shabinder.common.di.ApplicationInit
import com.shabinder.spotiflyer.MainActivity
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import org.koin.android.ext.android.inject
import org.koin.androidx.scope.ScopeActivity
import org.koin.core.parameter.parametersOf

class SplashScreenActivity : AppCompatActivity() {

    private val applicationInit: ApplicationInit by inject()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        applicationInit.init()
        lifecycleScope.launch {
            delay(SPLASH_DELAY)
            startActivity(Intent(this@SplashScreenActivity, MainActivity::class.java))
            finish()
        }
    }

    companion object {
        private const val SPLASH_DELAY = 2000L
    }
}

================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/utils/SignatureVerification.kt
================================================
package com.shabinder.spotiflyer.utils

import android.annotation.SuppressLint
import android.content.Context
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.util.Base64
import com.shabinder.spotiflyer.App
import java.security.MessageDigest

@Suppress("DEPRECATION")
@SuppressLint("PackageManagerGetSignatures")
fun checkAppSignature(context: Context): Boolean {
    try {
        val packageInfo: PackageInfo =
            context.packageManager.getPackageInfo(context.packageName, PackageManager.GET_SIGNATURES)
        for (signature in packageInfo.signatures) {
            val md: MessageDigest = MessageDigest.getInstance("SHA")
            md.update(signature.toByteArray())
            val currentSignature: String = Base64.encodeToString(md.digest(), Base64.DEFAULT)
            // Log.d("REMOVE_ME", "Include this string as a value for SIGNATURE:$currentSignature")
            // Log.d("REMOVE_ME HEX", "Include this string as a value for SIGNATURE Hex:${currentSignature.toByteArray().toHEX()}")

            // compare signatures
            if (App.SIGNATURE_HEX == currentSignature.toByteArray().toHEX()) {
                return true
            }
        }
    } catch (e: Exception) {
        e.printStackTrace()
        // assumes an issue in checking signature., but we let the caller decide on what to do.
    }
    return false
}

fun ByteArray.toHEX(): String {
    val builder = StringBuilder()
    for (aByte in this) {
        builder.append(String.format("%02x", aByte))
    }
    return builder.toString()
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/utils/UtilFunctions.kt
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package com.shabinder.spotiflyer.utils

import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
import android.os.PowerManager
import android.provider.Settings
import androidx.core.content.ContextCompat
import com.github.javiersantos.appupdater.AppUpdater
import com.github.javiersantos.appupdater.enums.Display
import com.github.javiersantos.appupdater.enums.UpdateFrom

fun Activity.checkIfLatestVersion() {
    AppUpdater(this, 0).run {
        setDisplay(Display.NOTIFICATION)
        showAppUpdated(false) // true:Show App is Updated Dialog
        setUpdateFrom(UpdateFrom.XML)
        setUpdateXML("https://raw.githubusercontent.com/Shabinder/SpotiFlyer/Compose/app/src/main/res/xml/app_update.xml")
        setCancelable(false)
        start()
    }
}

fun Activity.checkPermissions(): Boolean = ContextCompat
    .checkSelfPermission(
        this,
        Manifest.permission.WRITE_EXTERNAL_STORAGE
    ) == PackageManager.PERMISSION_GRANTED &&
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
        ContextCompat.checkSelfPermission(
            this,
            Manifest.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
        ) == PackageManager.PERMISSION_GRANTED
    } else true

@SuppressLint("BatteryLife", "ObsoleteSdkInt")
fun Activity.disableDozeMode(requestCode: Int) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
        val pm =
            this.getSystemService(Context.POWER_SERVICE) as PowerManager
        val isIgnoringBatteryOptimizations = pm.isIgnoringBatteryOptimizations(packageName)
        if (!isIgnoringBatteryOptimizations) {
            val intent = Intent().apply {
                action = Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
                data = Uri.parse("package:$packageName")
            }
            startActivityForResult(intent, requestCode)
        }
    }
}
@SuppressLint("ObsoleteSdkInt")
fun Activity.requestStoragePermission() {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
        this.requestPermissions(
            arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE),
            786
        )
    }
}
/*
fun Activity.requestBroaderStoragePermission() {
    val intent = Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION)
    startActivity(intent)
}*/


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/AutoClear.kt
================================================
package com.shabinder.spotiflyer.utils.autoclear

import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import com.shabinder.spotiflyer.utils.autoclear.AutoClear.Companion.TRIGGER
import com.shabinder.spotiflyer.utils.autoclear.lifecycleobservers.LifecycleCreateAndDestroyObserver
import com.shabinder.spotiflyer.utils.autoclear.lifecycleobservers.LifecycleResumeAndPauseObserver
import com.shabinder.spotiflyer.utils.autoclear.lifecycleobservers.LifecycleStartAndStopObserver
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty

class AutoClear<T : Any?>(
    lifecycle: Lifecycle,
    private val initializer: (() -> T)?,
    private val trigger: TRIGGER = TRIGGER.ON_CREATE,
) : ReadWriteProperty<LifecycleOwner, T?> {

    companion object {
        enum class TRIGGER {
            ON_CREATE,
            ON_START,
            ON_RESUME
        }
    }

    private var _value: T?
        get() = observer.value
        set(value) { observer.value = value }

    val value: T get() = _value ?: initializer?.invoke()
        ?: throw IllegalStateException("The value has not yet been set or no default initializer provided")

    fun getOrNull(): T? = _value

    private val observer: LifecycleAutoInitializer<T?> by lazy {
        when (trigger) {
            TRIGGER.ON_CREATE -> LifecycleCreateAndDestroyObserver(initializer)
            TRIGGER.ON_START -> LifecycleStartAndStopObserver(initializer)
            TRIGGER.ON_RESUME -> LifecycleResumeAndPauseObserver(initializer)
        }
    }

    init {
        lifecycle.addObserver(observer)
    }

    override fun getValue(thisRef: LifecycleOwner, property: KProperty<*>): T {

        if (_value != null) {
            return value
        }

        // If for Some Reason Initializer is not invoked even after Initialisation, invoke it after checking state
        if (thisRef.lifecycle.currentState.isAtLeast(Lifecycle.State.INITIALIZED)) {
            return initializer?.invoke().also { _value = it }
                ?: throw IllegalStateException("The value has not yet been set or no default initializer provided")
        } else {
            throw IllegalStateException("Activity might have been destroyed or not initialized yet")
        }
    }

    override fun setValue(thisRef: LifecycleOwner, property: KProperty<*>, value: T?) {
        this._value = value
    }

    fun reset() {
        this._value = null
    }
}

fun <T : Any> LifecycleOwner.autoClear(
    trigger: TRIGGER = TRIGGER.ON_CREATE,
    initializer: () -> T
): AutoClear<T> {
    return AutoClear(this.lifecycle, initializer, trigger)
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/AutoClearFragment.kt
================================================
package com.shabinder.spotiflyer.utils.autoclear

import androidx.fragment.app.Fragment
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.Observer
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty

class AutoClearFragment<T : Any?>(
    fragment: Fragment,
    private val initializer: (() -> T)?
) : ReadWriteProperty<Fragment, T?> {

    private var _value: T? = null

    init {
        fragment.lifecycle.addObserver(object : DefaultLifecycleObserver {
            val viewLifecycleOwnerObserver = Observer<LifecycleOwner?> { viewLifecycleOwner ->

                viewLifecycleOwner?.lifecycle?.addObserver(object : DefaultLifecycleObserver {
                    override fun onDestroy(owner: LifecycleOwner) {
                        _value = null
                    }
                })
            }

            override fun onCreate(owner: LifecycleOwner) {
                fragment.viewLifecycleOwnerLiveData.observeForever(viewLifecycleOwnerObserver)
            }

            override fun onDestroy(owner: LifecycleOwner) {
                fragment.viewLifecycleOwnerLiveData.removeObserver(viewLifecycleOwnerObserver)
            }
        }
        )
    }

    override fun getValue(thisRef: Fragment, property: KProperty<*>): T {
        val value = _value

        if (value != null) {
            return value
        }

        if (thisRef.viewLifecycleOwner.lifecycle.currentState.isAtLeast(Lifecycle.State.INITIALIZED)) {
            return initializer?.invoke().also { _value = it }
                ?: throw IllegalStateException("The value has not yet been set or no default initializer provided")
        } else {
            throw IllegalStateException("Fragment might have been destroyed or not initialized yet")
        }
    }

    override fun setValue(thisRef: Fragment, property: KProperty<*>, value: T?) {
        _value = value
    }
}

fun <T : Any> Fragment.autoClear(initializer: () -> T): AutoClearFragment<T> {
    return AutoClearFragment(this, initializer)
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/LifecycleAutoInitializer.kt
================================================
package com.shabinder.spotiflyer.utils.autoclear

import androidx.lifecycle.DefaultLifecycleObserver

interface LifecycleAutoInitializer<T> : DefaultLifecycleObserver {
    var value: T?
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/lifecycleobservers/LifecycleCreateAndDestroyObserver.kt
================================================
package com.shabinder.spotiflyer.utils.autoclear.lifecycleobservers

import androidx.lifecycle.LifecycleOwner
import com.shabinder.spotiflyer.utils.autoclear.LifecycleAutoInitializer

class LifecycleCreateAndDestroyObserver<T : Any?>(
    private val initializer: (() -> T)?
) : LifecycleAutoInitializer<T> {

    override var value: T? = null

    override fun onCreate(owner: LifecycleOwner) {
        super.onCreate(owner)
        value = initializer?.invoke()
    }

    override fun onDestroy(owner: LifecycleOwner) {
        super.onDestroy(owner)
        value = null
    }
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/lifecycleobservers/LifecycleResumeAndPauseObserver.kt
================================================
package com.shabinder.spotiflyer.utils.autoclear.lifecycleobservers

import androidx.lifecycle.LifecycleOwner
import com.shabinder.spotiflyer.utils.autoclear.LifecycleAutoInitializer

class LifecycleResumeAndPauseObserver<T : Any?>(
    private val initializer: (() -> T)?
) : LifecycleAutoInitializer<T> {

    override var value: T? = null

    override fun onResume(owner: LifecycleOwner) {
        super.onResume(owner)
        value = initializer?.invoke()
    }

    override fun onPause(owner: LifecycleOwner) {
        super.onPause(owner)
        value = null
    }
}


================================================
FILE: android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/lifecycleobservers/LifecycleStartAndStopObserver.kt
================================================
package com.shabinder.spotiflyer.utils.autoclear.lifecycleobservers

import androidx.lifecycle.LifecycleOwner
import com.shabinder.spotiflyer.utils.autoclear.LifecycleAutoInitializer

class LifecycleStartAndStopObserver<T : Any?>(
    private val initializer: (() -> T)?
) : LifecycleAutoInitializer<T> {

    override var value: T? = null

    override fun onStart(owner: LifecycleOwner) {
        super.onStart(owner)
        value = initializer?.invoke()
    }

    override fun onStop(owner: LifecycleOwner) {
        super.onStop(owner)
        value = null
    }
}


================================================
FILE: android/src/main/res/drawable/ic_splash.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
    android:paddingBottom="20dp"
    android:paddingRight="20dp"
    android:paddingLeft="20dp"
    android:paddingTop="20dp">
    <!-- Your product logo - 144dp color version of your app icon -->
    <item
        android:drawable="@drawable/spotiflyer"
        android:gravity="center">
    </item>
</layer-list>

================================================
FILE: android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c)  2021  Shabinder Singh
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~  You should have received a copy of the GNU General Public License
  ~  along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@color/ic_launcher_background"/>
    <foreground android:drawable="@drawable/ic_spotiflyer_logo"/>
</adaptive-icon>

================================================
FILE: android/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c)  2021  Shabinder Singh
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~  You should have received a copy of the GNU General Public License
  ~  along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@color/ic_launcher_background"/>
    <foreground android:drawable="@drawable/ic_spotiflyer_logo"/>
</adaptive-icon>

================================================
FILE: android/src/main/res/values/colors.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c)  2021  Shabinder Singh
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~  You should have received a copy of the GNU General Public License
  ~  along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->

<resources>
    <color name="colorPrimary">#FC5C7D</color>
    <color name="colorPrimaryDark">#CE1CFF</color>
    <color name="colorAccent">#9AB3FF</color>
    <color name="white">#FFFFFF</color>
    <color name="grey">#99FFFFFF</color>
    <color name="darkGrey">#E6333333</color>
    <color name="black">#000000</color>
    <color name="dark">#121212</color>
    <color name="successGreen">#59C351</color>
    <color name="errorRed">#FF9494</color>
</resources>

================================================
FILE: android/src/main/res/values/ic_launcher_background.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c)  2021  Shabinder Singh
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~  You should have received a copy of the GNU General Public License
  ~  along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->

<resources>
    <color name="ic_launcher_background">#000000</color>
</resources>

================================================
FILE: android/src/main/res/values/themes.xml
================================================
<!--
  ~ Copyright (c)  2021  Shabinder Singh
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~  You should have received a copy of the GNU General Public License
  ~  along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->

<resources>
    <!-- Base application theme. -->
    <style name="Theme.SpotiFlyer" parent="Theme.AppCompat.NoActionBar">
        <!-- Primary brand color. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="android:textColor">@color/white</item>
        <item name="android:background">@android:color/black</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="android:navigationBarColor">@android:color/transparent</item>
    </style>

    <style name="SplashTheme" parent="Theme.SpotiFlyer">
        <item name="android:windowBackground">@drawable/ic_splash</item>
        <item name="android:background">@android:color/transparent</item>
    </style>
</resources>

================================================
FILE: build.gradle.kts
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

plugins {
    `kotlin-dsl`
    id("org.jlleitschuh.gradle.ktlint")
    id("org.jlleitschuh.gradle.ktlint-idea")
}

allprojects {
    repositories {
        google()
        mavenCentral()
        // mavenLocal()
        maven(url = "https://jitpack.io")
        maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
        maven(url = "https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven")
        maven(url = "https://storage.googleapis.com/r8-releases/raw")
    }
    /*Fixes: Could not resolve org.nodejs:node*/
    plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
        configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
            download = false
        }
    }
    tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().configureEach {
        dependsOn(":common:data-models:generateI18n4kFiles")
        kotlinOptions {
            if (this is org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions) {
                jvmTarget = "1.8"
            }
            freeCompilerArgs = (freeCompilerArgs + listOf("-Xopt-in=kotlin.RequiresOptIn"))
        }
    }
    configurations.all {
        resolutionStrategy {
            eachDependency {
                if (requested.group == "org.jetbrains.kotlin") {
                    @Suppress("UnstableApiUsage")
                    useVersion(deps.kotlin.kotlinGradlePlugin.get().versionConstraint.requiredVersion)
                }
            }
        }
    }
    afterEvaluate {
        project.extensions.findByType<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>()
            ?.let { kmpExt ->
                kmpExt.sourceSets.run {
                    all {
                        languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
                        languageSettings.useExperimentalAnnotation("kotlinx.serialization.ExperimentalSerializationApi")
                    }
                    removeAll { it.name == "androidAndroidTestRelease" }
                }
            }
    }
}


================================================
FILE: buildSrc/build.gradle.kts
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

plugins {
    `kotlin-dsl`
}

group = "com.shabinder"

repositories {
    google()
    // mavenLocal()
    mavenCentral()
    maven(url = "https://jitpack.io")
    maven(url = "https://plugins.gradle.org/m2/")
    maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
}

dependencies {
    with(deps) {
        implementation(androidx.r8)
        implementation(androidx.gradle.plugin)
        implementation(kotlin.compose.gradle)
        implementation(ktlint.gradle)
        implementation(mosaic.gradle)
        implementation(kotlin.kotlinGradlePlugin)
        implementation(sqldelight.gradle.plugin)
        implementation(i18n4k.gradle.plugin)
        implementation(kotlin.serialization)
    }
}

kotlin {
    // Add Deps to compilation, so it will become available in main project
    sourceSets.getByName("main").kotlin.srcDir("buildSrc/src/main/kotlin")
}



================================================
FILE: buildSrc/buildSrc/build.gradle.kts
================================================
plugins {
    `kotlin-dsl`
}

repositories {
    mavenCentral()
}


================================================
FILE: buildSrc/buildSrc/src/main/kotlin/Versions.kt
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

@file:Suppress("MayBeConstant", "SpellCheckingInspection", "UnstableApiUsage")

import org.gradle.api.Project
import org.gradle.api.artifacts.ExternalModuleDependency
import org.gradle.api.artifacts.VersionCatalog
import org.gradle.api.artifacts.VersionCatalogsExtension
import org.gradle.api.artifacts.dsl.DependencyHandler
import org.gradle.kotlin.dsl.accessors.runtime.addDependencyTo
import org.gradle.kotlin.dsl.getByType

object Versions {
    // App's Version (To be bumped at each update)
    const val versionName = "3.6.4"

    const val versionCode = 32

    // Android
    const val minSdkVersion = 21
    const val compileSdkVersion = 31
    const val targetSdkVersion = 29
}

object HostOS {
    // Host OS Properties
    private val hostOs = System.getProperty("os.name")
    val isMingwX64 = hostOs.startsWith("Windows", true)
    val isMac = hostOs.startsWith("Mac", true)
    val isLinux = hostOs.startsWith("Linux", true)
}

val Project.Deps: VersionCatalog get() = project.extensions.getByType<VersionCatalogsExtension>().named("deps")

val VersionCatalog.ktorBundle get() = findBundle("ktor").get()
val VersionCatalog.statelyBundle get() = findBundle("stately").get()
val VersionCatalog.androidXLifecycleBundle get() = findBundle("androidx-lifecycle").get()
val VersionCatalog.androidXCommonBundle get() = findBundle("androidx-common").get()
val VersionCatalog.kotlinTestBundle get() = findBundle("kotlin-test").get()
val VersionCatalog.sqldelightBundle get() = findBundle("sqldelight").get()
val VersionCatalog.mviKotlinBundle get() = findBundle("mviKotlin").get()
val VersionCatalog.essentyBundle get() = findBundle("essenty").get()
val VersionCatalog.koinAndroidBundle get() = findBundle("koin-android").get()
val VersionCatalog.kotlinJSWrappers get() = findBundle("kotlin-js-wrappers").get()

val VersionCatalog.kotlinJunitTest get() = findDependency("kotlin-kotlinTestJunit").get()
val VersionCatalog.kotlinJSTest get() = findDependency("kotlin-kotlinTestJs").get()
val VersionCatalog.kermit get() = findDependency("kermit").get()
val VersionCatalog.decompose get() = findDependency("decompose-dep").get()
val VersionCatalog.decomposeComposeExt get() = findDependency("decompose-extensions-compose").get()
val VersionCatalog.jaffree get() = findDependency("jaffree").get()

val VersionCatalog.ktlintGradle get() = findDependency("ktlint-gradle").get()
val VersionCatalog.androidGradle get() = findDependency("androidx-gradle-plugin").get()
val VersionCatalog.mosaicGradle get() = findDependency("mosaic-gradle").get()
val VersionCatalog.kotlinComposeGradle get() = findDependency("kotlin-compose-gradle").get()
val VersionCatalog.kotlinGradle get() = findDependency("kotlin-kotlinGradlePlugin").get()
val VersionCatalog.i18n4kGradle get() = findDependency("i18n4k-gradle-plugin").get()
val VersionCatalog.sqlDelightGradle get() = findDependency("sqldelight-gradle-plugin").get()
val VersionCatalog.kotlinSerializationPlugin get() = findDependency("kotlin-serialization").get()

val VersionCatalog.koinCore get() = findDependency("koin-core").get()
val VersionCatalog.kotlinCoroutines get() = findDependency("kotlin-coroutines").get()
val VersionCatalog.kotlinxSerialization get() = findDependency("kotlinx-serialization-json").get()
val VersionCatalog.ktorClientIOS get() = findDependency("ktor-client-ios").get()
val VersionCatalog.ktorClientAndroid get() = findDependency("ktor-client-android").get()
val VersionCatalog.ktorClientAndroidOkHttp get() = findDependency("ktor-client-okhttp").get()
val VersionCatalog.ktorClientApache get() = findDependency("ktor-client-apache").get()
val VersionCatalog.ktorClientJS get() = findDependency("ktor-client-js").get()
val VersionCatalog.ktorClientCIO get() = findDependency("ktor-client-cio").get()
val VersionCatalog.slf4j get() = findDependency("slf4j-simple").get()

val VersionCatalog.sqlDelightJDBC get() = findDependency("sqlite-jdbc-driver").get()
val VersionCatalog.sqlDelightNative get() = findDependency("sqldelight-native-driver").get()
val VersionCatalog.sqlDelightAndroid get() = findDependency("sqldelight-android-driver").get()
val VersionCatalog.sqlDelightDriver get() = findDependency("sqldelight-driver").get()


================================================
FILE: buildSrc/deps.versions.toml
================================================
[versions]
kotlin = "1.6.10"
androidCoroutines = "1.5.1"
ktLint = "10.1.0"
mosaic = "0.1.0"
koin = "3.1.2"
kermit = "0.1.9"
mokoParcelize = "0.7.1"
ktor = "1.6.7"
kotlinxSerialization = "1.3.1"
sqlDelight = "1.5.3"
sqliteJdbcDriver = "3.34.0"
slf4j = "1.7.31"
i18n4k = "0.1.3"
essenty = "0.2.2"
multiplatformSettings = "0.7.7"
decompose = "0.5.0"
mviKotlin = "3.0.0-alpha03"
accompanist = "0.22.0-rc"
statelyVersion = "1.2.1"
statelyIsoVersion = "1.2.1"
androidxLifecycle = "2.4.0-alpha03"


[libraries]
kotlin-kotlinGradlePlugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-serialization = { group = "org.jetbrains.kotlin", name = "kotlin-serialization", version.ref = "kotlin" }
kotlin-reflect = { group = "org.jetbrains.kotlin", name = "kotlin-reflect", version.ref = "kotlin" }
kotlin-kotlinTestCommon = { group = "org.jetbrains.kotlin", name = "kotlin-test-common", version.ref = "kotlin" }
kotlin-kotlinTestJs = { group = "org.jetbrains.kotlin", name = "kotlin-test-js", version.ref = "kotlin" }
kotlin-kotlinTestJunit = { group = "org.jetbrains.kotlin", name = "kotlin-test-junit", version.ref = "kotlin" }
kotlin-kotlinTestAnnotationsCommon = { group = "org.jetbrains.kotlin", name = "kotlin-test-annotations-common", version.ref = "kotlin" }
kotlin-coroutines = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version = "1.6.0" }
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
kotlinx-atomicfu = { group = "org.jetbrains.kotlinx", name = "atomicfu", version = "0.17.0" }
kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version = "0.3.2" }

kotlin-compose-gradle = { group = "org.jetbrains.compose", name = "compose-gradle-plugin", version = "1.0.1" }
mosaic-gradle =  { group = "com.jakewharton.mosaic", name = "mosaic-gradle-plugin", version.ref = "mosaic" }

essenty-lifecycle = { group = "com.arkivanov.essenty", name = "lifecycle", version.ref = "essenty" }
essenty-instanceKeeper = { group = "com.arkivanov.essenty", name = "instance-keeper", version.ref = "essenty" }

decompose-dep = { group = "com.arkivanov.decompose", name = "decompose", version.ref = "decompose" }
decompose-extensions-compose = { group = "com.arkivanov.decompose", name = "extensions-compose-jetbrains", version.ref = "decompose" }

mviKotlin-dep = { group = "com.arkivanov.mvikotlin", name = "mvikotlin", version.ref = "mviKotlin" }
mviKotlin-rx = { group = "com.arkivanov.mvikotlin", name = "rx", version.ref = "mviKotlin" }
mviKotlin-main = { group = "com.arkivanov.mvikotlin", name = "mvikotlin-main", version.ref = "mviKotlin" }
mviKotlin-coroutines = { group = "com.arkivanov.mvikotlin", name = "mvikotlin-extensions-coroutines", version.ref = "mviKotlin" }
mviKotlin-keepers = { group = "com.arkivanov.mvikotlin", name = "keepers", version.ref = "mviKotlin" }
mviKotlin-logging = { group = "com.arkivanov.mvikotlin", name = "mvikotlin-logging", version.ref = "mviKotlin" }
mviKotlin-timetravel = { group = "com.arkivanov.mvikotlin", name = "mvikotlin-timetravel", version.ref = "mviKotlin" }
mviKotlin-extensions-reaktive = { group = "com.arkivanov.mvikotlin", name = "mvikotlin-extensions-reaktive", version.ref = "mviKotlin" }

ktor-client-core = { group = "io.ktor", name = "ktor-client-core", version.ref = "ktor" }
ktor-client-json = { group = "io.ktor", name = "ktor-client-json", version.ref = "ktor" }
ktor-client-logging = { group = "io.ktor", name = "ktor-client-logging", version.ref = "ktor" }
ktor-client-serialization = { group = "io.ktor", name = "ktor-client-serialization", version.ref = "ktor" }
ktor-client-auth = { group = "io.ktor", name = "ktor-client-auth", version.ref = "ktor" }
ktor-client-android = { group = "io.ktor", name = "ktor-client-android", version.ref = "ktor" }
ktor-client-okhttp = { group = "io.ktor", name = "ktor-client-okhttp", version.ref = "ktor" }
ktor-client-curl = { group = "io.ktor", name = "ktor-client-curl", version.ref = "ktor" }
ktor-client-apache = { group = "io.ktor", name = "ktor-client-apache", version.ref = "ktor" }
ktor-client-ios = { group = "io.ktor", name = "ktor-client-ios", version.ref = "ktor" }
ktor-client-cio = { group = "io.ktor", name = "ktor-client-cio", version.ref = "ktor" }
ktor-client-js = { group = "io.ktor", name = "ktor-client-js", version.ref = "ktor" }
slf4j-simple = { group = "org.slf4j", name = "slf4j-simple", version.ref = "slf4j" }

i18n4k-core = { group = "de.comahe.i18n4k", name = "i18n4k-core", version.ref = "i18n4k" }
i18n4k-gradle-plugin = { group = "de.comahe.i18n4k", name = "i18n4k-gradle-plugin", version.ref = "i18n4k" }

youtube-downloader = { group = "io.github.shabinder", name = "youtube-api-dl", version = "1.4" }
fuzzy-wuzzy = { group = "io.github.shabinder", name = "fuzzywuzzy", version = "1.1" }
mp3agic = { group = "com.mpatric", name = "mp3agic", version = "0.9.0" }
kermit = { group = "co.touchlab", name = "kermit", version.ref = "kermit" }
storage-chooser = { group = "com.github.shabinder", name = "storage-chooser", version = "2.0.4.45" }
accompanist-inset = { group = "com.google.accompanist", name = "accompanist-insets", version.ref = "accompanist" }
android-app-notifier = { group = "com.github.amitbd1508", name = "AppUpdater", version = "4.1.0" }
moko-parcelize = { group = "dev.icerock.moko", name = "parcelize", version.ref = "mokoParcelize" }
jaffree = { group = "com.github.kokorin.jaffree", name = "jaffree", version = "2021.08.16" }
multiplatform-settings = { group = "com.russhwolf", name = "multiplatform-settings-no-arg", version.ref = "multiplatformSettings" }

countly-android = { group = "ly.count.android", name = "sdk", version = "20.11.8" }
countly-desktop = { group = "ly.count.sdk", name = "java", version = "20.11.0" }

stately-common = { group = "co.touchlab", name = "stately-common", version.ref = "statelyVersion" }
stately-concurrency = { group = "co.touchlab", name = "stately-concurrency", version.ref = "statelyVersion" }
stately-isolate = { group = "co.touchlab", name = "stately-isolate", version.ref = "statelyIsoVersion" }
stately-iso-collections = { group = "co.touchlab", name = "stately-iso-collections", version.ref = "statelyIsoVersion" }

sqldelight-runtime = { group = "com.squareup.sqldelight", name = "runtime", version.ref = "sqlDelight" }
sqldelight-coroutines-extension = { group = "com.squareup.sqldelight", name = "coroutines-extensions", version.ref = "sqlDelight" }
sqldelight-gradle-plugin = { group = "com.squareup.sqldelight", name = "gradle-plugin", version.ref = "sqlDelight" }
sqldelight-driver = { group = "com.squareup.sqldelight", name = "sqlite-driver", version.ref = "sqlDelight" }
sqldelight-android-driver = { group = "com.squareup.sqldelight", name = "android-driver", version.ref = "sqlDelight" }
sqldelight-native-driver = { group = "com.squareup.sqldelight", name = "native-driver", version.ref = "sqlDelight" }
sqlite-jdbc-driver = { group = "org.xerial", name = "sqlite-jdbc", version.ref = "sqliteJdbcDriver" }

koin-core = { group = "io.insert-koin", name = "koin-core", version.ref = "koin" }
koin-test = { group = "io.insert-koin", name = "koin-test", version.ref = "koin" }
koin-android = { group = "io.insert-koin", name = "koin-android", version.ref = "koin" }
koin-androidx-compose = { group = "io.insert-koin", name = "koin-androidx-compose", version.ref = "koin" }

kotlin-js-wrappers-react = { group = "org.jetbrains.kotlin-wrappers", name = "kotlin-react", version = "17.0.2-pre.251-kotlin-1.5.31" }
kotlin-js-wrappers-reactDom = { group = "org.jetbrains.kotlin-wrappers", name = "kotlin-react-dom", version = "17.0.2-pre.251-kotlin-1.5.31" }
kotlin-js-wrappers-styled = { group = "org.jetbrains.kotlin-wrappers", name = "kotlin-styled", version = "5.3.1-pre.250-kotlin-1.5.31" }
kotlin-js-wrappers-ext = { group = "org.jetbrains.kotlin-wrappers", name = "kotlin-extensions", version = "1.0.1-pre.251-kotlin-1.5.31" }

androidx-activity = { group = "androidx.activity", name = "activity-compose", version = "1.3.1" }
androidx-core = { group = "androidx.core", name = "core-ktx", version = "1.6.0" }
androidx-palette = { group = "androidx.palette", name = "palette-ktx", version = "1.0.0" }
androidx-coroutines = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "androidCoroutines" }
androidx-junit = { group = "androidx.test.ext", name = "junit", version = "1.1.2" }
androidx-expresso = { group = "androidx.test.espresso", name = "espresso-core", version = "3.3.0" }
androidx-r8 = { group = "com.android.tools", name = "r8", version = "3.3.28" }
androidx-gradle-plugin = { group = "com.android.tools.build", name = "gradle", version = "4.2.2" }
androidx-lifecycle-service = { group = "androidx.lifecycle", name = "lifecycle-service", version.ref = "androidxLifecycle" }
androidx-lifecycle-common = { group = "androidx.lifecycle", name = "lifecycle-common-java8", version.ref = "androidxLifecycle" }
androidx-lifecycle-runtime = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "androidxLifecycle" }
androidx-desugar = { group = "com.android.tools", name = "desugar_jdk_libs", version = "1.1.5" }
leak-canary = { group = "com.squareup.leakcanary", name = "leakcanary-android", version = "2.7" }
junit = { group = "junit", name = "junit", version = "4.13.2" }

ktlint-gradle = { group = "org.jlleitschuh.gradle", name = "ktlint-gradle", version.ref = "ktLint" }

[bundles]
ktor = ["ktor-client-core","ktor-client-json","ktor-client-auth","ktor-client-logging","ktor-client-serialization"]
stately = ["stately-common","stately-concurrency","stately-isolate","stately-iso-collections"]
androidx-lifecycle = ["androidx-lifecycle-service","androidx-lifecycle-common","androidx-lifecycle-runtime"]
androidx-common = ["androidx-activity","androidx-core"]
kotlin-test = ["kotlin-kotlinTestCommon","kotlin-kotlinTestAnnotationsCommon"]
sqldelight = ["sqldelight-runtime","sqldelight-coroutines-extension","sqldelight-driver"]
mviKotlin = ["mviKotlin-dep","mviKotlin-main","mviKotlin-coroutines","mviKotlin-logging","mviKotlin-timetravel"]
kotlinCommon = ["kotlin-coroutines", "kotlin-serialization", "kotlinx-serialization-json", "kotlinx-atomicfu"]
essenty = ["essenty-lifecycle","essenty-instanceKeeper"]
koin-android = ["koin-androidx-compose","koin-android"]
kotlin-js-wrappers = ["kotlin-js-wrappers-react","kotlin-js-wrappers-reactDom","kotlin-js-wrappers-styled","kotlin-js-wrappers-ext"]

================================================
FILE: buildSrc/settings.gradle.kts
================================================

enableFeaturePreview("VERSION_CATALOGS")
dependencyResolutionManagement {
    @Suppress("UnstableApiUsage")
    versionCatalogs {
        create("deps") {
            from(files("deps.versions.toml"))
        }
    }
}

rootProject.name = "spotiflyer-build"


================================================
FILE: buildSrc/src/main/kotlin/android-setup.gradle.kts
================================================
@file:Suppress("UnstableApiUsage")

/*
*  * Copyright (c)  2021  Shabinder Singh
*  * This program is free software: you can redistribute it and/or modify
*  * it under the terms of the GNU General Public License as published by
*  * the Free Software Foundation, either version 3 of the License, or
*  * (at your option) any later version.
*  *
*  * This program is distributed in the hope that it will be useful,
*  * but WITHOUT ANY WARRANTY; without even the implied warranty of
*  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  * GNU General Public License for more details.
*  *
*  *  You should have received a copy of the GNU General Public License
*  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/

plugins {
    id("com.android.library")
    id("ktlint-setup")
    id("compiler-args")
}

android {
    compileSdk = Versions.compileSdkVersion

    defaultConfig {
        minSdk = Versions.minSdkVersion
        targetSdk = Versions.targetSdkVersion
    }

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }

    sourceSets {
        named("main") {
            manifest.srcFile("src/androidMain/AndroidManifest.xml")
            res.srcDirs("src/androidMain/res")
        }
    }
}


================================================
FILE: buildSrc/src/main/kotlin/compiler-args.gradle.kts
================================================
plugins {
    kotlin("multiplatform")
}

kotlin {
    sourceSets {
        all {
            languageSettings.apply {
                optIn("kotlin.RequiresOptIn")
                optIn("kotlin.Experimental")
                optIn("kotlin.time.ExperimentalTime")
                optIn("kotlinx.serialization.ExperimentalSerializationApi")
            }
        }
    }
}

================================================
FILE: buildSrc/src/main/kotlin/ktlint-setup.gradle.kts
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

plugins {
    id("org.jlleitschuh.gradle.ktlint")
    id("org.jlleitschuh.gradle.ktlint-idea")
}

ktlint {
    outputToConsole.set(true)
    ignoreFailures.set(true)
    coloredOutput.set(true)
    verbose.set(true)
    disabledRules.set(setOf("filename,no-wildcard-imports"))
    filter {
        exclude("**/generated/**")
        exclude("**/build/**")
    }
}


================================================
FILE: buildSrc/src/main/kotlin/multiplatform-compose-setup.gradle.kts
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

plugins {
    id("com.android.library")
    id("kotlin-multiplatform")
    id("org.jetbrains.compose")
    id("kotlin-parcelize")
    id("ktlint-setup")
    id("compiler-args")
}

kotlin {
    jvm("desktop")
    android()
    sourceSets {
        all {
            languageSettings.apply {
                optIn("androidx.compose.animation")
            }
        }
        named("commonMain") {
            dependencies {
                implementation(compose.ui)
                implementation(compose.runtime)
                implementation(compose.foundation)
                implementation(compose.material)
                implementation(compose.animation)
                implementation(Deps.kotlinCoroutines)
                implementation(Deps.decompose)
            }
        }
        named("androidMain") {
            dependencies {
                implementation(Deps.androidXCommonBundle)
            }
        }
        named("desktopMain") {
            dependencies {
                implementation(compose.desktop.common)
            }
        }
    }
}


================================================
FILE: buildSrc/src/main/kotlin/multiplatform-setup-test.gradle.kts
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

plugins {
    id("com.android.library")
    id("kotlin-multiplatform")
    id("compiler-args")
}

kotlin {
    /*IOS Target Can be only built on Mac*/
    if(HostOS.isMac){
        val sdkName: String? = System.getenv("SDK_NAME")
        val isiOSDevice = sdkName.orEmpty().startsWith("iphoneos")
        if (isiOSDevice) {
            iosArm64("ios")
        } else {
            iosX64("ios")
        }
    }

    jvm("desktop")
    android()

    js(BOTH) {
        browser()
        // nodejs()
    }
    sourceSets {
        named("commonTest") {
            dependencies {
                implementation(Deps.kotlinTestBundle)
            }
        }

        named("androidTest") {
            dependencies {
                implementation(Deps.kotlinJunitTest)
            }
        }
        named("desktopTest") {
            dependencies {
                implementation(Deps.kotlinJunitTest)
            }
        }
        named("jsTest") {
            dependencies {
                implementation(Deps.kotlinJSTest)
            }
        }
    }
}

================================================
FILE: buildSrc/src/main/kotlin/multiplatform-setup.gradle.kts
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

plugins {
    id("android-setup")
    id("kotlin-multiplatform")
    id("org.jetbrains.compose")
    id("ktlint-setup")
    id("kotlin-parcelize")
    id("compiler-args")
}

kotlin {
    /*IOS Target Can be only built on Mac*/
    if (HostOS.isMac) {
        val sdkName: String? = System.getenv("SDK_NAME")
        val isiOSDevice = sdkName.orEmpty().startsWith("iphoneos")
        if (isiOSDevice) {
            iosArm64("ios")
        } else {
            iosX64("ios") {}
        }
    }

    jvm("desktop")
    android()

    js(BOTH) {
        browser {
            commonWebpackConfig {
                cssSupport.enabled = true
            }
        }
        // nodejs()
    }

    sourceSets {
        named("commonMain") {
            dependencies {
                implementation(Deps.ktorBundle)
                implementation(Deps.kotlinxSerialization)
                implementation(Deps.kotlinCoroutines)
                implementation(Deps.mviKotlinBundle)
                implementation(Deps.decompose)
                implementation(Deps.koinCore)
            }
        }

        named("androidMain") {
            dependencies {
                implementation(compose.runtime)
                implementation(compose.material)
                implementation(compose.foundation)
                implementation(compose.materialIconsExtended)
                implementation(Deps.androidXCommonBundle)
                implementation(Deps.decomposeComposeExt)
                implementation(Deps.ktorClientAndroidOkHttp)
                implementation(Deps.koinAndroidBundle)
            }
        }

        named("desktopMain") {
            dependencies {
                implementation(compose.runtime)
                implementation(compose.foundation)
                implementation(compose.material)
                implementation(compose.desktop.common)
                implementation(compose.materialIconsExtended)
                implementation(Deps.decomposeComposeExt)
                implementation(Deps.ktorClientApache)
                implementation(Deps.slf4j)
            }
        }
        named("jsMain") {
            dependencies {
                implementation(Deps.ktorClientJS)
            }
        }
        if (HostOS.isMac) {
            named("iosMain") {
                dependencies {
                    implementation(Deps.ktorClientIOS)
                }
            }
        }
    }
}


================================================
FILE: common/compose/build.gradle.kts
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

import org.jetbrains.compose.compose

plugins {
    id("android-setup")
    id("multiplatform-compose-setup")
}

kotlin {
    sourceSets {
        all {
            languageSettings.apply {
                useExperimentalAnnotation("androidx.compose.animation")
            }
        }
        commonMain {
            dependencies {
                implementation(compose.material)
                implementation(compose.materialIconsExtended)
                implementation(project(":common:root"))
                implementation(project(":common:main"))
                implementation(project(":common:list"))
                implementation(project(":common:preference"))
                implementation(project(":common:core-components"))
                implementation(project(":common:database"))
                implementation(project(":common:data-models"))
                implementation(project(":common:dependency-injection"))
                implementation(deps.decompose.extensions.compose)
            }
        }
    }
}


================================================
FILE: common/compose/src/androidMain/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~  * Copyright (c)  2021  Shabinder Singh
  ~  * This program is free software: you can redistribute it and/or modify
  ~  * it under the terms of the GNU General Public License as published by
  ~  * the Free Software Foundation, either version 3 of the License, or
  ~  * (at your option) any later version.
  ~  *
  ~  * This program is distributed in the hope that it will be useful,
  ~  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~  * GNU General Public License for more details.
  ~  *
  ~  *  You should have received a copy of the GNU General Public License
  ~  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->

<manifest package="com.shabinder.common.uikit"/>


================================================
FILE: common/compose/src/androidMain/kotlin/com/shabinder/common/uikit/AndroidDialog.kt
================================================
package com.shabinder.common.uikit

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.runtime.Composable

@OptIn(ExperimentalAnimationApi::class)
@Composable
actual fun Dialog(
    isVisible: Boolean,
    onDismiss: () -> Unit,
    content: @Composable () -> Unit
) {
    AnimatedVisibility(isVisible) {
        androidx.compose.ui.window.Dialog(onDismiss) {
            content()
        }
    }
}


================================================
FILE: common/compose/src/androidMain/kotlin/com/shabinder/common/uikit/AndroidImageLoad.kt
================================================
package com.shabinder.common.uikit

import androidx.compose.animation.Crossfade
import androidx.compose.foundation.Image
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.layout.ContentScale
import com.shabinder.common.core_components.picture.Picture
import com.shabinder.common.models.dispatcherIO
import kotlinx.coroutines.withContext

@Composable
actual fun ImageLoad(
    link: String,
    loader: suspend () -> Picture,
    desc: String,
    modifier: Modifier
    // placeholder: ImageVector
) {
    var pic by remember(link) {
        mutableStateOf<ImageBitmap?>(null)
    }

    LaunchedEffect(link) {
        withContext(dispatcherIO) {
            pic = loader().image
        }
    }

    Crossfade(pic) {
        if (it == null) {
            Image(PlaceHolderImage(), desc, modifier, contentScale = ContentScale.Crop)
        } else Image(it, desc, modifier, contentScale = ContentScale.Crop)
    }
}


================================================
FILE: common/compose/src/androidMain/kotlin/com/shabinder/common/uikit/AndroidImages.kt
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

@file:Suppress("FunctionName")

package com.shabinder.common.uikit

import androidx.compose.foundation.Image
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.rememberVectorPainter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.vectorResource
import com.shabinder.common.database.R
import com.shabinder.common.translations.Strings
import kotlinx.coroutines.flow.MutableStateFlow

@Composable
internal actual fun <T> imageVectorResource(id: T): ImageVector =
    ImageVector.Companion.vectorResource(id as Int)

@Composable
actual fun DownloadImageTick() {
    Image(
        getCachedPainter(R.drawable.ic_tick),
        Strings.downloadDone()
    )
}

@Composable
actual fun DownloadImageError(modifier: Modifier) {
    Image(
        getCachedPainter(R.drawable.ic_error),
        Strings.downloadError(),
        modifier = modifier
    )
}

@Composable
actual fun DownloadImageArrow(modifier: Modifier) {
    Image(
        getCachedPainter(R.drawable.ic_arrow),
        Strings.downloadStart(),
        modifier
    )
}

@Composable
actual fun DownloadAllImage() = getCachedPainter(R.drawable.ic_download_arrow)

@Composable
actual fun ShareImage() = getCachedPainter(R.drawable.ic_share_open)

@Composable
actual fun PlaceHolderImage() = getCachedPainter(R.drawable.ic_song_placeholder)

@Composable
actual fun SpotiFlyerLogo() = getCachedPainter(R.drawable.ic_spotiflyer_logo)

@Composable
actual fun HeartIcon() = painterResource(R.drawable.ic_heart)

@Composable
actual fun SpotifyLogo() = getCachedPainter(R.drawable.ic_spotify_logo)

@Composable
actual fun SoundboundLogo() = getCachedPainter(R.drawable.soundbound_app_logo)

@Composable
actual fun SaavnLogo() = getCachedPainter(R.drawable.ic_jio_saavn_logo)

@Composable
actual fun SoundCloudLogo() = getCachedPainter(R.drawable.ic_soundcloud)

@Composable
actual fun GaanaLogo() = getCachedPainter(R.drawable.ic_gaana)

@Composable
actual fun YoutubeLogo() = getCachedPainter(R.drawable.ic_youtube)

@Composable
actual fun YoutubeMusicLogo() = getCachedPainter(R.drawable.ic_youtube_music_logo)

@Composable
actual fun GithubLogo() = getCachedPainter(R.drawable.ic_github)

@Composable
actual fun PaypalLogo() = painterResource(R.drawable.ic_paypal_logo)

@Composable
actual fun OpenCollectiveLogo() = painterResource(R.drawable.ic_opencollective_icon)

@Composable
actual fun RazorPay() = painterResource(R.drawable.ic_indian_rupee)

@Composable
actual fun Toast(
    flow: MutableStateFlow<String>,
    duration: ToastDuration
) {
    // We Have Android's Implementation of Toast so its just Empty
}

================================================
FILE: common/compose/src/androidMain/kotlin/com/shabinder/common/uikit/AndroidScrollBars.kt
================================================
package com.shabinder.common.uikit

import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp

actual val MARGIN_SCROLLBAR: Dp = 0.dp

actual interface ScrollbarAdapter

@Composable
actual fun rememberScrollbarAdapter(
    scrollState: ScrollState
): ScrollbarAdapter = object : ScrollbarAdapter {}

@Composable
actual fun rememberScrollbarAdapter(
    scrollState: LazyListState,
    itemCount: Int,
    averageItemSize: Dp
): ScrollbarAdapter =
    object : ScrollbarAdapter {}

@Composable
actual fun VerticalScrollbar(
    modifier: Modifier,
    adapter: ScrollbarAdapter
) {
}


================================================
FILE: common/compose/src/androidMain/kotlin/com/shabinder/common/uikit/configurations/AndroidTypography.kt
================================================
package com.shabinder.common.uikit.configurations

import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import com.shabinder.common.models.R

actual fun montserratFont() = FontFamily(
    Font(R.font.montserrat_light, FontWeight.Light),
    Font(R.font.montserrat_regular, FontWeight.Normal),
    Font(R.font.montserrat_medium, FontWeight.Medium),
    Font(R.font.montserrat_semibold, FontWeight.SemiBold),
)

actual fun pristineFont(): FontFamily = FontFamily(
    Font(R.font.pristine_script, FontWeight.Bold)
)


================================================
FILE: common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/ExpectDialog.kt
================================================
package com.shabinder.common.uikit

import androidx.compose.runtime.Composable

@Composable
expect fun Dialog(
    isVisible: Boolean,
    onDismiss: () -> Unit,
    content: @Composable () -> Unit
)


================================================
FILE: common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/ExpectImageLoad.kt
================================================
package com.shabinder.common.uikit

import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.shabinder.common.core_components.picture.Picture

@Composable
expect fun ImageLoad(
    link: String,
    loader: suspend () -> Picture,
    desc: String,
    modifier: Modifier
    // placeholder:Painter = PlaceHolderImage()
)


================================================
FILE: common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/ExpectImages.kt
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

@file:Suppress("FunctionName")

package com.shabinder.common.uikit

import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.rememberVectorPainter
import com.shabinder.common.caching.Cache

private val ImageCache = Cache.Builder.newBuilder()
    .maximumCacheSize(15).build<Any, ImageVector>()

@Composable
internal expect fun <T> imageVectorResource(id: T): ImageVector

@Composable
fun <K : Any> getCachedPainter(key: K): Painter {
    return rememberVectorPainter(
        ImageCache.get(key) ?: imageVectorResource(key).also { ImageCache.put(key, it) })
}

@Composable
expect fun DownloadImageTick()

@Composable
expect fun DownloadAllImage(): Painter

@Composable
expect fun ShareImage(): Painter

@Composable
expect fun PlaceHolderImage(): Painter

@Composable
expect fun SpotiFlyerLogo(): Painter

@Composable
expect fun SpotifyLogo(): Painter

@Composable
expect fun SoundboundLogo(): Painter

@Composable
expect fun SaavnLogo(): Painter

@Composable
expect fun SoundCloudLogo(): Painter

@Composable
expect fun YoutubeLogo(): Painter

@Composable
expect fun GaanaLogo(): Painter

@Composable
expect fun YoutubeMusicLogo(): Painter

@Composable
expect fun GithubLogo(): Painter

@Composable
expect fun PaypalLogo(): Painter

@Composable
expect fun OpenCollectiveLogo(): Painter

@Composable
expect fun RazorPay(): Painter

@Composable
expect fun HeartIcon(): Painter

@Composable
expect fun DownloadImageError(modifier: Modifier)

@Composable
expect fun DownloadImageArrow(modifier: Modifier)


================================================
FILE: common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/ScrollBars.kt
================================================
package com.shabinder.common.uikit

import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp

expect val MARGIN_SCROLLBAR: Dp

expect interface ScrollbarAdapter

@Composable
expect fun rememberScrollbarAdapter(
    scrollState: LazyListState,
    itemCount: Int,
    averageItemSize: Dp
): ScrollbarAdapter

@Composable
expect fun rememberScrollbarAdapter(
    scrollState: ScrollState
): ScrollbarAdapter

@Composable
expect fun VerticalScrollbar(
    modifier: Modifier,
    adapter: ScrollbarAdapter
)


================================================
FILE: common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/Toast.kt
================================================
/*
 *  * Copyright (c)  2021  Shabinder Singh
 *  * This program is free software: you can redistribute it and/or modify
 *  * it under the terms of the GNU General Public License as published by
 *  * the Free Software Foundation, either version 3 of the License, or
 *  * (at your option) any later version.
 *  *
 *  * This program is distributed in the hope that it will be useful,
 *  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  * GNU General Public License for more details.
 *  *
 *  *  You should have received a copy of the GNU General Public License
 *  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package com.shabinder.common.uikit

import androidx.compose.runtime.Composable
import kotlinx.coroutines.flow.MutableStateFlow

enum class ToastDuration(val value: Int) {
    Short(1000), Long(2500)
}

@Composable
expect fun Toast(
    flow: MutableStateFlow<String>,
    duration: ToastDuration
)


================================================
FILE: common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/configurations/Color.kt
================================================
/*
 * Copyright (c)  2021  Shabinder Singh
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package com.shabinder.common.uikit.configurations

import androidx.compose.material.darkColors
import androidx.compose.ui.graphics.Color

val colorPrimary = Color(0xFFFC5C7D)
val colorPrimaryDark = Color(0xFFCE1CFF)
val colorAccent = Color(0xFF9AB3FF)
val colorSoundbound = Color(0xFF4b9fff)
val colorAccentVariant = Color(0xFF3457D5)
val colorRedError = Color(0xFFFF9494)
val colorSuccessGreen = Color(0xFF59C351)
val darkBackgroundColor = Color(0xFF000000)
val colorOffWhite = Color(0xFFE7E7E7)
val transparent = Color(0x00000000)
val black = Color(0xFF000000)
val lightGray = Color(0xFFCCCCCC)

val SpotiFlyerColors = darkColors(
    primary = colorPrimary,
    onPrimary = black,
    primaryVariant = colorPrimaryDark,
    secondary = colorAccent,
    onSecondary = black,
    error = colorRedError,
    onError = black,
    surface = darkBackgroundColor,
    background = darkBackgroundColor,
    onSurface = lightGray,
    onBackground = lightGray
)

/**
 * Return the fully opaque color that results from compositing [onSurface] atop [surface] with the
 * given [alpha]. Useful for situations where semi-transparent colors are undesirable.
 */
/*
@Composable
fun Colors.compositedOnSurface(alpha: Float): Color {
    return onSurface.copy(alpha = alpha).compositeOver(surface)
}*/


================================================
FILE: common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/configurations/Shape.kt
================================================
/*
 * Copyright (c)  2021  Shabinder Singh
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package com.shabinder.common.uikit.configurations

import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
import androidx.compose.ui.unit.dp

val Spoti
Download .txt
gitextract_3r9508kv/

├── .github/
│   ├── FUNDING.yml
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug-report.md
│   │   └── feature_request.md
│   ├── dependabot.yml
│   └── workflows/
│       ├── Release.yml
│       ├── build-and-publish-kjs.yml
│       ├── build-release-binaries.yml
│       ├── maintenance.yml
│       └── tf-refresh.yml
├── .gitignore
├── .gitmodules
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── android/
│   ├── build.gradle.kts
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           ├── java/
│           │   └── com/
│           │       └── shabinder/
│           │           └── spotiflyer/
│           │               ├── App.kt
│           │               ├── MainActivity.kt
│           │               ├── di/
│           │               │   └── AppModule.kt
│           │               ├── service/
│           │               │   ├── ForegroundService.kt
│           │               │   ├── Message.kt
│           │               │   ├── TrackStatusFlowMap.kt
│           │               │   └── Utils.kt
│           │               ├── ui/
│           │               │   ├── AnalyticsDialog.kt
│           │               │   ├── NetworkDialog.kt
│           │               │   ├── PermissionDialog.kt
│           │               │   └── SplashScreenActivity.kt
│           │               └── utils/
│           │                   ├── SignatureVerification.kt
│           │                   ├── UtilFunctions.kt
│           │                   └── autoclear/
│           │                       ├── AutoClear.kt
│           │                       ├── AutoClearFragment.kt
│           │                       ├── LifecycleAutoInitializer.kt
│           │                       └── lifecycleobservers/
│           │                           ├── LifecycleCreateAndDestroyObserver.kt
│           │                           ├── LifecycleResumeAndPauseObserver.kt
│           │                           └── LifecycleStartAndStopObserver.kt
│           └── res/
│               ├── drawable/
│               │   └── ic_splash.xml
│               ├── mipmap-anydpi-v26/
│               │   ├── ic_launcher.xml
│               │   └── ic_launcher_round.xml
│               └── values/
│                   ├── colors.xml
│                   ├── ic_launcher_background.xml
│                   └── themes.xml
├── build.gradle.kts
├── buildSrc/
│   ├── build.gradle.kts
│   ├── buildSrc/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       └── main/
│   │           └── kotlin/
│   │               └── Versions.kt
│   ├── deps.versions.toml
│   ├── settings.gradle.kts
│   └── src/
│       └── main/
│           └── kotlin/
│               ├── android-setup.gradle.kts
│               ├── compiler-args.gradle.kts
│               ├── ktlint-setup.gradle.kts
│               ├── multiplatform-compose-setup.gradle.kts
│               ├── multiplatform-setup-test.gradle.kts
│               └── multiplatform-setup.gradle.kts
├── common/
│   ├── compose/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   ├── AndroidManifest.xml
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── uikit/
│   │       │                       ├── AndroidDialog.kt
│   │       │                       ├── AndroidImageLoad.kt
│   │       │                       ├── AndroidImages.kt
│   │       │                       ├── AndroidScrollBars.kt
│   │       │                       └── configurations/
│   │       │                           └── AndroidTypography.kt
│   │       ├── commonMain/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── uikit/
│   │       │                       ├── ExpectDialog.kt
│   │       │                       ├── ExpectImageLoad.kt
│   │       │                       ├── ExpectImages.kt
│   │       │                       ├── ScrollBars.kt
│   │       │                       ├── Toast.kt
│   │       │                       ├── configurations/
│   │       │                       │   ├── Color.kt
│   │       │                       │   ├── Shape.kt
│   │       │                       │   ├── Theme.kt
│   │       │                       │   └── Type.kt
│   │       │                       ├── dialogs/
│   │       │                       │   ├── Donation.kt
│   │       │                       │   └── ErrorInfoDialog.kt
│   │       │                       ├── screens/
│   │       │                       │   ├── SpotiFlyerListUi.kt
│   │       │                       │   ├── SpotiFlyerMainUi.kt
│   │       │                       │   ├── SpotiFlyerPreferenceUi.kt
│   │       │                       │   ├── SpotiFlyerRootUi.kt
│   │       │                       │   └── splash/
│   │       │                       │       └── Splash.kt
│   │       │                       └── utils/
│   │       │                           ├── Colors.kt
│   │       │                           └── GradientScrim.kt
│   │       └── desktopMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── uikit/
│   │                               ├── DesktopDialog.kt
│   │                               ├── DesktopImageLoad.kt
│   │                               ├── DesktopImages.kt
│   │                               ├── DesktopScrollBar.kt
│   │                               ├── DesktopToast.kt
│   │                               └── configurations/
│   │                                   └── DesktopTypography.kt
│   ├── core-components/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   ├── AndroidManifest.xml
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── core_components/
│   │       │                       ├── AndroidNetworkObserver.kt
│   │       │                       ├── LiveDataExt.kt
│   │       │                       ├── analytics/
│   │       │                       │   └── AndroidAnalyticsManager.kt
│   │       │                       ├── file_manager/
│   │       │                       │   └── AndroidFileManager.kt
│   │       │                       ├── media_converter/
│   │       │                       │   ├── AndroidMediaConverter.kt
│   │       │                       │   └── AudioTagging.kt
│   │       │                       ├── picture/
│   │       │                       │   ├── AndroidPicture.kt
│   │       │                       │   └── Picture.kt
│   │       │                       └── utils/
│   │       │                           └── AndroidHttpClient.kt
│   │       ├── commonMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.core_components/
│   │       │           ├── CoreComponentsModule.kt
│   │       │           ├── analytics/
│   │       │           │   ├── AnalyticsManager.kt
│   │       │           │   ├── Events.kt
│   │       │           │   └── Views.kt
│   │       │           ├── file_manager/
│   │       │           │   └── FileManager.kt
│   │       │           ├── media_converter/
│   │       │           │   └── MediaConverter.kt
│   │       │           ├── parallel_executor/
│   │       │           │   └── ParallelExecutor.kt
│   │       │           ├── picture/
│   │       │           │   └── Picture.kt
│   │       │           ├── preference_manager/
│   │       │           │   └── PreferenceManager.kt
│   │       │           └── utils/
│   │       │               ├── NetworkingExt.kt
│   │       │               └── StoreExt.kt
│   │       ├── desktopMain/
│   │       │   └── kotlin/
│   │       │       ├── com/
│   │       │       │   └── shabinder/
│   │       │       │       └── common/
│   │       │       │           └── core_components/
│   │       │       │               └── utils/
│   │       │       │                   └── DesktopHttpClient.kt
│   │       │       └── com.shabinder.common.core_components/
│   │       │           ├── analytics/
│   │       │           │   └── DesktopAnalyticsManager.kt
│   │       │           ├── file_manager/
│   │       │           │   └── DesktopFileManager.kt
│   │       │           ├── media_converter/
│   │       │           │   ├── DesktopMediaConverter.kt
│   │       │           │   └── ID3Tagging.kt
│   │       │           └── picture/
│   │       │               └── Picture.kt
│   │       ├── iosMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.core_components/
│   │       │           ├── IOSDeps.kt
│   │       │           ├── IOSDir.kt
│   │       │           ├── IOSTagging.kt
│   │       │           ├── IOSUtils.kt
│   │       │           └── picture/
│   │       │               └── IOSPicture.kt
│   │       └── jsMain/
│   │           └── kotlin/
│   │               └── com.shabinder.common.core_components/
│   │                   ├── FileSave.kt
│   │                   ├── ID3Writer.kt
│   │                   ├── analytics/
│   │                   │   └── WebAnalyticsManager.kt
│   │                   ├── file_manager/
│   │                   │   └── WebFileManager.kt
│   │                   ├── media_converter/
│   │                   │   └── WebMediaConverter.kt
│   │                   ├── picture/
│   │                   │   └── Picture.kt
│   │                   └── utils/
│   │                       └── WebHttpClient.kt
│   ├── data-models/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   ├── AndroidManifest.xml
│   │       │   ├── kotlin/
│   │       │   │   └── com.shabinder.common.models/
│   │       │   │       ├── AndroidAtomicReference.kt
│   │       │   │       ├── AndroidDispatcher.kt
│   │       │   │       └── AndroidPlatformActions.kt
│   │       │   └── res/
│   │       │       └── drawable/
│   │       │           └── jio_saavn.xml
│   │       ├── commonMain/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   ├── caching/
│   │       │                   │   ├── Cache.kt
│   │       │                   │   ├── FakeTimeSource.kt
│   │       │                   │   ├── RealCache.kt
│   │       │                   │   └── ReorderingIsoMutableSet.kt
│   │       │                   ├── models/
│   │       │                   │   ├── Actions.kt
│   │       │                   │   ├── AudioFormat.kt
│   │       │                   │   ├── AudioQuality.kt
│   │       │                   │   ├── Consumer.kt
│   │       │                   │   ├── CorsProxy.kt
│   │       │                   │   ├── Dispatcher.kt
│   │       │                   │   ├── DownloadObject.kt
│   │       │                   │   ├── DownloadRecord.kt
│   │       │                   │   ├── DownloadResult.kt
│   │       │                   │   ├── NativeAtomicReference.kt
│   │       │                   │   ├── PlatformActions.kt
│   │       │                   │   ├── PlatformQueryResult.kt
│   │       │                   │   ├── SpotiFlyerException.kt
│   │       │                   │   ├── Status.kt
│   │       │                   │   ├── YoutubeTrack.kt
│   │       │                   │   ├── event/
│   │       │                   │   │   ├── Event.kt
│   │       │                   │   │   ├── Factory.kt
│   │       │                   │   │   ├── Validation.kt
│   │       │                   │   │   └── coroutines/
│   │       │                   │   │       ├── SuspendableEvent.kt
│   │       │                   │   │       └── SuspendedValidation.kt
│   │       │                   │   ├── gaana/
│   │       │                   │   │   ├── Artist.kt
│   │       │                   │   │   ├── CustomArtworks.kt
│   │       │                   │   │   ├── GaanaAlbum.kt
│   │       │                   │   │   ├── GaanaArtistDetails.kt
│   │       │                   │   │   ├── GaanaArtistTracks.kt
│   │       │                   │   │   ├── GaanaPlaylist.kt
│   │       │                   │   │   ├── GaanaSong.kt
│   │       │                   │   │   ├── GaanaTrack.kt
│   │       │                   │   │   ├── Genre.kt
│   │       │                   │   │   └── Tags.kt
│   │       │                   │   ├── saavn/
│   │       │                   │   │   ├── MoreInfo.kt
│   │       │                   │   │   ├── SaavnAlbum.kt
│   │       │                   │   │   ├── SaavnPlaylist.kt
│   │       │                   │   │   ├── SaavnSearchResult.kt
│   │       │                   │   │   └── SaavnSong.kt
│   │       │                   │   ├── soundcloud/
│   │       │                   │   │   ├── Badges.kt
│   │       │                   │   │   ├── CreatorSubscription.kt
│   │       │                   │   │   ├── Format.kt
│   │       │                   │   │   ├── Media.kt
│   │       │                   │   │   ├── Product.kt
│   │       │                   │   │   ├── PublisherMetadata.kt
│   │       │                   │   │   ├── Transcoding.kt
│   │       │                   │   │   ├── User.kt
│   │       │                   │   │   ├── Visual.kt
│   │       │                   │   │   ├── Visuals.kt
│   │       │                   │   │   └── resolvemodel/
│   │       │                   │   │       └── SoundCloudResolveResponseBase.kt
│   │       │                   │   ├── spotify/
│   │       │                   │   │   ├── Album.kt
│   │       │                   │   │   ├── Artist.kt
│   │       │                   │   │   ├── Copyright.kt
│   │       │                   │   │   ├── Episodes.kt
│   │       │                   │   │   ├── Followers.kt
│   │       │                   │   │   ├── Image.kt
│   │       │                   │   │   ├── LinkedTrack.kt
│   │       │                   │   │   ├── PagingObjectPlaylistTrack.kt
│   │       │                   │   │   ├── PagingObjectTrack.kt
│   │       │                   │   │   ├── Playlist.kt
│   │       │                   │   │   ├── PlaylistTrack.kt
│   │       │                   │   │   ├── Source.kt
│   │       │                   │   │   ├── SpotifyCredentials.kt
│   │       │                   │   │   ├── TokenData.kt
│   │       │                   │   │   ├── Track.kt
│   │       │                   │   │   ├── UserPrivate.kt
│   │       │                   │   │   └── UserPublic.kt
│   │       │                   │   └── wynk/
│   │       │                   │       ├── AlbumRefWynk.kt
│   │       │                   │       ├── HtDataWynk.kt
│   │       │                   │       ├── ItemWynk.kt
│   │       │                   │       ├── ShortURLWynk.kt
│   │       │                   │       └── SingerWynk.kt
│   │       │                   └── utils/
│   │       │                       ├── Ext.kt
│   │       │                       ├── JsonUtils.kt
│   │       │                       └── Utils.kt
│   │       ├── desktopMain/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── models/
│   │       │                       ├── DesktopAtomicReference.kt
│   │       │                       ├── DesktopDispacthers.kt
│   │       │                       └── DesktopPlatformActions.kt
│   │       ├── iosMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.models/
│   │       │           └── IOSPlatformActions.kt
│   │       ├── jsMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.models/
│   │       │           ├── JSPlatformActions.kt
│   │       │           ├── WebActual.kt
│   │       │           └── WebAtomicReference.kt
│   │       └── main/
│   │           └── res/
│   │               └── drawable/
│   │                   ├── ic_arrow.xml
│   │                   ├── ic_download_arrow.xml
│   │                   ├── ic_error.xml
│   │                   ├── ic_gaana.xml
│   │                   ├── ic_github.xml
│   │                   ├── ic_heart.xml
│   │                   ├── ic_indian_rupee.xml
│   │                   ├── ic_instagram.xml
│   │                   ├── ic_jio_saavn_logo.xml
│   │                   ├── ic_linkedin.xml
│   │                   ├── ic_mug.xml
│   │                   ├── ic_musicplaceholder.xml
│   │                   ├── ic_opencollective_icon.xml
│   │                   ├── ic_paypal_logo.xml
│   │                   ├── ic_refreshgradient.xml
│   │                   ├── ic_round_cancel_24.xml
│   │                   ├── ic_share_open.xml
│   │                   ├── ic_song_placeholder.xml
│   │                   ├── ic_soundcloud.xml
│   │                   ├── ic_spotiflyer_logo.xml
│   │                   ├── ic_spotify_logo.xml
│   │                   ├── ic_tick.xml
│   │                   ├── ic_youtube.xml
│   │                   ├── ic_youtube_music_logo.xml
│   │                   ├── music.xml
│   │                   └── soundbound_app_logo.xml
│   ├── database/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   ├── AndroidManifest.xml
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── database/
│   │       │                       └── ActualAndroid.kt
│   │       ├── commonMain/
│   │       │   ├── kotlin/
│   │       │   │   └── com/
│   │       │   │       └── shabinder/
│   │       │   │           └── common/
│   │       │   │               └── database/
│   │       │   │                   ├── Expect.kt
│   │       │   │                   └── SpotiFlyerDatabase.kt
│   │       │   └── sqldelight/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── database/
│   │       │                       ├── DownloadRecordDatabase.sq
│   │       │                       └── TokenDB.sq
│   │       ├── desktopMain/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── database/
│   │       │                       └── ActualDesktop.kt
│   │       ├── iosMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.database/
│   │       │           └── ActualIos.kt
│   │       └── jsMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── database/
│   │                               └── ActualJs.kt
│   ├── dependency-injection/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   └── AndroidManifest.xml
│   │       └── commonMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── di/
│   │                               ├── ApplicationInit.kt
│   │                               └── DI.kt
│   ├── list/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   └── AndroidManifest.xml
│   │       └── commonMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── list/
│   │                               ├── SpotiFlyerList.kt
│   │                               ├── integration/
│   │                               │   └── SpotiFlyerListImpl.kt
│   │                               └── store/
│   │                                   ├── InstanceKeeperExt.kt
│   │                                   ├── SpotiFlyerListStore.kt
│   │                                   └── SpotiFlyerListStoreProvider.kt
│   ├── main/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   └── AndroidManifest.xml
│   │       └── commonMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── main/
│   │                               ├── SpotiFlyerMain.kt
│   │                               ├── integration/
│   │                               │   └── SpotiFlyerMainImpl.kt
│   │                               └── store/
│   │                                   ├── InstanceKeeperExt.kt
│   │                                   ├── SpotiFlyerMainStore.kt
│   │                                   └── SpotiFlyerMainStoreProvider.kt
│   ├── preference/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   └── AndroidManifest.xml
│   │       └── commonMain/
│   │           └── kotlin/
│   │               └── com/
│   │                   └── shabinder/
│   │                       └── common/
│   │                           └── preference/
│   │                               ├── SpotiFlyerPreference.kt
│   │                               ├── integration/
│   │                               │   └── SpotiFlyerPreferenceImpl.kt
│   │                               └── store/
│   │                                   ├── InstanceKeeperExt.kt
│   │                                   ├── SpotiFlyerPreferenceStore.kt
│   │                                   └── SpotiFlyerPreferenceStoreProvider.kt
│   ├── providers/
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       ├── androidMain/
│   │       │   ├── AndroidManifest.xml
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── providers/
│   │       │                       ├── AndroidActual.kt
│   │       │                       └── saavn/
│   │       │                           └── requests/
│   │       │                               └── decryptURL.kt
│   │       ├── commonMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.providers/
│   │       │           ├── Expect.kt
│   │       │           ├── FetchPlatformQueryResult.kt
│   │       │           ├── ProvidersModule.kt
│   │       │           ├── gaana/
│   │       │           │   ├── GaanaProvider.kt
│   │       │           │   └── requests/
│   │       │           │       └── GaanaRequests.kt
│   │       │           ├── saavn/
│   │       │           │   ├── SaavnProvider.kt
│   │       │           │   └── requests/
│   │       │           │       ├── JioSaavnRequests.kt
│   │       │           │       └── JioSaavnUtils.kt
│   │       │           ├── sound_cloud/
│   │       │           │   ├── SoundCloudProvider.kt
│   │       │           │   └── requests/
│   │       │           │       └── SoundCloudRequests.kt
│   │       │           ├── spotify/
│   │       │           │   ├── SpotifyProvider.kt
│   │       │           │   ├── requests/
│   │       │           │   │   ├── SpotifyAuth.kt
│   │       │           │   │   └── SpotifyRequests.kt
│   │       │           │   └── token_store/
│   │       │           │       └── TokenStore.kt
│   │       │           ├── youtube/
│   │       │           │   └── YoutubeProvider.kt
│   │       │           ├── youtube_music/
│   │       │           │   └── YoutubeMusic.kt
│   │       │           └── youtube_to_mp3/
│   │       │               └── requests/
│   │       │                   ├── YoutubeMp3.kt
│   │       │                   └── Yt1sMp3.kt
│   │       ├── commonTest/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── providers/
│   │       │                       ├── TestSpotifyTrackMatching.kt
│   │       │                       ├── placeholders/
│   │       │                       │   ├── FileManager.kt
│   │       │                       │   ├── MediaConverter.kt
│   │       │                       │   └── PreferenceManager.kt
│   │       │                       └── utils/
│   │       │                           ├── CommonUtils.kt
│   │       │                           └── SpotifyUtils.kt
│   │       ├── desktopMain/
│   │       │   └── kotlin/
│   │       │       └── com/
│   │       │           └── shabinder/
│   │       │               └── common/
│   │       │                   └── providers/
│   │       │                       ├── DesktopActual.kt
│   │       │                       └── saavn/
│   │       │                           └── requests/
│   │       │                               └── decryptURL.kt
│   │       ├── iosMain/
│   │       │   └── kotlin/
│   │       │       └── com.shabinder.common.providers/
│   │       │           ├── IOSActual.kt
│   │       │           └── saavn.requests/
│   │       │               └── decryptURL.kt
│   │       └── jsMain/
│   │           └── kotlin/
│   │               └── com.shabinder.common.providers/
│   │                   ├── WebActual.kt
│   │                   └── saavn/
│   │                       └── requests/
│   │                           └── decryptURL.kt
│   └── root/
│       ├── build.gradle.kts
│       └── src/
│           ├── androidMain/
│           │   └── AndroidManifest.xml
│           └── commonMain/
│               └── kotlin/
│                   └── com/
│                       └── shabinder/
│                           └── common/
│                               └── root/
│                                   ├── SpotiFlyerRoot.kt
│                                   ├── callbacks/
│                                   │   └── SpotiFlyerRootCallBacks.kt
│                                   └── integration/
│                                       └── SpotiFlyerRootImpl.kt
├── console-app/
│   ├── build.gradle.kts
│   └── src/
│       └── main/
│           └── java/
│               ├── common/
│               │   ├── Common.kt
│               │   └── Parameters.kt
│               ├── main.kt
│               └── utils/
│                   ├── Exceptions.kt
│                   ├── Ext.kt
│                   └── TestClass.kt
├── desktop/
│   ├── build.gradle.kts
│   └── src/
│       └── jvmMain/
│           ├── kotlin/
│           │   └── Main.kt
│           └── resources/
│               └── drawable/
│                   └── spotiflyer.icns
├── fastlane/
│   ├── Appfile
│   ├── Fastfile
│   └── metadata/
│       └── android/
│           └── en-US/
│               ├── changelogs/
│               │   ├── 20.txt
│               │   ├── 21.txt
│               │   ├── 22.txt
│               │   ├── 24.txt
│               │   ├── 25.txt
│               │   ├── 26.txt
│               │   ├── 27.txt
│               │   ├── 28.txt
│               │   ├── 29.txt
│               │   ├── 30.txt
│               │   ├── 31.txt
│               │   └── 32.txt
│               ├── full_description.txt
│               ├── short_description.txt
│               └── title.txt
├── ffmpeg/
│   ├── android-ffmpeg/
│   │   ├── .gitignore
│   │   ├── build.gradle.bak
│   │   ├── build.gradle.kts
│   │   ├── gradle.properties
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── nl/
│   │                   └── bravobit/
│   │                       └── ffmpeg/
│   │                           ├── CommandResult.java
│   │                           ├── CpuArch.java
│   │                           ├── CpuArchHelper.java
│   │                           ├── ExecuteBinaryResponseHandler.java
│   │                           ├── FFbinaryContextProvider.java
│   │                           ├── FFbinaryInterface.java
│   │                           ├── FFbinaryObserver.java
│   │                           ├── FFcommandExecuteAsyncTask.java
│   │                           ├── FFcommandExecuteResponseHandler.java
│   │                           ├── FFmpeg.kt
│   │                           ├── FFprobe.java
│   │                           ├── FFtask.kt
│   │                           ├── FileUtils.kt
│   │                           ├── Log.kt
│   │                           ├── ResponseHandler.kt
│   │                           ├── ShellCommand.kt
│   │                           └── Util.kt
│   └── copy-ffmpeg-executables.sh
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── infra/
│   ├── .terraform.lock.hcl
│   ├── main.tf
│   ├── outputs.tf
│   └── variables.tf
├── maintenance-tasks/
│   ├── build.gradle.kts
│   └── src/
│       └── main/
│           └── java/
│               ├── common/
│               │   ├── Common.kt
│               │   ├── ContentUpdation.kt
│               │   ├── Date.kt
│               │   ├── GithubService.kt
│               │   ├── HCTIService.kt
│               │   └── Secrets.kt
│               ├── main.kt
│               ├── models/
│               │   ├── github/
│               │   │   ├── Asset.kt
│               │   │   ├── Author.kt
│               │   │   ├── GithubFileContent.kt
│               │   │   ├── GithubReleaseInfoItem.kt
│               │   │   ├── GithubReleasesInfo.kt
│               │   │   ├── Reactions.kt
│               │   │   └── Uploader.kt
│               │   └── matomo/
│               │       ├── MatomoDownloads.kt
│               │       └── MatomoDownloadsItem.kt
│               ├── scripts/
│               │   ├── UpdateAnalyticsImage.kt
│               │   └── UpdateDownloadCards.kt
│               └── utils/
│                   ├── Exceptions.kt
│                   ├── Ext.kt
│                   └── TestClass.kt
├── scripts/
│   └── build-ffmpeg.sh
├── settings.gradle.kts
├── translations/
│   ├── Strings_cn.properties.xml
│   ├── Strings_cro.properties
│   ├── Strings_cs.properties
│   ├── Strings_de.properties
│   ├── Strings_en.properties
│   ├── Strings_es.properties
│   ├── Strings_fa.properties
│   ├── Strings_fr.properties
│   ├── Strings_hi.properties
│   ├── Strings_id.properties
│   ├── Strings_it.properties
│   ├── Strings_ja.properties.xml
│   ├── Strings_jp.properties
│   ├── Strings_ml.properties
│   ├── Strings_ne.properties
│   ├── Strings_nl.properties
│   ├── Strings_pl.properties
│   ├── Strings_pt.properties
│   ├── Strings_pt_BR.properties
│   ├── Strings_ro.properties
│   ├── Strings_ru.properties
│   ├── Strings_tl.properties
│   ├── Strings_tr.properties
│   ├── Strings_tw.properties
│   ├── Strings_uk.properties
│   └── Strings_ur.properties.xml
└── web-app/
    ├── build.gradle.kts
    └── src/
        └── main/
            ├── kotlin/
            │   ├── App.kt
            │   ├── Styles.kt
            │   ├── client.kt
            │   ├── extras/
            │   │   ├── RenderableComponent.kt
            │   │   ├── UniqueId.kt
            │   │   └── Utils.kt
            │   ├── home/
            │   │   ├── HomeScreen.kt
            │   │   ├── IconList.kt
            │   │   ├── Message.kt
            │   │   └── Searchbar.kt
            │   ├── list/
            │   │   ├── CircularProgressBar.kt
            │   │   ├── CoverImage.kt
            │   │   ├── DownloadAllButton.kt
            │   │   ├── DownloadButton.kt
            │   │   ├── ListScreen.kt
            │   │   ├── LoadingAnim.kt
            │   │   ├── LoadingSpinner.kt
            │   │   └── TrackItem.kt
            │   ├── navbar/
            │   │   ├── NavBar.kt
            │   │   └── NavBarStyles.kt
            │   └── root/
            │       └── RootR.kt
            └── resources/
                ├── css-circular-prog-bar.css
                ├── index.html
                └── styles.css
Download .txt
SYMBOL INDEX (49 symbols across 10 files)

FILE: ffmpeg/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/CommandResult.java
  class CommandResult (line 3) | class CommandResult {
    method CommandResult (line 7) | CommandResult(boolean success, String output) {
    method getDummyFailureResponse (line 12) | static CommandResult getDummyFailureResponse() {
    method getOutputFromProcess (line 16) | static CommandResult getOutputFromProcess(Process process) {
    method success (line 26) | static boolean success(Integer exitValue) {

FILE: ffmpeg/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/CpuArch.java
  type CpuArch (line 3) | public enum CpuArch {

FILE: ffmpeg/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/CpuArchHelper.java
  class CpuArchHelper (line 5) | @SuppressWarnings("deprecation")
    method getCpuArch (line 12) | public static CpuArch getCpuArch() {

FILE: ffmpeg/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/ExecuteBinaryResponseHandler.java
  class ExecuteBinaryResponseHandler (line 3) | public class ExecuteBinaryResponseHandler implements FFcommandExecuteRes...
    method onSuccess (line 5) | @Override
    method onProgress (line 10) | @Override
    method onFailure (line 15) | @Override
    method onStart (line 20) | @Override
    method onFinish (line 25) | @Override

FILE: ffmpeg/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/FFbinaryContextProvider.java
  type FFbinaryContextProvider (line 5) | public interface FFbinaryContextProvider {
    method provide (line 7) | Context provide();

FILE: ffmpeg/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/FFbinaryInterface.java
  type FFbinaryInterface (line 5) | interface FFbinaryInterface {
    method execute (line 15) | FFtask execute(Map<String, String> environmentVars, String[] cmd, FFco...
    method execute (line 24) | FFtask execute(String[] cmd, FFcommandExecuteResponseHandler ffcommand...
    method isSupported (line 31) | boolean isSupported();
    method isCommandRunning (line 39) | boolean isCommandRunning(FFtask task);
    method killRunningProcesses (line 47) | boolean killRunningProcesses(FFtask task);
    method setTimeout (line 54) | void setTimeout(long timeout);

FILE: ffmpeg/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/FFbinaryObserver.java
  type FFbinaryObserver (line 3) | public interface FFbinaryObserver extends Runnable {
    method cancel (line 5) | void cancel();

FILE: ffmpeg/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/FFcommandExecuteAsyncTask.java
  class FFcommandExecuteAsyncTask (line 11) | @SuppressWarnings("deprecation")
    method FFcommandExecuteAsyncTask (line 25) | FFcommandExecuteAsyncTask(String[] cmd, Map<String, String> environmen...
    method onPreExecute (line 33) | @Override
    method doInBackground (line 41) | @Override
    method onProgressUpdate (line 66) | @Override
    method onPostExecute (line 73) | @Override
    method checkAndUpdateProcess (line 85) | private void checkAndUpdateProcess() throws TimeoutException, Interrup...
    method isProcessCompleted (line 123) | public boolean isProcessCompleted() {
    method killRunningProcess (line 127) | @Override
    method sendQuitSignal (line 132) | @Override
    method sendQ (line 137) | private void sendQ() {

FILE: ffmpeg/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/FFcommandExecuteResponseHandler.java
  type FFcommandExecuteResponseHandler (line 3) | public interface FFcommandExecuteResponseHandler extends ResponseHandler {
    method onSuccess (line 10) | void onSuccess(String message);
    method onProgress (line 17) | void onProgress(String message);
    method onFailure (line 24) | void onFailure(String message);

FILE: ffmpeg/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/FFprobe.java
  class FFprobe (line 9) | @SuppressWarnings("deprecation")
    method FFprobe (line 19) | private FFprobe(FFbinaryContextProvider context) {
    method getInstance (line 24) | public static FFprobe getInstance(final Context context) {
    method isSupported (line 31) | @Override
    method execute (line 48) | @Override
    method execute (line 62) | @Override
    method isCommandRunning (line 67) | public boolean isCommandRunning(FFtask task) {
    method killRunningProcesses (line 71) | @Override
    method setTimeout (line 76) | @Override
Condensed preview — 448 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,080K chars).
[
  {
    "path": ".github/FUNDING.yml",
    "chars": 792,
    "preview": "# These are supported funding model platforms\n\ngithub: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [u"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug-report.md",
    "chars": 1438,
    "preview": "---\nname: Bug Report\nabout: Create a bug report to help us improve\ntitle: \"[BUG] : <Issue_Title>\"\nlabels: bug\nassignees:"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "chars": 638,
    "preview": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: \"[Feature-Request]: <Feature_Title>\"\nlabels: en"
  },
  {
    "path": ".github/dependabot.yml",
    "chars": 320,
    "preview": "version: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"/.github/workflows\"\n    schedule:\n      inte"
  },
  {
    "path": ".github/workflows/Release.yml",
    "chars": 3387,
    "preview": "name: Release\n\non:\n  [workflow_dispatch]\n\n#  workflow_dispatch:\n#  release:\n#    types: [ created ]\n\njobs:\n  build:\n    "
  },
  {
    "path": ".github/workflows/build-and-publish-kjs.yml",
    "chars": 704,
    "preview": "name: Build and Publish\non: [ pull_request ]\njobs:\n  build:\n    name: Test and Build\n    runs-on: ubuntu-latest\n    step"
  },
  {
    "path": ".github/workflows/build-release-binaries.yml",
    "chars": 3523,
    "preview": "name: Build Release Binaries\n\non:\n  [ workflow_dispatch ]\n\njobs:\n  create-linux-package:\n    runs-on: ubuntu-latest\n    "
  },
  {
    "path": ".github/workflows/maintenance.yml",
    "chars": 905,
    "preview": "name: Maintenance\n\non: [ pull_request ]\n  #workflow_dispatch:\n  #schedule:\n  #  - cron: '0 0 * * *' #once a day\n\njobs:\n "
  },
  {
    "path": ".github/workflows/tf-refresh.yml",
    "chars": 1092,
    "preview": "name: Refresh Terraform State\n\non:\n  workflow_dispatch:\n  schedule:\n    - cron: '0 0 * * 0'\n\njobs:\n  refresh-Infrastruct"
  },
  {
    "path": ".gitignore",
    "chars": 304,
    "preview": ".idea/\nlocal.properties\n/android/release/\n/android/google-services.json\nbuild/\n.gradle/\nterraform.tfvars\n.terraform/\n/sp"
  },
  {
    "path": ".gitmodules",
    "chars": 239,
    "preview": "[submodule \"spotiflyer-ios\"]\n\tpath = spotiflyer-ios\n\turl = https://github.com/Shabinder/spotiflyer-ios\n[submodule \"ffmpe"
  },
  {
    "path": "CONTRIBUTING.md",
    "chars": 898,
    "preview": "### Contributing Translations:\n\n - **Fork** this repo (Button at top Right Corner)\n \n - Create **`Strings_{language-code"
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 9111,
    "preview": " We will from now on publish **[PLUGINS](https://gitlab.com/shabinder/soundbound#-disclaimer)** for **[Soundbound](https"
  },
  {
    "path": "android/build.gradle.kts",
    "chars": 4121,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "android/proguard-rules.pro",
    "chars": 1891,
    "preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
  },
  {
    "path": "android/src/main/AndroidManifest.xml",
    "chars": 4487,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~  * Copyright (c)  2021  Shabinder Singh\n  ~  * This program is free soft"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/App.kt",
    "chars": 1509,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/MainActivity.kt",
    "chars": 19900,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/di/AppModule.kt",
    "chars": 859,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/service/ForegroundService.kt",
    "chars": 14809,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/service/Message.kt",
    "chars": 1358,
    "preview": "package com.shabinder.spotiflyer.service\n\nimport com.shabinder.common.models.DownloadStatus\nimport com.shabinder.common."
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/service/TrackStatusFlowMap.kt",
    "chars": 1146,
    "preview": "package com.shabinder.spotiflyer.service\n\nimport com.shabinder.common.models.DownloadStatus\nimport kotlinx.coroutines.Co"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/service/Utils.kt",
    "chars": 952,
    "preview": "package com.shabinder.spotiflyer.service\n\nimport android.util.Log\nimport java.io.File\n\n/**\n * Cleaning All Residual File"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/ui/AnalyticsDialog.kt",
    "chars": 3943,
    "preview": "package com.shabinder.spotiflyer.ui\n\nimport androidx.compose.animation.AnimatedVisibility\nimport androidx.compose.animat"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/ui/NetworkDialog.kt",
    "chars": 4658,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/ui/PermissionDialog.kt",
    "chars": 5709,
    "preview": "package com.shabinder.spotiflyer.ui\n\nimport androidx.compose.animation.AnimatedVisibility\nimport androidx.compose.animat"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/ui/SplashScreenActivity.kt",
    "chars": 1112,
    "preview": "package com.shabinder.spotiflyer.ui\n\nimport android.content.Intent\nimport android.os.Bundle\nimport androidx.appcompat.ap"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/utils/SignatureVerification.kt",
    "chars": 1582,
    "preview": "package com.shabinder.spotiflyer.utils\n\nimport android.annotation.SuppressLint\nimport android.content.Context\nimport and"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/utils/UtilFunctions.kt",
    "chars": 3201,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/AutoClear.kt",
    "chars": 2631,
    "preview": "package com.shabinder.spotiflyer.utils.autoclear\n\nimport androidx.lifecycle.Lifecycle\nimport androidx.lifecycle.Lifecycl"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/AutoClearFragment.kt",
    "chars": 2131,
    "preview": "package com.shabinder.spotiflyer.utils.autoclear\n\nimport androidx.fragment.app.Fragment\nimport androidx.lifecycle.Defaul"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/LifecycleAutoInitializer.kt",
    "chars": 189,
    "preview": "package com.shabinder.spotiflyer.utils.autoclear\n\nimport androidx.lifecycle.DefaultLifecycleObserver\n\ninterface Lifecycl"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/lifecycleobservers/LifecycleCreateAndDestroyObserver.kt",
    "chars": 583,
    "preview": "package com.shabinder.spotiflyer.utils.autoclear.lifecycleobservers\n\nimport androidx.lifecycle.LifecycleOwner\nimport com"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/lifecycleobservers/LifecycleResumeAndPauseObserver.kt",
    "chars": 577,
    "preview": "package com.shabinder.spotiflyer.utils.autoclear.lifecycleobservers\n\nimport androidx.lifecycle.LifecycleOwner\nimport com"
  },
  {
    "path": "android/src/main/java/com/shabinder/spotiflyer/utils/autoclear/lifecycleobservers/LifecycleStartAndStopObserver.kt",
    "chars": 571,
    "preview": "package com.shabinder.spotiflyer.utils.autoclear.lifecycleobservers\n\nimport androidx.lifecycle.LifecycleOwner\nimport com"
  },
  {
    "path": "android/src/main/res/drawable/ic_splash.xml",
    "chars": 424,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    androi"
  },
  {
    "path": "android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "chars": 977,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (c)  2021  Shabinder Singh\n  ~ This program is free software: "
  },
  {
    "path": "android/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "chars": 977,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (c)  2021  Shabinder Singh\n  ~ This program is free software: "
  },
  {
    "path": "android/src/main/res/values/colors.xml",
    "chars": 1216,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (c)  2021  Shabinder Singh\n  ~ This program is free software: "
  },
  {
    "path": "android/src/main/res/values/ic_launcher_background.xml",
    "chars": 834,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (c)  2021  Shabinder Singh\n  ~ This program is free software: "
  },
  {
    "path": "android/src/main/res/values/themes.xml",
    "chars": 1524,
    "preview": "<!--\n  ~ Copyright (c)  2021  Shabinder Singh\n  ~ This program is free software: you can redistribute it and/or modify\n "
  },
  {
    "path": "build.gradle.kts",
    "chars": 2815,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "buildSrc/build.gradle.kts",
    "chars": 1621,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "buildSrc/buildSrc/build.gradle.kts",
    "chars": 66,
    "preview": "plugins {\n    `kotlin-dsl`\n}\n\nrepositories {\n    mavenCentral()\n}\n"
  },
  {
    "path": "buildSrc/buildSrc/src/main/kotlin/Versions.kt",
    "chars": 4936,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "buildSrc/deps.versions.toml",
    "chars": 10551,
    "preview": "[versions]\nkotlin = \"1.6.10\"\nandroidCoroutines = \"1.5.1\"\nktLint = \"10.1.0\"\nmosaic = \"0.1.0\"\nkoin = \"3.1.2\"\nkermit = \"0.1"
  },
  {
    "path": "buildSrc/settings.gradle.kts",
    "chars": 259,
    "preview": "\nenableFeaturePreview(\"VERSION_CATALOGS\")\ndependencyResolutionManagement {\n    @Suppress(\"UnstableApiUsage\")\n    version"
  },
  {
    "path": "buildSrc/src/main/kotlin/android-setup.gradle.kts",
    "chars": 1326,
    "preview": "@file:Suppress(\"UnstableApiUsage\")\n\n/*\n*  * Copyright (c)  2021  Shabinder Singh\n*  * This program is free software: you"
  },
  {
    "path": "buildSrc/src/main/kotlin/compiler-args.gradle.kts",
    "chars": 370,
    "preview": "plugins {\n    kotlin(\"multiplatform\")\n}\n\nkotlin {\n    sourceSets {\n        all {\n            languageSettings.apply {\n  "
  },
  {
    "path": "buildSrc/src/main/kotlin/ktlint-setup.gradle.kts",
    "chars": 1100,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "buildSrc/src/main/kotlin/multiplatform-compose-setup.gradle.kts",
    "chars": 1810,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "buildSrc/src/main/kotlin/multiplatform-setup-test.gradle.kts",
    "chars": 1798,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "buildSrc/src/main/kotlin/multiplatform-setup.gradle.kts",
    "chars": 3175,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/compose/build.gradle.kts",
    "chars": 1771,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/compose/src/androidMain/AndroidManifest.xml",
    "chars": 841,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~  * Copyright (c)  2021  Shabinder Singh\n  ~  * This program is free soft"
  },
  {
    "path": "common/compose/src/androidMain/kotlin/com/shabinder/common/uikit/AndroidDialog.kt",
    "chars": 485,
    "preview": "package com.shabinder.common.uikit\n\nimport androidx.compose.animation.AnimatedVisibility\nimport androidx.compose.animati"
  },
  {
    "path": "common/compose/src/androidMain/kotlin/com/shabinder/common/uikit/AndroidImageLoad.kt",
    "chars": 1236,
    "preview": "package com.shabinder.common.uikit\n\nimport androidx.compose.animation.Crossfade\nimport androidx.compose.foundation.Image"
  },
  {
    "path": "common/compose/src/androidMain/kotlin/com/shabinder/common/uikit/AndroidImages.kt",
    "chars": 3511,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/compose/src/androidMain/kotlin/com/shabinder/common/uikit/AndroidScrollBars.kt",
    "chars": 775,
    "preview": "package com.shabinder.common.uikit\n\nimport androidx.compose.foundation.ScrollState\nimport androidx.compose.foundation.la"
  },
  {
    "path": "common/compose/src/androidMain/kotlin/com/shabinder/common/uikit/configurations/AndroidTypography.kt",
    "chars": 599,
    "preview": "package com.shabinder.common.uikit.configurations\n\nimport androidx.compose.ui.text.font.Font\nimport androidx.compose.ui."
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/ExpectDialog.kt",
    "chars": 200,
    "preview": "package com.shabinder.common.uikit\n\nimport androidx.compose.runtime.Composable\n\n@Composable\nexpect fun Dialog(\n    isVis"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/ExpectImageLoad.kt",
    "chars": 354,
    "preview": "package com.shabinder.common.uikit\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimpor"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/ExpectImages.kt",
    "chars": 2409,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/ScrollBars.kt",
    "chars": 663,
    "preview": "package com.shabinder.common.uikit\n\nimport androidx.compose.foundation.ScrollState\nimport androidx.compose.foundation.la"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/Toast.kt",
    "chars": 1034,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/configurations/Color.kt",
    "chars": 1985,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/configurations/Shape.kt",
    "chars": 1053,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/configurations/Theme.kt",
    "chars": 1072,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/configurations/Type.kt",
    "chars": 3779,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/dialogs/Donation.kt",
    "chars": 7112,
    "preview": "package com.shabinder.common.uikit.dialogs\n\nimport androidx.compose.animation.ExperimentalAnimationApi\nimport androidx.c"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/dialogs/ErrorInfoDialog.kt",
    "chars": 3461,
    "preview": "package com.shabinder.common.uikit.dialogs\n\nimport androidx.compose.foundation.BorderStroke\nimport androidx.compose.foun"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/screens/SpotiFlyerListUi.kt",
    "chars": 10542,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/screens/SpotiFlyerMainUi.kt",
    "chars": 30509,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/screens/SpotiFlyerPreferenceUi.kt",
    "chars": 13387,
    "preview": "package com.shabinder.common.uikit.screens\n\nimport androidx.compose.animation.AnimatedVisibility\nimport androidx.compose"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/screens/SpotiFlyerRootUi.kt",
    "chars": 7963,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/screens/splash/Splash.kt",
    "chars": 3338,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/utils/Colors.kt",
    "chars": 1040,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/compose/src/commonMain/kotlin/com/shabinder/common/uikit/utils/GradientScrim.kt",
    "chars": 3403,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/compose/src/desktopMain/kotlin/com/shabinder/common/uikit/DesktopDialog.kt",
    "chars": 929,
    "preview": "package com.shabinder.common.uikit\n\nimport androidx.compose.animation.AnimatedVisibility\nimport androidx.compose.animati"
  },
  {
    "path": "common/compose/src/desktopMain/kotlin/com/shabinder/common/uikit/DesktopImageLoad.kt",
    "chars": 1031,
    "preview": "package com.shabinder.common.uikit\n\nimport androidx.compose.animation.Crossfade\nimport androidx.compose.foundation.Image"
  },
  {
    "path": "common/compose/src/desktopMain/kotlin/com/shabinder/common/uikit/DesktopImages.kt",
    "chars": 3343,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/compose/src/desktopMain/kotlin/com/shabinder/common/uikit/DesktopScrollBar.kt",
    "chars": 1198,
    "preview": "package com.shabinder.common.uikit\n\nimport androidx.compose.foundation.ExperimentalFoundationApi\nimport androidx.compose"
  },
  {
    "path": "common/compose/src/desktopMain/kotlin/com/shabinder/common/uikit/DesktopToast.kt",
    "chars": 3765,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/compose/src/desktopMain/kotlin/com/shabinder/common/uikit/configurations/DesktopTypography.kt",
    "chars": 574,
    "preview": "package com.shabinder.common.uikit.configurations\n\nimport androidx.compose.ui.text.font.FontFamily\nimport androidx.compo"
  },
  {
    "path": "common/core-components/build.gradle.kts",
    "chars": 1373,
    "preview": "plugins {\n    id(\"multiplatform-setup\")\n    id(\"multiplatform-setup-test\")\n    kotlin(\"plugin.serialization\")\n}\n\nkotlin "
  },
  {
    "path": "common/core-components/src/androidMain/AndroidManifest.xml",
    "chars": 1000,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~  * Copyright (c)  2021  Shabinder Singh\n  ~  * This program is free soft"
  },
  {
    "path": "common/core-components/src/androidMain/kotlin/com/shabinder/common/core_components/AndroidNetworkObserver.kt",
    "chars": 5110,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/androidMain/kotlin/com/shabinder/common/core_components/LiveDataExt.kt",
    "chars": 2166,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/androidMain/kotlin/com/shabinder/common/core_components/analytics/AndroidAnalyticsManager.kt",
    "chars": 2423,
    "preview": "package com.shabinder.common.core_components.analytics\n\nimport android.app.Activity\nimport android.app.Application\nimpor"
  },
  {
    "path": "common/core-components/src/androidMain/kotlin/com/shabinder/common/core_components/file_manager/AndroidFileManager.kt",
    "chars": 9413,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/androidMain/kotlin/com/shabinder/common/core_components/media_converter/AndroidMediaConverter.kt",
    "chars": 2698,
    "preview": "package com.shabinder.common.core_components.media_converter\n\nimport android.content.Context\nimport android.util.Log\nimp"
  },
  {
    "path": "common/core-components/src/androidMain/kotlin/com/shabinder/common/core_components/media_converter/AudioTagging.kt",
    "chars": 4024,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/androidMain/kotlin/com/shabinder/common/core_components/picture/AndroidPicture.kt",
    "chars": 2653,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/androidMain/kotlin/com/shabinder/common/core_components/picture/Picture.kt",
    "chars": 159,
    "preview": "package com.shabinder.common.core_components.picture\n\nimport androidx.compose.ui.graphics.ImageBitmap\n\nactual data class"
  },
  {
    "path": "common/core-components/src/androidMain/kotlin/com/shabinder/common/core_components/utils/AndroidHttpClient.kt",
    "chars": 1932,
    "preview": "package com.shabinder.common.core_components.utils\n\nimport android.annotation.SuppressLint\nimport io.ktor.client.HttpCli"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/CoreComponentsModule.kt",
    "chars": 947,
    "preview": "package com.shabinder.common.core_components\n\nimport co.touchlab.kermit.Kermit\nimport com.russhwolf.settings.Settings\nim"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/analytics/AnalyticsManager.kt",
    "chars": 963,
    "preview": "package com.shabinder.common.core_components.analytics\n\nimport org.koin.core.module.Module\n\ninterface AnalyticsManager {"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/analytics/Events.kt",
    "chars": 455,
    "preview": "package com.shabinder.common.core_components.analytics\n\nsealed class AnalyticsEvent(private val eventName: String, priva"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/analytics/Views.kt",
    "chars": 505,
    "preview": "package com.shabinder.common.core_components.analytics\n\nimport com.shabinder.common.core_components.analytics.AnalyticsM"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/file_manager/FileManager.kt",
    "chars": 6487,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/media_converter/MediaConverter.kt",
    "chars": 1023,
    "preview": "package com.shabinder.common.core_components.media_converter\n\nimport com.shabinder.common.core_components.parallel_execu"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/parallel_executor/ParallelExecutor.kt",
    "chars": 6608,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/picture/Picture.kt",
    "chars": 74,
    "preview": "package com.shabinder.common.core_components.picture\n\nexpect class Picture"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/preference_manager/PreferenceManager.kt",
    "chars": 2671,
    "preview": "package com.shabinder.common.core_components.preference_manager\n\nimport co.touchlab.stately.annotation.Throws\nimport com"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/utils/NetworkingExt.kt",
    "chars": 2457,
    "preview": "package com.shabinder.common.core_components.utils\n\nimport com.shabinder.common.models.dispatcherIO\nimport com.shabinder"
  },
  {
    "path": "common/core-components/src/commonMain/kotlin/com.shabinder.common.core_components/utils/StoreExt.kt",
    "chars": 870,
    "preview": "package com.shabinder.common.core_components.utils\n\nimport com.arkivanov.decompose.value.Value\nimport com.arkivanov.deco"
  },
  {
    "path": "common/core-components/src/desktopMain/kotlin/com/shabinder/common/core_components/utils/DesktopHttpClient.kt",
    "chars": 828,
    "preview": "package com.shabinder.common.core_components.utils\n\nimport io.ktor.client.HttpClient\nimport io.ktor.client.HttpClientCon"
  },
  {
    "path": "common/core-components/src/desktopMain/kotlin/com.shabinder.common.core_components/analytics/DesktopAnalyticsManager.kt",
    "chars": 2389,
    "preview": "package com.shabinder.common.core_components.analytics\n\nimport com.shabinder.common.core_components.file_manager.FileMan"
  },
  {
    "path": "common/core-components/src/desktopMain/kotlin/com.shabinder.common.core_components/file_manager/DesktopFileManager.kt",
    "chars": 9117,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/desktopMain/kotlin/com.shabinder.common.core_components/media_converter/DesktopMediaConverter.kt",
    "chars": 1431,
    "preview": "package com.shabinder.common.core_components.media_converter\n\nimport com.github.kokorin.jaffree.ffmpeg.FFmpeg\nimport com"
  },
  {
    "path": "common/core-components/src/desktopMain/kotlin/com.shabinder.common.core_components/media_converter/ID3Tagging.kt",
    "chars": 3817,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/desktopMain/kotlin/com.shabinder.common.core_components/picture/Picture.kt",
    "chars": 159,
    "preview": "package com.shabinder.common.core_components.picture\n\nimport androidx.compose.ui.graphics.ImageBitmap\n\nactual data class"
  },
  {
    "path": "common/core-components/src/iosMain/kotlin/com.shabinder.common.core_components/IOSDeps.kt",
    "chars": 431,
    "preview": "package com.shabinder.common.di\n\nimport org.koin.core.component.KoinComponent\nimport org.koin.core.component.inject\n\n/*\n"
  },
  {
    "path": "common/core-components/src/iosMain/kotlin/com.shabinder.common.core_components/IOSDir.kt",
    "chars": 6592,
    "preview": "package com.shabinder.common.di\n\nimport co.touchlab.kermit.Kermit\nimport com.shabinder.common.database.SpotiFlyerDatabas"
  },
  {
    "path": "common/core-components/src/iosMain/kotlin/com.shabinder.common.core_components/IOSTagging.kt",
    "chars": 1327,
    "preview": "package com.shabinder.common.di\n/*\n\nimport cocoapods.TagLibIOS.TLAudio\nimport com.shabinder.common.models.TrackDetails\ni"
  },
  {
    "path": "common/core-components/src/iosMain/kotlin/com.shabinder.common.core_components/IOSUtils.kt",
    "chars": 655,
    "preview": "package com.shabinder.common.di\n\nimport kotlinx.cinterop.memScoped\nimport kotlinx.cinterop.refTo\nimport kotlinx.cinterop"
  },
  {
    "path": "common/core-components/src/iosMain/kotlin/com.shabinder.common.core_components/picture/IOSPicture.kt",
    "chars": 117,
    "preview": "package com.shabinder.common.di\n\nimport platform.UIKit.UIImage\n\nactual data class Picture(\n    val image: UIImage?\n)\n"
  },
  {
    "path": "common/core-components/src/jsMain/kotlin/com.shabinder.common.core_components/FileSave.kt",
    "chars": 1606,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/jsMain/kotlin/com.shabinder.common.core_components/ID3Writer.kt",
    "chars": 1119,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/jsMain/kotlin/com.shabinder.common.core_components/analytics/WebAnalyticsManager.kt",
    "chars": 796,
    "preview": "package com.shabinder.common.core_components.analytics\n\nimport org.koin.dsl.bind\nimport org.koin.dsl.module\n\n// TODO(\"No"
  },
  {
    "path": "common/core-components/src/jsMain/kotlin/com.shabinder.common.core_components/file_manager/WebFileManager.kt",
    "chars": 5908,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/core-components/src/jsMain/kotlin/com.shabinder.common.core_components/media_converter/WebMediaConverter.kt",
    "chars": 778,
    "preview": "package com.shabinder.common.core_components.media_converter\n\nimport com.shabinder.common.models.AudioQuality\nimport com"
  },
  {
    "path": "common/core-components/src/jsMain/kotlin/com.shabinder.common.core_components/picture/Picture.kt",
    "chars": 107,
    "preview": "package com.shabinder.common.core_components.picture\n\nactual data class Picture(\n    var imageUrl: String\n)"
  },
  {
    "path": "common/core-components/src/jsMain/kotlin/com.shabinder.common.core_components/utils/WebHttpClient.kt",
    "chars": 283,
    "preview": "package com.shabinder.common.core_components.utils\n\nimport io.ktor.client.HttpClient\nimport io.ktor.client.HttpClientCon"
  },
  {
    "path": "common/data-models/build.gradle.kts",
    "chars": 1978,
    "preview": "import de.comahe.i18n4k.gradle.plugin.i18n4k\n\n/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free s"
  },
  {
    "path": "common/data-models/src/androidMain/AndroidManifest.xml",
    "chars": 842,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~  * Copyright (c)  2021  Shabinder Singh\n  ~  * This program is free soft"
  },
  {
    "path": "common/data-models/src/androidMain/kotlin/com.shabinder.common.models/AndroidAtomicReference.kt",
    "chars": 115,
    "preview": "package com.shabinder.common.models\n\nactual class NativeAtomicReference<T> actual constructor(actual var value: T)\n"
  },
  {
    "path": "common/data-models/src/androidMain/kotlin/com.shabinder.common.models/AndroidDispatcher.kt",
    "chars": 201,
    "preview": "package com.shabinder.common.models\n\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.coroutines.Dispatchers"
  },
  {
    "path": "common/data-models/src/androidMain/kotlin/com.shabinder.common.models/AndroidPlatformActions.kt",
    "chars": 816,
    "preview": "package com.shabinder.common.models\n\nimport android.content.SharedPreferences\nimport kotlinx.coroutines.CoroutineScope\n\n"
  },
  {
    "path": "common/data-models/src/androidMain/res/drawable/jio_saavn.xml",
    "chars": 2836,
    "preview": "<vector android:height=\"42dp\" android:viewportHeight=\"250\"\n    android:viewportWidth=\"488\" android:width=\"81.984dp\" xmln"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/caching/Cache.kt",
    "chars": 5088,
    "preview": "package com.shabinder.common.caching\n\nimport kotlin.time.Duration\nimport kotlin.time.ExperimentalTime\nimport kotlin.time"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/caching/FakeTimeSource.kt",
    "chars": 2199,
    "preview": "package com.shabinder.common.caching\n\nimport co.touchlab.stately.concurrency.AtomicLong\nimport kotlin.time.AbstractLongT"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/caching/RealCache.kt",
    "chars": 8474,
    "preview": "package com.shabinder.common.caching\n\nimport co.touchlab.stately.collections.IsoMutableMap\nimport co.touchlab.stately.co"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/caching/ReorderingIsoMutableSet.kt",
    "chars": 625,
    "preview": "package com.shabinder.common.caching\n\nimport co.touchlab.stately.collections.IsoMutableSet\n\n/**\n * A custom [IsoMutableS"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/Actions.kt",
    "chars": 1935,
    "preview": "package com.shabinder.common.models\n\nimport co.touchlab.stately.freeze\nimport kotlin.jvm.JvmStatic\n\n/*\n* Interface Havin"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/AudioFormat.kt",
    "chars": 91,
    "preview": "package com.shabinder.common.models\n\nenum class AudioFormat {\n    MP3, MP4, FLAC, UNKNOWN\n}"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/AudioQuality.kt",
    "chars": 594,
    "preview": "package com.shabinder.common.models\n\nenum class AudioQuality(val kbps: String) {\n    KBPS128(\"128\"),\n    KBPS160(\"160\"),"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/Consumer.kt",
    "chars": 1084,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/CorsProxy.kt",
    "chars": 1986,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/Dispatcher.kt",
    "chars": 272,
    "preview": "package com.shabinder.common.models\n\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.coroutines.Dispatchers"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/DownloadObject.kt",
    "chars": 2381,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/DownloadRecord.kt",
    "chars": 946,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/DownloadResult.kt",
    "chars": 1443,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/NativeAtomicReference.kt",
    "chars": 160,
    "preview": "package com.shabinder.common.models\n\nexpect class NativeAtomicReference<T>(value: T) {\n    var value: T\n//    fun compar"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/PlatformActions.kt",
    "chars": 239,
    "preview": "package com.shabinder.common.models\n\nimport kotlinx.coroutines.CoroutineScope\n\nexpect interface PlatformActions\n\ninterna"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/PlatformQueryResult.kt",
    "chars": 1041,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/SpotiFlyerException.kt",
    "chars": 2159,
    "preview": "package com.shabinder.common.models\n\nimport com.shabinder.common.translations.Strings\n\nsealed class SpotiFlyerException("
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/Status.kt",
    "chars": 1513,
    "preview": "package com.shabinder.common.models\n\nimport kotlin.jvm.JvmStatic\n\n/**\n * Enumeration which contains the different states"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/YoutubeTrack.kt",
    "chars": 992,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/event/Event.kt",
    "chars": 6257,
    "preview": "package com.shabinder.common.models.event\n\nimport kotlin.properties.ReadOnlyProperty\nimport kotlin.reflect.KProperty\n\nin"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/event/Factory.kt",
    "chars": 405,
    "preview": "package com.shabinder.common.models.event\n\ninline fun <V> runCatching(block: () -> V): Event<V, Throwable> {\n    return "
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/event/Validation.kt",
    "chars": 270,
    "preview": "package com.shabinder.common.models.event\n\nclass Validation<out E : Throwable>(vararg resultSequence: Event<*, E>) {\n\n  "
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/event/coroutines/SuspendableEvent.kt",
    "chars": 6829,
    "preview": "@file:Suppress(\"UNCHECKED_CAST\")\n\npackage com.shabinder.common.models.event.coroutines\n\nimport kotlin.contracts.Experime"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/event/coroutines/SuspendedValidation.kt",
    "chars": 315,
    "preview": "package com.shabinder.common.models.event.coroutines\n\nclass SuspendedValidation<out E : Throwable>(vararg resultSequence"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/gaana/Artist.kt",
    "chars": 995,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/gaana/CustomArtworks.kt",
    "chars": 1107,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/gaana/GaanaAlbum.kt",
    "chars": 974,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/gaana/GaanaArtistDetails.kt",
    "chars": 880,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/gaana/GaanaArtistTracks.kt",
    "chars": 890,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/gaana/GaanaPlaylist.kt",
    "chars": 965,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/gaana/GaanaSong.kt",
    "chars": 854,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/gaana/GaanaTrack.kt",
    "chars": 1590,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/gaana/Genre.kt",
    "chars": 861,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/gaana/Tags.kt",
    "chars": 862,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/saavn/MoreInfo.kt",
    "chars": 207,
    "preview": "package com.shabinder.common.models.saavn\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class MoreInfo("
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/saavn/SaavnAlbum.kt",
    "chars": 397,
    "preview": "package com.shabinder.common.models.saavn\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class SaavnAlbu"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/saavn/SaavnPlaylist.kt",
    "chars": 627,
    "preview": "package com.shabinder.common.models.saavn\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class SaavnPlay"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/saavn/SaavnSearchResult.kt",
    "chars": 387,
    "preview": "package com.shabinder.common.models.saavn\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class SaavnSear"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/saavn/SaavnSong.kt",
    "chars": 1722,
    "preview": "package com.shabinder.common.models.saavn\n\nimport com.shabinder.common.models.AudioQuality\nimport com.shabinder.common.m"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/Badges.kt",
    "chars": 302,
    "preview": "package com.shabinder.common.models.soundcloud\n\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Se"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/CreatorSubscription.kt",
    "chars": 216,
    "preview": "package com.shabinder.common.models.soundcloud\n\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Se"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/Format.kt",
    "chars": 316,
    "preview": "package com.shabinder.common.models.soundcloud\n\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Se"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/Media.kt",
    "chars": 179,
    "preview": "package com.shabinder.common.models.soundcloud\n\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class Med"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/Product.kt",
    "chars": 191,
    "preview": "package com.shabinder.common.models.soundcloud\n\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Se"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/PublisherMetadata.kt",
    "chars": 650,
    "preview": "package com.shabinder.common.models.soundcloud\n\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Se"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/Transcoding.kt",
    "chars": 656,
    "preview": "package com.shabinder.common.models.soundcloud\n\n\nimport com.shabinder.common.models.AudioFormat\nimport kotlinx.serializa"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/User.kt",
    "chars": 1077,
    "preview": "package com.shabinder.common.models.soundcloud\n\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Se"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/Visual.kt",
    "chars": 311,
    "preview": "package com.shabinder.common.models.soundcloud\n\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Se"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/Visuals.kt",
    "chars": 301,
    "preview": "package com.shabinder.common.models.soundcloud\n\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Se"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/soundcloud/resolvemodel/SoundCloudResolveResponseBase.kt",
    "chars": 6312,
    "preview": "package com.shabinder.common.models.soundcloud.resolvemodel\n\nimport com.shabinder.common.models.AudioFormat\nimport com.s"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/Album.kt",
    "chars": 1514,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/Artist.kt",
    "chars": 1020,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/Copyright.kt",
    "chars": 882,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/Episodes.kt",
    "chars": 1334,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/Followers.kt",
    "chars": 880,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/Image.kt",
    "chars": 904,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/LinkedTrack.kt",
    "chars": 995,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/PagingObjectPlaylistTrack.kt",
    "chars": 1049,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/PagingObjectTrack.kt",
    "chars": 1033,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/Playlist.kt",
    "chars": 1426,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/PlaylistTrack.kt",
    "chars": 963,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/Source.kt",
    "chars": 830,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/SpotifyCredentials.kt",
    "chars": 264,
    "preview": "package com.shabinder.common.models.spotify\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class Spotify"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/TokenData.kt",
    "chars": 971,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/Track.kt",
    "chars": 1558,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/UserPrivate.kt",
    "chars": 1174,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/spotify/UserPublic.kt",
    "chars": 1108,
    "preview": "/*\n * Copyright (c)  2021  Shabinder Singh\n * This program is free software: you can redistribute it and/or modify\n * it"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/wynk/AlbumRefWynk.kt",
    "chars": 925,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  },
  {
    "path": "common/data-models/src/commonMain/kotlin/com/shabinder/common/models/wynk/HtDataWynk.kt",
    "chars": 878,
    "preview": "/*\n *  * Copyright (c)  2021  Shabinder Singh\n *  * This program is free software: you can redistribute it and/or modify"
  }
]

// ... and 248 more files (download for full content)

About this extraction

This page contains the full source code of the Shabinder/SpotiFlyer GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 448 files (980.6 KB), approximately 260.6k tokens, and a symbol index with 49 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!