From bd9685c7f5ee1c01972275c803ee173f34b0bf15 Mon Sep 17 00:00:00 2001 From: "S. Grimault" Date: Wed, 6 Dec 2023 21:10:39 +0100 Subject: [PATCH] fix(https://github.com/PnX-SI/gn_mobile_occtax/issues/232): fetch all taxa area only if 'code_area_type' attribute is defined --- datasync/build.gradle | 2 +- .../fr/geonature/datasync/sync/usecase/DataSyncUseCase.kt | 2 +- datasync/version.properties | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datasync/build.gradle b/datasync/build.gradle index 3c8d147..d4d94fa 100644 --- a/datasync/build.gradle +++ b/datasync/build.gradle @@ -5,7 +5,7 @@ plugins { id 'org.jetbrains.kotlin.android' } -version = "0.5.0" +version = "0.5.1" android { namespace 'fr.geonature.datasync' diff --git a/datasync/src/main/java/fr/geonature/datasync/sync/usecase/DataSyncUseCase.kt b/datasync/src/main/java/fr/geonature/datasync/sync/usecase/DataSyncUseCase.kt index 56475b0..08d077f 100644 --- a/datasync/src/main/java/fr/geonature/datasync/sync/usecase/DataSyncUseCase.kt +++ b/datasync/src/main/java/fr/geonature/datasync/sync/usecase/DataSyncUseCase.kt @@ -756,7 +756,7 @@ class DataSyncUseCase @Inject constructor( }.getOrDefault(emptyList())) } - if (withAdditionalData) { + if (withAdditionalData && codeAreaType?.isNotBlank() == true) { Logger.info { "synchronize taxa additional data..." } offset = 0 diff --git a/datasync/version.properties b/datasync/version.properties index b535a38..7cdeedb 100644 --- a/datasync/version.properties +++ b/datasync/version.properties @@ -1,2 +1,2 @@ -#Tue Dec 05 19:05:17 CET 2023 -VERSION_CODE=1160 +#Wed Dec 06 21:08:59 CET 2023 +VERSION_CODE=1165