diff --git a/app/src/main/java/com/shabinder/musicForEveryone/MainActivity.kt b/app/src/main/java/com/shabinder/musicForEveryone/MainActivity.kt index e045dae1..abc67520 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/MainActivity.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/MainActivity.kt @@ -45,24 +45,6 @@ import okhttp3.Response import retrofit2.Retrofit import retrofit2.converter.moshi.MoshiConverterFactory -/* -* Copyright (C) 2020 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 . -*/ - - @Suppress("DEPRECATION") class MainActivity : AppCompatActivity() ,DownloadHelper{ private lateinit var binding: MainActivityBinding diff --git a/app/src/main/java/com/shabinder/musicForEveryone/SharedViewModel.kt b/app/src/main/java/com/shabinder/musicForEveryone/SharedViewModel.kt index 1d5da141..e03219b9 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/SharedViewModel.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/SharedViewModel.kt @@ -31,22 +31,7 @@ import com.shabinder.musicForEveryone.utils.SpotifyService import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job -/* -* Copyright (C) 2020 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 . -*/ + class SharedViewModel : ViewModel() { var intentString = "" var accessToken = MutableLiveData().apply { value = "" } diff --git a/app/src/main/java/com/shabinder/musicForEveryone/downloadHelper/DownloadHelper.kt b/app/src/main/java/com/shabinder/musicForEveryone/downloadHelper/DownloadHelper.kt index 4a0ae33d..0621ff89 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/downloadHelper/DownloadHelper.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/downloadHelper/DownloadHelper.kt @@ -31,24 +31,6 @@ import com.shabinder.musicForEveryone.utils.YoutubeInterface import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import java.io.File -/* -* Copyright (C) 2020 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 . -*/ - - interface DownloadHelper { diff --git a/app/src/main/java/com/shabinder/musicForEveryone/fragments/MainFragment.kt b/app/src/main/java/com/shabinder/musicForEveryone/fragments/MainFragment.kt index e2796572..bd09810e 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/fragments/MainFragment.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/fragments/MainFragment.kt @@ -44,22 +44,7 @@ import com.shabinder.musicForEveryone.utils.bindImage import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import kotlinx.coroutines.withContext -/* -* Copyright (C) 2020 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 . -*/ + @Suppress("DEPRECATION") class MainFragment : Fragment(),DownloadHelper { private lateinit var binding:MainFragmentBinding diff --git a/app/src/main/java/com/shabinder/musicForEveryone/fragments/MainViewModel.kt b/app/src/main/java/com/shabinder/musicForEveryone/fragments/MainViewModel.kt index 89f49133..ded4fe7c 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/fragments/MainViewModel.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/fragments/MainViewModel.kt @@ -20,24 +20,6 @@ package com.shabinder.musicForEveryone.fragments import androidx.lifecycle.ViewModel import com.shabinder.musicForEveryone.models.Track -/* -* Copyright (C) 2020 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 . -*/ - - class MainViewModel: ViewModel() { var searchLink:String = "" var trackList = mutableListOf() diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/Album.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/Album.kt index 9e0f33e3..1101d45c 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/Album.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/Album.kt @@ -16,22 +16,7 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ + data class Album( var album_type: String? = null, var artists: List? = null, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/Artist.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/Artist.kt index 79407342..b4f1bf5d 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/Artist.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/Artist.kt @@ -16,22 +16,6 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ data class Artist( var external_urls: Map? = null, var href: String? = null, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/Copyright.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/Copyright.kt index 4b221512..eaecc105 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/Copyright.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/Copyright.kt @@ -16,22 +16,6 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ data class Copyright( var text: String? = null, var type: String? = null) \ No newline at end of file diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/Episodes.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/Episodes.kt index 5788404e..ef30b900 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/Episodes.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/Episodes.kt @@ -16,22 +16,7 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ + data class Episodes( var audio_preview_url:String?, var description:String?, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/Followers.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/Followers.kt index 0f12f67f..0ebeb1d8 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/Followers.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/Followers.kt @@ -16,22 +16,7 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ + data class Followers( var href: String? = null, var total: Int? = null) \ No newline at end of file diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/Image.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/Image.kt index 76ada9fc..288643fa 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/Image.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/Image.kt @@ -16,22 +16,6 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ data class Image( var width: Int? = null, var height: Int? = null, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/LinkedTrack.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/LinkedTrack.kt index 6f7db6cd..b41d2105 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/LinkedTrack.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/LinkedTrack.kt @@ -16,22 +16,7 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ + data class LinkedTrack( var external_urls: Map? = null, var href: String? = null, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/PagingObject.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/PagingObject.kt index 25b37c1c..9dad1ae9 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/PagingObject.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/PagingObject.kt @@ -16,22 +16,7 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ + data class PagingObject( var href: String? = null, var items: List? = null, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/Playlist.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/Playlist.kt index 54dcbef5..4f8c4a56 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/Playlist.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/Playlist.kt @@ -18,22 +18,6 @@ package com.shabinder.musicForEveryone.models import com.squareup.moshi.Json -/* -* Copyright (C) 2020 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 . -*/ data class Playlist( @Json(name = "collaborative")var is_collaborative: Boolean? = null, var description: String? = null, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/PlaylistTrack.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/PlaylistTrack.kt index 152dd22c..ca1c9447 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/PlaylistTrack.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/PlaylistTrack.kt @@ -16,22 +16,7 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ + data class PlaylistTrack( var added_at: String? = null, var added_by: UserPublic? = null, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/Token.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/Token.kt index c25f33e9..efd4775d 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/Token.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/Token.kt @@ -16,22 +16,7 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ + data class Token( var access_token:String, var token_type:String, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/Track.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/Track.kt index cbc15dbe..b56d8e92 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/Track.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/Track.kt @@ -16,22 +16,7 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ + data class Track( var artists: List? = null, var available_markets: List? = null, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/UserPrivate.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/UserPrivate.kt index c3a0b12f..23dc8c7e 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/UserPrivate.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/UserPrivate.kt @@ -16,22 +16,7 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ + data class UserPrivate( val country:String, var display_name: String, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/models/UserPublic.kt b/app/src/main/java/com/shabinder/musicForEveryone/models/UserPublic.kt index 787a87a6..dbbfe7c9 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/models/UserPublic.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/models/UserPublic.kt @@ -16,22 +16,7 @@ */ package com.shabinder.musicForEveryone.models -/* -* Copyright (C) 2020 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 . -*/ + data class UserPublic( var display_name: String? = null, var external_urls: Map? = null, diff --git a/app/src/main/java/com/shabinder/musicForEveryone/recyclerView/TrackListAdapter.kt b/app/src/main/java/com/shabinder/musicForEveryone/recyclerView/TrackListAdapter.kt index 4e113c27..d1e8d38e 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/recyclerView/TrackListAdapter.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/recyclerView/TrackListAdapter.kt @@ -31,22 +31,7 @@ import com.shabinder.musicForEveryone.fragments.MainFragment import com.shabinder.musicForEveryone.models.Track import com.shabinder.musicForEveryone.utils.bindImage import kotlinx.coroutines.launch -/* -* Copyright (C) 2020 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 . -*/ + class TrackListAdapter:RecyclerView.Adapter(),DownloadHelper { var trackList = listOf() diff --git a/app/src/main/java/com/shabinder/musicForEveryone/splash/SplashScreen.kt b/app/src/main/java/com/shabinder/musicForEveryone/splash/SplashScreen.kt index 4d7e7212..43f60b43 100644 --- a/app/src/main/java/com/shabinder/musicForEveryone/splash/SplashScreen.kt +++ b/app/src/main/java/com/shabinder/musicForEveryone/splash/SplashScreen.kt @@ -24,23 +24,6 @@ import androidx.appcompat.app.AppCompatActivity import com.shabinder.musicForEveryone.MainActivity import com.shabinder.musicForEveryone.R -/* -* Copyright (C) 2020 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 . -*/ - class SplashScreen : AppCompatActivity(){