diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 81d08a6b..5ba8a965 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -8,6 +8,10 @@ plugins { id("org.jetbrains.kotlin.android") } +configure { + disabledRules.set(setOf("package-name")) +} + android { namespace = "org.eu.exodus_privacy.exodusprivacy" compileSdk = 34 @@ -24,7 +28,7 @@ android { ksp { arg( - RoomSchemaArgProvider(File(projectDir, "schemas")), + RoomSchemaArgProvider(File(projectDir, "schemas")) ) } @@ -171,7 +175,7 @@ dependencies { class RoomSchemaArgProvider( @get:InputDirectory @get:PathSensitive(PathSensitivity.RELATIVE) - val schemaDir: File, + val schemaDir: File ) : CommandLineArgumentProvider { override fun asArguments() = listOf("room.schemaLocation=${schemaDir.path}") } diff --git a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/appdetail/AppDetailFragment.kt b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/appdetail/AppDetailFragment.kt index 1c2926d1..ffc89601 100644 --- a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/appdetail/AppDetailFragment.kt +++ b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/appdetail/AppDetailFragment.kt @@ -69,7 +69,10 @@ class AppDetailFragment : Fragment(R.layout.fragment_app_detail) { inflateMenu(R.menu.app_detail_menu) if (app.exodusVersionCode == 0L) { menu.findItem(R.id.openExodusPage)?.isVisible = false - } else menu.findItem(R.id.submitApp)?.isVisible = app.exodusVersionCode != app.versionCode + } else { + menu.findItem(R.id.submitApp)?.isVisible = + app.exodusVersionCode != app.versionCode + } setOnMenuItemClickListener { when (it.itemId) { R.id.openExodusPage -> { diff --git a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/manager/database/ExodusDatabase.kt b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/manager/database/ExodusDatabase.kt index 83f6c957..69354cd9 100644 --- a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/manager/database/ExodusDatabase.kt +++ b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/manager/database/ExodusDatabase.kt @@ -17,7 +17,7 @@ import org.eu.exodus_privacy.exodusprivacy.objects.Constants autoMigrations = [ AutoMigration( from = Constants.previousDatabaseVersion, - to = Constants.currentDatabaseVersion, + to = Constants.currentDatabaseVersion ) ] ) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 58c10625..673c981a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] androidGradlePlugin = "8.1.4" kotlinPlugin = "1.9.22" -gradleKtlint = "11.1.0" +gradleKtlint = "11.5.1" activity-ktx = "1.8.1" androidx-core = "1.5.0" appcompat = "1.6.1"