aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSphericalKat <amolele@gmail.com>2021-05-22 13:41:51 +0530
committerSphericalKat <amolele@gmail.com>2021-05-22 13:41:51 +0530
commit9fcbde2f071a29e6a8c0ebeb5cfa76d4293b2552 (patch)
tree50eb6b3f16ed5f2af68aa61c1c38e9f6abd8568b
parent49d8183917efc950069a1dfccca85a56190913a0 (diff)
chore(format): format code using spotless
Signed-off-by: SphericalKat <amolele@gmail.com>
-rw-r--r--app/build.gradle.kts4
-rw-r--r--app/src/main/java/dev/msfjarvis/aps/util/extensions/AndroidExtensions.kt1
-rw-r--r--app/src/test/java/dev/msfjarvis/aps/util/settings/MigrationsTest.kt1
3 files changed, 1 insertions, 5 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index c12cf566..9be48da0 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -47,9 +47,7 @@ android {
create("free") {}
create("nonFree") {}
}
- testOptions {
- unitTests.isReturnDefaultValues = true
- }
+ testOptions { unitTests.isReturnDefaultValues = true }
}
dependencies {
diff --git a/app/src/main/java/dev/msfjarvis/aps/util/extensions/AndroidExtensions.kt b/app/src/main/java/dev/msfjarvis/aps/util/extensions/AndroidExtensions.kt
index 0c43d6cd..29554127 100644
--- a/app/src/main/java/dev/msfjarvis/aps/util/extensions/AndroidExtensions.kt
+++ b/app/src/main/java/dev/msfjarvis/aps/util/extensions/AndroidExtensions.kt
@@ -22,7 +22,6 @@ import androidx.appcompat.app.AlertDialog
import androidx.core.content.ContextCompat
import androidx.core.content.getSystemService
import androidx.fragment.app.FragmentActivity
-import androidx.preference.PreferenceManager
import androidx.security.crypto.EncryptedSharedPreferences
import androidx.security.crypto.MasterKey
import com.github.ajalt.timberkt.d
diff --git a/app/src/test/java/dev/msfjarvis/aps/util/settings/MigrationsTest.kt b/app/src/test/java/dev/msfjarvis/aps/util/settings/MigrationsTest.kt
index d6c9e6b6..835815e8 100644
--- a/app/src/test/java/dev/msfjarvis/aps/util/settings/MigrationsTest.kt
+++ b/app/src/test/java/dev/msfjarvis/aps/util/settings/MigrationsTest.kt
@@ -10,7 +10,6 @@ package dev.msfjarvis.aps.util.settings
import android.content.Context
import androidx.core.content.edit
import com.github.ivanshafran.sharedpreferencesmock.SPMockBuilder
-import dev.msfjarvis.aps.Application
import dev.msfjarvis.aps.util.extensions.getString
import dev.msfjarvis.aps.util.extensions.sharedPrefs
import org.junit.Assert.assertEquals