Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
PatDyn committed May 2, 2023
1 parent a634906 commit 6f3cfce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.StandardTestDispatcher
import kotlinx.coroutines.test.runTest
import org.eu.exodus_privacy.exodusprivacy.manager.packageinfo.ExodusPackageRepository
import org.eu.exodus_privacy.exodusprivacy.manager.packageinfo.PackageManagerModule
import org.junit.Rule
import org.junit.Test
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import android.os.Build
import android.util.Log
import androidx.core.content.pm.PackageInfoCompat
import androidx.core.graphics.drawable.toBitmap
import kotlinx.coroutines.*
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext
import org.eu.exodus_privacy.exodusprivacy.objects.Application
import org.eu.exodus_privacy.exodusprivacy.objects.Permission
import org.eu.exodus_privacy.exodusprivacy.objects.Source
Expand All @@ -25,7 +26,6 @@ class ExodusPackageRepository @Inject constructor(
private val FDROID = "org.fdroid.fdroid"
private val SYSTEM: String? = null
private val resolution = 96
private val repoJob = SupervisorJob()

suspend fun getApplicationList(
validPackages: List<PackageInfo>
Expand Down Expand Up @@ -93,9 +93,9 @@ class ExodusPackageRepository @Inject constructor(
permissionMap.forEach { permMapData ->
permMapData
.value
.sortedWith(compareBy(String.CASE_INSENSITIVE_ORDER) {
it.permission
})
.sortedWith(
compareBy(String.CASE_INSENSITIVE_ORDER) { it.permission }
)
}
return@withContext permissionMap
}
Expand Down Expand Up @@ -146,12 +146,10 @@ class ExodusPackageRepository @Inject constructor(
val appInfo = packageInfo.applicationInfo
val packageName = packageInfo.packageName
return (
appInfo.flags and ApplicationInfo.FLAG_SYSTEM == 0 ||
appInfo.flags and ApplicationInfo.FLAG_UPDATED_SYSTEM_APP != 0 ||
packageManager.getLaunchIntentForPackage(packageName) != null
) &&
appInfo.enabled
appInfo.flags and ApplicationInfo.FLAG_SYSTEM == 0 ||
appInfo.flags and ApplicationInfo.FLAG_UPDATED_SYSTEM_APP != 0 ||
packageManager.getLaunchIntentForPackage(packageName) != null
) &&
appInfo.enabled
}


}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package org.eu.exodus_privacy.exodusprivacy.manager.packageinfo

import android.annotation.SuppressLint
import android.content.Context
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import dagger.Module
import dagger.Provides
Expand Down

0 comments on commit 6f3cfce

Please sign in to comment.