mirror of
https://github.com/NiciDieNase/chaosflix
synced 2025-02-16 21:18:23 +00:00
ktlint format
This commit is contained in:
parent
6e7d84668e
commit
7090e9a2f3
8 changed files with 4 additions and 9 deletions
|
@ -1,5 +1,4 @@
|
|||
import android.app.Application
|
||||
import de.nicidienase.chaosflix.ChaosflixApplication
|
||||
import de.nicidienase.chaosflix.ChaosflixInitializer
|
||||
|
||||
object LibsInit : ChaosflixInitializer {
|
||||
|
|
|
@ -9,7 +9,6 @@ import de.nicidienase.chaosflix.common.mediadata.entities.streaming.StreamUrl
|
|||
import de.nicidienase.chaosflix.common.userdata.entities.progress.PlaybackProgress
|
||||
import de.nicidienase.chaosflix.common.userdata.entities.progress.PlaybackProgressDao
|
||||
import de.nicidienase.chaosflix.touch.browse.streaming.StreamingItem
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
class CastServiceImpl(
|
||||
|
|
|
@ -73,7 +73,7 @@ class ChaosflixApplication : Application() {
|
|||
single<CastService> { CastServiceImpl(get()) }
|
||||
single { MediaRepository(get(), get(), get()) }
|
||||
|
||||
single<AnalyticsWrapper>{ AnalyticsWrapperImpl }
|
||||
single<AnalyticsWrapper> { AnalyticsWrapperImpl }
|
||||
|
||||
viewModel { BrowseViewModel(get(), get(), get(), get(), get(), get(), get(), get()) }
|
||||
viewModel { PlayerViewModel(get(), get()) }
|
||||
|
@ -84,4 +84,3 @@ class ChaosflixApplication : Application() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,4 +15,4 @@ class ChaosflixStageConfiguration(context: Context) : StageConfiguration {
|
|||
override val streamingApiPath = BuildConfig.STREAMING_API_OFFERS_PATH
|
||||
override val appcenterId: String? = BuildConfig.APPCENTER_ID
|
||||
override val externalFilesDir: File? = android.os.Environment.getExternalStorageDirectory()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ interface StageConfiguration {
|
|||
val streamingApiBaseUrl: String
|
||||
val streamingApiPath: String
|
||||
val appcenterId: String?
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,6 @@ class PreferencesViewModel(
|
|||
) : ViewModel() {
|
||||
private val gson = Gson()
|
||||
|
||||
|
||||
fun cleanNonUserData() {
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
mediaRepository.deleteNonUserData()
|
||||
|
|
|
@ -14,7 +14,7 @@ import androidx.leanback.widget.ListRowPresenter
|
|||
import androidx.leanback.widget.Row
|
||||
import androidx.leanback.widget.SectionRow
|
||||
import androidx.lifecycle.Observer
|
||||
//import de.nicidienase.chaosflix.LeakCanaryLauncher
|
||||
// import de.nicidienase.chaosflix.LeakCanaryLauncher
|
||||
import de.nicidienase.chaosflix.common.mediadata.MediaRepository
|
||||
import de.nicidienase.chaosflix.common.mediadata.entities.recording.persistence.Conference
|
||||
import de.nicidienase.chaosflix.common.mediadata.entities.recording.persistence.ConferenceGroup
|
||||
|
|
|
@ -12,7 +12,6 @@ import androidx.fragment.app.Fragment
|
|||
import androidx.preference.PreferenceManager
|
||||
import de.nicidienase.chaosflix.StageConfiguration
|
||||
import de.nicidienase.chaosflix.common.ChaosflixPreferenceManager
|
||||
import de.nicidienase.chaosflix.touch.BuildConfig
|
||||
import de.nicidienase.chaosflix.touch.R
|
||||
import mehdi.sakout.aboutpage.AboutPage
|
||||
import mehdi.sakout.aboutpage.Element
|
||||
|
|
Loading…
Add table
Reference in a new issue