Fix ktlint imports
This commit is contained in:
parent
574f88b96d
commit
ca5f8c380b
9 changed files with 35 additions and 11 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue