mirror of
https://github.com/NeoApplications/Neo-Store.git
synced 2025-03-14 10:17:08 +00:00
Clean up
This commit is contained in:
@ -52,6 +52,7 @@ import org.koin.dsl.koinConfiguration
|
||||
import java.lang.ref.WeakReference
|
||||
import java.net.Proxy
|
||||
|
||||
@OptIn(KoinExperimentalAPI::class)
|
||||
class MainApplication : Application(), SingletonImageLoader.Factory, KoinStartup {
|
||||
|
||||
val db: DatabaseX by inject()
|
||||
@ -114,7 +115,6 @@ class MainApplication : Application(), SingletonImageLoader.Factory, KoinStartup
|
||||
}
|
||||
}
|
||||
|
||||
@KoinExperimentalAPI
|
||||
override fun onKoinStartup() = koinConfiguration {
|
||||
androidLogger()
|
||||
androidContext(this@MainApplication)
|
||||
|
@ -102,24 +102,6 @@ interface ProductDao : BaseDao<Product> {
|
||||
@RawQuery
|
||||
fun queryObject(query: SupportSQLiteQuery): List<Product>
|
||||
|
||||
fun queryObject(request: Request): List<Product> = queryObject(
|
||||
buildProductQuery(
|
||||
installed = request.installed,
|
||||
updates = request.updates,
|
||||
section = request.section,
|
||||
filteredOutRepos = request.filteredOutRepos,
|
||||
category = request.category,
|
||||
filteredAntiFeatures = request.filteredAntiFeatures,
|
||||
filteredLicenses = request.filteredLicenses,
|
||||
order = request.order,
|
||||
ascending = request.ascending,
|
||||
numberOfItems = request.numberOfItems,
|
||||
updateCategory = request.updateCategory,
|
||||
targetSdkVersion = request.targetSDK,
|
||||
minSdkVersion = request.minSDK,
|
||||
)
|
||||
)
|
||||
|
||||
@Transaction
|
||||
fun queryObject(
|
||||
installed: Boolean, updates: Boolean,
|
||||
|
Reference in New Issue
Block a user