Skip to content

Commit

Permalink
- fixes #54
Browse files Browse the repository at this point in the history
  • Loading branch information
menion committed May 6, 2024
1 parent 381d279 commit 988d6f1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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.55]
### Fixed
- [#54](https://github.com/asamm/locus-api/issues/54), missing "Virtual" cache size implementation

## [0.9.54]
### Added
- `GeocachingData.CACHE_SIZE_VIRTUAL` new size value
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Library for [Locus Map](https://www.locusmap.app) application for Android device

## Current version

Latest stable LT version: **0.9.54**
Latest stable LT version: **0.9.55**
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).
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ GRADLE_NEXUS_STAGING = 0.30.0
LOCUS_LOGGER = 2.2

# Version
API_CODE = 101
API_VERSION = 0.9.54
API_CODE = 102
API_VERSION = 0.9.55

# ANDROID SUPPORT LIBS
# https://developer.android.com/topic/libraries/support-library/revisions.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ class GeocachingData : Storable() {
CACHE_SIZE_REGULAR -> return "Regular"
CACHE_SIZE_LARGE -> return "Large"
CACHE_SIZE_HUGE -> return "Huge"
CACHE_SIZE_VIRTUAL -> return "Virtual"
CACHE_SIZE_NOT_CHOSEN -> return "Not chosen"
CACHE_SIZE_OTHER -> return "Other"
}
Expand All @@ -312,6 +313,7 @@ class GeocachingData : Storable() {
value.equals("Regular", ignoreCase = true) -> CACHE_SIZE_REGULAR
value.equals("Large", ignoreCase = true) -> CACHE_SIZE_LARGE
value.equals("Huge", ignoreCase = true) -> CACHE_SIZE_HUGE
value.equals("Virtual", ignoreCase = true) -> CACHE_SIZE_VIRTUAL
value.equals("Other", ignoreCase = true) -> CACHE_SIZE_OTHER
else -> CACHE_SIZE_NOT_CHOSEN
}
Expand Down Expand Up @@ -745,7 +747,7 @@ class GeocachingData : Storable() {
*/
const val CACHE_TYPE_UNDEFINED = -1

const val CACHE_SIZE_NOT_CHOSEN = 0
const val CACHE_SIZE_NOT_CHOSEN = 0 // equal to "Unknown"
const val CACHE_SIZE_MICRO = 1
const val CACHE_SIZE_SMALL = 2
const val CACHE_SIZE_REGULAR = 3
Expand Down

0 comments on commit 988d6f1

Please sign in to comment.