mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Rename package to com.machaiv3lli.fdroid
This commit is contained in:
parent
b8deae87ea
commit
c482580686
@ -14,11 +14,11 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "com.looker.droidify"
|
namespace = "com.machiav3lli.fdroid"
|
||||||
compileSdk = 32
|
compileSdk = 32
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "com.looker.droidify"
|
applicationId = "com.machiav3lli.fdroid"
|
||||||
minSdk = 23
|
minSdk = 23
|
||||||
targetSdk = 32
|
targetSdk = 32
|
||||||
versionCode = 907
|
versionCode = 907
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.tooling.preview.Preview
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
import com.looker.droidify.ui.compose.pages.app_detail.components.AntiFeaturesGrid
|
import com.machiav3lli.fdroid.ui.compose.pages.app_detail.components.AntiFeaturesGrid
|
||||||
import com.looker.droidify.ui.compose.pages.app_detail.components.PermissionGrid
|
import com.machiav3lli.fdroid.ui.compose.pages.app_detail.components.PermissionGrid
|
||||||
import com.looker.droidify.ui.compose.pages.app_detail.components.ReleaseItem
|
import com.machiav3lli.fdroid.ui.compose.pages.app_detail.components.ReleaseItem
|
||||||
import com.looker.droidify.ui.compose.theme.AppTheme
|
import com.machiav3lli.fdroid.ui.compose.theme.AppTheme
|
||||||
import com.looker.droidify.ui.compose.utils.CustomChip
|
import com.machiav3lli.fdroid.ui.compose.utils.CustomChip
|
||||||
import com.looker.droidify.utility.SampleData
|
import com.machiav3lli.fdroid.utility.SampleData
|
||||||
|
|
||||||
@Preview
|
@Preview
|
||||||
@Composable
|
@Composable
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.app_detail
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify
|
package com.machiav3lli.fdroid
|
||||||
|
|
||||||
const val NOTIFICATION_CHANNEL_SYNCING = "syncing"
|
const val NOTIFICATION_CHANNEL_SYNCING = "syncing"
|
||||||
const val NOTIFICATION_CHANNEL_UPDATES = "updates"
|
const val NOTIFICATION_CHANNEL_UPDATES = "updates"
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify
|
package com.machiav3lli.fdroid
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
@ -13,34 +13,45 @@ import android.content.IntentFilter
|
|||||||
import android.os.BatteryManager
|
import android.os.BatteryManager
|
||||||
import coil.ImageLoader
|
import coil.ImageLoader
|
||||||
import coil.ImageLoaderFactory
|
import coil.ImageLoaderFactory
|
||||||
import com.looker.droidify.content.Cache
|
import com.machiav3lli.fdroid.content.Cache
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.database.DatabaseX
|
import com.machiav3lli.fdroid.database.DatabaseX
|
||||||
import com.looker.droidify.index.RepositoryUpdater
|
import com.machiav3lli.fdroid.index.RepositoryUpdater
|
||||||
import com.looker.droidify.network.CoilDownloader
|
import com.machiav3lli.fdroid.network.CoilDownloader
|
||||||
import com.looker.droidify.network.Downloader
|
import com.machiav3lli.fdroid.network.Downloader
|
||||||
import com.looker.droidify.service.Connection
|
import com.machiav3lli.fdroid.service.Connection
|
||||||
import com.looker.droidify.service.PackageChangedReceiver
|
import com.machiav3lli.fdroid.service.PackageChangedReceiver
|
||||||
import com.looker.droidify.service.SyncService
|
import com.machiav3lli.fdroid.service.SyncService
|
||||||
import com.looker.droidify.ui.activities.MainActivityX
|
import com.machiav3lli.fdroid.ui.activities.MainActivityX
|
||||||
import com.looker.droidify.utility.Utils.setLanguage
|
import com.machiav3lli.fdroid.utility.Utils.setLanguage
|
||||||
import com.looker.droidify.utility.Utils.toInstalledItem
|
import com.machiav3lli.fdroid.utility.Utils.toInstalledItem
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
import java.lang.ref.WeakReference
|
||||||
import java.net.InetSocketAddress
|
import java.net.InetSocketAddress
|
||||||
import java.net.Proxy
|
import java.net.Proxy
|
||||||
import kotlin.time.Duration.Companion.hours
|
import kotlin.time.Duration.Companion.minutes
|
||||||
|
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
class MainApplication : Application(), ImageLoaderFactory {
|
class MainApplication : Application(), ImageLoaderFactory {
|
||||||
|
|
||||||
lateinit var db: DatabaseX
|
lateinit var db: DatabaseX
|
||||||
|
//lateinit var wm: WorksManager
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
private var appRef: WeakReference<MainApplication> = WeakReference(null)
|
||||||
|
private val neo_store: MainApplication get() = appRef.get()!!
|
||||||
|
|
||||||
|
//val wm: WorksManager get() = neo_store.wm
|
||||||
|
//val db: DatabaseX get() = neo_store.db
|
||||||
|
}
|
||||||
|
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
|
appRef = WeakReference(this)
|
||||||
|
|
||||||
db = DatabaseX.getInstance(applicationContext)
|
db = DatabaseX.getInstance(applicationContext)
|
||||||
Preferences.init(this)
|
Preferences.init(this)
|
||||||
@ -52,6 +63,8 @@ class MainApplication : Application(), ImageLoaderFactory {
|
|||||||
forceSyncAll()
|
forceSyncAll()
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
//wm = WorksManager(applicationContext)
|
||||||
|
//wm.prune()
|
||||||
Cache.cleanup(this)
|
Cache.cleanup(this)
|
||||||
updateSyncJob(false)
|
updateSyncJob(false)
|
||||||
}
|
}
|
||||||
@ -168,7 +181,7 @@ class MainApplication : Application(), ImageLoaderFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun autoSync(jobScheduler: JobScheduler, connectionType: Int) {
|
private fun autoSync(jobScheduler: JobScheduler, connectionType: Int) {
|
||||||
val period = 12.hours.inWholeMilliseconds
|
val period = 5.minutes.inWholeMilliseconds
|
||||||
jobScheduler.schedule(
|
jobScheduler.schedule(
|
||||||
JobInfo
|
JobInfo
|
||||||
.Builder(
|
.Builder(
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify
|
package com.machiav3lli.fdroid
|
||||||
|
|
||||||
sealed class Resource<T>(val data: T? = null, val message: String? = null) {
|
sealed class Resource<T>(val data: T? = null, val message: String? = null) {
|
||||||
class Loading<T>(data: T? = null) : Resource<T>(data)
|
class Loading<T>(data: T? = null) : Resource<T>(data)
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.content
|
package com.machiav3lli.fdroid.content
|
||||||
|
|
||||||
import android.content.ContentProvider
|
import android.content.ContentProvider
|
||||||
import android.content.ContentValues
|
import android.content.ContentValues
|
||||||
@ -9,7 +9,7 @@ import android.net.Uri
|
|||||||
import android.os.ParcelFileDescriptor
|
import android.os.ParcelFileDescriptor
|
||||||
import android.provider.OpenableColumns
|
import android.provider.OpenableColumns
|
||||||
import android.system.Os
|
import android.system.Os
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import kotlin.concurrent.thread
|
import kotlin.concurrent.thread
|
@ -1,13 +1,13 @@
|
|||||||
package com.looker.droidify.content
|
package com.machiav3lli.fdroid.content
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import com.looker.droidify.PREFS_LANGUAGE
|
import com.machiav3lli.fdroid.PREFS_LANGUAGE
|
||||||
import com.looker.droidify.PREFS_LANGUAGE_DEFAULT
|
import com.machiav3lli.fdroid.PREFS_LANGUAGE_DEFAULT
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.entity.Order
|
import com.machiav3lli.fdroid.entity.Order
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.flow.MutableSharedFlow
|
import kotlinx.coroutines.flow.MutableSharedFlow
|
@ -1,10 +1,10 @@
|
|||||||
package com.looker.droidify.database
|
package com.machiav3lli.fdroid.database
|
||||||
|
|
||||||
import androidx.room.TypeConverter
|
import androidx.room.TypeConverter
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.entity.Author
|
import com.machiav3lli.fdroid.entity.Author
|
||||||
import com.looker.droidify.entity.Donate
|
import com.machiav3lli.fdroid.entity.Donate
|
||||||
import com.looker.droidify.entity.Screenshot
|
import com.machiav3lli.fdroid.entity.Screenshot
|
||||||
|
|
||||||
object Converters {
|
object Converters {
|
||||||
@TypeConverter
|
@TypeConverter
|
@ -1,27 +1,27 @@
|
|||||||
package com.looker.droidify.database
|
package com.machiav3lli.fdroid.database
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import androidx.room.Database
|
import androidx.room.Database
|
||||||
import androidx.room.Room
|
import androidx.room.Room
|
||||||
import androidx.room.RoomDatabase
|
import androidx.room.RoomDatabase
|
||||||
import androidx.room.TypeConverters
|
import androidx.room.TypeConverters
|
||||||
import com.looker.droidify.database.dao.CategoryDao
|
import com.machiav3lli.fdroid.database.dao.CategoryDao
|
||||||
import com.looker.droidify.database.dao.CategoryTempDao
|
import com.machiav3lli.fdroid.database.dao.CategoryTempDao
|
||||||
import com.looker.droidify.database.dao.ExtrasDao
|
import com.machiav3lli.fdroid.database.dao.ExtrasDao
|
||||||
import com.looker.droidify.database.dao.InstalledDao
|
import com.machiav3lli.fdroid.database.dao.InstalledDao
|
||||||
import com.looker.droidify.database.dao.ProductDao
|
import com.machiav3lli.fdroid.database.dao.ProductDao
|
||||||
import com.looker.droidify.database.dao.ProductTempDao
|
import com.machiav3lli.fdroid.database.dao.ProductTempDao
|
||||||
import com.looker.droidify.database.dao.ReleaseDao
|
import com.machiav3lli.fdroid.database.dao.ReleaseDao
|
||||||
import com.looker.droidify.database.dao.RepositoryDao
|
import com.machiav3lli.fdroid.database.dao.RepositoryDao
|
||||||
import com.looker.droidify.database.entity.Category
|
import com.machiav3lli.fdroid.database.entity.Category
|
||||||
import com.looker.droidify.database.entity.CategoryTemp
|
import com.machiav3lli.fdroid.database.entity.CategoryTemp
|
||||||
import com.looker.droidify.database.entity.Extras
|
import com.machiav3lli.fdroid.database.entity.Extras
|
||||||
import com.looker.droidify.database.entity.Installed
|
import com.machiav3lli.fdroid.database.entity.Installed
|
||||||
import com.looker.droidify.database.entity.Product
|
import com.machiav3lli.fdroid.database.entity.Product
|
||||||
import com.looker.droidify.database.entity.ProductTemp
|
import com.machiav3lli.fdroid.database.entity.ProductTemp
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.database.entity.Repository.Companion.defaultRepositories
|
import com.machiav3lli.fdroid.database.entity.Repository.Companion.defaultRepositories
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.database
|
package com.machiav3lli.fdroid.database
|
||||||
|
|
||||||
class QueryBuilder {
|
class QueryBuilder {
|
||||||
companion object {
|
companion object {
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.database.dao
|
package com.machiav3lli.fdroid.database.dao
|
||||||
|
|
||||||
import androidx.room.*
|
import androidx.room.*
|
||||||
|
|
@ -1,10 +1,10 @@
|
|||||||
package com.looker.droidify.database.dao
|
package com.machiav3lli.fdroid.database.dao
|
||||||
|
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import com.looker.droidify.database.entity.Category
|
import com.machiav3lli.fdroid.database.entity.Category
|
||||||
import com.looker.droidify.database.entity.CategoryTemp
|
import com.machiav3lli.fdroid.database.entity.CategoryTemp
|
||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
interface CategoryDao : BaseDao<Category> {
|
interface CategoryDao : BaseDao<Category> {
|
@ -1,9 +1,9 @@
|
|||||||
package com.looker.droidify.database.dao
|
package com.machiav3lli.fdroid.database.dao
|
||||||
|
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import com.looker.droidify.database.entity.Installed
|
import com.machiav3lli.fdroid.database.entity.Installed
|
||||||
|
|
||||||
// TODO make sure that apps that not uninstalled by Droid-ify still get removed
|
// TODO make sure that apps that not uninstalled by Droid-ify still get removed
|
||||||
@Dao
|
@Dao
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.database.dao
|
package com.machiav3lli.fdroid.database.dao
|
||||||
|
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
@ -8,51 +8,51 @@ import androidx.room.RawQuery
|
|||||||
import androidx.room.Transaction
|
import androidx.room.Transaction
|
||||||
import androidx.sqlite.db.SimpleSQLiteQuery
|
import androidx.sqlite.db.SimpleSQLiteQuery
|
||||||
import androidx.sqlite.db.SupportSQLiteQuery
|
import androidx.sqlite.db.SupportSQLiteQuery
|
||||||
import com.looker.droidify.ROW_ADDED
|
import com.machiav3lli.fdroid.ROW_ADDED
|
||||||
import com.looker.droidify.ROW_ANTIFEATURES
|
import com.machiav3lli.fdroid.ROW_ANTIFEATURES
|
||||||
import com.looker.droidify.ROW_CAN_UPDATE
|
import com.machiav3lli.fdroid.ROW_CAN_UPDATE
|
||||||
import com.looker.droidify.ROW_CATEGORIES
|
import com.machiav3lli.fdroid.ROW_CATEGORIES
|
||||||
import com.looker.droidify.ROW_COMPATIBLE
|
import com.machiav3lli.fdroid.ROW_COMPATIBLE
|
||||||
import com.looker.droidify.ROW_DESCRIPTION
|
import com.machiav3lli.fdroid.ROW_DESCRIPTION
|
||||||
import com.looker.droidify.ROW_DONATES
|
import com.machiav3lli.fdroid.ROW_DONATES
|
||||||
import com.looker.droidify.ROW_ENABLED
|
import com.machiav3lli.fdroid.ROW_ENABLED
|
||||||
import com.looker.droidify.ROW_ICON
|
import com.machiav3lli.fdroid.ROW_ICON
|
||||||
import com.looker.droidify.ROW_ID
|
import com.machiav3lli.fdroid.ROW_ID
|
||||||
import com.looker.droidify.ROW_IGNORED_VERSION
|
import com.machiav3lli.fdroid.ROW_IGNORED_VERSION
|
||||||
import com.looker.droidify.ROW_IGNORE_UPDATES
|
import com.machiav3lli.fdroid.ROW_IGNORE_UPDATES
|
||||||
import com.looker.droidify.ROW_LABEL
|
import com.machiav3lli.fdroid.ROW_LABEL
|
||||||
import com.looker.droidify.ROW_LICENSES
|
import com.machiav3lli.fdroid.ROW_LICENSES
|
||||||
import com.looker.droidify.ROW_MATCH_RANK
|
import com.machiav3lli.fdroid.ROW_MATCH_RANK
|
||||||
import com.looker.droidify.ROW_METADATA_ICON
|
import com.machiav3lli.fdroid.ROW_METADATA_ICON
|
||||||
import com.looker.droidify.ROW_PACKAGE_NAME
|
import com.machiav3lli.fdroid.ROW_PACKAGE_NAME
|
||||||
import com.looker.droidify.ROW_RELEASES
|
import com.machiav3lli.fdroid.ROW_RELEASES
|
||||||
import com.looker.droidify.ROW_REPOSITORY_ID
|
import com.machiav3lli.fdroid.ROW_REPOSITORY_ID
|
||||||
import com.looker.droidify.ROW_SCREENSHOTS
|
import com.machiav3lli.fdroid.ROW_SCREENSHOTS
|
||||||
import com.looker.droidify.ROW_SIGNATURE
|
import com.machiav3lli.fdroid.ROW_SIGNATURE
|
||||||
import com.looker.droidify.ROW_SIGNATURES
|
import com.machiav3lli.fdroid.ROW_SIGNATURES
|
||||||
import com.looker.droidify.ROW_SUMMARY
|
import com.machiav3lli.fdroid.ROW_SUMMARY
|
||||||
import com.looker.droidify.ROW_UPDATED
|
import com.machiav3lli.fdroid.ROW_UPDATED
|
||||||
import com.looker.droidify.ROW_VERSION_CODE
|
import com.machiav3lli.fdroid.ROW_VERSION_CODE
|
||||||
import com.looker.droidify.TABLE_CATEGORY
|
import com.machiav3lli.fdroid.TABLE_CATEGORY
|
||||||
import com.looker.droidify.TABLE_CATEGORY_NAME
|
import com.machiav3lli.fdroid.TABLE_CATEGORY_NAME
|
||||||
import com.looker.droidify.TABLE_EXTRAS
|
import com.machiav3lli.fdroid.TABLE_EXTRAS
|
||||||
import com.looker.droidify.TABLE_EXTRAS_NAME
|
import com.machiav3lli.fdroid.TABLE_EXTRAS_NAME
|
||||||
import com.looker.droidify.TABLE_INSTALLED
|
import com.machiav3lli.fdroid.TABLE_INSTALLED
|
||||||
import com.looker.droidify.TABLE_INSTALLED_NAME
|
import com.machiav3lli.fdroid.TABLE_INSTALLED_NAME
|
||||||
import com.looker.droidify.TABLE_PRODUCT
|
import com.machiav3lli.fdroid.TABLE_PRODUCT
|
||||||
import com.looker.droidify.TABLE_PRODUCT_NAME
|
import com.machiav3lli.fdroid.TABLE_PRODUCT_NAME
|
||||||
import com.looker.droidify.TABLE_REPOSITORY
|
import com.machiav3lli.fdroid.TABLE_REPOSITORY
|
||||||
import com.looker.droidify.TABLE_REPOSITORY_NAME
|
import com.machiav3lli.fdroid.TABLE_REPOSITORY_NAME
|
||||||
import com.looker.droidify.database.QueryBuilder
|
import com.machiav3lli.fdroid.database.QueryBuilder
|
||||||
import com.looker.droidify.database.entity.CategoryTemp
|
import com.machiav3lli.fdroid.database.entity.CategoryTemp
|
||||||
import com.looker.droidify.database.entity.Extras
|
import com.machiav3lli.fdroid.database.entity.Extras
|
||||||
import com.looker.droidify.database.entity.Product
|
import com.machiav3lli.fdroid.database.entity.Product
|
||||||
import com.looker.droidify.database.entity.ProductTemp
|
import com.machiav3lli.fdroid.database.entity.ProductTemp
|
||||||
import com.looker.droidify.database.entity.asProductTemp
|
import com.machiav3lli.fdroid.database.entity.asProductTemp
|
||||||
import com.looker.droidify.entity.Order
|
import com.machiav3lli.fdroid.entity.Order
|
||||||
import com.looker.droidify.entity.Section
|
import com.machiav3lli.fdroid.entity.Section
|
||||||
import com.looker.droidify.entity.UpdateCategory
|
import com.machiav3lli.fdroid.entity.UpdateCategory
|
||||||
import com.looker.droidify.ui.fragments.Request
|
import com.machiav3lli.fdroid.ui.fragments.Request
|
||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
interface ProductDao : BaseDao<Product> {
|
interface ProductDao : BaseDao<Product> {
|
@ -1,8 +1,8 @@
|
|||||||
package com.looker.droidify.database.dao
|
package com.machiav3lli.fdroid.database.dao
|
||||||
|
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
interface ReleaseDao : BaseDao<Release> {
|
interface ReleaseDao : BaseDao<Release> {
|
@ -1,10 +1,10 @@
|
|||||||
package com.looker.droidify.database.dao
|
package com.machiav3lli.fdroid.database.dao
|
||||||
|
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Insert
|
import androidx.room.Insert
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import kotlinx.coroutines.flow.Flow
|
import kotlinx.coroutines.flow.Flow
|
||||||
|
|
||||||
@Dao
|
@Dao
|
@ -1,7 +1,7 @@
|
|||||||
package com.looker.droidify.database.entity
|
package com.machiav3lli.fdroid.database.entity
|
||||||
|
|
||||||
import androidx.room.Entity
|
import androidx.room.Entity
|
||||||
import com.looker.droidify.*
|
import com.machiav3lli.fdroid.*
|
||||||
|
|
||||||
@Entity(
|
@Entity(
|
||||||
tableName = TABLE_CATEGORY_NAME,
|
tableName = TABLE_CATEGORY_NAME,
|
@ -1,8 +1,8 @@
|
|||||||
package com.looker.droidify.database.entity
|
package com.machiav3lli.fdroid.database.entity
|
||||||
|
|
||||||
import androidx.room.Entity
|
import androidx.room.Entity
|
||||||
import androidx.room.PrimaryKey
|
import androidx.room.PrimaryKey
|
||||||
import com.looker.droidify.TABLE_EXTRAS_NAME
|
import com.machiav3lli.fdroid.TABLE_EXTRAS_NAME
|
||||||
|
|
||||||
@Entity(tableName = TABLE_EXTRAS_NAME)
|
@Entity(tableName = TABLE_EXTRAS_NAME)
|
||||||
data class Extras(
|
data class Extras(
|
@ -1,8 +1,8 @@
|
|||||||
package com.looker.droidify.database.entity
|
package com.machiav3lli.fdroid.database.entity
|
||||||
|
|
||||||
import androidx.room.Entity
|
import androidx.room.Entity
|
||||||
import androidx.room.PrimaryKey
|
import androidx.room.PrimaryKey
|
||||||
import com.looker.droidify.TABLE_INSTALLED_NAME
|
import com.machiav3lli.fdroid.TABLE_INSTALLED_NAME
|
||||||
|
|
||||||
@Entity(tableName = TABLE_INSTALLED_NAME)
|
@Entity(tableName = TABLE_INSTALLED_NAME)
|
||||||
data class Installed(
|
data class Installed(
|
@ -1,15 +1,15 @@
|
|||||||
package com.looker.droidify.database.entity
|
package com.machiav3lli.fdroid.database.entity
|
||||||
|
|
||||||
import androidx.room.Entity
|
import androidx.room.Entity
|
||||||
import com.looker.droidify.ROW_PACKAGE_NAME
|
import com.machiav3lli.fdroid.ROW_PACKAGE_NAME
|
||||||
import com.looker.droidify.ROW_REPOSITORY_ID
|
import com.machiav3lli.fdroid.ROW_REPOSITORY_ID
|
||||||
import com.looker.droidify.TABLE_PRODUCT_NAME
|
import com.machiav3lli.fdroid.TABLE_PRODUCT_NAME
|
||||||
import com.looker.droidify.TABLE_PRODUCT_TEMP_NAME
|
import com.machiav3lli.fdroid.TABLE_PRODUCT_TEMP_NAME
|
||||||
import com.looker.droidify.entity.Author
|
import com.machiav3lli.fdroid.entity.Author
|
||||||
import com.looker.droidify.entity.Donate
|
import com.machiav3lli.fdroid.entity.Donate
|
||||||
import com.looker.droidify.entity.ProductItem
|
import com.machiav3lli.fdroid.entity.ProductItem
|
||||||
import com.looker.droidify.entity.Screenshot
|
import com.machiav3lli.fdroid.entity.Screenshot
|
||||||
import com.looker.droidify.utility.extension.text.nullIfEmpty
|
import com.machiav3lli.fdroid.utility.extension.text.nullIfEmpty
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
import kotlinx.serialization.decodeFromString
|
import kotlinx.serialization.decodeFromString
|
||||||
import kotlinx.serialization.encodeToString
|
import kotlinx.serialization.encodeToString
|
@ -1,11 +1,11 @@
|
|||||||
package com.looker.droidify.database.entity
|
package com.machiav3lli.fdroid.database.entity
|
||||||
|
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import androidx.room.Entity
|
import androidx.room.Entity
|
||||||
import com.looker.droidify.ROW_PACKAGE_NAME
|
import com.machiav3lli.fdroid.ROW_PACKAGE_NAME
|
||||||
import com.looker.droidify.ROW_SIGNATURE
|
import com.machiav3lli.fdroid.ROW_SIGNATURE
|
||||||
import com.looker.droidify.ROW_VERSION_CODE
|
import com.machiav3lli.fdroid.ROW_VERSION_CODE
|
||||||
import com.looker.droidify.TABLE_RELEASE_NAME
|
import com.machiav3lli.fdroid.TABLE_RELEASE_NAME
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
import kotlinx.serialization.decodeFromString
|
import kotlinx.serialization.decodeFromString
|
||||||
import kotlinx.serialization.encodeToString
|
import kotlinx.serialization.encodeToString
|
@ -1,10 +1,10 @@
|
|||||||
package com.looker.droidify.database.entity
|
package com.machiav3lli.fdroid.database.entity
|
||||||
|
|
||||||
import androidx.room.ColumnInfo
|
import androidx.room.ColumnInfo
|
||||||
import androidx.room.Entity
|
import androidx.room.Entity
|
||||||
import androidx.room.PrimaryKey
|
import androidx.room.PrimaryKey
|
||||||
import com.looker.droidify.ROW_ID
|
import com.machiav3lli.fdroid.ROW_ID
|
||||||
import com.looker.droidify.TABLE_REPOSITORY_NAME
|
import com.machiav3lli.fdroid.TABLE_REPOSITORY_NAME
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
import kotlinx.serialization.decodeFromString
|
import kotlinx.serialization.decodeFromString
|
||||||
import kotlinx.serialization.encodeToString
|
import kotlinx.serialization.encodeToString
|
@ -1,6 +1,6 @@
|
|||||||
package com.looker.droidify.entity
|
package com.machiav3lli.fdroid.entity
|
||||||
|
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
|
|
||||||
sealed class AntiFeatures(val name: String, val string: Int) {
|
sealed class AntiFeatures(val name: String, val string: Int) {
|
||||||
object Ads : AntiFeatures("Ads", R.string.has_advertising)
|
object Ads : AntiFeatures("Ads", R.string.has_advertising)
|
@ -1,8 +1,8 @@
|
|||||||
package com.looker.droidify.entity
|
package com.machiav3lli.fdroid.entity
|
||||||
|
|
||||||
import androidx.annotation.DrawableRes
|
import androidx.annotation.DrawableRes
|
||||||
import androidx.annotation.StringRes
|
import androidx.annotation.StringRes
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
|
|
||||||
enum class Order(@StringRes val titleResId: Int, @DrawableRes val iconResId: Int) {
|
enum class Order(@StringRes val titleResId: Int, @DrawableRes val iconResId: Int) {
|
||||||
NAME(R.string.name,R.drawable.ic_placeholder),
|
NAME(R.string.name,R.drawable.ic_placeholder),
|
@ -1,8 +1,8 @@
|
|||||||
package com.looker.droidify.entity
|
package com.machiav3lli.fdroid.entity
|
||||||
|
|
||||||
data class ProductItem(
|
data class ProductItem(
|
||||||
var repositoryId: Long = 0,
|
var repositoryId: Long = 0,
|
||||||
var packageName: String = "com.looker.droidify",
|
var packageName: String = "com.machaiv3lli.fdroid",
|
||||||
var name: String = "Droid-ify",
|
var name: String = "Droid-ify",
|
||||||
var summary: String = "A great F-Droid client",
|
var summary: String = "A great F-Droid client",
|
||||||
val icon: String = "",
|
val icon: String = "",
|
@ -1,7 +1,7 @@
|
|||||||
package com.looker.droidify.entity
|
package com.machiav3lli.fdroid.entity
|
||||||
|
|
||||||
import android.os.Parcel
|
import android.os.Parcel
|
||||||
import com.looker.droidify.utility.KParcelable
|
import com.machiav3lli.fdroid.utility.KParcelable
|
||||||
|
|
||||||
sealed class Section : KParcelable {
|
sealed class Section : KParcelable {
|
||||||
object All : Section() {
|
object All : Section() {
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.entity
|
package com.machiav3lli.fdroid.entity
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.pm.PermissionGroupInfo
|
import android.content.pm.PermissionGroupInfo
|
||||||
@ -18,7 +18,7 @@ import androidx.compose.material.icons.rounded.Launch
|
|||||||
import androidx.compose.material.icons.rounded.Share
|
import androidx.compose.material.icons.rounded.Share
|
||||||
import androidx.compose.material.icons.rounded.Tune
|
import androidx.compose.material.icons.rounded.Tune
|
||||||
import androidx.compose.ui.graphics.vector.ImageVector
|
import androidx.compose.ui.graphics.vector.ImageVector
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
import kotlinx.serialization.decodeFromString
|
import kotlinx.serialization.decodeFromString
|
||||||
import kotlinx.serialization.encodeToString
|
import kotlinx.serialization.encodeToString
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.graphics
|
package com.machiav3lli.fdroid.graphics
|
||||||
|
|
||||||
import android.graphics.Canvas
|
import android.graphics.Canvas
|
||||||
import android.graphics.ColorFilter
|
import android.graphics.ColorFilter
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.graphics
|
package com.machiav3lli.fdroid.graphics
|
||||||
|
|
||||||
import android.graphics.Rect
|
import android.graphics.Rect
|
||||||
import android.graphics.drawable.Drawable
|
import android.graphics.drawable.Drawable
|
@ -1,10 +1,10 @@
|
|||||||
package com.looker.droidify.index
|
package com.machiav3lli.fdroid.index
|
||||||
|
|
||||||
import com.looker.droidify.database.entity.Product
|
import com.machiav3lli.fdroid.database.entity.Product
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.entity.Author
|
import com.machiav3lli.fdroid.entity.Author
|
||||||
import com.looker.droidify.entity.Donate
|
import com.machiav3lli.fdroid.entity.Donate
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import org.xml.sax.Attributes
|
import org.xml.sax.Attributes
|
||||||
import org.xml.sax.helpers.DefaultHandler
|
import org.xml.sax.helpers.DefaultHandler
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
@ -1,13 +1,13 @@
|
|||||||
package com.looker.droidify.index
|
package com.machiav3lli.fdroid.index
|
||||||
|
|
||||||
import android.content.ContentValues
|
import android.content.ContentValues
|
||||||
import android.database.sqlite.SQLiteDatabase
|
import android.database.sqlite.SQLiteDatabase
|
||||||
import com.looker.droidify.database.Converters.toByteArray
|
import com.machiav3lli.fdroid.database.Converters.toByteArray
|
||||||
import com.looker.droidify.database.Converters.toReleases
|
import com.machiav3lli.fdroid.database.Converters.toReleases
|
||||||
import com.looker.droidify.database.entity.Product
|
import com.machiav3lli.fdroid.database.entity.Product
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.utility.extension.android.asSequence
|
import com.machiav3lli.fdroid.utility.extension.android.asSequence
|
||||||
import com.looker.droidify.utility.extension.android.execWithResult
|
import com.machiav3lli.fdroid.utility.extension.android.execWithResult
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import java.io.Closeable
|
import java.io.Closeable
|
||||||
import java.io.File
|
import java.io.File
|
@ -1,15 +1,15 @@
|
|||||||
package com.looker.droidify.index
|
package com.machiav3lli.fdroid.index
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonParser
|
import com.fasterxml.jackson.core.JsonParser
|
||||||
import com.fasterxml.jackson.core.JsonToken
|
import com.fasterxml.jackson.core.JsonToken
|
||||||
import com.looker.droidify.database.entity.Product
|
import com.machiav3lli.fdroid.database.entity.Product
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.entity.Author
|
import com.machiav3lli.fdroid.entity.Author
|
||||||
import com.looker.droidify.entity.Donate
|
import com.machiav3lli.fdroid.entity.Donate
|
||||||
import com.looker.droidify.entity.Screenshot
|
import com.machiav3lli.fdroid.entity.Screenshot
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.looker.droidify.utility.extension.json.*
|
import com.machiav3lli.fdroid.utility.extension.json.*
|
||||||
import com.looker.droidify.utility.extension.text.nullIfEmpty
|
import com.machiav3lli.fdroid.utility.extension.text.nullIfEmpty
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
||||||
|
|
||||||
object IndexV1Parser {
|
object IndexV1Parser {
|
@ -1,18 +1,18 @@
|
|||||||
package com.looker.droidify.index
|
package com.machiav3lli.fdroid.index
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import com.looker.droidify.content.Cache
|
import com.machiav3lli.fdroid.content.Cache
|
||||||
import com.looker.droidify.database.DatabaseX
|
import com.machiav3lli.fdroid.database.DatabaseX
|
||||||
import com.looker.droidify.database.entity.Product
|
import com.machiav3lli.fdroid.database.entity.Product
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.network.Downloader
|
import com.machiav3lli.fdroid.network.Downloader
|
||||||
import com.looker.droidify.utility.ProgressInputStream
|
import com.machiav3lli.fdroid.utility.ProgressInputStream
|
||||||
import com.looker.droidify.utility.RxUtils
|
import com.machiav3lli.fdroid.utility.RxUtils
|
||||||
import com.looker.droidify.utility.Utils
|
import com.machiav3lli.fdroid.utility.Utils
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.looker.droidify.utility.extension.text.unhex
|
import com.machiav3lli.fdroid.utility.extension.text.unhex
|
||||||
import io.reactivex.rxjava3.core.Observable
|
import io.reactivex.rxjava3.core.Observable
|
||||||
import io.reactivex.rxjava3.core.Single
|
import io.reactivex.rxjava3.core.Single
|
||||||
import io.reactivex.rxjava3.schedulers.Schedulers
|
import io.reactivex.rxjava3.schedulers.Schedulers
|
@ -1,7 +1,7 @@
|
|||||||
package com.looker.droidify.installer
|
package com.machiav3lli.fdroid.installer
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import com.looker.droidify.utility.Utils.rootInstallerEnabled
|
import com.machiav3lli.fdroid.utility.Utils.rootInstallerEnabled
|
||||||
|
|
||||||
abstract class AppInstaller {
|
abstract class AppInstaller {
|
||||||
abstract val defaultInstaller: BaseInstaller?
|
abstract val defaultInstaller: BaseInstaller?
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.installer
|
package com.machiav3lli.fdroid.installer
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
|
@ -1,12 +1,12 @@
|
|||||||
package com.looker.droidify.installer
|
package com.machiav3lli.fdroid.installer
|
||||||
|
|
||||||
import android.app.PendingIntent
|
import android.app.PendingIntent
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.content.pm.PackageInstaller.SessionParams
|
import android.content.pm.PackageInstaller.SessionParams
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import com.looker.droidify.content.Cache
|
import com.machiav3lli.fdroid.content.Cache
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
import java.io.File
|
import java.io.File
|
@ -1,11 +1,11 @@
|
|||||||
package com.looker.droidify.installer
|
package com.machiav3lli.fdroid.installer
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import androidx.core.net.toUri
|
import androidx.core.net.toUri
|
||||||
import com.looker.droidify.content.Cache
|
import com.machiav3lli.fdroid.content.Cache
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
import java.io.File
|
import java.io.File
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.installer
|
package com.machiav3lli.fdroid.installer
|
||||||
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.installer
|
package com.machiav3lli.fdroid.installer
|
||||||
|
|
||||||
import android.app.NotificationChannel
|
import android.app.NotificationChannel
|
||||||
import android.app.NotificationManager
|
import android.app.NotificationManager
|
||||||
@ -8,13 +8,13 @@ import android.content.pm.PackageInstaller
|
|||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import android.os.IBinder
|
import android.os.IBinder
|
||||||
import androidx.lifecycle.LifecycleService
|
import androidx.lifecycle.LifecycleService
|
||||||
import com.looker.droidify.NOTIFICATION_CHANNEL_INSTALLER
|
import com.machiav3lli.fdroid.NOTIFICATION_CHANNEL_INSTALLER
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.ui.activities.MainActivityX
|
import com.machiav3lli.fdroid.ui.activities.MainActivityX
|
||||||
import com.looker.droidify.utility.Utils
|
import com.machiav3lli.fdroid.utility.Utils
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.looker.droidify.utility.extension.android.notificationManager
|
import com.machiav3lli.fdroid.utility.extension.android.notificationManager
|
||||||
import com.looker.droidify.utility.notifyStatus
|
import com.machiav3lli.fdroid.utility.notifyStatus
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runs during or after a PackageInstaller session in order to handle completion, failure, or
|
* Runs during or after a PackageInstaller session in order to handle completion, failure, or
|
@ -1,10 +1,10 @@
|
|||||||
package com.looker.droidify.installer
|
package com.machiav3lli.fdroid.installer
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import com.looker.droidify.BuildConfig
|
import com.machiav3lli.fdroid.BuildConfig
|
||||||
import com.looker.droidify.content.Cache
|
import com.machiav3lli.fdroid.content.Cache
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.topjohnwu.superuser.Shell
|
import com.topjohnwu.superuser.Shell
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
@ -1,11 +1,11 @@
|
|||||||
package com.looker.droidify.network
|
package com.machiav3lli.fdroid.network
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.entity.Screenshot
|
import com.machiav3lli.fdroid.entity.Screenshot
|
||||||
import com.looker.droidify.utility.extension.text.nullIfEmpty
|
import com.machiav3lli.fdroid.utility.extension.text.nullIfEmpty
|
||||||
import okhttp3.Cache
|
import okhttp3.Cache
|
||||||
import okhttp3.Call
|
import okhttp3.Call
|
||||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
import okhttp3.HttpUrl.Companion.toHttpUrl
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.network
|
package com.machiav3lli.fdroid.network
|
||||||
|
|
||||||
sealed class DownloadResult<T>(
|
sealed class DownloadResult<T>(
|
||||||
val progress: Long? = 0,
|
val progress: Long? = 0,
|
@ -1,7 +1,7 @@
|
|||||||
package com.looker.droidify.network
|
package com.machiav3lli.fdroid.network
|
||||||
|
|
||||||
import com.looker.droidify.utility.ProgressInputStream
|
import com.machiav3lli.fdroid.utility.ProgressInputStream
|
||||||
import com.looker.droidify.utility.RxUtils
|
import com.machiav3lli.fdroid.utility.RxUtils
|
||||||
import io.reactivex.rxjava3.core.Single
|
import io.reactivex.rxjava3.core.Single
|
||||||
import io.reactivex.rxjava3.schedulers.Schedulers
|
import io.reactivex.rxjava3.schedulers.Schedulers
|
||||||
import okhttp3.Cache
|
import okhttp3.Cache
|
@ -1,7 +1,7 @@
|
|||||||
package com.looker.droidify.network
|
package com.machiav3lli.fdroid.network
|
||||||
|
|
||||||
import com.looker.droidify.utility.ProgressInputStream
|
import com.machiav3lli.fdroid.utility.ProgressInputStream
|
||||||
import com.looker.droidify.utility.extension.await
|
import com.machiav3lli.fdroid.utility.extension.await
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.currentCoroutineContext
|
import kotlinx.coroutines.currentCoroutineContext
|
||||||
import kotlinx.coroutines.flow.Flow
|
import kotlinx.coroutines.flow.Flow
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.screen
|
package com.machiav3lli.fdroid.screen
|
||||||
|
|
||||||
import android.content.ActivityNotFoundException
|
import android.content.ActivityNotFoundException
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
@ -9,13 +9,13 @@ import androidx.appcompat.app.AlertDialog
|
|||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import androidx.fragment.app.FragmentManager
|
import androidx.fragment.app.FragmentManager
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.RepoManager
|
import com.machiav3lli.fdroid.RepoManager
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.utility.KParcelable
|
import com.machiav3lli.fdroid.utility.KParcelable
|
||||||
import com.looker.droidify.utility.PackageItemResolver
|
import com.machiav3lli.fdroid.utility.PackageItemResolver
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.looker.droidify.utility.extension.text.nullIfEmpty
|
import com.machiav3lli.fdroid.utility.extension.text.nullIfEmpty
|
||||||
|
|
||||||
class MessageDialog() : DialogFragment() {
|
class MessageDialog() : DialogFragment() {
|
||||||
companion object {
|
companion object {
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.screen
|
package com.machiav3lli.fdroid.screen
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
@ -18,18 +18,18 @@ import androidx.viewpager2.widget.MarginPageTransformer
|
|||||||
import androidx.viewpager2.widget.ViewPager2
|
import androidx.viewpager2.widget.ViewPager2
|
||||||
import coil.load
|
import coil.load
|
||||||
import com.google.android.material.imageview.ShapeableImageView
|
import com.google.android.material.imageview.ShapeableImageView
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.database.DatabaseX
|
import com.machiav3lli.fdroid.database.DatabaseX
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.entity.Screenshot
|
import com.machiav3lli.fdroid.entity.Screenshot
|
||||||
import com.looker.droidify.graphics.PaddingDrawable
|
import com.machiav3lli.fdroid.graphics.PaddingDrawable
|
||||||
import com.looker.droidify.network.CoilDownloader
|
import com.machiav3lli.fdroid.network.CoilDownloader
|
||||||
import com.looker.droidify.utility.RxUtils
|
import com.machiav3lli.fdroid.utility.RxUtils
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.looker.droidify.utility.extension.resources.getColorFromAttr
|
import com.machiav3lli.fdroid.utility.extension.resources.getColorFromAttr
|
||||||
import com.looker.droidify.utility.extension.resources.getDrawableCompat
|
import com.machiav3lli.fdroid.utility.extension.resources.getDrawableCompat
|
||||||
import com.looker.droidify.utility.extension.resources.sizeScaled
|
import com.machiav3lli.fdroid.utility.extension.resources.sizeScaled
|
||||||
import com.looker.droidify.widget.StableRecyclerAdapter
|
import com.machiav3lli.fdroid.widget.StableRecyclerAdapter
|
||||||
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
||||||
import io.reactivex.rxjava3.core.Observable
|
import io.reactivex.rxjava3.core.Observable
|
||||||
import io.reactivex.rxjava3.disposables.Disposable
|
import io.reactivex.rxjava3.disposables.Disposable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.service
|
package com.machiav3lli.fdroid.service
|
||||||
|
|
||||||
import android.content.ComponentName
|
import android.content.ComponentName
|
||||||
import android.content.Context
|
import android.content.Context
|
@ -1,9 +1,9 @@
|
|||||||
package com.looker.droidify.service
|
package com.machiav3lli.fdroid.service
|
||||||
|
|
||||||
import android.app.Service
|
import android.app.Service
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.IBinder
|
import android.os.IBinder
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
|
|
||||||
abstract class ConnectionService<T : IBinder> : Service() {
|
abstract class ConnectionService<T : IBinder> : Service() {
|
||||||
abstract override fun onBind(intent: Intent): T
|
abstract override fun onBind(intent: Intent): T
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.service
|
package com.machiav3lli.fdroid.service
|
||||||
|
|
||||||
import android.app.NotificationChannel
|
import android.app.NotificationChannel
|
||||||
import android.app.NotificationManager
|
import android.app.NotificationManager
|
||||||
@ -6,26 +6,26 @@ import android.app.PendingIntent
|
|||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.view.ContextThemeWrapper
|
import android.view.ContextThemeWrapper
|
||||||
import androidx.core.app.NotificationCompat
|
import androidx.core.app.NotificationCompat
|
||||||
import com.looker.droidify.BuildConfig
|
import com.machiav3lli.fdroid.BuildConfig
|
||||||
import com.looker.droidify.NOTIFICATION_CHANNEL_DOWNLOADING
|
import com.machiav3lli.fdroid.NOTIFICATION_CHANNEL_DOWNLOADING
|
||||||
import com.looker.droidify.NOTIFICATION_ID_DOWNLOADING
|
import com.machiav3lli.fdroid.NOTIFICATION_ID_DOWNLOADING
|
||||||
import com.looker.droidify.NOTIFICATION_ID_SYNCING
|
import com.machiav3lli.fdroid.NOTIFICATION_ID_SYNCING
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Cache
|
import com.machiav3lli.fdroid.content.Cache
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.installer.AppInstaller
|
import com.machiav3lli.fdroid.installer.AppInstaller
|
||||||
import com.looker.droidify.network.Downloader
|
import com.machiav3lli.fdroid.network.Downloader
|
||||||
import com.looker.droidify.utility.Utils
|
import com.machiav3lli.fdroid.utility.Utils
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.looker.droidify.utility.extension.android.notificationManager
|
import com.machiav3lli.fdroid.utility.extension.android.notificationManager
|
||||||
import com.looker.droidify.utility.extension.android.singleSignature
|
import com.machiav3lli.fdroid.utility.extension.android.singleSignature
|
||||||
import com.looker.droidify.utility.extension.android.versionCodeCompat
|
import com.machiav3lli.fdroid.utility.extension.android.versionCodeCompat
|
||||||
import com.looker.droidify.utility.extension.resources.getColorFromAttr
|
import com.machiav3lli.fdroid.utility.extension.resources.getColorFromAttr
|
||||||
import com.looker.droidify.utility.extension.text.formatSize
|
import com.machiav3lli.fdroid.utility.extension.text.formatSize
|
||||||
import com.looker.droidify.utility.extension.text.hex
|
import com.machiav3lli.fdroid.utility.extension.text.hex
|
||||||
import com.looker.droidify.utility.extension.text.nullIfEmpty
|
import com.machiav3lli.fdroid.utility.extension.text.nullIfEmpty
|
||||||
import com.looker.droidify.utility.showNotificationError
|
import com.machiav3lli.fdroid.utility.showNotificationError
|
||||||
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
||||||
import io.reactivex.rxjava3.disposables.Disposable
|
import io.reactivex.rxjava3.disposables.Disposable
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
@ -1,15 +1,15 @@
|
|||||||
package com.looker.droidify.service
|
package com.machiav3lli.fdroid.service
|
||||||
|
|
||||||
import android.content.BroadcastReceiver
|
import android.content.BroadcastReceiver
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import com.looker.droidify.database.DatabaseX
|
import com.machiav3lli.fdroid.database.DatabaseX
|
||||||
import com.looker.droidify.entity.Order
|
import com.machiav3lli.fdroid.entity.Order
|
||||||
import com.looker.droidify.entity.Section
|
import com.machiav3lli.fdroid.entity.Section
|
||||||
import com.looker.droidify.utility.Utils.toInstalledItem
|
import com.machiav3lli.fdroid.utility.Utils.toInstalledItem
|
||||||
import com.looker.droidify.utility.displayUpdatesNotification
|
import com.machiav3lli.fdroid.utility.displayUpdatesNotification
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.looker.droidify.utility.getLaunchActivities
|
import com.machiav3lli.fdroid.utility.getLaunchActivities
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.service
|
package com.machiav3lli.fdroid.service
|
||||||
|
|
||||||
import android.app.NotificationChannel
|
import android.app.NotificationChannel
|
||||||
import android.app.NotificationManager
|
import android.app.NotificationManager
|
||||||
@ -9,27 +9,27 @@ import android.content.Intent
|
|||||||
import android.view.ContextThemeWrapper
|
import android.view.ContextThemeWrapper
|
||||||
import androidx.core.app.NotificationCompat
|
import androidx.core.app.NotificationCompat
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import com.looker.droidify.BuildConfig
|
import com.machiav3lli.fdroid.BuildConfig
|
||||||
import com.looker.droidify.NOTIFICATION_CHANNEL_SYNCING
|
import com.machiav3lli.fdroid.NOTIFICATION_CHANNEL_SYNCING
|
||||||
import com.looker.droidify.NOTIFICATION_CHANNEL_UPDATES
|
import com.machiav3lli.fdroid.NOTIFICATION_CHANNEL_UPDATES
|
||||||
import com.looker.droidify.NOTIFICATION_ID_SYNCING
|
import com.machiav3lli.fdroid.NOTIFICATION_ID_SYNCING
|
||||||
import com.looker.droidify.NOTIFICATION_ID_UPDATES
|
import com.machiav3lli.fdroid.NOTIFICATION_ID_UPDATES
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.database.DatabaseX
|
import com.machiav3lli.fdroid.database.DatabaseX
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.entity.Order
|
import com.machiav3lli.fdroid.entity.Order
|
||||||
import com.looker.droidify.entity.ProductItem
|
import com.machiav3lli.fdroid.entity.ProductItem
|
||||||
import com.looker.droidify.entity.Section
|
import com.machiav3lli.fdroid.entity.Section
|
||||||
import com.looker.droidify.index.RepositoryUpdater
|
import com.machiav3lli.fdroid.index.RepositoryUpdater
|
||||||
import com.looker.droidify.utility.RxUtils
|
import com.machiav3lli.fdroid.utility.RxUtils
|
||||||
import com.looker.droidify.utility.Utils
|
import com.machiav3lli.fdroid.utility.Utils
|
||||||
import com.looker.droidify.utility.displayUpdatesNotification
|
import com.machiav3lli.fdroid.utility.displayUpdatesNotification
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.looker.droidify.utility.extension.android.notificationManager
|
import com.machiav3lli.fdroid.utility.extension.android.notificationManager
|
||||||
import com.looker.droidify.utility.extension.resources.getColorFromAttr
|
import com.machiav3lli.fdroid.utility.extension.resources.getColorFromAttr
|
||||||
import com.looker.droidify.utility.extension.text.formatSize
|
import com.machiav3lli.fdroid.utility.extension.text.formatSize
|
||||||
import com.looker.droidify.utility.showNotificationError
|
import com.machiav3lli.fdroid.utility.showNotificationError
|
||||||
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
||||||
import io.reactivex.rxjava3.disposables.Disposable
|
import io.reactivex.rxjava3.disposables.Disposable
|
||||||
import io.reactivex.rxjava3.schedulers.Schedulers
|
import io.reactivex.rxjava3.schedulers.Schedulers
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.activities
|
package com.machiav3lli.fdroid.ui.activities
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
@ -13,21 +13,21 @@ import androidx.lifecycle.lifecycleScope
|
|||||||
import androidx.navigation.NavController
|
import androidx.navigation.NavController
|
||||||
import androidx.navigation.fragment.NavHostFragment
|
import androidx.navigation.fragment.NavHostFragment
|
||||||
import androidx.navigation.ui.setupWithNavController
|
import androidx.navigation.ui.setupWithNavController
|
||||||
import com.looker.droidify.BuildConfig
|
import com.machiav3lli.fdroid.BuildConfig
|
||||||
import com.looker.droidify.ContextWrapperX
|
import com.machiav3lli.fdroid.ContextWrapperX
|
||||||
import com.looker.droidify.MainApplication
|
import com.machiav3lli.fdroid.MainApplication
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.databinding.ActivityMainXBinding
|
import com.machiav3lli.fdroid.databinding.ActivityMainXBinding
|
||||||
import com.looker.droidify.installer.AppInstaller
|
import com.machiav3lli.fdroid.installer.AppInstaller
|
||||||
import com.looker.droidify.service.Connection
|
import com.machiav3lli.fdroid.service.Connection
|
||||||
import com.looker.droidify.service.SyncService
|
import com.machiav3lli.fdroid.service.SyncService
|
||||||
import com.looker.droidify.ui.fragments.AppSheetX
|
import com.machiav3lli.fdroid.ui.fragments.AppSheetX
|
||||||
import com.looker.droidify.ui.fragments.MainNavFragmentX
|
import com.machiav3lli.fdroid.ui.fragments.MainNavFragmentX
|
||||||
import com.looker.droidify.ui.fragments.Source
|
import com.machiav3lli.fdroid.ui.fragments.Source
|
||||||
import com.looker.droidify.ui.viewmodels.MainActivityViewModelX
|
import com.machiav3lli.fdroid.ui.viewmodels.MainActivityViewModelX
|
||||||
import com.looker.droidify.utility.extension.text.nullIfEmpty
|
import com.machiav3lli.fdroid.utility.extension.text.nullIfEmpty
|
||||||
import com.looker.droidify.utility.showBatteryOptimizationDialog
|
import com.machiav3lli.fdroid.utility.showBatteryOptimizationDialog
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import kotlin.properties.Delegates
|
import kotlin.properties.Delegates
|
||||||
|
|
@ -1,9 +1,8 @@
|
|||||||
package com.looker.droidify.ui.activities
|
package com.machiav3lli.fdroid.ui.activities
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.*
|
|
||||||
import android.view.inputmethod.InputMethodManager
|
import android.view.inputmethod.InputMethodManager
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
@ -13,18 +12,18 @@ import androidx.navigation.ui.AppBarConfiguration
|
|||||||
import androidx.navigation.ui.setupActionBarWithNavController
|
import androidx.navigation.ui.setupActionBarWithNavController
|
||||||
import androidx.navigation.ui.setupWithNavController
|
import androidx.navigation.ui.setupWithNavController
|
||||||
import com.google.android.material.appbar.MaterialToolbar
|
import com.google.android.material.appbar.MaterialToolbar
|
||||||
import com.looker.droidify.BuildConfig
|
import com.machiav3lli.fdroid.BuildConfig
|
||||||
import com.looker.droidify.ContextWrapperX
|
import com.machiav3lli.fdroid.ContextWrapperX
|
||||||
import com.looker.droidify.MainApplication
|
import com.machiav3lli.fdroid.MainApplication
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.databinding.ActivityPrefsXBinding
|
import com.machiav3lli.fdroid.databinding.ActivityPrefsXBinding
|
||||||
import com.looker.droidify.installer.AppInstaller
|
import com.machiav3lli.fdroid.installer.AppInstaller
|
||||||
import com.looker.droidify.service.Connection
|
import com.machiav3lli.fdroid.service.Connection
|
||||||
import com.looker.droidify.service.SyncService
|
import com.machiav3lli.fdroid.service.SyncService
|
||||||
import com.looker.droidify.ui.fragments.MainNavFragmentX
|
import com.machiav3lli.fdroid.ui.fragments.MainNavFragmentX
|
||||||
import com.looker.droidify.ui.fragments.Source
|
import com.machiav3lli.fdroid.ui.fragments.Source
|
||||||
import com.looker.droidify.utility.extension.text.nullIfEmpty
|
import com.machiav3lli.fdroid.utility.extension.text.nullIfEmpty
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
// TODO clean up the bloat
|
// TODO clean up the bloat
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose
|
package com.machiav3lli.fdroid.ui.compose
|
||||||
|
|
||||||
import androidx.compose.foundation.ExperimentalFoundationApi
|
import androidx.compose.foundation.ExperimentalFoundationApi
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
@ -18,14 +18,14 @@ import androidx.compose.ui.Modifier
|
|||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.database.entity.Installed
|
import com.machiav3lli.fdroid.database.entity.Installed
|
||||||
import com.looker.droidify.database.entity.Product
|
import com.machiav3lli.fdroid.database.entity.Product
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.entity.ProductItem
|
import com.machiav3lli.fdroid.entity.ProductItem
|
||||||
import com.looker.droidify.ui.compose.components.ProductCard
|
import com.machiav3lli.fdroid.ui.compose.components.ProductCard
|
||||||
import com.looker.droidify.ui.compose.components.ProductsListItem
|
import com.machiav3lli.fdroid.ui.compose.components.ProductsListItem
|
||||||
import com.looker.droidify.ui.compose.components.RepositoryItem
|
import com.machiav3lli.fdroid.ui.compose.components.RepositoryItem
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun ProductsVerticalRecycler(
|
fun ProductsVerticalRecycler(
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.components
|
package com.machiav3lli.fdroid.ui.compose.components
|
||||||
|
|
||||||
import androidx.compose.animation.*
|
import androidx.compose.animation.*
|
||||||
import androidx.compose.foundation.layout.*
|
import androidx.compose.foundation.layout.*
|
||||||
@ -8,8 +8,8 @@ import androidx.compose.ui.Alignment
|
|||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.entity.ActionState
|
import com.machiav3lli.fdroid.entity.ActionState
|
||||||
import com.looker.droidify.entity.ComponentState
|
import com.machiav3lli.fdroid.entity.ComponentState
|
||||||
|
|
||||||
@OptIn(ExperimentalAnimationApi::class)
|
@OptIn(ExperimentalAnimationApi::class)
|
||||||
@Composable
|
@Composable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.components
|
package com.machiav3lli.fdroid.ui.compose.components
|
||||||
|
|
||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.Spacer
|
import androidx.compose.foundation.layout.Spacer
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.components
|
package com.machiav3lli.fdroid.ui.compose.components
|
||||||
|
|
||||||
import androidx.compose.animation.AnimatedVisibility
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
import androidx.compose.animation.animateContentSize
|
import androidx.compose.animation.animateContentSize
|
||||||
@ -11,7 +11,7 @@ import androidx.compose.ui.Alignment
|
|||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.res.painterResource
|
import androidx.compose.ui.res.painterResource
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.components
|
package com.machiav3lli.fdroid.ui.compose.components
|
||||||
|
|
||||||
import androidx.compose.foundation.layout.*
|
import androidx.compose.foundation.layout.*
|
||||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||||
@ -13,10 +13,10 @@ import androidx.compose.ui.Alignment
|
|||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.text.style.TextOverflow
|
import androidx.compose.ui.text.style.TextOverflow
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.entity.ProductItem
|
import com.machiav3lli.fdroid.entity.ProductItem
|
||||||
import com.looker.droidify.network.CoilDownloader
|
import com.machiav3lli.fdroid.network.CoilDownloader
|
||||||
import com.looker.droidify.ui.compose.utils.NetworkImage
|
import com.machiav3lli.fdroid.ui.compose.utils.NetworkImage
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.components
|
package com.machiav3lli.fdroid.ui.compose.components
|
||||||
|
|
||||||
import androidx.compose.animation.AnimatedVisibility
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
@ -29,14 +29,14 @@ import androidx.compose.ui.graphics.Color
|
|||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.text.style.TextOverflow
|
import androidx.compose.ui.text.style.TextOverflow
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.database.entity.Installed
|
import com.machiav3lli.fdroid.database.entity.Installed
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.entity.ActionState
|
import com.machiav3lli.fdroid.entity.ActionState
|
||||||
import com.looker.droidify.entity.ProductItem
|
import com.machiav3lli.fdroid.entity.ProductItem
|
||||||
import com.looker.droidify.network.CoilDownloader
|
import com.machiav3lli.fdroid.network.CoilDownloader
|
||||||
import com.looker.droidify.ui.compose.utils.ExpandableCard
|
import com.machiav3lli.fdroid.ui.compose.utils.ExpandableCard
|
||||||
import com.looker.droidify.ui.compose.utils.NetworkImage
|
import com.machiav3lli.fdroid.ui.compose.utils.NetworkImage
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun ProductsListItem(
|
fun ProductsListItem(
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.components
|
package com.machiav3lli.fdroid.ui.compose.components
|
||||||
|
|
||||||
import androidx.compose.animation.AnimatedVisibility
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
import androidx.compose.animation.animateColorAsState
|
import androidx.compose.animation.animateColorAsState
|
||||||
@ -24,7 +24,7 @@ import androidx.compose.ui.Modifier
|
|||||||
import androidx.compose.ui.draw.clip
|
import androidx.compose.ui.draw.clip
|
||||||
import androidx.compose.ui.text.style.TextOverflow
|
import androidx.compose.ui.text.style.TextOverflow
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
|
|
||||||
@OptIn(ExperimentalFoundationApi::class)
|
@OptIn(ExperimentalFoundationApi::class)
|
||||||
@Composable
|
@Composable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.components
|
package com.machiav3lli.fdroid.ui.compose.components
|
||||||
|
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
@ -12,10 +12,10 @@ import androidx.compose.runtime.*
|
|||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.draw.clip
|
import androidx.compose.ui.draw.clip
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.entity.Screenshot
|
import com.machiav3lli.fdroid.entity.Screenshot
|
||||||
import com.looker.droidify.network.CoilDownloader
|
import com.machiav3lli.fdroid.network.CoilDownloader
|
||||||
import com.looker.droidify.ui.compose.utils.NetworkImage
|
import com.machiav3lli.fdroid.ui.compose.utils.NetworkImage
|
||||||
|
|
||||||
data class ScreenshotItem(
|
data class ScreenshotItem(
|
||||||
val screenShot: Screenshot,
|
val screenShot: Screenshot,
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.components
|
package com.machiav3lli.fdroid.ui.compose.components
|
||||||
|
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
@ -38,8 +38,8 @@ import androidx.compose.ui.res.stringResource
|
|||||||
import androidx.compose.ui.text.TextRange
|
import androidx.compose.ui.text.TextRange
|
||||||
import androidx.compose.ui.text.input.ImeAction
|
import androidx.compose.ui.text.input.ImeAction
|
||||||
import androidx.compose.ui.text.input.TextFieldValue
|
import androidx.compose.ui.text.input.TextFieldValue
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.ui.compose.utils.HorizontalExpandingVisibility
|
import com.machiav3lli.fdroid.ui.compose.utils.HorizontalExpandingVisibility
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun TopBar(
|
fun TopBar(
|
@ -0,0 +1,2 @@
|
|||||||
|
package com.machiav3lli.fdroid.ui.compose.pages.app_detail
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.app_detail.components
|
package com.machiav3lli.fdroid.ui.compose.pages.app_detail.components
|
||||||
|
|
||||||
import androidx.compose.foundation.horizontalScroll
|
import androidx.compose.foundation.horizontalScroll
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
@ -7,8 +7,8 @@ import androidx.compose.material3.MaterialTheme
|
|||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.ui.compose.utils.CustomChip
|
import com.machiav3lli.fdroid.ui.compose.utils.CustomChip
|
||||||
import com.looker.droidify.ui.compose.utils.StaggeredGrid
|
import com.machiav3lli.fdroid.ui.compose.utils.StaggeredGrid
|
||||||
|
|
||||||
// TODO: Convert Permissions and AntiFeatures to Custom Interface
|
// TODO: Convert Permissions and AntiFeatures to Custom Interface
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.app_detail.components
|
package com.machiav3lli.fdroid.ui.compose.pages.app_detail.components
|
||||||
|
|
||||||
import androidx.compose.animation.AnimatedVisibility
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
import androidx.compose.foundation.ExperimentalFoundationApi
|
import androidx.compose.foundation.ExperimentalFoundationApi
|
||||||
@ -29,13 +29,13 @@ import androidx.compose.ui.Modifier
|
|||||||
import androidx.compose.ui.draw.clip
|
import androidx.compose.ui.draw.clip
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.entity.ActionState
|
import com.machiav3lli.fdroid.entity.ActionState
|
||||||
import com.looker.droidify.entity.DownloadState
|
import com.machiav3lli.fdroid.entity.DownloadState
|
||||||
import com.looker.droidify.ui.compose.components.MainActionButton
|
import com.machiav3lli.fdroid.ui.compose.components.MainActionButton
|
||||||
import com.looker.droidify.ui.compose.components.SecondaryActionButton
|
import com.machiav3lli.fdroid.ui.compose.components.SecondaryActionButton
|
||||||
import com.looker.droidify.ui.compose.utils.NetworkImage
|
import com.machiav3lli.fdroid.ui.compose.utils.NetworkImage
|
||||||
import com.looker.droidify.utility.extension.text.formatSize
|
import com.machiav3lli.fdroid.utility.extension.text.formatSize
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun AppInfoHeader(
|
fun AppInfoHeader(
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.app_detail.components
|
package com.machiav3lli.fdroid.ui.compose.pages.app_detail.components
|
||||||
|
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import androidx.compose.foundation.ExperimentalFoundationApi
|
import androidx.compose.foundation.ExperimentalFoundationApi
|
||||||
@ -20,9 +20,9 @@ import androidx.compose.ui.res.painterResource
|
|||||||
import androidx.compose.ui.text.style.TextOverflow
|
import androidx.compose.ui.text.style.TextOverflow
|
||||||
import androidx.compose.ui.tooling.preview.Preview
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.entity.LinkType
|
import com.machiav3lli.fdroid.entity.LinkType
|
||||||
import com.looker.droidify.ui.compose.theme.AppTheme
|
import com.machiav3lli.fdroid.ui.compose.theme.AppTheme
|
||||||
|
|
||||||
@OptIn(ExperimentalFoundationApi::class)
|
@OptIn(ExperimentalFoundationApi::class)
|
||||||
@Composable
|
@Composable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.app_detail.components
|
package com.machiav3lli.fdroid.ui.compose.pages.app_detail.components
|
||||||
|
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
@ -18,9 +18,9 @@ import androidx.compose.ui.platform.LocalContext
|
|||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import coil.compose.rememberAsyncImagePainter
|
import coil.compose.rememberAsyncImagePainter
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.entity.PermissionsType
|
import com.machiav3lli.fdroid.entity.PermissionsType
|
||||||
import com.looker.droidify.utility.getLabels
|
import com.machiav3lli.fdroid.utility.getLabels
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun PermissionsItem(
|
fun PermissionsItem(
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.app_detail.components
|
package com.machiav3lli.fdroid.ui.compose.pages.app_detail.components
|
||||||
|
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import androidx.compose.animation.AnimatedVisibility
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
@ -37,14 +37,14 @@ import androidx.compose.ui.graphics.Color
|
|||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.unit.Dp
|
import androidx.compose.ui.unit.Dp
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.RELEASE_STATE_INSTALLED
|
import com.machiav3lli.fdroid.RELEASE_STATE_INSTALLED
|
||||||
import com.looker.droidify.RELEASE_STATE_NONE
|
import com.machiav3lli.fdroid.RELEASE_STATE_NONE
|
||||||
import com.looker.droidify.RELEASE_STATE_SUGGESTED
|
import com.machiav3lli.fdroid.RELEASE_STATE_SUGGESTED
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.looker.droidify.utility.extension.text.formatSize
|
import com.machiav3lli.fdroid.utility.extension.text.formatSize
|
||||||
import java.time.Instant
|
import java.time.Instant
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
import java.time.format.DateTimeFormatter
|
import java.time.format.DateTimeFormatter
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.app_detail.components
|
package com.machiav3lli.fdroid.ui.compose.pages.app_detail.components
|
||||||
|
|
||||||
import androidx.compose.animation.animateContentSize
|
import androidx.compose.animation.animateContentSize
|
||||||
import androidx.compose.animation.core.animateIntAsState
|
import androidx.compose.animation.core.animateIntAsState
|
||||||
@ -21,7 +21,7 @@ import androidx.compose.ui.graphics.Color
|
|||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.text.style.TextOverflow
|
import androidx.compose.ui.text.style.TextOverflow
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import de.charlex.compose.HtmlText
|
import de.charlex.compose.HtmlText
|
||||||
|
|
||||||
/*
|
/*
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.home.components
|
package com.machiav3lli.fdroid.ui.compose.pages.home.components
|
||||||
|
|
||||||
import androidx.compose.animation.AnimatedVisibility
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
import androidx.compose.animation.animateColor
|
import androidx.compose.animation.animateColor
|
||||||
@ -35,7 +35,7 @@ import androidx.compose.ui.graphics.Color
|
|||||||
import androidx.compose.ui.graphics.graphicsLayer
|
import androidx.compose.ui.graphics.graphicsLayer
|
||||||
import androidx.compose.ui.unit.Dp
|
import androidx.compose.ui.unit.Dp
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.ui.compose.utils.compositeOverBackground
|
import com.machiav3lli.fdroid.ui.compose.utils.compositeOverBackground
|
||||||
|
|
||||||
private enum class SelectionState { Unselected, Selected }
|
private enum class SelectionState { Unselected, Selected }
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.settings.components
|
package com.machiav3lli.fdroid.ui.compose.pages.settings.components
|
||||||
|
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.settings.components
|
package com.machiav3lli.fdroid.ui.compose.pages.settings.components
|
||||||
|
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.settings.components
|
package com.machiav3lli.fdroid.ui.compose.pages.settings.components
|
||||||
|
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.pages.settings.repository
|
package com.machiav3lli.fdroid.ui.compose.pages.settings.repository
|
||||||
|
|
||||||
import androidx.compose.foundation.layout.fillMaxSize
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
import androidx.compose.material.icons.Icons
|
import androidx.compose.material.icons.Icons
|
||||||
@ -13,8 +13,8 @@ import androidx.compose.runtime.collectAsState
|
|||||||
import androidx.compose.runtime.getValue
|
import androidx.compose.runtime.getValue
|
||||||
import androidx.compose.runtime.remember
|
import androidx.compose.runtime.remember
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import com.looker.droidify.ui.compose.RepositoriesRecycler
|
import com.machiav3lli.fdroid.ui.compose.RepositoriesRecycler
|
||||||
import com.looker.droidify.ui.viewmodels.RepositoriesViewModelX
|
import com.machiav3lli.fdroid.ui.viewmodels.RepositoriesViewModelX
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.theme
|
package com.machiav3lli.fdroid.ui.compose.theme
|
||||||
|
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.theme
|
package com.machiav3lli.fdroid.ui.compose.theme
|
||||||
|
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||||
import androidx.compose.material3.Shapes
|
import androidx.compose.material3.Shapes
|
@ -1,11 +1,11 @@
|
|||||||
package com.looker.droidify.ui.compose.theme
|
package com.machiav3lli.fdroid.ui.compose.theme
|
||||||
|
|
||||||
import androidx.compose.foundation.isSystemInDarkTheme
|
import androidx.compose.foundation.isSystemInDarkTheme
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
import androidx.compose.material3.darkColorScheme
|
import androidx.compose.material3.darkColorScheme
|
||||||
import androidx.compose.material3.lightColorScheme
|
import androidx.compose.material3.lightColorScheme
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import com.looker.droidify.utility.isBlackTheme
|
import com.machiav3lli.fdroid.utility.isBlackTheme
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun AppTheme(
|
fun AppTheme(
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.theme
|
package com.machiav3lli.fdroid.ui.compose.theme
|
||||||
|
|
||||||
import androidx.compose.material3.ColorScheme
|
import androidx.compose.material3.ColorScheme
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.utils
|
package com.machiav3lli.fdroid.ui.compose.utils
|
||||||
|
|
||||||
import androidx.compose.animation.AnimatedVisibility
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
import androidx.compose.animation.AnimatedVisibilityScope
|
import androidx.compose.animation.AnimatedVisibilityScope
|
@ -1,9 +1,9 @@
|
|||||||
package com.looker.droidify.ui.compose.utils
|
package com.machiav3lli.fdroid.ui.compose.utils
|
||||||
|
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.entity.ActionState
|
import com.machiav3lli.fdroid.entity.ActionState
|
||||||
import com.looker.droidify.entity.Screenshot
|
import com.machiav3lli.fdroid.entity.Screenshot
|
||||||
|
|
||||||
interface Callbacks {
|
interface Callbacks {
|
||||||
fun onActionClick(action: ActionState?)
|
fun onActionClick(action: ActionState?)
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.utils
|
package com.machiav3lli.fdroid.ui.compose.utils
|
||||||
|
|
||||||
import androidx.compose.animation.*
|
import androidx.compose.animation.*
|
||||||
import androidx.compose.foundation.ExperimentalFoundationApi
|
import androidx.compose.foundation.ExperimentalFoundationApi
|
@ -1,6 +1,5 @@
|
|||||||
package com.looker.droidify.ui.compose.utils
|
package com.machiav3lli.fdroid.ui.compose.utils
|
||||||
|
|
||||||
import androidx.compose.foundation.BorderStroke
|
|
||||||
import androidx.compose.material.ExperimentalMaterialApi
|
import androidx.compose.material.ExperimentalMaterialApi
|
||||||
import androidx.compose.material3.*
|
import androidx.compose.material3.*
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.utils
|
package com.machiav3lli.fdroid.ui.compose.utils
|
||||||
|
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.compose.utils
|
package com.machiav3lli.fdroid.ui.compose.utils
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
@ -1,9 +1,13 @@
|
|||||||
package com.looker.droidify.ui.compose.utils
|
package com.machiav3lli.fdroid.ui.compose.utils
|
||||||
|
|
||||||
import androidx.compose.foundation.gestures.rememberTransformableState
|
import androidx.compose.foundation.gestures.rememberTransformableState
|
||||||
import androidx.compose.foundation.gestures.transformable
|
import androidx.compose.foundation.gestures.transformable
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
import androidx.compose.runtime.*
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.runtime.getValue
|
||||||
|
import androidx.compose.runtime.mutableStateOf
|
||||||
|
import androidx.compose.runtime.remember
|
||||||
|
import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.draw.clip
|
import androidx.compose.ui.draw.clip
|
||||||
import androidx.compose.ui.geometry.Offset
|
import androidx.compose.ui.geometry.Offset
|
||||||
@ -13,7 +17,7 @@ import androidx.compose.ui.graphics.graphicsLayer
|
|||||||
import androidx.compose.ui.layout.ContentScale
|
import androidx.compose.ui.layout.ContentScale
|
||||||
import androidx.compose.ui.res.painterResource
|
import androidx.compose.ui.res.painterResource
|
||||||
import coil.compose.AsyncImage
|
import coil.compose.AsyncImage
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun NetworkImage(
|
fun NetworkImage(
|
@ -1,11 +1,11 @@
|
|||||||
package com.looker.droidify.ui.dialog
|
package com.machiav3lli.fdroid.ui.dialog
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.utility.startLauncherActivity
|
import com.machiav3lli.fdroid.utility.startLauncherActivity
|
||||||
|
|
||||||
class LaunchDialog(val packageName: String) : DialogFragment() {
|
class LaunchDialog(val packageName: String) : DialogFragment() {
|
||||||
companion object {
|
companion object {
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.content.ActivityNotFoundException
|
import android.content.ActivityNotFoundException
|
||||||
import android.content.ClipData
|
import android.content.ClipData
|
||||||
@ -39,47 +39,47 @@ import androidx.compose.ui.unit.dp
|
|||||||
import androidx.core.net.toUri
|
import androidx.core.net.toUri
|
||||||
import androidx.fragment.app.viewModels
|
import androidx.fragment.app.viewModels
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.RELEASE_STATE_INSTALLED
|
import com.machiav3lli.fdroid.RELEASE_STATE_INSTALLED
|
||||||
import com.looker.droidify.RELEASE_STATE_NONE
|
import com.machiav3lli.fdroid.RELEASE_STATE_NONE
|
||||||
import com.looker.droidify.RELEASE_STATE_SUGGESTED
|
import com.machiav3lli.fdroid.RELEASE_STATE_SUGGESTED
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.database.entity.Extras
|
import com.machiav3lli.fdroid.database.entity.Extras
|
||||||
import com.looker.droidify.database.entity.Release
|
import com.machiav3lli.fdroid.database.entity.Release
|
||||||
import com.looker.droidify.entity.ActionState
|
import com.machiav3lli.fdroid.entity.ActionState
|
||||||
import com.looker.droidify.entity.AntiFeature
|
import com.machiav3lli.fdroid.entity.AntiFeature
|
||||||
import com.looker.droidify.entity.DonateType
|
import com.machiav3lli.fdroid.entity.DonateType
|
||||||
import com.looker.droidify.entity.DownloadState
|
import com.machiav3lli.fdroid.entity.DownloadState
|
||||||
import com.looker.droidify.entity.Screenshot
|
import com.machiav3lli.fdroid.entity.Screenshot
|
||||||
import com.looker.droidify.installer.AppInstaller
|
import com.machiav3lli.fdroid.installer.AppInstaller
|
||||||
import com.looker.droidify.network.CoilDownloader
|
import com.machiav3lli.fdroid.network.CoilDownloader
|
||||||
import com.looker.droidify.screen.MessageDialog
|
import com.machiav3lli.fdroid.screen.MessageDialog
|
||||||
import com.looker.droidify.screen.ScreenshotsFragment
|
import com.machiav3lli.fdroid.screen.ScreenshotsFragment
|
||||||
import com.looker.droidify.service.Connection
|
import com.machiav3lli.fdroid.service.Connection
|
||||||
import com.looker.droidify.service.DownloadService
|
import com.machiav3lli.fdroid.service.DownloadService
|
||||||
import com.looker.droidify.ui.activities.MainActivityX
|
import com.machiav3lli.fdroid.ui.activities.MainActivityX
|
||||||
import com.looker.droidify.ui.compose.components.ExpandableBlock
|
import com.machiav3lli.fdroid.ui.compose.components.ExpandableBlock
|
||||||
import com.looker.droidify.ui.compose.components.ScreenshotItem
|
import com.machiav3lli.fdroid.ui.compose.components.ScreenshotItem
|
||||||
import com.looker.droidify.ui.compose.components.ScreenshotList
|
import com.machiav3lli.fdroid.ui.compose.components.ScreenshotList
|
||||||
import com.looker.droidify.ui.compose.components.SwitchPreference
|
import com.machiav3lli.fdroid.ui.compose.components.SwitchPreference
|
||||||
import com.looker.droidify.ui.compose.pages.app_detail.components.AppInfoHeader
|
import com.machiav3lli.fdroid.ui.compose.pages.app_detail.components.AppInfoHeader
|
||||||
import com.looker.droidify.ui.compose.pages.app_detail.components.HtmlTextBlock
|
import com.machiav3lli.fdroid.ui.compose.pages.app_detail.components.HtmlTextBlock
|
||||||
import com.looker.droidify.ui.compose.pages.app_detail.components.LinkItem
|
import com.machiav3lli.fdroid.ui.compose.pages.app_detail.components.LinkItem
|
||||||
import com.looker.droidify.ui.compose.pages.app_detail.components.PermissionsItem
|
import com.machiav3lli.fdroid.ui.compose.pages.app_detail.components.PermissionsItem
|
||||||
import com.looker.droidify.ui.compose.pages.app_detail.components.ReleaseItem
|
import com.machiav3lli.fdroid.ui.compose.pages.app_detail.components.ReleaseItem
|
||||||
import com.looker.droidify.ui.compose.pages.app_detail.components.TopBarHeader
|
import com.machiav3lli.fdroid.ui.compose.pages.app_detail.components.TopBarHeader
|
||||||
import com.looker.droidify.ui.compose.theme.AppTheme
|
import com.machiav3lli.fdroid.ui.compose.theme.AppTheme
|
||||||
import com.looker.droidify.ui.compose.utils.Callbacks
|
import com.machiav3lli.fdroid.ui.compose.utils.Callbacks
|
||||||
import com.looker.droidify.ui.viewmodels.AppViewModelX
|
import com.machiav3lli.fdroid.ui.viewmodels.AppViewModelX
|
||||||
import com.looker.droidify.utility.Utils.rootInstallerEnabled
|
import com.machiav3lli.fdroid.utility.Utils.rootInstallerEnabled
|
||||||
import com.looker.droidify.utility.Utils.startUpdate
|
import com.machiav3lli.fdroid.utility.Utils.startUpdate
|
||||||
import com.looker.droidify.utility.extension.android.Android
|
import com.machiav3lli.fdroid.utility.extension.android.Android
|
||||||
import com.looker.droidify.utility.extension.text.formatSize
|
import com.machiav3lli.fdroid.utility.extension.text.formatSize
|
||||||
import com.looker.droidify.utility.findSuggestedProduct
|
import com.machiav3lli.fdroid.utility.findSuggestedProduct
|
||||||
import com.looker.droidify.utility.generateLinks
|
import com.machiav3lli.fdroid.utility.generateLinks
|
||||||
import com.looker.droidify.utility.generatePermissionGroups
|
import com.machiav3lli.fdroid.utility.generatePermissionGroups
|
||||||
import com.looker.droidify.utility.isDarkTheme
|
import com.machiav3lli.fdroid.utility.isDarkTheme
|
||||||
import com.looker.droidify.utility.onLaunchClick
|
import com.machiav3lli.fdroid.utility.onLaunchClick
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.flow.filter
|
import kotlinx.coroutines.flow.filter
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.content.ClipboardManager
|
import android.content.ClipboardManager
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
@ -17,19 +17,19 @@ import androidx.fragment.app.DialogFragment
|
|||||||
import androidx.fragment.app.viewModels
|
import androidx.fragment.app.viewModels
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.looker.droidify.EXTRA_REPOSITORY_ID
|
import com.machiav3lli.fdroid.EXTRA_REPOSITORY_ID
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.RepoManager
|
import com.machiav3lli.fdroid.RepoManager
|
||||||
import com.looker.droidify.databinding.SheetEditRepositoryBinding
|
import com.machiav3lli.fdroid.databinding.SheetEditRepositoryBinding
|
||||||
import com.looker.droidify.network.Downloader
|
import com.machiav3lli.fdroid.network.Downloader
|
||||||
import com.looker.droidify.screen.MessageDialog
|
import com.machiav3lli.fdroid.screen.MessageDialog
|
||||||
import com.looker.droidify.service.Connection
|
import com.machiav3lli.fdroid.service.Connection
|
||||||
import com.looker.droidify.service.SyncService
|
import com.machiav3lli.fdroid.service.SyncService
|
||||||
import com.looker.droidify.ui.activities.PrefsActivityX
|
import com.machiav3lli.fdroid.ui.activities.PrefsActivityX
|
||||||
import com.looker.droidify.ui.viewmodels.RepositoryViewModelX
|
import com.machiav3lli.fdroid.ui.viewmodels.RepositoryViewModelX
|
||||||
import com.looker.droidify.utility.RxUtils
|
import com.machiav3lli.fdroid.utility.RxUtils
|
||||||
import com.looker.droidify.utility.extension.resources.getColorFromAttr
|
import com.machiav3lli.fdroid.utility.extension.resources.getColorFromAttr
|
||||||
import com.looker.droidify.utility.extension.text.nullIfEmpty
|
import com.machiav3lli.fdroid.utility.extension.text.nullIfEmpty
|
||||||
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
||||||
import io.reactivex.rxjava3.core.Single
|
import io.reactivex.rxjava3.core.Single
|
||||||
import io.reactivex.rxjava3.disposables.Disposable
|
import io.reactivex.rxjava3.disposables.Disposable
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -26,20 +26,20 @@ import androidx.compose.ui.Modifier
|
|||||||
import androidx.compose.ui.input.nestedscroll.nestedScroll
|
import androidx.compose.ui.input.nestedscroll.nestedScroll
|
||||||
import androidx.compose.ui.platform.ComposeView
|
import androidx.compose.ui.platform.ComposeView
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.entity.Section
|
import com.machiav3lli.fdroid.entity.Section
|
||||||
import com.looker.droidify.service.SyncService
|
import com.machiav3lli.fdroid.service.SyncService
|
||||||
import com.looker.droidify.ui.activities.PrefsActivityX
|
import com.machiav3lli.fdroid.ui.activities.PrefsActivityX
|
||||||
import com.looker.droidify.ui.compose.ProductsVerticalRecycler
|
import com.machiav3lli.fdroid.ui.compose.ProductsVerticalRecycler
|
||||||
import com.looker.droidify.ui.compose.components.ExpandableSearchAction
|
import com.machiav3lli.fdroid.ui.compose.components.ExpandableSearchAction
|
||||||
import com.looker.droidify.ui.compose.components.TopBar
|
import com.machiav3lli.fdroid.ui.compose.components.TopBar
|
||||||
import com.looker.droidify.ui.compose.components.TopBarAction
|
import com.machiav3lli.fdroid.ui.compose.components.TopBarAction
|
||||||
import com.looker.droidify.ui.compose.pages.home.components.CategoryChipList
|
import com.machiav3lli.fdroid.ui.compose.pages.home.components.CategoryChipList
|
||||||
import com.looker.droidify.ui.compose.theme.AppTheme
|
import com.machiav3lli.fdroid.ui.compose.theme.AppTheme
|
||||||
import com.looker.droidify.utility.isDarkTheme
|
import com.machiav3lli.fdroid.utility.isDarkTheme
|
||||||
import com.looker.droidify.utility.onLaunchClick
|
import com.machiav3lli.fdroid.utility.onLaunchClick
|
||||||
|
|
||||||
class ExploreFragment : MainNavFragmentX() {
|
class ExploreFragment : MainNavFragmentX() {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -44,20 +44,20 @@ import androidx.compose.ui.res.painterResource
|
|||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.text.style.TextAlign
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.database.entity.Product
|
import com.machiav3lli.fdroid.database.entity.Product
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.service.SyncService
|
import com.machiav3lli.fdroid.service.SyncService
|
||||||
import com.looker.droidify.ui.activities.PrefsActivityX
|
import com.machiav3lli.fdroid.ui.activities.PrefsActivityX
|
||||||
import com.looker.droidify.ui.compose.ProductsHorizontalRecycler
|
import com.machiav3lli.fdroid.ui.compose.ProductsHorizontalRecycler
|
||||||
import com.looker.droidify.ui.compose.ProductsVerticalRecycler
|
import com.machiav3lli.fdroid.ui.compose.ProductsVerticalRecycler
|
||||||
import com.looker.droidify.ui.compose.components.ExpandableSearchAction
|
import com.machiav3lli.fdroid.ui.compose.components.ExpandableSearchAction
|
||||||
import com.looker.droidify.ui.compose.components.TopBar
|
import com.machiav3lli.fdroid.ui.compose.components.TopBar
|
||||||
import com.looker.droidify.ui.compose.components.TopBarAction
|
import com.machiav3lli.fdroid.ui.compose.components.TopBarAction
|
||||||
import com.looker.droidify.ui.compose.theme.AppTheme
|
import com.machiav3lli.fdroid.ui.compose.theme.AppTheme
|
||||||
import com.looker.droidify.utility.isDarkTheme
|
import com.machiav3lli.fdroid.utility.isDarkTheme
|
||||||
import com.looker.droidify.utility.onLaunchClick
|
import com.machiav3lli.fdroid.utility.onLaunchClick
|
||||||
|
|
||||||
class InstalledFragment : MainNavFragmentX() {
|
class InstalledFragment : MainNavFragmentX() {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -10,18 +10,14 @@ import androidx.compose.foundation.isSystemInDarkTheme
|
|||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.fillMaxSize
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.foundation.layout.size
|
|
||||||
import androidx.compose.foundation.lazy.LazyColumn
|
import androidx.compose.foundation.lazy.LazyColumn
|
||||||
import androidx.compose.foundation.lazy.items
|
import androidx.compose.foundation.lazy.items
|
||||||
import androidx.compose.material.icons.Icons
|
import androidx.compose.material.icons.Icons
|
||||||
import androidx.compose.material.icons.rounded.Settings
|
import androidx.compose.material.icons.rounded.Settings
|
||||||
import androidx.compose.material.icons.rounded.Sync
|
import androidx.compose.material.icons.rounded.Sync
|
||||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||||
import androidx.compose.material3.Icon
|
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
import androidx.compose.material3.Scaffold
|
import androidx.compose.material3.Scaffold
|
||||||
import androidx.compose.material3.SuggestionChip
|
|
||||||
import androidx.compose.material3.SuggestionChipDefaults
|
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
import androidx.compose.material3.TopAppBarDefaults
|
import androidx.compose.material3.TopAppBarDefaults
|
||||||
import androidx.compose.material3.rememberTopAppBarScrollState
|
import androidx.compose.material3.rememberTopAppBarScrollState
|
||||||
@ -32,22 +28,21 @@ import androidx.compose.ui.Alignment
|
|||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.input.nestedscroll.nestedScroll
|
import androidx.compose.ui.input.nestedscroll.nestedScroll
|
||||||
import androidx.compose.ui.platform.ComposeView
|
import androidx.compose.ui.platform.ComposeView
|
||||||
import androidx.compose.ui.res.painterResource
|
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.database.entity.Repository
|
import com.machiav3lli.fdroid.database.entity.Repository
|
||||||
import com.looker.droidify.service.SyncService
|
import com.machiav3lli.fdroid.service.SyncService
|
||||||
import com.looker.droidify.ui.activities.PrefsActivityX
|
import com.machiav3lli.fdroid.ui.activities.PrefsActivityX
|
||||||
import com.looker.droidify.ui.compose.ProductsHorizontalRecycler
|
import com.machiav3lli.fdroid.ui.compose.ProductsHorizontalRecycler
|
||||||
import com.looker.droidify.ui.compose.components.ExpandableSearchAction
|
import com.machiav3lli.fdroid.ui.compose.components.ExpandableSearchAction
|
||||||
import com.looker.droidify.ui.compose.components.ProductsListItem
|
import com.machiav3lli.fdroid.ui.compose.components.ProductsListItem
|
||||||
import com.looker.droidify.ui.compose.components.TopBar
|
import com.machiav3lli.fdroid.ui.compose.components.TopBar
|
||||||
import com.looker.droidify.ui.compose.components.TopBarAction
|
import com.machiav3lli.fdroid.ui.compose.components.TopBarAction
|
||||||
import com.looker.droidify.ui.compose.theme.AppTheme
|
import com.machiav3lli.fdroid.ui.compose.theme.AppTheme
|
||||||
import com.looker.droidify.utility.isDarkTheme
|
import com.machiav3lli.fdroid.utility.isDarkTheme
|
||||||
import com.looker.droidify.utility.onLaunchClick
|
import com.machiav3lli.fdroid.utility.onLaunchClick
|
||||||
|
|
||||||
class LatestFragment : MainNavFragmentX() {
|
class LatestFragment : MainNavFragmentX() {
|
||||||
|
|
@ -1,13 +1,13 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.fragment.app.viewModels
|
import androidx.fragment.app.viewModels
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.entity.Order
|
import com.machiav3lli.fdroid.entity.Order
|
||||||
import com.looker.droidify.entity.Section
|
import com.machiav3lli.fdroid.entity.Section
|
||||||
import com.looker.droidify.entity.UpdateCategory
|
import com.machiav3lli.fdroid.entity.UpdateCategory
|
||||||
import com.looker.droidify.ui.activities.MainActivityX
|
import com.machiav3lli.fdroid.ui.activities.MainActivityX
|
||||||
import com.looker.droidify.ui.viewmodels.MainNavFragmentViewModelX
|
import com.machiav3lli.fdroid.ui.viewmodels.MainNavFragmentViewModelX
|
||||||
|
|
||||||
abstract class MainNavFragmentX : BaseNavFragment() {
|
abstract class MainNavFragmentX : BaseNavFragment() {
|
||||||
protected val mainActivityX: MainActivityX
|
protected val mainActivityX: MainActivityX
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
@ -25,16 +25,16 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
|||||||
import com.google.android.material.switchmaterial.SwitchMaterial
|
import com.google.android.material.switchmaterial.SwitchMaterial
|
||||||
import com.google.android.material.textfield.TextInputEditText
|
import com.google.android.material.textfield.TextInputEditText
|
||||||
import com.google.android.material.textview.MaterialTextView
|
import com.google.android.material.textview.MaterialTextView
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.databinding.FragmentPrefsBinding
|
import com.machiav3lli.fdroid.databinding.FragmentPrefsBinding
|
||||||
import com.looker.droidify.databinding.PreferenceItemBinding
|
import com.machiav3lli.fdroid.databinding.PreferenceItemBinding
|
||||||
import com.looker.droidify.utility.Utils
|
import com.machiav3lli.fdroid.utility.Utils
|
||||||
import com.looker.droidify.utility.extension.resources.TypefaceExtra
|
import com.machiav3lli.fdroid.utility.extension.resources.TypefaceExtra
|
||||||
import com.looker.droidify.utility.extension.resources.getColorFromAttr
|
import com.machiav3lli.fdroid.utility.extension.resources.getColorFromAttr
|
||||||
import com.looker.droidify.utility.extension.resources.inflate
|
import com.machiav3lli.fdroid.utility.extension.resources.inflate
|
||||||
import com.looker.droidify.utility.extension.resources.setTextSizeScaled
|
import com.machiav3lli.fdroid.utility.extension.resources.setTextSizeScaled
|
||||||
import com.looker.droidify.utility.extension.resources.sizeScaled
|
import com.machiav3lli.fdroid.utility.extension.resources.sizeScaled
|
||||||
import com.topjohnwu.superuser.Shell
|
import com.topjohnwu.superuser.Shell
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
import com.google.android.material.circularreveal.CircularRevealFrameLayout
|
import com.google.android.material.circularreveal.CircularRevealFrameLayout
|
||||||
import com.looker.droidify.BuildConfig
|
import com.machiav3lli.fdroid.BuildConfig
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
|
|
||||||
class PrefsOtherFragment : PrefsNavFragmentX() {
|
class PrefsOtherFragment : PrefsNavFragmentX() {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
@ -9,12 +9,12 @@ import androidx.compose.runtime.Composable
|
|||||||
import androidx.compose.ui.platform.ComposeView
|
import androidx.compose.ui.platform.ComposeView
|
||||||
import androidx.fragment.app.viewModels
|
import androidx.fragment.app.viewModels
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.ui.activities.PrefsActivityX
|
import com.machiav3lli.fdroid.ui.activities.PrefsActivityX
|
||||||
import com.looker.droidify.ui.compose.pages.settings.repository.RepositoryPage
|
import com.machiav3lli.fdroid.ui.compose.pages.settings.repository.RepositoryPage
|
||||||
import com.looker.droidify.ui.compose.theme.AppTheme
|
import com.machiav3lli.fdroid.ui.compose.theme.AppTheme
|
||||||
import com.looker.droidify.ui.viewmodels.RepositoriesViewModelX
|
import com.machiav3lli.fdroid.ui.viewmodels.RepositoriesViewModelX
|
||||||
import com.looker.droidify.utility.isDarkTheme
|
import com.machiav3lli.fdroid.utility.isDarkTheme
|
||||||
import kotlinx.coroutines.flow.collectLatest
|
import kotlinx.coroutines.flow.collectLatest
|
||||||
|
|
||||||
class PrefsRepositoriesFragment : BaseNavFragment() {
|
class PrefsRepositoriesFragment : BaseNavFragment() {
|
@ -1,10 +1,10 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
import com.google.android.material.circularreveal.CircularRevealFrameLayout
|
import com.google.android.material.circularreveal.CircularRevealFrameLayout
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
|
|
||||||
class PrefsUpdatesFragment : PrefsNavFragmentX() {
|
class PrefsUpdatesFragment : PrefsNavFragmentX() {
|
||||||
|
|
@ -1,13 +1,13 @@
|
|||||||
package com.looker.droidify.ui.fragments
|
package com.machiav3lli.fdroid.ui.fragments
|
||||||
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
import com.google.android.material.circularreveal.CircularRevealFrameLayout
|
import com.google.android.material.circularreveal.CircularRevealFrameLayout
|
||||||
import com.looker.droidify.R
|
import com.machiav3lli.fdroid.R
|
||||||
import com.looker.droidify.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.looker.droidify.utility.Utils.getLocaleOfCode
|
import com.machiav3lli.fdroid.utility.Utils.getLocaleOfCode
|
||||||
import com.looker.droidify.utility.Utils.languagesList
|
import com.machiav3lli.fdroid.utility.Utils.languagesList
|
||||||
import com.looker.droidify.utility.Utils.translateLocale
|
import com.machiav3lli.fdroid.utility.Utils.translateLocale
|
||||||
|
|
||||||
class PrefsUserFragment : PrefsNavFragmentX() {
|
class PrefsUserFragment : PrefsNavFragmentX() {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user