From 381d2793b8a8be5d6c2b3d7d3c8b6c3438bbf13d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20M=2E=20aka=20Menion?= Date: Tue, 16 Apr 2024 15:18:31 +0200 Subject: [PATCH] - fix: index issue in modified Location --- CHANGELOG.md | 2 +- README.md | 2 +- gradle.properties | 4 ++-- .../main/java/locus/api/objects/extra/Location.kt | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e196e82..0e04619 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [0.9.53] +## [0.9.54] ### Added - `GeocachingData.CACHE_SIZE_VIRTUAL` new size value diff --git a/README.md b/README.md index 77cb957..230a407 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Library for [Locus Map](https://www.locusmap.app) application for Android device ## Current version -Latest stable LT version: **0.9.53** +Latest stable LT version: **0.9.54** Available versions on the maven repository: [here](https://repo1.maven.org/maven2/com/asamm/). How to **update to new 0.9.x** version? More about it [here](https://github.com/asamm/locus-api/wiki/Update-to-version-0.9.0). diff --git a/gradle.properties b/gradle.properties index 683a5b3..e2187bf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -23,8 +23,8 @@ GRADLE_NEXUS_STAGING = 0.30.0 LOCUS_LOGGER = 2.2 # Version -API_CODE = 100 -API_VERSION = 0.9.53 +API_CODE = 101 +API_VERSION = 0.9.54 # ANDROID SUPPORT LIBS # https://developer.android.com/topic/libraries/support-library/revisions.html diff --git a/locus-api-core/src/main/java/locus/api/objects/extra/Location.kt b/locus-api-core/src/main/java/locus/api/objects/extra/Location.kt index 13ce259..ea7ab70 100644 --- a/locus-api-core/src/main/java/locus/api/objects/extra/Location.kt +++ b/locus-api-core/src/main/java/locus/api/objects/extra/Location.kt @@ -183,7 +183,7 @@ class Location() : Storable() { loc.extraDataShort ?.takeIf { !it.isEmpty } ?.let { - for (i in 0 .. it.size()) { + for (i in 0 until it.size()) { setDataShort(it.keyAt(i), it.valueAt(i)) } } @@ -191,7 +191,7 @@ class Location() : Storable() { loc.extraDataInt ?.takeIf { !it.isEmpty } ?.let { - for (i in 0 .. it.size()) { + for (i in 0 until it.size()) { setDataInt(it.keyAt(i), it.valueAt(i)) } } @@ -199,7 +199,7 @@ class Location() : Storable() { loc.extraDataLong ?.takeIf { !it.isEmpty } ?.let { - for (i in 0 .. it.size()) { + for (i in 0 until it.size()) { setDataLong(it.keyAt(i), it.valueAt(i)) } } @@ -208,7 +208,7 @@ class Location() : Storable() { loc.extraDataFloat ?.takeIf { !it.isEmpty } ?.let { - for (i in 0 .. it.size()) { + for (i in 0 until it.size()) { setDataFloat(it.keyAt(i), it.valueAt(i)) } } @@ -216,7 +216,7 @@ class Location() : Storable() { loc.extraDataDouble ?.takeIf { !it.isEmpty } ?.let { - for (i in 0 .. it.size()) { + for (i in 0 until it.size()) { setDataDouble(it.keyAt(i), it.valueAt(i)) } } @@ -224,7 +224,7 @@ class Location() : Storable() { loc.extraDataString ?.takeIf { !it.isEmpty } ?.let { - for (i in 0 .. it.size()) { + for (i in 0 until it.size()) { setDataString(it.keyAt(i), it.valueAt(i)) } }