Fix ktlint imports

This commit is contained in:
Lucas Lima 2020-03-08 14:44:30 -03:00
parent 574f88b96d
commit ca5f8c380b
No known key found for this signature in database
GPG key ID: C828A958035D9C34
9 changed files with 35 additions and 11 deletions

View file

@ -2,4 +2,4 @@
indent_size=4 indent_size=4
insert_final_newline=true insert_final_newline=true
max_line_length=120 max_line_length=120
disabled_rules=import-ordering,no-wildcard-imports disabled_rules=import-ordering

View file

@ -3,7 +3,12 @@ package dev.lucasnlm.antimine.share
import android.content.ActivityNotFoundException import android.content.ActivityNotFoundException
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
import android.graphics.* import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.RectF
import android.graphics.Typeface
import androidx.core.content.FileProvider import androidx.core.content.FileProvider
import dev.lucasnlm.antimine.R import dev.lucasnlm.antimine.R
import dev.lucasnlm.antimine.common.level.data.Area import dev.lucasnlm.antimine.common.level.data.Area

View file

@ -6,7 +6,7 @@ import dev.lucasnlm.antimine.common.level.data.GameStats
import dev.lucasnlm.antimine.common.level.data.Mark import dev.lucasnlm.antimine.common.level.data.Mark
import dev.lucasnlm.antimine.common.level.database.data.Save import dev.lucasnlm.antimine.common.level.database.data.Save
import dev.lucasnlm.antimine.common.level.database.data.SaveStatus import dev.lucasnlm.antimine.common.level.database.data.SaveStatus
import java.util.* import java.util.Random
import kotlin.math.floor import kotlin.math.floor
class LevelFacade { class LevelFacade {

View file

@ -1,6 +1,10 @@
package dev.lucasnlm.antimine.common.level.database.dao package dev.lucasnlm.antimine.common.level.database.dao
import androidx.room.* import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import dev.lucasnlm.antimine.common.level.database.data.Save import dev.lucasnlm.antimine.common.level.database.data.Save
@Dao @Dao

View file

@ -1,6 +1,9 @@
package dev.lucasnlm.antimine.common.level.database.data package dev.lucasnlm.antimine.common.level.database.data
import androidx.room.* import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import dev.lucasnlm.antimine.common.level.data.Area import dev.lucasnlm.antimine.common.level.data.Area
import dev.lucasnlm.antimine.common.level.data.LevelSetup import dev.lucasnlm.antimine.common.level.data.LevelSetup
import dev.lucasnlm.antimine.common.level.database.converters.FieldConverter import dev.lucasnlm.antimine.common.level.database.converters.FieldConverter

View file

@ -2,7 +2,7 @@ package dev.lucasnlm.antimine.common.level.view
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.Context import android.content.Context
import android.graphics.* import android.graphics.Canvas
import androidx.core.content.ContextCompat import androidx.core.content.ContextCompat
import android.util.AttributeSet import android.util.AttributeSet
import android.view.View import android.view.View

View file

@ -5,7 +5,10 @@ import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModel
import dev.lucasnlm.antimine.common.level.GameModeFactory import dev.lucasnlm.antimine.common.level.GameModeFactory
import dev.lucasnlm.antimine.common.level.LevelFacade import dev.lucasnlm.antimine.common.level.LevelFacade
import dev.lucasnlm.antimine.common.level.data.* import dev.lucasnlm.antimine.common.level.data.Area
import dev.lucasnlm.antimine.common.level.data.DifficultyPreset
import dev.lucasnlm.antimine.common.level.data.GameEvent
import dev.lucasnlm.antimine.common.level.data.LevelSetup
import dev.lucasnlm.antimine.common.level.database.data.Save import dev.lucasnlm.antimine.common.level.database.data.Save
import dev.lucasnlm.antimine.common.level.repository.IDimensionRepository import dev.lucasnlm.antimine.common.level.repository.IDimensionRepository
import dev.lucasnlm.antimine.common.level.repository.ISavesRepository import dev.lucasnlm.antimine.common.level.repository.ISavesRepository

View file

@ -1,7 +1,14 @@
package dev.lucasnlm.antimine.common.level package dev.lucasnlm.antimine.common.level
import dev.lucasnlm.antimine.common.level.data.* import dev.lucasnlm.antimine.common.level.data.Area
import org.junit.Assert.* import dev.lucasnlm.antimine.common.level.data.LevelSetup
import dev.lucasnlm.antimine.common.level.data.Mark
import dev.lucasnlm.antimine.common.level.data.isFlag
import dev.lucasnlm.antimine.common.level.data.isQuestion
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertNotEquals
import org.junit.Assert.assertTrue
import org.junit.Test import org.junit.Test
class LevelFacadeTest { class LevelFacadeTest {

View file

@ -1,9 +1,11 @@
package dev.lucasnlm.antimine.common.level.utils package dev.lucasnlm.antimine.common.level.utils
import com.nhaarman.mockitokotlin2.mock import com.nhaarman.mockitokotlin2.mock
import org.junit.Assert.* import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test import org.junit.Test
import java.util.* import java.util.Timer
internal class MockClock( internal class MockClock(
private val timer: Timer private val timer: Timer