Skip to content

Commit c49472b

Browse files
authored
Обновляем список стран и городов ежедневно (#379)
Вместо одного раза в месяц
1 parent 92f28dd commit c49472b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SwiftUI-WorkoutApp.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@
466466
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait";
467467
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
468468
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
469-
MARKETING_VERSION = 3.15.0;
469+
MARKETING_VERSION = 3.16.0;
470470
PRODUCT_BUNDLE_IDENTIFIER = "com.oleg991.SW-Parks";
471471
PRODUCT_NAME = WorkoutApp;
472472
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -520,7 +520,7 @@
520520
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait";
521521
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
522522
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
523-
MARKETING_VERSION = 3.15.0;
523+
MARKETING_VERSION = 3.16.0;
524524
PRODUCT_BUNDLE_IDENTIFIER = "com.oleg991.SW-Parks";
525525
PRODUCT_NAME = WorkoutApp;
526526
PROVISIONING_PROFILE_SPECIFIER = "";

SwiftUI-WorkoutApp/Services/SWAddress.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ extension SWAddress {
8484
extension SWAddress {
8585
/// Проверяет, нужно ли обновлять справочник стран/городов
8686
///
87-
/// По статистике Антона справочник на сервере обновляется в среднем раз в месяц
87+
/// Обновляем, если прошло больше дня с момента предыдущего обновления
8888
/// - Parameter lastUpdateDate: Дата предыдущего успешного обновления справочника
8989
/// - Returns: `true` - нужно обновлять, `false` - не нужно
9090
func needUpdate(_ lastUpdateDate: Date) -> Bool {
91-
DateFormatterService.days(from: lastUpdateDate, to: .now) > 30
91+
DateFormatterService.days(from: lastUpdateDate, to: .now) > 1
9292
}
9393

9494
/// Возвращает сохраненный в памяти справочник стран/городов

0 commit comments

Comments
 (0)