Fix ktlint

This commit is contained in:
Lucas Lima 2020-08-20 00:24:50 -03:00
parent 0b03966f80
commit 8b0f8cae1f
No known key found for this signature in database
GPG key ID: C5EEF4C30BFBF8D7
14 changed files with 3 additions and 22 deletions

View file

@ -24,7 +24,6 @@ import kotlinx.android.synthetic.main.activity_tv_game.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel
class TvGameActivity : AppCompatActivity() {

View file

@ -8,7 +8,6 @@ import dev.lucasnlm.antimine.R
import dev.lucasnlm.antimine.about.viewmodel.AboutEvent
import dev.lucasnlm.antimine.about.viewmodel.AboutViewModel
import kotlinx.android.synthetic.main.fragment_about_info.*
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.sharedViewModel
class AboutInfoFragment : Fragment(R.layout.fragment_about_info) {

View file

@ -15,7 +15,6 @@ import dev.lucasnlm.antimine.common.level.models.Minefield
import dev.lucasnlm.antimine.common.level.viewmodel.GameViewModel
import dev.lucasnlm.antimine.custom.viewmodel.CreateGameViewModel
import dev.lucasnlm.antimine.custom.viewmodel.CustomEvent
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.sharedViewModel
import org.koin.androidx.viewmodel.ext.android.viewModel

View file

@ -11,7 +11,6 @@ import dev.lucasnlm.antimine.history.viewmodel.HistoryEvent
import dev.lucasnlm.antimine.history.viewmodel.HistoryViewModel
import kotlinx.android.synthetic.main.fragment_history.*
import kotlinx.coroutines.flow.collect
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel
class HistoryFragment : Fragment(R.layout.fragment_history) {

View file

@ -17,7 +17,6 @@ import dev.lucasnlm.antimine.R
import dev.lucasnlm.antimine.playgames.viewmodel.PlayGamesEvent
import dev.lucasnlm.antimine.playgames.viewmodel.PlayGamesViewModel
import kotlinx.coroutines.flow.collect
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel
class PlayGamesDialogFragment : DialogFragment() {

View file

@ -14,7 +14,6 @@ import kotlinx.android.synthetic.main.activity_stats.*
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel
class StatsActivity : ThematicActivity(R.layout.activity_stats) {

View file

@ -14,7 +14,6 @@ import kotlinx.android.synthetic.main.activity_text.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.withContext
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel
class TextActivity : ThematicActivity(R.layout.activity_text) {

View file

@ -1,7 +1,6 @@
package dev.lucasnlm.antimine.theme
import android.os.Bundle
import androidx.activity.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.GridLayoutManager
import dev.lucasnlm.antimine.R

View file

@ -1,13 +1,8 @@
package dev.lucasnlm.antimine
import android.os.Build
import android.os.SystemClock
import android.view.MotionEvent
import androidx.recyclerview.widget.RecyclerView
import androidx.test.core.app.launchActivity
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.matcher.ViewMatchers.withTagKey
import androidx.test.espresso.matcher.ViewMatchers.withText
import dev.lucasnlm.antimine.di.AppModule
import dev.lucasnlm.antimine.di.TestCommonModule
import dev.lucasnlm.antimine.di.TestLevelModule

View file

@ -3,17 +3,12 @@ package dev.lucasnlm.antimine.di
import android.app.Activity
import android.content.Context
import android.content.Intent
import dev.lucasnlm.antimine.common.BuildConfig
import dev.lucasnlm.antimine.core.analytics.DebugAnalyticsManager
import dev.lucasnlm.antimine.core.analytics.IAnalyticsManager
import dev.lucasnlm.antimine.core.analytics.ProdAnalyticsManager
import dev.lucasnlm.antimine.share.ShareManager
import dev.lucasnlm.external.BillingManager
import dev.lucasnlm.external.ExternalAnalyticsWrapper
import dev.lucasnlm.external.IBillingManager
import dev.lucasnlm.external.IInstantAppManager
import dev.lucasnlm.external.IPlayGamesManager
import dev.lucasnlm.external.PlayGamesManager
import org.koin.dsl.bind
import org.koin.dsl.module
@ -57,7 +52,6 @@ val AppModule = module {
override fun openAchievements(activity: Activity) { }
override fun openLeaderboards(activity: Activity) { }
} } bind IPlayGamesManager::class
single { ShareManager(get()) }

View file

@ -28,5 +28,5 @@ val TestCommonModule = module {
override fun getAllThemes(): List<AppTheme> = listOf(LightTheme)
override fun setTheme(theme: AppTheme) { }
}} bind IThemeRepository::class
} } bind IThemeRepository::class
}

View file

@ -33,4 +33,3 @@ val TestLevelModule = module {
DisabledHapticFeedbackManager()
} bind IHapticFeedbackManager::class
}

View file

@ -27,7 +27,7 @@ import kotlinx.coroutines.launch
class WatchGameActivity : AppCompatActivity(), AmbientModeSupport.AmbientCallbackProvider {
private val viewModel by viewModels<GameViewModel>()
private val viewModel by viewModels<GameViewModel>()
private val ambientController: AmbientModeSupport.AmbientController by lazy {
AmbientModeSupport.attach(this)