diff --git a/.coderabbit.yaml b/.coderabbit.yaml
index 992d2a1051c133f6d9c71b0400fd983991958c63..34d8a2cc66e7f0b4f072606b1c844b0d237fa282 100644
--- a/.coderabbit.yaml
+++ b/.coderabbit.yaml
@@ -10,6 +10,6 @@ reviews:
collapse_walkthrough: true
auto_review:
enabled: true
- drafts: true
+ drafts: false
chat:
auto_reply: false
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 4b789577b3f30108069c8b05478e75a20382c512..fe79aa0933f8fd69ee2db6a916b70b323660e5a6 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -21,7 +21,7 @@
xmlns:tools="http://schemas.android.com/tools">
@@ -124,7 +124,7 @@
-
@@ -175,8 +175,8 @@
diff --git a/app/src/main/java/foundation/e/apps/data/AppSourcesContainer.kt b/app/src/main/java/foundation/e/apps/data/AppSourcesContainer.kt
index f6735a11749f4014c82554c7e6d6d2d5995a6c12..c32a2fe17a5fb8a1388eaf63df0e5434b45a2924 100644
--- a/app/src/main/java/foundation/e/apps/data/AppSourcesContainer.kt
+++ b/app/src/main/java/foundation/e/apps/data/AppSourcesContainer.kt
@@ -19,15 +19,15 @@
package foundation.e.apps.data
-import foundation.e.apps.data.cleanapk.repositories.CleanApkRepository
+import foundation.e.apps.data.cleanapk.repositories.CleanApkAppsRepository
+import foundation.e.apps.data.cleanapk.repositories.CleanApkPwaRepository
import foundation.e.apps.data.playstore.PlayStoreRepository
import javax.inject.Inject
-import javax.inject.Named
import javax.inject.Singleton
@Singleton
class AppSourcesContainer @Inject constructor(
- @Named("gplayRepository") val gplayRepo: PlayStoreRepository,
- @Named("cleanApkAppsRepository") val cleanApkAppsRepo: CleanApkRepository,
- @Named("cleanApkPWARepository") val cleanApkPWARepo: CleanApkRepository
+ val gplayRepo: PlayStoreRepository,
+ val cleanApkAppsRepo: CleanApkAppsRepository,
+ val cleanApkPWARepo: CleanApkPwaRepository
)
diff --git a/app/src/main/java/foundation/e/apps/data/StoreRepository.kt b/app/src/main/java/foundation/e/apps/data/StoreRepository.kt
index 0f8e1e426c64c77e188da2034144dd184235a017..e1c04d98e371777d4f7278de0318ca78535a6841 100644
--- a/app/src/main/java/foundation/e/apps/data/StoreRepository.kt
+++ b/app/src/main/java/foundation/e/apps/data/StoreRepository.kt
@@ -18,7 +18,9 @@
package foundation.e.apps.data
+import foundation.e.apps.data.application.data.Application
+
interface StoreRepository {
- suspend fun getHomeScreenData(): Any
- suspend fun getAppDetails(packageNameOrId: String): Any?
+ suspend fun getHomeScreenData(): Map>
+ suspend fun getAppDetails(packageNameOrId: String): Application
}
diff --git a/app/src/main/java/foundation/e/apps/data/Stores.kt b/app/src/main/java/foundation/e/apps/data/Stores.kt
new file mode 100644
index 0000000000000000000000000000000000000000..6e8e4fb0d42d8f6e4c7a65e7a6146f0a48393953
--- /dev/null
+++ b/app/src/main/java/foundation/e/apps/data/Stores.kt
@@ -0,0 +1,32 @@
+package foundation.e.apps.data
+
+import foundation.e.apps.data.application.ApplicationDataManager
+import foundation.e.apps.data.application.home.CleanApkAppsHomeDataBuilder
+import foundation.e.apps.data.application.home.CleanApkPwaHomeDataBuilder
+import foundation.e.apps.data.application.home.GooglePlayHomeDataBuilder
+import foundation.e.apps.data.application.home.HomeDataBuilder
+import foundation.e.apps.data.cleanapk.repositories.CleanApkAppsRepository
+import foundation.e.apps.data.cleanapk.repositories.CleanApkPwaRepository
+import foundation.e.apps.data.enums.Source
+import foundation.e.apps.data.playstore.PlayStoreRepository
+import javax.inject.Inject
+import javax.inject.Singleton
+
+@Singleton
+class Stores @Inject constructor(
+ playStoreRepository: PlayStoreRepository,
+ cleanApkAppsRepository: CleanApkAppsRepository,
+ cleanApkPwaRepository: CleanApkPwaRepository,
+ applicationDataManager: ApplicationDataManager
+) {
+ val mapHomeDataBuilder = mutableMapOf