Skip to content

Commit

Permalink
Merge branch 'release/1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrimault committed Feb 7, 2021
2 parents 253944e + 21bcd38 commit 3e61666
Show file tree
Hide file tree
Showing 34 changed files with 787 additions and 810 deletions.
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.72'
ext.kotlin_version = '1.4.21'

repositories {
google()
Expand All @@ -12,9 +12,9 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.android.tools.build:gradle:4.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:9.1.1"
classpath "org.jlleitschuh.gradle:ktlint-gradle:9.4.1"
// NOTE: Do not place application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
5 changes: 4 additions & 1 deletion docs/installation-fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,11 @@ Pour l'affichage et l'utilisation des unités géographiques permettant d'affich
la date de dernière observation dans l'unité, il est nécessaire de charger une couche vectorielle des polygones des
unités géographiques en respectant quelques règles.

Le code du type de zonage utilisé doit être renseigné dans le paramètre `code_area_type` de gn_mobile_core. Ce même code
doit aussi être renseigné dans le paramètre `occtaxmobile_area_type`de la table `gn_commons.t_parameters`de GeoNature.

Par défaut, si aucune couche vectorielle n'est configurée, l'application va simplement charger la base des taxons sans
les données additionnelles venant des unités géographiques.
les informations additionnelles venant des unités géographiques.

- Exemple de fichier WKT : https://github.com/PnX-SI/gn_mobile_maps/blob/develop/maps/src/test/resources/fixtures/features.wkt
- Exemple de configuration : https://github.com/PnX-SI/gn_mobile_maps/blob/develop/maps/src/test/resources/fixtures/map_settings.json
Expand Down
2 changes: 1 addition & 1 deletion gn_mobile_core
Submodule gn_mobile_core updated 92 files
+1 −0 .gitignore
+6 −0 .idea/compiler.xml
+1 −0 .idea/gradle.xml
+25 −0 .idea/jarRepositories.xml
+1 −1 .idea/misc.xml
+3 −3 build.gradle
+16 −15 commons/build.gradle
+8 −6 commons/src/main/java/fr/geonature/commons/data/DefaultNomenclature.kt
+13 −11 commons/src/main/java/fr/geonature/commons/data/NomenclatureTaxonomy.kt
+6 −4 commons/src/main/java/fr/geonature/commons/data/NomenclatureType.kt
+1 −1 commons/src/main/java/fr/geonature/commons/data/Taxon.kt
+8 −6 commons/src/main/java/fr/geonature/commons/data/TaxonArea.kt
+2 −2 commons/src/main/java/fr/geonature/commons/data/TaxonWithArea.kt
+1 −0 commons/src/main/java/fr/geonature/commons/data/Taxonomy.kt
+4 −2 commons/src/main/java/fr/geonature/commons/data/helper/EntityHelper.kt
+2 −1 commons/src/main/java/fr/geonature/commons/data/helper/Provider.kt
+7 −6 commons/src/main/java/fr/geonature/commons/data/helper/SQLiteSelectQueryBuilder.kt
+7 −7 commons/src/main/java/fr/geonature/commons/input/InputManager.kt
+8 −5 commons/src/main/java/fr/geonature/commons/input/InputViewModel.kt
+18 −15 commons/src/main/java/fr/geonature/commons/settings/AppSettingsManager.kt
+68 −64 commons/src/main/java/fr/geonature/commons/ui/adapter/AbstractListItemRecyclerViewAdapter.kt
+1 −1 commons/src/main/java/fr/geonature/commons/ui/adapter/AbstractStickyRecyclerViewAdapter.kt
+1 −1 commons/src/main/java/fr/geonature/commons/ui/adapter/IStickyRecyclerViewAdapter.kt
+53 −54 commons/src/main/java/fr/geonature/commons/ui/adapter/StickyHeaderItemDecorator.kt
+20 −18 commons/src/main/java/fr/geonature/commons/util/EditTextHelper.kt
+1 −1 commons/src/main/java/fr/geonature/commons/util/FileUtilsHelper.kt
+6 −4 commons/src/main/java/fr/geonature/commons/util/LiveDataHelper.kt
+66 −175 commons/src/main/java/fr/geonature/commons/util/PermissionUtils.kt
+2 −1 commons/src/test/java/fr/geonature/commons/OneTimeObserver.kt
+2 −2 commons/src/test/java/fr/geonature/commons/data/AppSyncTest.kt
+20 −18 commons/src/test/java/fr/geonature/commons/data/NomenclatureWithTaxonomyTest.kt
+2 −2 commons/src/test/java/fr/geonature/commons/data/TaxonAreaTest.kt
+4 −2 commons/src/test/java/fr/geonature/commons/data/TaxonWithAreaTest.kt
+18 −14 commons/src/test/java/fr/geonature/commons/data/dao/BaseDaoTest.kt
+2 −2 commons/src/test/java/fr/geonature/commons/data/helper/ConvertersTest.kt
+29 −29 commons/src/test/java/fr/geonature/commons/data/helper/SQLiteSelectQueryBuilderTest.kt
+15 −13 commons/src/test/java/fr/geonature/commons/settings/AppSettingsManagerTest.kt
+1 −3 commons/src/test/java/fr/geonature/commons/util/DateHelperTest.kt
+2 −2 commons/version.properties
+190 −69 docs/sync.adoc
+2 −2 gradle/wrapper/gradle-wrapper.properties
+6 −8 mountpoint/build.gradle
+2 −3 mountpoint/src/main/java/fr/geonature/mountpoint/model/MountPoint.kt
+1 −1 mountpoint/src/test/java/fr/geonature/mountpoint/model/MountPointTest.kt
+1 −1 mountpoint/src/test/java/fr/geonature/mountpoint/util/FileUtilsTest.kt
+1 −1 mountpoint/src/test/java/fr/geonature/mountpoint/util/MountPointUtilsTest.kt
+2 −2 mountpoint/version.properties
+15 −16 sync/build.gradle
+1 −0 sync/src/main/AndroidManifest.xml
+15 −0 sync/src/main/java/fr/geonature/sync/api/GeoNatureService.kt
+4 −1 sync/src/main/java/fr/geonature/sync/api/TaxHubService.kt
+1 −1 sync/src/main/java/fr/geonature/sync/api/model/AppPackage.kt
+1 −1 sync/src/main/java/fr/geonature/sync/data/MainContentProvider.kt
+1 −1 sync/src/main/java/fr/geonature/sync/data/dao/AppSyncDao.kt
+1 −2 sync/src/main/java/fr/geonature/sync/sync/AppPackageDownloadStatus.kt
+1 −1 sync/src/main/java/fr/geonature/sync/sync/DataSyncStatus.kt
+36 −18 sync/src/main/java/fr/geonature/sync/sync/DataSyncViewModel.kt
+1 −2 sync/src/main/java/fr/geonature/sync/sync/PackageInfoManager.kt
+8 −6 sync/src/main/java/fr/geonature/sync/sync/PackageInfoViewModel.kt
+1 −0 sync/src/main/java/fr/geonature/sync/sync/ServerStatus.kt
+1 −1 sync/src/main/java/fr/geonature/sync/sync/io/AppSettingsJsonWriter.kt
+3 −2 sync/src/main/java/fr/geonature/sync/sync/io/DatasetJsonReader.kt
+6 −3 sync/src/main/java/fr/geonature/sync/sync/io/TaxonomyJsonReader.kt
+4 −4 sync/src/main/java/fr/geonature/sync/sync/worker/CheckInputsToSynchronizeWorker.kt
+23 −10 sync/src/main/java/fr/geonature/sync/sync/worker/DataSyncWorker.kt
+9 −11 sync/src/main/java/fr/geonature/sync/sync/worker/DownloadPackageWorker.kt
+16 −12 sync/src/main/java/fr/geonature/sync/sync/worker/InputsSyncWorker.kt
+167 −173 sync/src/main/java/fr/geonature/sync/ui/home/HomeActivity.kt
+11 −5 sync/src/main/java/fr/geonature/sync/ui/home/PackageInfoRecyclerViewAdapter.kt
+32 −22 sync/src/main/java/fr/geonature/sync/ui/login/LoginActivity.kt
+8 −8 sync/src/main/java/fr/geonature/sync/util/SettingsUtils.kt
+12 −0 sync/src/main/res/drawable/ic_action_refresh.xml
+5 −3 sync/src/main/res/layout/activity_login.xml
+2 −2 sync/src/main/res/layout/view_sync_data.xml
+6 −0 sync/src/main/res/menu/settings.xml
+2 −2 sync/src/main/res/values-fr/strings.xml
+1 −1 sync/src/main/res/values/colors.xml
+1 −1 sync/src/main/res/values/dimens.xml
+0 −1 sync/src/main/res/values/prefs.xml
+2 −2 sync/src/main/res/values/strings.xml
+0 −10 sync/src/main/res/values/styles.xml
+1 −1 sync/src/test/java/fr/geonature/sync/settings/io/OnAppSettingsJsonReaderListenerImplTest.kt
+15 −13 sync/src/test/java/fr/geonature/sync/sync/io/TaxonomyJsonReaderTest.kt
+2 −2 sync/version.properties
+11 −12 viewpager/build.gradle
+1 −1 viewpager/src/main/java/fr/geonature/viewpager/pager/PagerManager.kt
+4 −5 viewpager/src/main/java/fr/geonature/viewpager/ui/AbstractNavigationHistoryPagerFragmentActivity.kt
+10 −5 viewpager/src/main/java/fr/geonature/viewpager/ui/AbstractPagerFragmentActivity.kt
+2 −1 viewpager/src/main/res/values/strings.xml
+2 −2 viewpager/src/test/java/fr/geonature/viewpager/pager/io/PagerJsonReaderTest.kt
+2 −2 viewpager/src/test/java/fr/geonature/viewpager/pager/io/PagerJsonWriterTest.kt
+2 −2 viewpager/version.properties
2 changes: 1 addition & 1 deletion gn_mobile_maps
Submodule gn_mobile_maps updated 107 files
3 changes: 2 additions & 1 deletion gn_mobile_occtax.iml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="true">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Jun 01 15:04:01 CEST 2020
#Mon Feb 01 22:04:15 CET 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
7 changes: 3 additions & 4 deletions occtax/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

version = "1.1.4"
version = "1.2.0"

android {
compileSdkVersion 29
Expand Down Expand Up @@ -66,7 +65,7 @@ dependencies {
implementation project(':viewpager')
implementation project(':maps')

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.4'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0'

Expand All @@ -76,7 +75,7 @@ dependencies {
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha03'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.preference:preference-ktx:1.1.1'
implementation 'com.l4digital.fastscroll:fastscroll:2.0.1'

testImplementation 'junit:junit:4.13'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class InputTaxon : AbstractInputTaxon {
if (countingMetadata.isEmpty()) return

val index = if (countingMetadata.index > 0) countingMetadata.index
else this.counting.keys.max()?.plus(1) ?: 1
else this.counting.keys.maxOrNull()?.plus(1) ?: 1

counting[index] = countingMetadata.apply { this.index = index }
}
Expand Down
Loading

0 comments on commit 3e61666

Please sign in to comment.