From 104f02b987f226f2f093b36df44c99b12a38c76b Mon Sep 17 00:00:00 2001 From: Emin Date: Mon, 15 Jul 2024 11:15:14 +0500 Subject: [PATCH] api/cache/sync finished --- android/app/build.gradle | 4 +- android/app/src/main/AndroidManifest.xml | 11 ++ .../java/app/organicmaps/MwmActivity.java | 2 + .../src/main/java/app/tourism/MainActivity.kt | 15 ++ .../main/java/app/tourism/data/db/Database.kt | 4 +- .../java/app/tourism/data/db/dao/PlacesDao.kt | 15 +- .../app/tourism/data/db/dao/ReviewsDao.kt | 8 +- ...eToSyncEntity.kt => FavoriteSyncEntity.kt} | 2 +- .../data/db/entities/ReviewToPublishEntity.kt | 1 - .../app/tourism/data/remote/NetworkUtils.kt | 36 ++--- .../app/tourism/data/remote/TourismApi.kt | 3 +- .../app/tourism/data/remote/WifiReceiver.kt | 40 +++--- .../data/repositories/AuthRepository.kt | 13 +- .../repositories/CurrencyRepositoryImpl.kt | 8 +- .../data/repositories/PlacesRepository.kt | 54 +++++-- .../data/repositories/ProfileRepository.kt | 6 +- .../data/repositories/ReviewsRepository.kt | 136 +++++++++++------- .../java/app/tourism/di/RepositoriesModule.kt | 12 +- .../domain/models/details/ReviewToPost.kt | 4 +- .../ui/screens/main/home/HomeViewModel.kt | 8 +- .../reviews/PostReviewViewModel.kt | 5 +- .../place_details/reviews/ReviewsScreen.kt | 4 +- .../place_details/reviews/ReviewsViewModel.kt | 12 ++ .../reviews/components/PostReview.kt | 26 ++-- .../main/java/app/tourism/utils/FileUtils.kt | 23 +++ .../main/java/app/tourism/utils/MapUtils.kt | 19 ++- .../app/src/main/res/values-ru/strings.xml | 3 + android/app/src/main/res/values/strings.xml | 3 + android/build.gradle | 2 +- 29 files changed, 327 insertions(+), 152 deletions(-) rename android/app/src/main/java/app/tourism/data/db/entities/{FavoriteToSyncEntity.kt => FavoriteSyncEntity.kt} (86%) create mode 100644 android/app/src/main/java/app/tourism/utils/FileUtils.kt diff --git a/android/app/build.gradle b/android/app/build.gradle index 51108c9185..d4adf66a40 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -382,7 +382,7 @@ dependencies { debugImplementation 'androidx.compose.ui:ui-test-manifest' // hilt - def hilt = "2.47" + def hilt = '2.51.1' implementation "com.google.dagger:hilt-android:$hilt" kapt "com.google.dagger:hilt-compiler:$hilt" kapt "androidx.hilt:hilt-compiler:1.2.0" @@ -398,6 +398,8 @@ dependencies { implementation 'com.hbb20:ccp:2.7.3' // webview implementation "androidx.webkit:webkit:1.11.0" + // compress + implementation 'id.zelory:compressor:3.0.1' //Background processing def coroutines = '1.8.1' diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 2e9a7653f4..515395a38b 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -24,6 +24,7 @@ +