Skip to content

Commit 988d6f1

Browse files
committed
- fixes #54
1 parent 381d279 commit 988d6f1

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.9.55]
8+
### Fixed
9+
- [#54](https://github.com/asamm/locus-api/issues/54), missing "Virtual" cache size implementation
10+
711
## [0.9.54]
812
### Added
913
- `GeocachingData.CACHE_SIZE_VIRTUAL` new size value

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Library for [Locus Map](https://www.locusmap.app) application for Android device
1616

1717
## Current version
1818

19-
Latest stable LT version: **0.9.54**
19+
Latest stable LT version: **0.9.55**
2020
Available versions on the maven repository: [here](https://repo1.maven.org/maven2/com/asamm/).
2121

2222
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 for: gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ GRADLE_NEXUS_STAGING = 0.30.0
2323
LOCUS_LOGGER = 2.2
2424

2525
# Version
26-
API_CODE = 101
27-
API_VERSION = 0.9.54
26+
API_CODE = 102
27+
API_VERSION = 0.9.55
2828

2929
# ANDROID SUPPORT LIBS
3030
# https://developer.android.com/topic/libraries/support-library/revisions.html

Diff for: locus-api-core/src/main/java/locus/api/objects/geocaching/GeocachingData.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ class GeocachingData : Storable() {
299299
CACHE_SIZE_REGULAR -> return "Regular"
300300
CACHE_SIZE_LARGE -> return "Large"
301301
CACHE_SIZE_HUGE -> return "Huge"
302+
CACHE_SIZE_VIRTUAL -> return "Virtual"
302303
CACHE_SIZE_NOT_CHOSEN -> return "Not chosen"
303304
CACHE_SIZE_OTHER -> return "Other"
304305
}
@@ -312,6 +313,7 @@ class GeocachingData : Storable() {
312313
value.equals("Regular", ignoreCase = true) -> CACHE_SIZE_REGULAR
313314
value.equals("Large", ignoreCase = true) -> CACHE_SIZE_LARGE
314315
value.equals("Huge", ignoreCase = true) -> CACHE_SIZE_HUGE
316+
value.equals("Virtual", ignoreCase = true) -> CACHE_SIZE_VIRTUAL
315317
value.equals("Other", ignoreCase = true) -> CACHE_SIZE_OTHER
316318
else -> CACHE_SIZE_NOT_CHOSEN
317319
}
@@ -745,7 +747,7 @@ class GeocachingData : Storable() {
745747
*/
746748
const val CACHE_TYPE_UNDEFINED = -1
747749

748-
const val CACHE_SIZE_NOT_CHOSEN = 0
750+
const val CACHE_SIZE_NOT_CHOSEN = 0 // equal to "Unknown"
749751
const val CACHE_SIZE_MICRO = 1
750752
const val CACHE_SIZE_SMALL = 2
751753
const val CACHE_SIZE_REGULAR = 3

0 commit comments

Comments
 (0)