Update linter

This commit is contained in:
arkon
2022-04-08 15:30:30 -04:00
parent 37100f0937
commit f0eb42e72d
192 changed files with 318 additions and 437 deletions

View File

@@ -36,7 +36,7 @@ import uy.kohesive.injekt.api.get
*/
class ExtensionManager(
private val context: Context,
private val preferences: PreferencesHelper = Injekt.get()
private val preferences: PreferencesHelper = Injekt.get(),
) {
/**

View File

@@ -125,6 +125,6 @@ private data class ExtensionJsonObject(
private data class ExtensionSourceJsonObject(
val name: String,
val id: Long,
val baseUrl: String
val baseUrl: String,
)

View File

@@ -28,7 +28,7 @@ sealed class Extension {
val icon: Drawable?,
val hasUpdate: Boolean = false,
val isObsolete: Boolean = false,
val isUnofficial: Boolean = false
val isUnofficial: Boolean = false,
) : Extension()
data class Available(
@@ -42,7 +42,7 @@ sealed class Extension {
override val hasChangelog: Boolean,
val sources: List<AvailableExtensionSources>,
val apkName: String,
val iconUrl: String
val iconUrl: String,
) : Extension()
data class Untrusted(
@@ -61,5 +61,5 @@ sealed class Extension {
data class AvailableExtensionSources(
val name: String,
val id: Long,
val baseUrl: String
val baseUrl: String,
)

View File

@@ -72,7 +72,7 @@ class ExtensionInstallService : Service() {
context: Context,
downloadId: Long,
uri: Uri,
installer: PreferenceValues.ExtensionInstaller
installer: PreferenceValues.ExtensionInstaller,
): Intent {
return Intent(context, ExtensionInstallService::class.java)
.setDataAndType(uri, ExtensionInstaller.APK_MIME)